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 [ 1477.298597][ T3651] GACT probability NOT on # TEST: gact drop and ok (skip_hw) [ OK ] [ 1482.274452][ T3708] Mirror/redirect action on # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1497.714397][ C2] [ 1497.714565][ C2] ============================================ [ 1497.714909][ C2] WARNING: possible recursive locking detected [ 1497.715250][ C2] 6.8.0-rc3-virtme #1 Not tainted [ 1497.715516][ C2] -------------------------------------------- [ 1497.715849][ C2] ncat/3860 is trying to acquire lock: [ 1497.716150][ C2] ffff888008e98e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 1497.716649][ C2] [ 1497.716649][ C2] but task is already holding lock: [ 1497.717053][ C2] ffff888008e99b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 1497.717543][ C2] [ 1497.717543][ C2] other info that might help us debug this: [ 1497.717962][ C2] Possible unsafe locking scenario: [ 1497.717962][ C2] [ 1497.718365][ C2] CPU0 [ 1497.718547][ C2] ---- [ 1497.718743][ C2] lock(slock-AF_INET/1); [ 1497.718978][ C2] lock(slock-AF_INET/1); [ 1497.719213][ C2] [ 1497.719213][ C2] *** DEADLOCK *** [ 1497.719213][ C2] [ 1497.719669][ C2] May be due to missing lock nesting notation [ 1497.719669][ C2] [ 1497.720099][ C2] 8 locks held by ncat/3860: [ 1497.720343][ C2] #0: ffffffff92d467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1497.720847][ C2] #1: ffffffff92d467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 1497.721384][ C2] #2: ffff888008e99b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 1497.721883][ C2] #3: ffffffff92d467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0 [ 1497.722383][ C2] #4: ffffffff92d467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1497.722908][ C2] #5: ffffffff92d46780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 1497.723428][ C2] #6: ffffffff92d467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1497.723970][ C2] #7: ffffffff92d467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 1497.724501][ C2] [ 1497.724501][ C2] stack backtrace: [ 1497.724822][ C2] CPU: 2 PID: 3860 Comm: ncat Not tainted 6.8.0-rc3-virtme #1 [ 1497.725223][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1497.725845][ C2] Call Trace: [ 1497.726042][ C2] [ 1497.726210][ C2] dump_stack_lvl+0x64/0xb0 [ 1497.726550][ C2] validate_chain+0x525/0xa00 [ 1497.726926][ C2] ? _ DETECTED CRASH, lowering timeout _pfx_validate_chain+0x10/0x10 [ 1497.727253][ C2] ? hlock_class+0x4e/0x130 [ 1497.727585][ C2] ? mark_lock+0x38/0x3e0 [ 1497.727910][ C2] __lock_acquire+0xb67/0x1610 [ 1497.728307][ C2] ? lock_downgrade+0xa0/0x110 [ 1497.728685][ C2] ? mark_lock+0x38/0x3e0 [ 1497.729017][ C2] lock_acquire.part.0+0xe5/0x330 [ 1497.729416][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 1497.729790][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1497.730228][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1497.730662][ C2] ? lock_acquire+0x1c1/0x220 [ 1497.731026][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 1497.731396][ C2] _raw_spin_lock_nested+0x33/0x80 [ 1497.731801][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 1497.732159][ C2] tcp_v4_rcv+0x221e/0x2ac0 [ 1497.732514][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1497.732890][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1497.733275][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1497.733709][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1497.734140][ C2] ip_local_deliver_finish+0x2ae/0x480 [ 1497.734559][ C2] ip_local_deliver+0x19d/0x480 [ 1497.734941][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1497.735351][ C2] ? tcp_v4_early_demux+0x59a/0x9d0 [ 1497.735778][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1497.736270][ C2] ip_rcv+0x564/0x740 [ 1497.736492][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1497.736732][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1497.737031][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1497.737426][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1497.737764][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1497.738223][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1497.738574][ C2] ? mark_held_locks+0xa5/0xf0 [ 1497.738934][ C2] ? lock_acquire+0x1c1/0x220 [ 1497.739274][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1497.739581][ C2] netif_receive_skb_internal+0xb0/0x300 [ 1497.739962][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1497.740458][ C2] ? __copy_skb_header+0xaf/0x490 [ 1497.740857][ C2] ? __skb_clone+0x57a/0x760 [ 1497.741223][ C2] netif_receive_skb+0x55/0x280 [ 1497.741602][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1497.742119][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1497.742645][ C2] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1497.743108][ C2] tcf_action_exec.part.0+0x112/0x3d0 [ 1497.743529][ C2] fl_classify+0x4dc/0x650 [cls_flower] [ 1497.743997][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1497.744500][ C2] ? mark_lock+0x38/0x3e0 [ 1497.744846][ C2] ? __pfx_check_irq_usage+0x10/0x10 [ 1497.745256][ C2] ? __bfs+0x247/0x650 [ 1497.745575][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 1497.745974][ C2] ? hlock_class+0x4e/0x130 [ 1497.746344][ C2] ? check_path.constprop.0+0x24/0x50 [ 1497.746756][ C2] ? check_noncircular+0x14e/0x3e0 [ 1497.747164][ C2] ? __pfx_check_noncircular+0x10/0x10 [ 1497.747614][ C2] ? hlock_class+0x4e/0x130 [ 1497.747955][ C2] ? check_prev_add+0x773/0xce0 [ 1497.748341][ C2] __tcf_classify+0x329/0x7d0 [ 1497.748711][ C2] tcf_classify+0x283/0x930 [ 1497.749069][ C2] ? __pfx_tcf_classify+0x10/0x10 [ 1497.749466][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 1497.749859][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1497.750214][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 1497.750497][ C2] tc_run+0x2e4/0x5d0 [ 1497.750710][ C2] ? __pfx_tc_run+0x10/0x10 [ 1497.750991][ C2] ? lock_acquire+0x1c1/0x220 [ 1497.751240][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 1497.751511][ C2] __dev_queue_xmit+0x686/0x17e0 [ 1497.751784][ C2] ? mark_held_locks+0xa5/0xf0 [ 1497.752047][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 1497.752386][ C2] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1497.752688][ C2] ? neigh_hh_output+0x348/0x590 [ 1497.752952][ C2] ip_finish_output2+0x786/0x18e0 [ 1497.753219][ C2] ? __pfx_ip_finish_output2+0x10/0x10 [ 1497.753505][ C2] ? __ip_finish_output+0x10f/0x770 [ 1497.753795][ C2] ip_output+0x16b/0x4f0 [ 1497.754029][ C2] ? __pfx_ip_output+0x10/0x10 [ 1497.754281][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1497.754594][ C2] ? ip_local_out+0x114/0x3b0 [ 1497.754849][ C2] __ip_queue_xmit+0x672/0x17b0 [ 1497.755135][ C2] ? __create_object+0x5e/0xb0 [ 1497.755385][ C2] __tcp_transmit_skb+0x22b1/0x2d20 [ 1497.755664][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1497.755989][ C2] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 1497.756273][ C2] tcp_rcv_state_process+0x7ca/0x1fe0 [ 1497.756555][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 1497.756823][ C2] ? hlock_class+0x4e/0x130 [ 1497.757072][ C2] ? __lock_acquired+0x18a/0x6b0 [ 1497.757340][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1497.757659][ C2] ? __pfx___lock_acquired+0x10/0x10 [ 1497.757951][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1497.758256][ C2] tcp_v4_do_rcv+0x154/0x860 [ 1497.758537][ C2] tcp_v4_rcv+0x2449/0x2ac0 [ 1497.758802][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1497.759070][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1497.759345][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1497.759645][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1497.759949][ C2] ip_local_deliver_finish+0x2ae/0x480 [ 1497.760236][ C2] ip_local_deliver+0x19d/0x480 [ 1497.760503][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1497.760799][ C2] ? tcp_v4_early_demux+0x59a/0x9d0 [ 1497.761075][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1497.761408][ C2] ip_rcv+0x564/0x740 [ 1497.761647][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1497.761904][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1497.762185][ C2] ? process_backlog+0x1ed/0x5e0 [ 1497.762468][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1497.762708][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1497.763022][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1497.763400][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1497.763839][ C2] ? lock_acquire+0x1c1/0x220 [ 1497.764132][ C2] ? process_backlog+0x1ed/0x5e0 [ 1497.764491][ C2] process_backlog+0xd3/0x5e0 [ 1497.764837][ C2] __napi_poll.constprop.0+0xa2/0x460 [ 1497.765253][ C2] net_rx_action+0x440/0xb40 [ 1497.765622][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 1497.766013][ C2] ? kvm_clock_get_cycles+0x18/0x30 [ 1497.766422][ C2] ? ktime_get+0xb3/0x190 [ 1497.766764][ C2] ? hrtimer_interrupt+0x30e/0x770 [ 1497.767168][ C2] ? hrtimer_interrupt+0x31a/0x770 [ 1497.767589][ C2] __do_softirq+0x1b9/0x7ff [ 1497.767945][ C2] ? tcp_recvmsg+0xf8/0x4f0 [ 1497.768308][ C2] do_softirq+0x4d/0xa0 [ 1497.768634][ C2] [ 1497.768864][ C2] [ 1497.769109][ C2] __local_bh_enable_ip+0xf6/0x120 [ 1497.769507][ C2] tcp_recvmsg+0xf8/0x4f0 [ 1497.769848][ C2] ? __pfx_tcp_recvmsg+0x10/0x10 [ 1497.770235][ C2] ? core_sys_select+0x620/0x710 [ 1497.770629][ C2] ? __pfx_core_sys_select+0x10/0x10 [ 1497.771042][ C2] inet_recvmsg+0xf9/0x2c0 [ 1497.771409][ C2] ? __pfx_inet_recvmsg+0x10/0x10 [ 1497.771795][ C2] ? __fget_light+0x54/0x1e0 [ 1497.772154][ C2] ? sockfd_lookup_light+0x1a/0x160 [ 1497.772583][ C2] __sys_recvfrom+0x2fb/0x3b0 [ 1497.772953][ C2] ? __pfx___sys_recvfrom+0x10/0x10 [ 1497.773363][ C2] ? __pfx___lock_release+0x10/0x10 [ 1497.773743][ C2] ? do_pselect.constprop.0+0x12b/0x1e0 [ 1497.774047][ C2] ? __pfx_do_pselect.constprop.0+0x10/0x10 [ 1497.774379][ C2] ? restore_fpregs_from_fpstate+0x99/0x160 [ 1497.774785][ C2] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10 [ 1497.775279][ C2] __x64_sys_recvfrom+0xe0/0x1c0 [ 1497.775641][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 1497.776134][ C2] do_syscall_64+0xc9/0x1e0 [ 1497.776496][ C2] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1497.776830][ C2] RIP: 0033:0x7fd57c7bd4c0 [ 1497.777176][ 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 [ 1497.778616][ C2] RSP: 002b:00007ffe00f8a2d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 1497.779249][ C2] RAX: ffffffffffffffda RBX: 000055b9d5712a20 RCX: 00007fd57c7bd4c0 [ 1497.779849][ C2] RDX: 0000000000002000 RSI: 00007ffe00f8a360 RDI: 0000000000000008 [ 1497.780460][ C2] RBP: 00007ffe00f8a360 R08: 0000000000000000 R09: 0000000000000000 [ 1497.781054][ C2] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 1497.781657][ C2] R13: 000055b9d5712a20 R14: 0000000000000000 R15: 00007ffe00f8a35c [ 1497.782290][ C2] [ 1529.617939][ T3861] ncat (3861) used greatest stack depth: 21496 bytes left [ 1565.124218][ T3860] ncat (3860) used greatest stack depth: 20816 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__->