Re: [syzbot] [net?] KASAN: slab-use-after-free Read in unix_stream_read_actor (2)
From: Hillf Danton
Date: Thu Sep 05 2024 - 18:51:36 EST
On Wed, 04 Sep 2024 08:13:24 -0700
> syzbot found the following issue on:
>
> HEAD commit: fbdaffe41adc Merge branch 'am-qt2025-phy-rust'
> git tree: net-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16d3fc53980000
#syz test
--- x/net/unix/af_unix.c
+++ y/net/unix/af_unix.c
@@ -2634,6 +2634,7 @@ static int unix_stream_recv_urg(struct u
if (!(state->flags & MSG_PEEK))
WRITE_ONCE(u->oob_skb, NULL);
+ __skb_unlink(oob_skb, &sk->sk_receive_queue);
spin_unlock(&sk->sk_receive_queue.lock);
unix_state_unlock(sk);
--