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 # timeout set to 10800 # 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 ] [ 1889.893455][ T6893] ping (6893) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1893.131605][ C2] [ 1893.131774][ C2] ============================================ [ 1893.132110][ C2] WARNING: possible recursive locking detected [ 1893.132446][ C2] 6.8.0-rc2-virtme #1 Not tainted [ 1893.132731][ C2] -------------------------------------------- [ 1893.133118][ C2] ncat/6941 is trying to acquire lock: [ 1893.133414][ C2] ffff88800b900e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1893.133936][ C2] [ 1893.133936][ C2] but task is already holding lock: [ 1893.134328][ C2] ffff88800b901b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1893.134823][ C2] [ 1893.134823][ C2] other info that might help us debug this: [ 1893.135269][ C2] Possible unsafe locking scenario: [ 1893.135269][ C2] [ 1893.135684][ C2] CPU0 [ 1893.135867][ C2] ---- [ 1893.136049][ C2] lock(slock-AF_INET/1); [ 1893.136299][ C2] lock(slock-AF_INET/1); [ 1893.136560][ C2] [ 1893.136560][ C2] *** DEADLOCK *** [ 1893.136560][ C2] [ 1893.137000][ C2] May be due to missing lock nesting notation [ 1893.137000][ C2] [ 1893.137446][ C2] 8 locks held by ncat/6941: [ 1893.137707][ C2] #0: ffffffff9b9447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1893.138216][ C2] #1: ffffffff9b9447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1893.138792][ C2] #2: ffff88800b901b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1893.139307][ C2] #3: ffffffff9b9447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1893.139821][ C2] #4: ffffffff9b9447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1893.140350][ C2] #5: ffffffff9b944780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1893.140898][ C2] #6: ffffffff9b9447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1893.141459][ C2] #7: ffffffff9b9447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1893.142019][ C2] [ 1893.142019][ C2] stack backtrace: [ 1893.142355][ C2] CPU: 2 PID: 6941 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 1893.142770][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1893.143432][ C2] Call Trace: [ 1893.143618][ C2] <IRQ> [ 1893.143792][ C2] dump_stack_lvl+0x64/0xb0 [ 1893.144051][ C2] validate_chain+0x525/0xa00 [ 1893.144333][ C2] ? __pfx_validate_chain+0x10/0x10 [ 1893.144625][ C2] ? hlock_class+0x4e/0x130 [ 1893.144876][ C2] ? mark_lock+0x38/0x3e0 [ 1893.145135][ C2] __lock_acquire+0xb67/0x1610 [ 1893.145405][ C2] ? lock_downgrade+0xa0/0x110 [ 1893.145670][ C2] ? mark_lock+0x38/0x3e0 [ 1893.145929][ C2] lock_acquire.part.0+0xe5/0x330 [ 1893.146209][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1893.146471][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1893.146792][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1893.147093][ C2] ? lock_acquire+0x1c1/0x220 [ 1893.147350][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1893.147633][ C2] _raw_spin_lock_nested+0x33/0x80 [ 1893.147914][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1893.148174][ C2] tcp_v4_rcv+0x2159/0x29b0 [ 1893.148451][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1893.148717][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1893.148995][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1893.149312][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1893.149613][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 1893.149932][ C2] ip_local_deliver+0x19d/0x480 [ 1893.150196][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1893.150496][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1893.150853][ C2] ip_rcv+0x564/0x740 [ 1893.151072][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1893.151325][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1893.151635][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1893.151955][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1893.152203][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1893.152540][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1893.152883][ C2] ? mark_held_locks+0xa5/0xf0 [ 1893.153149][ C2] ? lock_acquire+0x1c1/0x220 [ 1893.153410][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1893.153741][ C2] netif_receive_skb_internal+0xb0/0x300 [ 1893.154065][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1893.154412][ C2] ? __copy_skb_header+0xaf/0x490 [ 1893.154682][ C2] ? __skb_clone+0x57a/0x760 [ 1893.154937][ C2] netif_receive_skb+0x55/0x280 [ 1893.155216][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1893.155563][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1893.155922][ C2] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1893.156260][ C2] tcf_action_exec.part.0+0x115/0x3d0 [ 1893.156569][ C2] fl_classify+0x4dc/0x650 [cls_flower] [ 1893.156898][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1893.157226][ C2] ? __pfx_usage_match+0x10/0x10 [ 1893.157521][ C2] ? check_irq_usage+0x27e/0x850 [ 1893.157803][ C2] ? __pfx_check_irq_usage+0x10/0x10 [ 1893.158098][ C2] ? __bfs+0x24a/0x650 [ 1893.158361][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 1893.158657][ C2] ? hlock_class+0x4e/0x130 [ 1893.158912][ C2] ? check_path.constprop.0+0x24/0x50 [ 1893.159222][ C2] ? check_noncircular+0x14e/0x3e0 [ 1893.159504][ C2] ? __pfx_check_noncircular+0x10/0x10 [ 1893.159810][ C2] __tcf_classify+0x32c/0x7d0 [ 1893.160101][ C2] tcf_classify+0x283/0x930 [ 1893.160366][ C2] ? __pfx_tcf_classify+0x10/0x10 [ 1893.160652][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1893.160954][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1893.161249][ C2] tc_run+0x2e4/0x5d0 [ 1893.161473][ C2] ? __pfx_tc_run+0x10/0x10 [ 1893.161734][ C2] ? lock_acquire+0x1c1/0x220 [ 1893.162014][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1893.162307][ C2] __dev_queue_xmit+0x8eb/0x1ca0 [ 1893.162592][ C2] ? hlock_class+0x4e/0x130 [ 1893.162839][ C2] ? mark_lock+0x38/0x3e0 [ 1893.163084][ C2] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1893.163397][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 1893.163758][ C2] ? neigh_hh_output+0x348/0x590 [ 1893.164037][ C2] ip_finish_output2+0x786/0x18e0 [ 1893.164321][ C2] ? __pfx_ip_finish_output2+0x10/0x10 [ 1893.164619][ C2] ? __ip_finish_output+0x10f/0x770 [ 1893.164911][ C2] ip_output+0x16b/0x4f0 [ 1893.165145][ C2] ? __pfx_ip_output+0x10/0x10 [ 1893.165424][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1893.165732][ C2] ? ip_local_out+0x114/0x3b0 [ 1893.166013][ C2] __ip_queue_xmit+0x672/0x1910 [ 1893.166282][ C2] ? __create_object+0x5e/0xb0 [ 1893.166550][ C2] __tcp_transmit_skb+0x22b1/0x2d20 [ 1893.166862][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1893.167172][ C2] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 1893.167479][ C2] tcp_rcv_state_process+0x862/0x1fd0 [ 1893.167763][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1893.168018][ C2] ? hlock_class+0x4e/0x130 [ 1893.168270][ C2] ? __lock_acquired+0x18a/0x6b0 [ 1893.168566][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1893.168890][ C2] ? __pfx___lock_acquired+0x10/0x10 [ 1893.169187][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1893.169524][ C2] tcp_v4_do_rcv+0x154/0x850 [ 1893.169787][ C2] tcp_v4_rcv+0x235a/0x29b0 [ 1893.170043][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1893.170320][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1893.170589][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1893.170902][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1893.171204][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 1893.171520][ C2] ip_local_deliver+0x19d/0x480 [ 1893.171787][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1893.172085][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1893.172447][ C2] ip_rcv+0x564/0x740 [ 1893.172672][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1893.172933][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1893.173227][ C2] ? process_backlog+0x1ed/0x5e0 [ 1893.173495][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1893.173757][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1893.174093][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1893.174442][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1893.174752][ C2] ? lock_acquire+0x1c1/0x220 [ 1893.175030][ C2] ? process_backlog+0x1ed/0x5e0 [ 1893.175304][ C2] process_backlog+0xd3/0x5e0 [ 1893.175564][ C2] __napi_poll.constprop.0+0xa5/0x450 [ 1893.175878][ C2] net_rx_action+0x440/0xb40 [ 1893.176141][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 1893.176419][ C2] ? kvm_clock_get_cycles+0x18/0x30 [ 1893.176717][ C2] ? ktime_get+0xb6/0x190 [ 1893.176954][ C2] ? hrtimer_interrupt+0x30e/0x770 [ 1893.177234][ C2] ? hrtimer_interrupt+0x31a/0x770 [ 1893.177526][ C2] __do_softirq+0x1bc/0x7ff [ 1893.177778][ C2] ? tcp_recvmsg+0xf8/0x4f0 [ 1893.178028][ C2] do_softirq+0x4d/0xa0 [ 1893.178287][ C2] </IRQ> [ 1893.178472][ C2] <TASK> [ 1893.178636][ C2] __local_bh_enable_ip+0xf6/0x120 [ 1893.178934][ C2] tcp_recvmsg+0xf8/0x4f0 [ 1893.179171][ C2] ? __pfx_tcp_recvmsg+0x10/0x10 [ 1893.179446][ C2] ? core_sys_select+0x620/0x710 [ 1893.179733][ C2] ? __pfx_core_sys_select+0x10/0x10 [ 1893.180031][ C2] inet_recvmsg+0xf9/0x2c0 [ 1893.180296][ C2] ? __pfx_inet_recvmsg+0x10/0x10 [ 1893.180585][ C2] ? __fget_light+0x54/0x1e0 [ 1893.180839][ C2] ? sockfd_lookup_light+0x1a/0x160 [ 1893.181141][ C2] __sys_recvfrom+0x2fb/0x3b0 [ 1893.181406][ C2] ? __pfx___sys_recvfrom+0x10/0x10 [ 1893.181693][ C2] ? __pfx___lock_release+0x10/0x10 [ 1893.181994][ C2] ? do_pselect.constprop.0+0x12b/0x1e0 [ 1893.182304][ C2] ? __pfx_do_pselect.constprop.0+0x10/0x10 [ 1893.182641][ C2] ? restore_fpregs_from_fpstate+0x99/0x160 [ 1893.182963][ C2] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10 [ 1893.183314][ C2] __x64_sys_recvfrom+0xe0/0x1c0 [ 1893.183594][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 1893.183946][ C2] do_syscall_64+0xcc/0x1e0 [ 1893.184196][ C2] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1893.184534][ C2] RIP: 0033:0x7f1350f584c0 [ 1893.184787][ C2] 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 [ 1893.185811][ C2] RSP: 002b:00007ffe89808658 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 1893.186291][ C2] RAX: ffffffffffffffda RBX: 000055a775736a20 RCX: 00007f1350f584c0 [ 1893.186717][ C2] RDX: 0000000000002000 RSI: 00007ffe898086e0 RDI: 0000000000000008 [ 1893.187147][ C2] RBP: 00007ffe898086e0 R08: 0000000000000000 R09: 0000000000000000 [ 1893.187578][ C2] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 1893.188018][ C2] R13: 000055a775736a20 R14: 0000000000000000 R15: 00007ffe898086dc [ 1893.188469][ C2] </TASK> [ 1893.292307][ T6942] ncat (6942) used greatest stack depth: 20640 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__->