Warning: Permanently added '10.128.1.73' (ED25519) to the list of known hosts. executing program [ 41.191166][ T3498] [ 41.193498][ T3498] ====================================================== [ 41.200487][ T3498] WARNING: possible circular locking dependency detected [ 41.207478][ T3498] 5.15.140-syzkaller #0 Not tainted [ 41.212644][ T3498] ------------------------------------------------------ [ 41.219631][ T3498] syz-executor107/3498 is trying to acquire lock: [ 41.226013][ T3498] ffff888078ae0120 (sk_lock-AF_INET){+.+.}-{0:0}, at: inet_sk_diag_fill+0xf6a/0x1cb0 [ 41.235469][ T3498] [ 41.235469][ T3498] but task is already holding lock: [ 41.242802][ T3498] ffffc90001892650 (&h->lhash2[i].lock){+.+.}-{2:2}, at: mptcp_diag_dump+0x869/0x1330 [ 41.252334][ T3498] [ 41.252334][ T3498] which lock already depends on the new lock. [ 41.252334][ T3498] [ 41.262706][ T3498] [ 41.262706][ T3498] the existing dependency chain (in reverse order) is: [ 41.271688][ T3498] [ 41.271688][ T3498] -> #1 (&h->lhash2[i].lock){+.+.}-{2:2}: [ 41.279557][ T3498] lock_acquire+0x1db/0x4f0 [ 41.284556][ T3498] _raw_spin_lock+0x2a/0x40 [ 41.289552][ T3498] __inet_hash+0xe3/0x920 [ 41.294377][ T3498] inet_csk_listen_start+0x231/0x310 [ 41.300154][ T3498] inet_listen+0x2c9/0x7c0 [ 41.305063][ T3498] __sys_listen+0x1a7/0x220 [ 41.310058][ T3498] __x64_sys_listen+0x56/0x60 [ 41.315229][ T3498] do_syscall_64+0x3d/0xb0 [ 41.320140][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 41.326549][ T3498] [ 41.326549][ T3498] -> #0 (sk_lock-AF_INET){+.+.}-{0:0}: [ 41.334159][ T3498] validate_chain+0x1646/0x58b0 [ 41.339505][ T3498] __lock_acquire+0x1295/0x1ff0 [ 41.344848][ T3498] lock_acquire+0x1db/0x4f0 [ 41.349844][ T3498] mptcp_diag_get_info+0x276/0xa10 [ 41.355449][ T3498] inet_sk_diag_fill+0xf6a/0x1cb0 [ 41.360965][ T3498] mptcp_diag_dump+0xd1d/0x1330 [ 41.366309][ T3498] __inet_diag_dump+0x20e/0x3a0 [ 41.371651][ T3498] inet_diag_dump_compat+0x1bd/0x2d0 [ 41.377430][ T3498] netlink_dump+0x606/0xc40 [ 41.382425][ T3498] __netlink_dump_start+0x52f/0x6f0 [ 41.388120][ T3498] inet_diag_rcv_msg_compat+0x202/0x4c0 [ 41.394157][ T3498] sock_diag_rcv_msg+0xd5/0x400 [ 41.399501][ T3498] netlink_rcv_skb+0x1cf/0x410 [ 41.404759][ T3498] sock_diag_rcv+0x26/0x40 [ 41.409667][ T3498] netlink_unicast+0x7b6/0x980 [ 41.414925][ T3498] netlink_sendmsg+0xa30/0xd60 [ 41.420181][ T3498] ____sys_sendmsg+0x59e/0x8f0 [ 41.425440][ T3498] ___sys_sendmsg+0x252/0x2e0 [ 41.430610][ T3498] __se_sys_sendmsg+0x19a/0x260 [ 41.435957][ T3498] do_syscall_64+0x3d/0xb0 [ 41.440868][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 41.447276][ T3498] [ 41.447276][ T3498] other info that might help us debug this: [ 41.447276][ T3498] [ 41.457493][ T3498] Possible unsafe locking scenario: [ 41.457493][ T3498] [ 41.464932][ T3498] CPU0 CPU1 [ 41.470269][ T3498] ---- ---- [ 41.475604][ T3498] lock(&h->lhash2[i].lock); [ 41.480256][ T3498] lock(sk_lock-AF_INET); [ 41.487183][ T3498] lock(&h->lhash2[i].lock); [ 41.494367][ T3498] lock(sk_lock-AF_INET); [ 41.498760][ T3498] [ 41.498760][ T3498] *** DEADLOCK *** [ 41.498760][ T3498] [ 41.506878][ T3498] 6 locks held by syz-executor107/3498: [ 41.512391][ T3498] #0: ffffffff8d9e3a88 (sock_diag_mutex){+.+.}-{3:3}, at: sock_diag_rcv+0x17/0x40 [ 41.521688][ T3498] #1: ffffffff8d9e38e8 (sock_diag_table_mutex){+.+.}-{3:3}, at: sock_diag_rcv_msg+0xb8/0x400 [ 41.532017][ T3498] #2: ffff888147ba5690 (nlk_cb_mutex-SOCK_DIAG){+.+.}-{3:3}, at: netlink_dump+0xd0/0xc40 [ 41.541998][ T3498] #3: ffffffff8dac1dc8 (inet_diag_table_mutex){+.+.}-{3:3}, at: __inet_diag_dump+0x191/0x3a0 [ 41.552230][ T3498] #4: ffffffff8c91f0e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 41.561505][ T3498] #5: ffffc90001892650 (&h->lhash2[i].lock){+.+.}-{2:2}, at: mptcp_diag_dump+0x869/0x1330 [ 41.571470][ T3498] [ 41.571470][ T3498] stack backtrace: [ 41.577330][ T3498] CPU: 0 PID: 3498 Comm: syz-executor107 Not tainted 5.15.140-syzkaller #0 [ 41.585890][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 41.595919][ T3498] Call Trace: [ 41.599178][ T3498] [ 41.602085][ T3498] dump_stack_lvl+0x1e3/0x2cb [ 41.606737][ T3498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 41.612346][ T3498] ? print_circular_bug+0x12b/0x1a0 [ 41.617518][ T3498] check_noncircular+0x2f8/0x3b0 [ 41.622428][ T3498] ? add_chain_block+0x850/0x850 [ 41.627337][ T3498] ? lockdep_lock+0x11f/0x2a0 [ 41.631994][ T3498] validate_chain+0x1646/0x58b0 [ 41.636821][ T3498] ? reacquire_held_locks+0x660/0x660 [ 41.642164][ T3498] ? register_lock_class+0x100/0x9a0 [ 41.647424][ T3498] ? check_noncircular+0x1e1/0x3b0 [ 41.652511][ T3498] ? is_dynamic_key+0x1f0/0x1f0 [ 41.657336][ T3498] ? mark_lock+0x98/0x340 [ 41.661640][ T3498] ? __lock_acquire+0x1295/0x1ff0 [ 41.666638][ T3498] ? mark_lock+0x98/0x340 [ 41.670942][ T3498] __lock_acquire+0x1295/0x1ff0 [ 41.675772][ T3498] lock_acquire+0x1db/0x4f0 [ 41.680248][ T3498] ? inet_sk_diag_fill+0xf6a/0x1cb0 [ 41.685419][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 41.690783][ T3498] ? memcpy+0x3c/0x60 [ 41.694738][ T3498] ? nla_put+0x12d/0x1e0 [ 41.698951][ T3498] ? skb_put+0x110/0x1f0 [ 41.703166][ T3498] ? nla_put+0x12d/0x1e0 [ 41.707381][ T3498] ? memcpy+0x3c/0x60 [ 41.711335][ T3498] ? nla_put+0x12d/0x1e0 [ 41.715550][ T3498] mptcp_diag_get_info+0x276/0xa10 [ 41.720635][ T3498] ? inet_sk_diag_fill+0xf6a/0x1cb0 [ 41.725810][ T3498] ? inet_sk_diag_fill+0xf6a/0x1cb0 [ 41.730982][ T3498] ? mptcp_diag_dump_one+0x280/0x280 [ 41.736238][ T3498] ? memset+0x1f/0x40 [ 41.740190][ T3498] ? nla_reserve_64bit+0x121/0x1c0 [ 41.745273][ T3498] inet_sk_diag_fill+0xf6a/0x1cb0 [ 41.750274][ T3498] ? inet_diag_msg_attrs_fill+0x9c0/0x9c0 [ 41.755966][ T3498] ? __might_sleep+0xc0/0xc0 [ 41.760528][ T3498] ? inet_diag_bc_sk+0x19d/0x10d0 [ 41.765525][ T3498] ? __rwlock_init+0x140/0x140 [ 41.770262][ T3498] ? do_raw_spin_unlock+0x137/0x8b0 [ 41.775433][ T3498] mptcp_diag_dump+0xd1d/0x1330 [ 41.780276][ T3498] ? __netlink_dump_start+0x52f/0x6f0 [ 41.785625][ T3498] ? mptcp_token_join_cookie_init_state+0x460/0x460 [ 41.792185][ T3498] __inet_diag_dump+0x20e/0x3a0 [ 41.797013][ T3498] inet_diag_dump_compat+0x1bd/0x2d0 [ 41.802271][ T3498] ? inet_diag_dump_start_compat+0x20/0x20 [ 41.808053][ T3498] ? __alloc_skb+0x397/0x590 [ 41.812615][ T3498] netlink_dump+0x606/0xc40 [ 41.817093][ T3498] ? netlink_lookup+0x1d0/0x1d0 [ 41.821920][ T3498] ? __inet_diag_dump_start+0x8a/0x990 [ 41.827351][ T3498] ? __inet_diag_dump_start+0x831/0x990 [ 41.832871][ T3498] __netlink_dump_start+0x52f/0x6f0 [ 41.838044][ T3498] inet_diag_rcv_msg_compat+0x202/0x4c0 [ 41.843563][ T3498] ? inet_diag_unregister+0xb0/0xb0 [ 41.848734][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 41.854079][ T3498] ? sock_diag_rcv_msg+0xb8/0x400 [ 41.859083][ T3498] ? __mutex_trylock_common+0x17e/0x2e0 [ 41.864613][ T3498] ? mutex_lock_io_nested+0x60/0x60 [ 41.869787][ T3498] ? __inet_diag_dump+0x3a0/0x3a0 [ 41.874786][ T3498] ? inet_diag_dump_start_compat+0x20/0x20 [ 41.880566][ T3498] ? inet_diag_dump+0x50/0x50 [ 41.885215][ T3498] ? rcu_lock_release+0x20/0x20 [ 41.890039][ T3498] ? inet_diag_unregister+0xb0/0xb0 [ 41.895230][ T3498] sock_diag_rcv_msg+0xd5/0x400 [ 41.900054][ T3498] netlink_rcv_skb+0x1cf/0x410 [ 41.904791][ T3498] ? sock_diag_bind+0xa0/0xa0 [ 41.909439][ T3498] ? netlink_ack+0xb10/0xb10 [ 41.914020][ T3498] sock_diag_rcv+0x26/0x40 [ 41.918410][ T3498] netlink_unicast+0x7b6/0x980 [ 41.923148][ T3498] ? netlink_detachskb+0x90/0x90 [ 41.928064][ T3498] ? 0xffffffff81000000 [ 41.932188][ T3498] ? __check_object_size+0x300/0x410 [ 41.937447][ T3498] ? bpf_lsm_netlink_send+0x5/0x10 [ 41.942530][ T3498] netlink_sendmsg+0xa30/0xd60 [ 41.947270][ T3498] ? netlink_getsockopt+0x5b0/0x5b0 [ 41.952439][ T3498] ? aa_sock_msg_perm+0x91/0x150 [ 41.957358][ T3498] ? bpf_lsm_socket_sendmsg+0x5/0x10 [ 41.962624][ T3498] ? security_socket_sendmsg+0x7d/0xa0 [ 41.968068][ T3498] ? netlink_getsockopt+0x5b0/0x5b0 [ 41.973240][ T3498] ____sys_sendmsg+0x59e/0x8f0 [ 41.977979][ T3498] ? iovec_from_user+0x300/0x390 [ 41.982892][ T3498] ? __sys_sendmsg_sock+0x30/0x30 [ 41.987902][ T3498] ___sys_sendmsg+0x252/0x2e0 [ 41.992562][ T3498] ? __sys_sendmsg+0x260/0x260 [ 41.997304][ T3498] ? __lock_acquire+0x1295/0x1ff0 [ 42.002331][ T3498] ? __context_tracking_enter+0x5f/0x90 [ 42.007856][ T3498] ? __context_tracking_exit+0x4c/0x80 [ 42.013312][ T3498] ? __fdget+0x158/0x220 [ 42.017536][ T3498] __se_sys_sendmsg+0x19a/0x260 [ 42.022365][ T3498] ? __x64_sys_sendmsg+0x80/0x80 [ 42.027282][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 42.033236][ T3498] ? lockdep_hardirqs_on+0x94/0x130 [ 42.038411][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 42.044364][ T3498] do_syscall_64+0x3d/0xb0 [ 42.048760][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.054633][ T3498] RIP: 0033:0x7f8a346c43e9 [ 42.059027][ T3498] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 [ 42.078605][ T3498] RSP: 002b:00007ffe8583e448 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 42.086997][ T3498] RAX: ffffffffffffffda RBX: 00007ffe8583e618 RCX: 00007f8a346c43e9 [ 42.094947][ T3498] RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000004 [ 42.102901][ T3498] RBP: 00007f8a34737610 R08: 00007ffe8583e618 R09: 00007ffe8583e618 [ 42.110858][ T3498] R10: 00007ffe8583e618 R11: 0000000000000246 R12: 0000000000000001 [ 42.118816][ T3498] R13: 00007ffe8583e608 R14: 0000000000000001 R15: 0000000000000001 [ 42.126771][ T3498] [ 42.129879][ T3498] BUG: sleeping function called from invalid context at net/core/sock.c:3263 [ 42.138610][ T3498] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3498, name: syz-executor107 [ 42.148063][ T3498] INFO: lockdep is turned off. [ 42.152825][ T3498] Preemption disabled at: [ 42.152831][ T3498] [<0000000000000000>] 0x0 [ 42.161562][ T3498] CPU: 0 PID: 3498 Comm: syz-executor107 Not tainted 5.15.140-syzkaller #0 [ 42.170158][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 42.180190][ T3498] Call Trace: [ 42.183445][ T3498] [ 42.186355][ T3498] dump_stack_lvl+0x1e3/0x2cb [ 42.191013][ T3498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 42.196619][ T3498] ? panic+0x84d/0x84d [ 42.200663][ T3498] ___might_sleep+0x547/0x6a0 [ 42.205320][ T3498] ? __might_sleep+0xc0/0xc0 [ 42.209885][ T3498] ? memcpy+0x3c/0x60 [ 42.213848][ T3498] ? nla_put+0x12d/0x1e0 [ 42.218064][ T3498] ? skb_put+0x110/0x1f0 [ 42.222277][ T3498] ? nla_put+0x12d/0x1e0 [ 42.226494][ T3498] ? memcpy+0x3c/0x60 [ 42.230451][ T3498] __lock_sock_fast+0x2f/0xe0 [ 42.235104][ T3498] mptcp_diag_get_info+0x282/0xa10 [ 42.240188][ T3498] ? inet_sk_diag_fill+0xf6a/0x1cb0 [ 42.245361][ T3498] ? mptcp_diag_dump_one+0x280/0x280 [ 42.250618][ T3498] ? memset+0x1f/0x40 [ 42.254582][ T3498] ? nla_reserve_64bit+0x121/0x1c0 [ 42.259669][ T3498] inet_sk_diag_fill+0xf6a/0x1cb0 [ 42.264675][ T3498] ? inet_diag_msg_attrs_fill+0x9c0/0x9c0 [ 42.270367][ T3498] ? __might_sleep+0xc0/0xc0 [ 42.274933][ T3498] ? inet_diag_bc_sk+0x19d/0x10d0 [ 42.279931][ T3498] ? __rwlock_init+0x140/0x140 [ 42.284667][ T3498] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.289840][ T3498] mptcp_diag_dump+0xd1d/0x1330 [ 42.294666][ T3498] ? __netlink_dump_start+0x52f/0x6f0 [ 42.300016][ T3498] ? mptcp_token_join_cookie_init_state+0x460/0x460 [ 42.306587][ T3498] __inet_diag_dump+0x20e/0x3a0 [ 42.311411][ T3498] inet_diag_dump_compat+0x1bd/0x2d0 [ 42.316669][ T3498] ? inet_diag_dump_start_compat+0x20/0x20 [ 42.322449][ T3498] ? __alloc_skb+0x397/0x590 [ 42.327024][ T3498] netlink_dump+0x606/0xc40 [ 42.331504][ T3498] ? netlink_lookup+0x1d0/0x1d0 [ 42.336328][ T3498] ? __inet_diag_dump_start+0x8a/0x990 [ 42.341761][ T3498] ? __inet_diag_dump_start+0x831/0x990 [ 42.347279][ T3498] __netlink_dump_start+0x52f/0x6f0 [ 42.352458][ T3498] inet_diag_rcv_msg_compat+0x202/0x4c0 [ 42.357978][ T3498] ? inet_diag_unregister+0xb0/0xb0 [ 42.363149][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 42.368497][ T3498] ? sock_diag_rcv_msg+0xb8/0x400 [ 42.373510][ T3498] ? __mutex_trylock_common+0x17e/0x2e0 [ 42.379030][ T3498] ? mutex_lock_io_nested+0x60/0x60 [ 42.384205][ T3498] ? __inet_diag_dump+0x3a0/0x3a0 [ 42.389202][ T3498] ? inet_diag_dump_start_compat+0x20/0x20 [ 42.394980][ T3498] ? inet_diag_dump+0x50/0x50 [ 42.399660][ T3498] ? rcu_lock_release+0x20/0x20 [ 42.404486][ T3498] ? inet_diag_unregister+0xb0/0xb0 [ 42.409654][ T3498] sock_diag_rcv_msg+0xd5/0x400 [ 42.414481][ T3498] netlink_rcv_skb+0x1cf/0x410 [ 42.419220][ T3498] ? sock_diag_bind+0xa0/0xa0 [ 42.423871][ T3498] ? netlink_ack+0xb10/0xb10 [ 42.428440][ T3498] sock_diag_rcv+0x26/0x40 [ 42.432832][ T3498] netlink_unicast+0x7b6/0x980 [ 42.437572][ T3498] ? netlink_detachskb+0x90/0x90 [ 42.442483][ T3498] ? 0xffffffff81000000 [ 42.446608][ T3498] ? __check_object_size+0x300/0x410 [ 42.451870][ T3498] ? bpf_lsm_netlink_send+0x5/0x10 [ 42.456956][ T3498] netlink_sendmsg+0xa30/0xd60 [ 42.461694][ T3498] ? netlink_getsockopt+0x5b0/0x5b0 [ 42.466866][ T3498] ? aa_sock_msg_perm+0x91/0x150 [ 42.471778][ T3498] ? bpf_lsm_socket_sendmsg+0x5/0x10 [ 42.477037][ T3498] ? security_socket_sendmsg+0x7d/0xa0 [ 42.482467][ T3498] ? netlink_getsockopt+0x5b0/0x5b0 [ 42.487639][ T3498] ____sys_sendmsg+0x59e/0x8f0 [ 42.492377][ T3498] ? iovec_from_user+0x300/0x390 [ 42.497302][ T3498] ? __sys_sendmsg_sock+0x30/0x30 [ 42.502301][ T3498] ___sys_sendmsg+0x252/0x2e0 [ 42.506954][ T3498] ? __sys_sendmsg+0x260/0x260 [ 42.511691][ T3498] ? __lock_acquire+0x1295/0x1ff0 [ 42.516692][ T3498] ? __context_tracking_enter+0x5f/0x90 [ 42.522211][ T3498] ? __context_tracking_exit+0x4c/0x80 [ 42.527642][ T3498] ? __fdget+0x158/0x220 [ 42.531859][ T3498] __se_sys_sendmsg+0x19a/0x260 [ 42.536684][ T3498] ? __x64_sys_sendmsg+0x80/0x80 [ 42.541593][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 42.547544][ T3498] ? lockdep_hardirqs_on+0x94/0x130 [ 42.552716][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 42.558671][ T3498] do_syscall_64+0x3d/0xb0 [ 42.563061][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.568929][ T3498] RIP: 0033:0x7f8a346c43e9 [ 42.573320][ T3498] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 [ 42.592900][ T3498] RSP: 002b:00007ffe8583e448