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 ]
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1476.835708][ C2]
[ 1476.835886][ C2] ============================================
[ 1476.836234][ C2] WARNING: possible recursive locking detected
[ 1476.836586][ C2] 6.8.0-rc3-virtme #1 Not tainted
[ 1476.836871][ C2] --------------------------------------------
[ 1476.837216][ C2] swapper/2/0 is trying to acquire lock:
[ 1476.837524][ C2] ffff888005d51b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1476.838036][ C2]
[ 1476.838036][ C2] but task is already holding lock:
[ 1476.838428][ C2] ffff888005d50e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1476.838914][ C2]
[ 1476.838914][ C2] other info that might help us debug this:
[ 1476.839361][ C2] Possible unsafe locking scenario:
[ 1476.839361][ C2]
[ 1476.839763][ C2] CPU0
[ 1476.839950][ C2] ----
[ 1476.840134][ C2] lock(slock-AF_INET/1);
[ 1476.840392][ C2] lock(slock-AF_INET/1);
[ 1476.840638][ C2]
[ 1476.840638][ C2] *** DEADLOCK ***
[ 1476.840638][ C2]
[ 1476.841088][ C2] May be due to missing lock nesting notation
[ 1476.841088][ C2]
[ 1476.841530][ C2] 8 locks held by swapper/2/0:
[ 1476.841789][ C2] #0: ffffffffb75467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1476.842356][ C2] #1: ffffffffb75467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 1476.842911][ C2] #2: ffff888005d50e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1476.843445][ C2] #3: ffffffffb75467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1476.843967][ C2] #4: ffffffffb75467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1476.844506][ C2] #5: ffffffffb7546780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 1476.845012][ C2] #6: ffffffffb75467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1476.845541][ C2] #7: ffffffffb75467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 1476.846069][ C2]
[ 1476.846069][ C2] stack backtrace:
[ 1476.846382][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc3-virtme #1
[ 1476.846787][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1476.847440][ C2] Call Trace:
[ 1476.847632][ C2]
[ 1476.847793][ C2] dump_stack_lvl+0x64/0xb0
DETECTED CRASH, lowering timeout
[ 1476.848029][ C2] validate_chain+0x525/0xa00
[ 1476.848305][ C2] ? __pfx_validate_chain+0x10/0x10
[ 1476.848587][ C2] ? hlock_class+0x4e/0x130
[ 1476.848848][ C2] ? mark_lock+0x38/0x3e0
[ 1476.849088][ C2] __lock_acquire+0xb67/0x1610
[ 1476.849357][ C2] ? lock_downgrade+0xa0/0x110
[ 1476.849625][ C2] ? mark_lock+0x38/0x3e0
[ 1476.849856][ C2] lock_acquire.part.0+0xe5/0x330
[ 1476.850148][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.850407][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1476.850726][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1476.851033][ C2] ? lock_acquire+0x1c1/0x220
[ 1476.851298][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.851560][ C2] _raw_spin_lock_nested+0x33/0x80
[ 1476.851861][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.852121][ C2] tcp_v4_rcv+0x221e/0x2ac0
[ 1476.852395][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1476.852656][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1476.852946][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1476.853250][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1476.853558][ C2] ip_local_deliver_finish+0x2ae/0x480
[ 1476.853863][ C2] ip_local_deliver+0x19d/0x480
[ 1476.854138][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1476.854425][ C2] ? tcp_v4_early_demux+0x59a/0x9d0
[ 1476.854709][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1476.855068][ C2] ip_rcv+0x564/0x740
[ 1476.855293][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1476.855546][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1476.855838][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1476.856163][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1476.856429][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1476.856761][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1476.857118][ C2] ? mark_held_locks+0xa5/0xf0
[ 1476.857390][ C2] ? lock_acquire+0x1c1/0x220
[ 1476.857644][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1476.857960][ C2] netif_receive_skb_internal+0xb0/0x300
[ 1476.858262][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1476.858635][ C2] ? __copy_skb_header+0xaf/0x490
[ 1476.858910][ C2] ? __skb_clone+0x57a/0x760
[ 1476.859160][ C2] netif_receive_skb+0x55/0x280
[ 1476.859456][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1476.859798][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1476.860154][ C2] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1476.860479][ C2] tcf_action_exec.part.0+0x112/0x3d0
[ 1476.860775][ C2] fl_classify+0x4dc/0x650 [cls_flower]
[ 1476.861098][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1476.861434][ C2] ? __pfx_check_irq_usage+0x10/0x10
[ 1476.861734][ C2] ? __bfs+0x247/0x650
[ 1476.861971][ C2] ? __pfx_hlock_conflict+0x10/0x10
[ 1476.862258][ C2] ? check_path.constprop.0+0x24/0x50
[ 1476.862543][ C2] ? check_noncircular+0x14e/0x3e0
[ 1476.862812][ C2] ? hlock_class+0x4e/0x130
[ 1476.863056][ C2] ? __pfx_check_noncircular+0x10/0x10
[ 1476.863333][ C2] ? __pfx_validate_chain+0x10/0x10
[ 1476.863602][ C2] ? hlock_class+0x4e/0x130
[ 1476.863842][ C2] ? hlock_class+0x4e/0x130
[ 1476.864094][ C2] ? check_prev_add+0x773/0xce0
[ 1476.864356][ C2] __tcf_classify+0x329/0x7d0
[ 1476.864607][ C2] tcf_classify+0x283/0x930
[ 1476.864847][ C2] ? __pfx_tcf_classify+0x10/0x10
[ 1476.865123][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 1476.865414][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 1476.865698][ C2] tc_run+0x2e4/0x5d0
[ 1476.865937][ C2] ? __pfx_tc_run+0x10/0x10
[ 1476.866176][ C2] ? lock_acquire+0x1c1/0x220
[ 1476.866425][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 1476.866702][ C2] __dev_queue_xmit+0x686/0x17e0
[ 1476.866977][ C2] ? mark_held_locks+0xa5/0xf0
[ 1476.867240][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1476.867584][ C2] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1476.867878][ C2] ? neigh_hh_output+0x348/0x590
[ 1476.868154][ C2] ip_finish_output2+0x786/0x18e0
[ 1476.868435][ C2] ? __pfx_ip_finish_output2+0x10/0x10
[ 1476.868742][ C2] ? __ip_finish_output+0x3dd/0x770
[ 1476.869032][ C2] ip_output+0x16b/0x4f0
[ 1476.869263][ C2] ? mark_held_locks+0xa5/0xf0
[ 1476.869537][ C2] ? __pfx_ip_output+0x10/0x10
[ 1476.869804][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1476.870121][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1476.870480][ C2] ? ip_local_out+0x114/0x3b0
[ 1476.870735][ C2] __ip_queue_xmit+0x672/0x1910
[ 1476.871020][ C2] ? __skb_clone+0x57a/0x760
[ 1476.871269][ C2] __tcp_transmit_skb+0x22b1/0x2d20
[ 1476.871559][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1476.871874][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 1476.872219][ C2] tcp_write_xmit+0x94f/0x1cb0
[ 1476.872467][ C2] ? ipv4_mtu+0x37/0x360
[ 1476.872691][ C2] ? __pfx_tcp_write_xmit+0x10/0x10
[ 1476.872971][ C2] ? __pfx_tcp_current_mss+0x10/0x10
[ 1476.873255][ C2] __tcp_push_pending_frames+0x96/0x320
[ 1476.873553][ C2] tcp_rcv_state_process+0x786/0x1fe0
[ 1476.873831][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.874074][ C2] ? hlock_class+0x4e/0x130
[ 1476.874329][ C2] ? __lock_acquired+0x18a/0x6b0
[ 1476.874593][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1476.874905][ C2] ? __pfx___lock_acquired+0x10/0x10
[ 1476.875176][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1476.875466][ C2] tcp_v4_do_rcv+0x154/0x860
[ 1476.875705][ C2] tcp_v4_rcv+0x2449/0x2ac0
[ 1476.875955][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1476.876223][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1476.876490][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1476.876795][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1476.877086][ C2] ip_local_deliver_finish+0x2ae/0x480
[ 1476.877372][ C2] ip_local_deliver+0x19d/0x480
[ 1476.877645][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1476.877937][ C2] ? tcp_v4_early_demux+0x59a/0x9d0
[ 1476.878222][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1476.878575][ C2] ip_rcv+0x564/0x740
[ 1476.878796][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1476.879050][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1476.879345][ C2] ? process_backlog+0x1ed/0x5e0
[ 1476.879619][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1476.879883][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1476.880211][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1476.880556][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1476.880859][ C2] ? lock_acquire+0x1c1/0x220
[ 1476.881124][ C2] ? process_backlog+0x1ed/0x5e0
[ 1476.881407][ C2] process_backlog+0xd3/0x5e0
[ 1476.881671][ C2] __napi_poll.constprop.0+0xa2/0x460
[ 1476.881976][ C2] net_rx_action+0x440/0xb40
[ 1476.882237][ C2] ? __pfx_net_rx_action+0x10/0x10
[ 1476.882521][ C2] ? kvm_clock_get_cycles+0x18/0x30
[ 1476.882808][ C2] ? ktime_get_raw_ts64+0x230/0x240
[ 1476.883083][ C2] ? hrtimer_interrupt+0x30e/0x770
[ 1476.883357][ C2] ? clockevents_program_event+0x1ea/0x300
[ 1476.883663][ C2] __do_softirq+0x1b9/0x7ff
[ 1476.883923][ C2] irq_exit_rcu+0x98/0xc0
[ 1476.884158][ C2] sysvec_apic_timer_interrupt+0x75/0x80
[ 1476.884459][ C2]
[ 1476.884621][ C2]
[ 1476.884777][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1476.885087][ C2] RIP: 0010:default_idle+0xf/0x20
[ 1476.885362][ C2] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 23 7a 3f 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90
[ 1476.886340][ C2] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000246
[ 1476.886673][ C2] RAX: 0000000001aa92b1 RBX: 1ffff92000029fc1 RCX: ffffffffb6269292
[ 1476.887090][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb3c978b6
[ 1476.887501][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006b7eea4
[ 1476.887958][ C2] R10: ffff888035bf7523 R11: 1ffff110003e340c R12: 0000000000000000
[ 1476.888385][ C2] R13: ffff888001d1a640 R14: dffffc0000000000 R15: 0000000000000000
[ 1476.888826][ C2] ? ct_kernel_exit.constprop.0+0xc2/0xe0
[ 1476.889158][ C2] ? cpuidle_idle_call+0x1f6/0x280
[ 1476.889438][ C2] default_idle_call+0x69/0xa0
[ 1476.889723][ C2] cpuidle_idle_call+0x1f6/0x280
[ 1476.889999][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10
[ 1476.890303][ C2] ? tsc_verify_tsc_adjust+0x65/0x2b0
[ 1476.890598][ C2] do_idle+0xfb/0x160
[ 1476.890823][ C2] cpu_startup_entry+0x55/0x60
[ 1476.891081][ C2] start_secondary+0x21c/0x2b0
[ 1476.891341][ C2] ? __pfx_start_secondary+0x10/0x10
[ 1476.891638][ C2] secondary_startup_64_no_verify+0x16d/0x17b
[ 1476.891986][ C2]
[ 1500.521806][ T3481] ncat (3481) used greatest stack depth: 21312 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__->