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

From: Hillf Danton
Date: Thu Apr 04 2024 - 19:57:15 EST


On Thu, 04 Apr 2024 09:13:26 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 2b3d5988ae2c Add linux-next specific files for 20240404
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1133aaa9180000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 2b3d5988ae2c

--- x/net/unix/garbage.c
+++ y/net/unix/garbage.c
@@ -358,7 +358,7 @@ static void unix_collect_skb(struct list

#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
--