BUG: sleeping function called from invalid context at net/core/sock.c:3282 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4023, name: syz-executor248 7 locks held by syz-executor248/4023: #0: ffff800016cbd508 (sock_diag_mutex){+.+.}-{3:3}, at: sock_diag_rcv+0x2c/0x54 net/core/sock_diag.c:275 #1: ffff800016cbd368 (sock_diag_table_mutex){+.+.}-{3:3}, at: sock_diag_rcv_msg+0x15c/0x39c net/core/sock_diag.c:255 #2: ffff0000c2247690 (nlk_cb_mutex-SOCK_DIAG){+.+.}-{3:3}, at: __netlink_dump_start+0x108/0x6d4 net/netlink/af_netlink.c:2334 #3: ffff800016d968e8 (inet_diag_table_mutex){+.+.}-{3:3}, at: inet_diag_lock_handler net/ipv4/inet_diag.c:63 [inline] #3: ffff800016d968e8 (inet_diag_table_mutex){+.+.}-{3:3}, at: __inet_diag_dump+0x17c/0x33c net/ipv4/inet_diag.c:1177 #4: ffff800014d42360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:311 #5: ffff0000c56315d8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #5: ffff0000c56315d8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: mptcp_diag_dump_listeners net/mptcp/mptcp_diag.c:95 [inline] #5: ffff0000c56315d8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: mptcp_diag_dump+0x7b0/0x10dc net/mptcp/mptcp_diag.c:194 #6: ffff0000ccd08120 (msk_lock-AF_INET){+.+.}-{0:0}, at: inet_sk_diag_fill+0xcb8/0x17b4 net/ipv4/inet_diag.c:342 Preemption disabled at: [] spin_lock include/linux/spinlock.h:363 [inline] [] mptcp_diag_dump_listeners net/mptcp/mptcp_diag.c:95 [inline] [] mptcp_diag_dump+0x7b0/0x10dc net/mptcp/mptcp_diag.c:194 CPU: 1 PID: 4023 Comm: syz-executor248 Not tainted 5.15.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ___might_sleep+0x380/0x4dc kernel/sched/core.c:9636 __might_sleep+0x98/0xf0 kernel/sched/core.c:9590 __lock_sock_fast+0x3c/0xf0 net/core/sock.c:3282 lock_sock_fast include/net/sock.h:1712 [inline] mptcp_diag_get_info+0x210/0x8a0 net/mptcp/mptcp_diag.c:224 inet_sk_diag_fill+0xcb8/0x17b4 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+0xb4c/0x10dc net/mptcp/mptcp_diag.c:194 __inet_diag_dump+0x1e8/0x33c net/ipv4/inet_diag.c:1179 inet_diag_dump_compat+0x17c/0x288 net/ipv4/inet_diag.c:1288 netlink_dump+0x4a8/0xad0 net/netlink/af_netlink.c:2265 __netlink_dump_start+0x474/0x6d4 net/netlink/af_netlink.c:2368 netlink_dump_start include/linux/netlink.h:258 [inline] inet_diag_rcv_msg_compat+0x1c8/0x434 net/ipv4/inet_diag.c:1323 sock_diag_rcv_msg+0x174/0x39c netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2489 sock_diag_rcv+0x3c/0x54 net/core/sock_diag.c:276 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x584/0x870 net/socket.c:2436 ___sys_sendmsg+0x214/0x294 net/socket.c:2490 __sys_sendmsg net/socket.c:2519 [inline] __do_sys_sendmsg net/socket.c:2528 [inline] __se_sys_sendmsg net/socket.c:2526 [inline] __arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2526 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584