============================================ WARNING: possible recursive locking detected 6.11.0-rc7-syzkaller-g5f5673607153 #0 Not tainted -------------------------------------------- syz.3.65/6799 is trying to acquire lock: ffff0000cfd81958 (k-slock-AF_INET#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff0000cfd81958 (k-slock-AF_INET#2){+.-.}-{2:2}, at: sk_clone_lock+0x2e0/0xe14 net/core/sock.c:2328 but task is already holding lock: ffff0000f0ea2698 (k-slock-AF_INET#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] ffff0000f0ea2698 (k-slock-AF_INET#2){+.-.}-{2:2}, at: sk_clone_lock+0x2e0/0xe14 net/core/sock.c:2328 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(k-slock-AF_INET#2); lock(k-slock-AF_INET#2); *** DEADLOCK *** May be due to missing lock nesting notation 7 locks held by syz.3.65/6799: #0: ffff0000d1510258 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1607 [inline] #0: ffff0000d1510258 (sk_lock-AF_INET6){+.+.}-{0:0}, at: inet_stream_connect+0x5c/0xb0 net/ipv4/af_inet.c:749 #1: ffff0000d39fc358 (k-sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1607 [inline] #1: ffff0000d39fc358 (k-sk_lock-AF_INET6){+.+.}-{0:0}, at: mptcp_connect+0x508/0x9d0 net/mptcp/protocol.c:3762 #2: ffff80008f74dfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:325 #3: ffff80008f74dfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:325 #4: ffff80008f74dfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x18/0x54 include/linux/rcupdate.h:325 #5: ffff80008f74dfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:325 #6: ffff0000f0ea2698 (k-slock-AF_INET#2){+.-.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #6: ffff0000f0ea2698 (k-slock-AF_INET#2){+.-.}-{2:2}, at: sk_clone_lock+0x2e0/0xe14 net/core/sock.c:2328 stack backtrace: CPU: 1 UID: 0 PID: 6799 Comm: syz.3.65 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:119 dump_stack+0x1c/0x28 lib/dump_stack.c:128 print_deadlock_bug+0x4e4/0x660 kernel/locking/lockdep.c:3011 check_deadlock kernel/locking/lockdep.c:3061 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x6160/0x779c kernel/locking/lockdep.c:5142 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5759 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] sk_clone_lock+0x2e0/0xe14 net/core/sock.c:2328 mptcp_sk_clone_init+0x44/0x1600 net/mptcp/protocol.c:3279 subflow_syn_recv_sock+0x838/0x14f4 net/mptcp/subflow.c:874 tcp_check_req+0xe1c/0x1790 net/ipv4/tcp_minisocks.c:853 tcp_v4_rcv+0x1574/0x2dbc net/ipv4/tcp_ipv4.c:2267 ip_protocol_deliver_rcu+0x1f8/0x484 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x284/0x4f0 net/ipv4/ip_input.c:233 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ip_local_deliver+0x120/0x194 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:460 [inline] ip_rcv_finish+0x220/0x24c net/ipv4/ip_input.c:449 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ip_rcv+0x7c/0x9c net/ipv4/ip_input.c:569 __netif_receive_skb_one_core net/core/dev.c:5661 [inline] __netif_receive_skb+0x18c/0x3c8 net/core/dev.c:5775 process_backlog+0x640/0x123c net/core/dev.c:6108 __napi_poll+0xb4/0x3fc net/core/dev.c:6772 napi_poll net/core/dev.c:6841 [inline] net_rx_action+0x6a8/0xf4c net/core/dev.c:6963 handle_softirqs+0x2e4/0xbfc kernel/softirq.c:554 __do_softirq+0x14/0x20 kernel/softirq.c:588 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:889 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:86 do_softirq+0x90/0xf8 kernel/softirq.c:455 __local_bh_enable_ip+0x288/0x44c kernel/softirq.c:382 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:33 rcu_read_unlock_bh include/linux/rcupdate.h:908 [inline] __dev_queue_xmit+0x1864/0x3504 net/core/dev.c:4450 dev_queue_xmit include/linux/netdevice.h:3105 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0xddc/0x13bc net/ipv4/ip_output.c:235 __ip_finish_output+0x1b0/0x45c ip_finish_output+0x44/0x2e8 net/ipv4/ip_output.c:323 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0x1a8/0x21c net/ipv4/ip_output.c:433 dst_output include/net/dst.h:450 [inline] ip_local_out net/ipv4/ip_output.c:129 [inline] __ip_queue_xmit+0xe10/0x1878 net/ipv4/ip_output.c:535 ip_queue_xmit+0x5c/0x78 net/ipv4/ip_output.c:549 __tcp_transmit_skb+0x1950/0x34bc net/ipv4/tcp_output.c:1466 __tcp_send_ack+0x248/0x518 net/ipv4/tcp_output.c:4268 tcp_send_ack+0x4c/0x64 net/ipv4/tcp_output.c:4274 tcp_rcv_synsent_state_process net/ipv4/tcp_input.c:6542 [inline] tcp_rcv_state_process+0x2550/0x3e30 net/ipv4/tcp_input.c:6729 tcp_v4_do_rcv+0x71c/0xc44 net/ipv4/tcp_ipv4.c:1934 sk_backlog_rcv include/net/sock.h:1111 [inline] __release_sock+0x1a8/0x3d8 net/core/sock.c:3004 release_sock+0x68/0x1b8 net/core/sock.c:3558 mptcp_connect+0x63c/0x9d0 net/mptcp/protocol.c:3784 __inet_stream_connect+0x208/0xc48 net/ipv4/af_inet.c:679 inet_stream_connect+0x74/0xb0 net/ipv4/af_inet.c:750 __sys_connect_file net/socket.c:2061 [inline] __sys_connect+0x268/0x290 net/socket.c:2078 __do_sys_connect net/socket.c:2088 [inline] __se_sys_connect net/socket.c:2085 [inline] __arm64_sys_connect+0x7c/0x94 net/socket.c:2085 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598