Re: [syzbot] [bpf?] [net?] WARNING in sock_map_close (2)

From: Hillf Danton
Date: Sat Aug 24 2024 - 03:43:46 EST


On Thu, 22 Aug 2024 06:19:27 -0700
> syzbot found the following issue on:
>
> HEAD commit: d785ed945de6 net: wwan: t7xx: PCIe reset rescan
> git tree: net-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12378c33980000

#syz test net-next d785ed945de6

--- x/net/core/sock_map.c
+++ y/net/core/sock_map.c
@@ -209,7 +209,7 @@ static struct sk_psock *sock_map_psock_g
rcu_read_lock();
psock = sk_psock(sk);
if (psock) {
- if (sk->sk_prot->close != sock_map_close) {
+ if (sk->sk_prot->close == sock_map_close) {
psock = ERR_PTR(-EBUSY);
goto out;
}
--