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 ] [ 2365.495705][ T6776] ping (6776) used greatest stack depth: 23480 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2369.931022][ C3] [ 2369.931193][ C3] ============================================ [ 2369.931523][ C3] WARNING: possible recursive locking detected [ 2369.931850][ C3] 6.8.0-rc3-virtme #1 Not tainted [ 2369.932138][ C3] -------------------------------------------- [ 2369.932484][ C3] ncat/6819 is trying to acquire lock: [ 2369.932775][ C3] ffff888005aa0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2369.933255][ C3] [ 2369.933255][ C3] but task is already holding lock: [ 2369.933643][ C3] ffff888005aa1b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2369.934152][ C3] [ 2369.934152][ C3] other info that might help us debug this: [ 2369.934569][ C3] Possible unsafe locking scenario: [ 2369.934569][ C3] [ 2369.934983][ C3] CPU0 [ 2369.935150][ C3] ---- [ 2369.935337][ C3] lock(slock-AF_INET/1); [ 2369.935606][ C3] lock(slock-AF_INET/1); [ 2369.935853][ C3] [ 2369.935853][ C3] *** DEADLOCK *** [ 2369.935853][ C3] [ 2369.936298][ C3] May be due to missing lock nesting notation [ 2369.936298][ C3] [ 2369.936765][ C3] 8 locks held by ncat/6819: [ 2369.937027][ C3] #0: ffffffff99d467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2369.937542][ C3] #1: ffffffff99d467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2369.938110][ C3] #2: ffff888005aa1b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2369.938592][ C3] #3: ffffffff99d467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0 [ 2369.939088][ C3] #4: ffffffff99d467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2369.939604][ C3] #5: ffffffff99d46780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2369.940111][ C3] #6: ffffffff99d467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2369.940662][ C3] #7: ffffffff99d467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2369.941190][ C3] [ 2369.941190][ C3] stack backtrace: [ 2369.941507][ C3] CPU: 3 PID: 6819 Comm: ncat Not tainted 6.8.0-rc3-virtme #1 [ 2369.941900][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2369.942521][ C3] Call Trace: [ 2369.942705][ C3] [ 2369.942889][ C3] dump_stack_lv DETECTED CRASH, lowering timeout l+0x64/0xb0 [ 2369.943147][ C3] validate_chain+0x525/0xa00 [ 2369.943405][ C3] ? __pfx_validate_chain+0x10/0x10 [ 2369.943697][ C3] ? hlock_class+0x4e/0x130 [ 2369.943945][ C3] ? mark_lock+0x38/0x3e0 [ 2369.944178][ C3] __lock_acquire+0xb67/0x1610 [ 2369.944432][ C3] ? lock_downgrade+0xa0/0x110 [ 2369.944705][ C3] ? mark_lock+0x38/0x3e0 [ 2369.944950][ C3] lock_acquire.part.0+0xe5/0x330 [ 2369.945211][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2369.945455][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2369.945777][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2369.946076][ C3] ? lock_acquire+0x1c1/0x220 [ 2369.946326][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2369.946579][ C3] _raw_spin_lock_nested+0x33/0x80 [ 2369.946865][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2369.947107][ C3] tcp_v4_rcv+0x221e/0x2ac0 [ 2369.947350][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2369.947632][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2369.947916][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2369.948211][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2369.948489][ C3] ip_local_deliver_finish+0x2ae/0x480 [ 2369.948797][ C3] ip_local_deliver+0x19d/0x480 [ 2369.949061][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2369.949339][ C3] ? tcp_v4_early_demux+0x735/0x9d0 [ 2369.949609][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2369.949959][ C3] ip_rcv+0x564/0x740 [ 2369.950181][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2369.950421][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2369.950706][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2369.951010][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2369.951245][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2369.951574][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2369.951907][ C3] ? mark_held_locks+0xa5/0xf0 [ 2369.952154][ C3] ? lock_acquire+0x1c1/0x220 [ 2369.952429][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2369.952765][ C3] netif_receive_skb_internal+0xb0/0x300 [ 2369.953068][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2369.953429][ C3] ? __copy_skb_header+0xaf/0x490 [ 2369.953704][ C3] ? __skb_clone+0x57a/0x760 [ 2369.953955][ C3] netif_receive_skb+0x55/0x280 [ 2369.954236][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2369.954568][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2369.954925][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2369.955235][ C3] tcf_action_exec.part.0+0x112/0x3d0 [ 2369.955516][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 2369.955837][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2369.956159][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 2369.956452][ C3] ? __bfs+0x247/0x650 [ 2369.956670][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 2369.956938][ C3] ? hlock_class+0x4e/0x130 [ 2369.957211][ C3] ? check_path.constprop.0+0x24/0x50 [ 2369.957498][ C3] ? check_noncircular+0x14e/0x3e0 [ 2369.957781][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 2369.958069][ C3] ? hlock_class+0x4e/0x130 [ 2369.958319][ C3] ? check_prev_add+0x773/0xce0 [ 2369.958578][ C3] __tcf_classify+0x329/0x7d0 [ 2369.958844][ C3] tcf_classify+0x283/0x930 [ 2369.959082][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 2369.959362][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2369.959631][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2369.959920][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2369.960234][ C3] tc_run+0x2e4/0x5d0 [ 2369.960447][ C3] ? __pfx_tc_run+0x10/0x10 [ 2369.960707][ C3] ? lock_acquire+0x1c1/0x220 [ 2369.960965][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2369.961243][ C3] __dev_queue_xmit+0x686/0x17e0 [ 2369.961536][ C3] ? mark_held_locks+0xa5/0xf0 [ 2369.961800][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2369.962145][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2369.962424][ C3] ? neigh_hh_output+0x348/0x590 [ 2369.962700][ C3] ip_finish_output2+0x786/0x18e0 [ 2369.962965][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 2369.963246][ C3] ? __ip_finish_output+0x10f/0x770 [ 2369.963535][ C3] ip_output+0x16b/0x4f0 [ 2369.963768][ C3] ? __pfx_ip_output+0x10/0x10 [ 2369.964019][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2369.964306][ C3] ? ip_local_out+0x114/0x3b0 [ 2369.964568][ C3] __ip_queue_xmit+0x672/0x17b0 [ 2369.964825][ C3] ? __create_object+0x5e/0xb0 [ 2369.965078][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 2369.965374][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2369.965666][ C3] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 2369.965949][ C3] tcp_rcv_state_process+0x7ca/0x1fe0 [ 2369.966230][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2369.966495][ C3] ? hlock_class+0x4e/0x130 [ 2369.966744][ C3] ? __lock_acquired+0x18a/0x6b0 [ 2369.967016][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2369.967352][ C3] ? __pfx___lock_acquired+0x10/0x10 [ 2369.967627][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2369.967947][ C3] tcp_v4_do_rcv+0x154/0x860 [ 2369.968226][ C3] tcp_v4_rcv+0x2449/0x2ac0 [ 2369.968482][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2369.968750][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2369.969042][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2369.969363][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2369.969644][ C3] ip_local_deliver_finish+0x2ae/0x480 [ 2369.969954][ C3] ip_local_deliver+0x19d/0x480 [ 2369.970206][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2369.970481][ C3] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2369.970780][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2369.971116][ C3] ip_rcv+0x564/0x740 [ 2369.971326][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2369.971563][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2369.971853][ C3] ? process_backlog+0x1ed/0x5e0 [ 2369.972122][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2369.972360][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2369.972685][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2369.973020][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2369.973328][ C3] ? lock_acquire+0x1c1/0x220 [ 2369.973604][ C3] ? process_backlog+0x1ed/0x5e0 [ 2369.973908][ C3] process_backlog+0xd3/0x5e0 [ 2369.974166][ C3] __napi_poll.constprop.0+0xa2/0x460 [ 2369.974455][ C3] net_rx_action+0x440/0xb40 [ 2369.974708][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 2369.975014][ C3] ? kvm_clock_get_cycles+0x18/0x30 [ 2369.975284][ C3] ? ktime_get+0xb3/0x190 [ 2369.975510][ C3] ? hrtimer_interrupt+0x30e/0x770 [ 2369.975812][ C3] ? hrtimer_interrupt+0x31a/0x770 [ 2369.976090][ C3] __do_softirq+0x1b9/0x7ff [ 2369.976348][ C3] ? tcp_recvmsg+0xf8/0x4f0 [ 2369.976617][ C3] do_softirq+0x4d/0xa0 [ 2369.976844][ C3] [ 2369.976999][ C3] [ 2369.977190][ C3] __local_bh_enable_ip+0xf6/0x120 [ 2369.977478][ C3] tcp_recvmsg+0xf8/0x4f0 [ 2369.977726][ C3] ? __pfx_tcp_recvmsg+0x10/0x10 [ 2369.977992][ C3] ? core_sys_select+0x620/0x710 [ 2369.978272][ C3] ? __pfx_core_sys_select+0x10/0x10 [ 2369.978561][ C3] inet_recvmsg+0xf9/0x2c0 [ 2369.978832][ C3] ? __pfx_inet_recvmsg+0x10/0x10 [ 2369.979107][ C3] ? __fget_light+0x54/0x1e0 [ 2369.979370][ C3] ? sockfd_lookup_light+0x1a/0x160 [ 2369.979648][ C3] __sys_recvfrom+0x2fb/0x3b0 [ 2369.979930][ C3] ? __pfx___sys_recvfrom+0x10/0x10 [ 2369.980215][ C3] ? __pfx___lock_release+0x10/0x10 [ 2369.980507][ C3] ? do_pselect.constprop.0+0x12b/0x1e0 [ 2369.980806][ C3] ? __pfx_do_pselect.constprop.0+0x10/0x10 [ 2369.981116][ C3] ? restore_fpregs_from_fpstate+0x99/0x160 [ 2369.981447][ C3] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10 [ 2369.981791][ C3] __x64_sys_recvfrom+0xe0/0x1c0 [ 2369.982057][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 2369.982439][ C3] do_syscall_64+0xc9/0x1e0 [ 2369.982683][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2369.982990][ C3] RIP: 0033:0x7fc7b8f014c0 [ 2369.983235][ C3] 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 [ 2369.984253][ C3] RSP: 002b:00007ffcb5093f28 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 2369.984708][ C3] RAX: ffffffffffffffda RBX: 00005639254f9a20 RCX: 00007fc7b8f014c0 [ 2369.985132][ C3] RDX: 0000000000002000 RSI: 00007ffcb5093fb0 RDI: 0000000000000008 [ 2369.985554][ C3] RBP: 00007ffcb5093fb0 R08: 0000000000000000 R09: 0000000000000000 [ 2369.985991][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 2369.986389][ C3] R13: 00005639254f9a20 R14: 0000000000000000 R15: 00007ffcb5093fac [ 2369.986803][ C3] [ 2370.102961][ T6820] ncat (6820) used greatest stack depth: 20784 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__->