Re: [syzbot] [net?] possible deadlock in unix_notinflight

From: Hillf Danton
Date: Wed Apr 10 2024 - 18:58:53 EST


On Wed, 10 Apr 2024 11:45:29 -0700
> syzbot found the following issue on:
>
> HEAD commit: 443574b03387 riscv, bpf: Fix kfunc parameters incompatibil..
> git tree: bpf
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11aee305180000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git 443574b03387

--- x/net/unix/garbage.c
+++ y/net/unix/garbage.c
@@ -327,7 +327,7 @@ static void __unix_gc(struct work_struct

#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
if (u->oob_skb) {
- kfree_skb(u->oob_skb);
+ __skb_queue_tail(hitlist, u->oob_skb);
u->oob_skb = NULL;
}
#endif
--