BUG: sleeping function called from invalid context at net/core/sock.c:3291 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7726, name: syz.0.646 7 locks held by syz.0.646/7726: #0: ffffffff8d454ca8 (sock_diag_mutex){+.+.}-{3:3}, at: sock_diag_rcv+0x17/0x40 net/core/sock_diag.c:275 #1: ffffffff8d454b68 (sock_diag_table_mutex){+.+.}-{3:3}, at: __sock_diag_cmd net/core/sock_diag.c:229 [inline] #1: ffffffff8d454b68 (sock_diag_table_mutex){+.+.}-{3:3}, at: sock_diag_rcv_msg+0x20e/0x3e0 net/core/sock_diag.c:265 #2: ffff888020d74698 (nlk_cb_mutex-SOCK_DIAG){+.+.}-{3:3}, at: __netlink_dump_start+0x11e/0x700 net/netlink/af_netlink.c:2357 #3: ffffffff8d52e7e8 (inet_diag_table_mutex){+.+.}-{3:3}, at: inet_diag_lock_handler net/ipv4/inet_diag.c:63 [inline] #3: ffffffff8d52e7e8 (inet_diag_table_mutex){+.+.}-{3:3}, at: __inet_diag_dump+0x181/0x380 net/ipv4/inet_diag.c:1177 #4: ffffffff8c31ef20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:312 #5: ffffc900017b36e8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:364 [inline] #5: ffffc900017b36e8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: mptcp_diag_dump_listeners net/mptcp/mptcp_diag.c:95 [inline] #5: ffffc900017b36e8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: mptcp_diag_dump+0x8f4/0x12a0 net/mptcp/mptcp_diag.c:194 #6: ffff88805a77d6e0 (msk_lock-AF_INET6){+.+.}-{0:0}, at: inet_sk_diag_fill+0xe40/0x19d0 net/ipv4/inet_diag.c:342 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 7726 Comm: syz.0.646 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 ___might_sleep+0x493/0x610 kernel/sched/core.c:9658 __lock_sock_fast+0x2f/0xe0 net/core/sock.c:3291 lock_sock_fast include/net/sock.h:1778 [inline] mptcp_diag_get_info+0x1fe/0x9e0 net/mptcp/mptcp_diag.c:224 inet_sk_diag_fill+0xe40/0x19d0 net/ipv4/inet_diag.c:342 sk_diag_dump net/mptcp/mptcp_diag.c:24 [inline] mptcp_diag_dump_listeners net/mptcp/mptcp_diag.c:122 [inline] mptcp_diag_dump+0xcc2/0x12a0 net/mptcp/mptcp_diag.c:194 __inet_diag_dump+0x1f6/0x380 net/ipv4/inet_diag.c:1179 netlink_dump+0x675/0xcd0 net/netlink/af_netlink.c:2288 __netlink_dump_start+0x518/0x700 net/netlink/af_netlink.c:2391 netlink_dump_start include/linux/netlink.h:258 [inline] inet_diag_handler_cmd+0x1d2/0x2b0 net/ipv4/inet_diag.c:1344 sock_diag_rcv_msg+0x15c/0x3e0 net/core/sock_diag.c:-1 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2512 sock_diag_rcv+0x26/0x40 net/core/sock_diag.c:276 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x78f/0x940 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ba/0xbe0 net/netlink/af_netlink.c:1923 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] sock_write_iter+0x2a6/0x3a0 net/socket.c:1090 do_iter_readv_writev+0x47d/0x5f0 fs/read_write.c:-1 do_iter_write+0x1f8/0x7a0 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_writev+0x281/0x480 fs/read_write.c:971 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4e5377de99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4e519b5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f4e53a06090 RCX: 00007f4e5377de99 RDX: 0000000000000001 RSI: 0000200000000280 RDI: 000000000000000c RBP: 00007f4e53813eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4e53a06128 R14: 00007f4e53a06090 R15: 00007ffec4734a38