Re: [syzbot] [rdma] general protection fault in kernel_sock_shutdown (4)

Hillf Danton
2026-05-07T01:31:04Z

> Date: Wed, 06 May 2026 06:48:30 -0700 [thread overview]
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 74fe02ce122a Merge tag 'wq-for-7.1-rc2-fixes' of git://git..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=16e895ce580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=59da38148f3a3d24
> dashboard link: https://syzkaller.appspot.com/bug?extid=d8f76778263ab65c2b21
> compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13a613ba580000

#syz test

--- x/net/socket.c
+++ y/net/socket.c
@@ -3782,7 +3782,11 @@ EXPORT_SYMBOL(kernel_getpeername);

int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how)
{
- return READ_ONCE(sock->ops)->shutdown(sock, how);
+ const struct proto_ops *ops = READ_ONCE(sock->ops);
+ if (ops)
+ return ops->shutdown(sock, how);
+ else
+ return 0;
}
EXPORT_SYMBOL(kernel_sock_shutdown);

--