make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-4/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # overriding timeout to 21600 # selftests: net/forwarding: tc_actions.sh # TEST: gact drop and ok (skip_hw) [ OK ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 2374.689632][ T7756] tc (7756) used greatest stack depth: 23464 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2382.854915][ C0] [ 2382.855101][ C0] ============================================ [ 2382.855417][ C0] WARNING: possible recursive locking detected [ 2382.855745][ C0] 6.8.0-rc3-virtme #1 Not tainted [ 2382.856020][ C0] -------------------------------------------- [ 2382.856357][ C0] ncat/7839 is trying to acquire lock: [ 2382.856656][ C0] ffff88800a828e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2382.857132][ C0] [ 2382.857132][ C0] but task is already holding lock: [ 2382.857507][ C0] ffff88800a829b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2382.857971][ C0] [ 2382.857971][ C0] other info that might help us debug this: [ 2382.858383][ C0] Possible unsafe locking scenario: [ 2382.858383][ C0] [ 2382.858778][ C0] CPU0 [ 2382.858978][ C0] ---- [ 2382.859173][ C0] lock(slock-AF_INET/1); [ 2382.859422][ C0] lock(slock-AF_INET/1); [ 2382.859653][ C0] [ 2382.859653][ C0] *** DEADLOCK *** [ 2382.859653][ C0] [ 2382.860078][ C0] May be due to missing lock nesting notation [ 2382.860078][ C0] [ 2382.860504][ C0] 8 locks held by ncat/7839: [ 2382.860748][ C0] #0: ffffffffbc7467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2382.861270][ C0] #1: ffffffffbc7467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2382.861799][ C0] #2: ffff88800a829b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2382.862286][ C0] #3: ffffffffbc7467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0 [ 2382.862796][ C0] #4: ffffffffbc7467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2382.863299][ C0] #5: ffffffffbc746780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2382.863834][ C0] #6: ffffffffbc7467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2382.864368][ C0] #7: ffffffffbc7467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2382.864904][ C0] [ 2382.864904][ C0] stack backtrace: [ 2382.865233][ C0] CPU: 0 PID: 7839 Comm: ncat Not tainted 6.8.0-rc3-virtme #1 [ 2382.865632][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2382.866264][ C0] Call Trace: [ 2382.866442][ C0] DETECTED CRASH, lowering timeout [ 2382.866606][ C0] dump_stack_lvl+0x64/0xb0 [ 2382.866871][ C0] validate_chain+0x525/0xa00 [ 2382.867124][ C0] ? __pfx_validate_chain+0x10/0x10 [ 2382.867409][ C0] ? hlock_class+0x4e/0x130 [ 2382.867663][ C0] ? mark_lock+0x38/0x3e0 [ 2382.867909][ C0] __lock_acquire+0xb67/0x1610 [ 2382.868174][ C0] ? lock_downgrade+0xa0/0x110 [ 2382.868438][ C0] ? mark_lock+0x38/0x3e0 [ 2382.868666][ C0] lock_acquire.part.0+0xe5/0x330 [ 2382.868942][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2382.869204][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2382.869513][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2382.869821][ C0] ? lock_acquire+0x1c1/0x220 [ 2382.870076][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2382.870334][ C0] _raw_spin_lock_nested+0x33/0x80 [ 2382.870618][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2382.870877][ C0] tcp_v4_rcv+0x221e/0x2ac0 [ 2382.871134][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2382.871404][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2382.871681][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2382.872000][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2382.872294][ C0] ip_local_deliver_finish+0x2ae/0x480 [ 2382.872590][ C0] ip_local_deliver+0x19d/0x480 [ 2382.872857][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2382.873151][ C0] ? tcp_v4_early_demux+0x735/0x9d0 [ 2382.873429][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2382.873762][ C0] ip_rcv+0x564/0x740 [ 2382.873983][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2382.874238][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2382.874517][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2382.874832][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2382.875093][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2382.875413][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2382.875761][ C0] ? mark_held_locks+0xa5/0xf0 [ 2382.876008][ C0] ? lock_acquire+0x1c1/0x220 [ 2382.876277][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2382.876597][ C0] netif_receive_skb_internal+0xb0/0x300 [ 2382.876902][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2382.877240][ C0] ? __copy_skb_header+0xaf/0x490 [ 2382.877515][ C0] ? __skb_clone+0x57a/0x760 [ 2382.877766][ C0] netif_receive_skb+0x55/0x280 [ 2382.878041][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2382.878385][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2382.878758][ C0] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2382.879067][ C0] tcf_action_exec.part.0+0x112/0x3d0 [ 2382.879364][ C0] fl_classify+0x4dc/0x650 [cls_flower] [ 2382.879684][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2382.880008][ C0] ? __pfx_check_irq_usage+0x10/0x10 [ 2382.880301][ C0] ? __bfs+0x247/0x650 [ 2382.880527][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 2382.880814][ C0] ? hlock_class+0x4e/0x130 [ 2382.881049][ C0] ? check_path.constprop.0+0x24/0x50 [ 2382.881326][ C0] ? check_noncircular+0x14e/0x3e0 [ 2382.881605][ C0] ? __pfx_check_noncircular+0x10/0x10 [ 2382.881906][ C0] ? hlock_class+0x4e/0x130 [ 2382.882145][ C0] ? check_prev_add+0x773/0xce0 [ 2382.882410][ C0] __tcf_classify+0x329/0x7d0 [ 2382.882676][ C0] tcf_classify+0x283/0x930 [ 2382.882922][ C0] ? __pfx_tcf_classify+0x10/0x10 [ 2382.883199][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2382.883469][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2382.883751][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2382.884033][ C0] tc_run+0x2e4/0x5d0 [ 2382.884260][ C0] ? __pfx_tc_run+0x10/0x10 [ 2382.884511][ C0] ? lock_acquire+0x1c1/0x220 [ 2382.884753][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2382.885043][ C0] __dev_queue_xmit+0x686/0x17e0 [ 2382.885311][ C0] ? mark_held_locks+0xa5/0xf0 [ 2382.885576][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2382.885927][ C0] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2382.886220][ C0] ? neigh_hh_output+0x348/0x590 [ 2382.886478][ C0] ip_finish_output2+0x786/0x18e0 [ 2382.886753][ C0] ? __pfx_ip_finish_output2+0x10/0x10 [ 2382.887051][ C0] ? __ip_finish_output+0x10f/0x770 [ 2382.887333][ C0] ip_output+0x16b/0x4f0 [ 2382.887564][ C0] ? __pfx_ip_output+0x10/0x10 [ 2382.887837][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2382.888134][ C0] ? ip_local_out+0x114/0x3b0 [ 2382.888383][ C0] __ip_queue_xmit+0x672/0x17b0 [ 2382.888654][ C0] ? __create_object+0x5e/0xb0 [ 2382.888918][ C0] __tcp_transmit_skb+0x22b1/0x2d20 [ 2382.889208][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2382.889505][ C0] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 2382.889797][ C0] tcp_rcv_state_process+0x7c0/0x1fd0 [ 2382.890097][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2382.890349][ C0] ? hlock_class+0x4e/0x130 [ 2382.890595][ C0] ? __lock_acquired+0x18a/0x6b0 [ 2382.890865][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2382.891190][ C0] ? __pfx___lock_acquired+0x10/0x10 [ 2382.891475][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2382.891784][ C0] tcp_v4_do_rcv+0x154/0x860 [ 2382.892032][ C0] tcp_v4_rcv+0x2449/0x2ac0 [ 2382.892290][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2382.892553][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2382.892829][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2382.893134][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2382.893437][ C0] ip_local_deliver_finish+0x2ae/0x480 [ 2382.893730][ C0] ip_local_deliver+0x19d/0x480 [ 2382.893994][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2382.894286][ C0] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2382.894556][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2382.894896][ C0] ip_rcv+0x564/0x740 [ 2382.895120][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2382.895356][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2382.895637][ C0] ? process_backlog+0x1ed/0x5e0 [ 2382.895911][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2382.896159][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2382.896501][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2382.896849][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2382.897159][ C0] ? lock_acquire+0x1c1/0x220 [ 2382.897401][ C0] ? process_backlog+0x1ed/0x5e0 [ 2382.897671][ C0] process_backlog+0xd3/0x5e0 [ 2382.897937][ C0] __napi_poll.constprop.0+0xa2/0x460 [ 2382.898215][ C0] net_rx_action+0x440/0xb40 [ 2382.898457][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 2382.898730][ C0] ? kvm_clock_get_cycles+0x18/0x30 [ 2382.899006][ C0] ? ktime_get+0xb3/0x190 [ 2382.899252][ C0] ? hrtimer_interrupt+0x30e/0x770 [ 2382.899533][ C0] ? hrtimer_interrupt+0x31a/0x770 [ 2382.899833][ C0] __do_softirq+0x1b9/0x7ff [ 2382.900071][ C0] ? tcp_recvmsg+0xf8/0x4f0 [ 2382.900308][ C0] do_softirq+0x4d/0xa0 [ 2382.900544][ C0] [ 2382.900719][ C0] [ 2382.900900][ C0] __local_bh_enable_ip+0xf6/0x120 [ 2382.901185][ C0] tcp_recvmsg+0xf8/0x4f0 [ 2382.901410][ C0] ? __pfx_tcp_recvmsg+0x10/0x10 [ 2382.901680][ C0] ? core_sys_select+0x620/0x710 [ 2382.901955][ C0] ? __pfx_core_sys_select+0x10/0x10 [ 2382.902246][ C0] inet_recvmsg+0xf9/0x2c0 [ 2382.902497][ C0] ? __pfx_inet_recvmsg+0x10/0x10 [ 2382.902773][ C0] ? __fget_light+0x54/0x1e0 [ 2382.903034][ C0] ? sockfd_lookup_light+0x1a/0x160 [ 2382.903303][ C0] __sys_recvfrom+0x2fb/0x3b0 [ 2382.903568][ C0] ? __pfx___sys_recvfrom+0x10/0x10 [ 2382.903856][ C0] ? __pfx___lock_release+0x10/0x10 [ 2382.904141][ C0] ? do_pselect.constprop.0+0x12b/0x1e0 [ 2382.904439][ C0] ? __pfx_do_pselect.constprop.0+0x10/0x10 [ 2382.904744][ C0] ? restore_fpregs_from_fpstate+0x99/0x160 [ 2382.905067][ C0] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10 [ 2382.905412][ C0] __x64_sys_recvfrom+0xe0/0x1c0 [ 2382.905684][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 2382.906041][ C0] do_syscall_64+0xc9/0x1e0 [ 2382.906275][ C0] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2382.906592][ C0] RIP: 0033:0x7fa14790c4c0 [ 2382.906840][ C0] Code: 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20 [ 2382.907829][ C0] RSP: 002b:00007fffaba05358 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 2382.908257][ C0] RAX: ffffffffffffffda RBX: 00005622b3860a20 RCX: 00007fa14790c4c0 [ 2382.908687][ C0] RDX: 0000000000002000 RSI: 00007fffaba053e0 RDI: 0000000000000008 [ 2382.909109][ C0] RBP: 00007fffaba053e0 R08: 0000000000000000 R09: 0000000000000000 [ 2382.909514][ C0] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 2382.909935][ C0] R13: 00005622b3860a20 R14: 0000000000000000 R15: 00007fffaba053dc [ 2382.910364][ C0] [ 2397.567897][ T7840] ncat (7840) used greatest stack depth: 21496 bytes left TEST: mirred_egress_to_ingress_tcp (skip_hw) [ OK ] # INFO: Could not test offloaded functionality ok 1 selftests: net/forwarding: tc_actions.sh make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-4/tools/testing/selftests' xx__-> echo $? 0 xx__->