Re: [syzbot] [kernel?] possible deadlock in binder_alloc_free_page

From: Hillf Danton
Date: Sat Jan 11 2025 - 08:18:06 EST


On Sat, 11 Jan 2025 02:30:22 -0800
> syzbot found the following issue on:
>
> HEAD commit: 7b4b9bf203da Add linux-next specific files for 20250107
> git tree: linux-next
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10302dc4580000

#syz test

--- x/drivers/android/binder_alloc.c
+++ y/drivers/android/binder_alloc.c
@@ -1247,9 +1247,10 @@ void binder_alloc_init(struct binder_all

int binder_alloc_shrinker_init(void)
{
+ static struct lock_class_key key;
int ret;

- ret = list_lru_init(&binder_freelist);
+ ret = __list_lru_init(&binder_freelist, false, &key, NULL);
if (ret)
return ret;

--