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
[ 2227.300713][ T7320] veth1: left promiscuous mode
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 2239.985327][ T7405] 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 ]
# [ 2254.619335][ C2]
[ 2254.619506][ C2] ============================================
[ 2254.619826][ C2] WARNING: possible recursive locking detected
[ 2254.620152][ C2] 6.8.0-rc4-virtme #1 Not tainted
[ 2254.620435][ C2] --------------------------------------------
[ 2254.620752][ C2] swapper/2/0 is trying to acquire lock:
[ 2254.621050][ C2] ffff88800a0b1ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2254.621531][ C2]
[ 2254.621531][ C2] but task is already holding lock:
[ 2254.621912][ C2] ffff88800a0b0f68 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2254.622393][ C2]
[ 2254.622393][ C2] other info that might help us debug this:
[ 2254.622809][ C2] Possible unsafe locking scenario:
[ 2254.622809][ C2]
[ 2254.623201][ C2] CPU0
[ 2254.623400][ C2] ----
[ 2254.623572][ C2] lock(slock-AF_INET/1);
[ 2254.623811][ C2] lock(slock-AF_INET/1);
[ 2254.624062][ C2]
[ 2254.624062][ C2] *** DEADLOCK ***
[ 2254.624062][ C2]
[ 2254.624480][ C2] May be due to missing lock nesting notation
[ 2254.624480][ C2]
[ 2254.624906][ C2] 8 locks held by swapper/2/0:
[ 2254.625159][ C2] #0: ffffffff87f467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ef/0x5e0
[ 2254.625662][ C2] #1: ffffffff87f467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490
[ 2254.626204][ C2] #2: ffff88800a0b0f68 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2254.626704][ C2] #3: ffffffff87f467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0
[ 2254.627202][ C2] #4: ffffffff87f467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 2254.627715][ C2] #5: ffffffff87f46780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 2254.628242][ C2] #6: ffffffff87f467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 2254.628791][ C2] #7: ffffffff87f467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490
[ 2254.629326][ C2]
[ 2254.629326][ C2] stack backtrace:
[ 2254.629654][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc4-virtme #1
[ 2254.630065][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 2254.630723][ C2] Call Trace:
[ 2254.630902][ C2]
[ 2254.631058][ C2] dump_stack_lvl+0x64/0xb0
[ 2254.631319][ C2] validate_chain+0x525/0xa00
[ 2254.631569][ C2] ? __pfx_validate_chain+0x10/0x10
[ 2254.631850][ C2] ? hlock_class+0x4e/0x130
[ 2254.632115][ C2] ? mark_lock+0x38/0x3e0
[ 2254.632344][ C2] __lock_acquire+0xb67/0x1610
[ 2254.632604][ C2] ? lock_downgrade+0xd0/0x110
[ 2254.632869][ C2] ? mark_lock+0x38/0x3e0
[ 2254.633098][ C2] lock_acquire.part.0+0xe5/0x330
[ 2254.633365][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2254.633647][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2254.633942][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 2254.634234][ C2] ? lock_acquire+0x1c1/0x220
[ 2254.634505][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2254.634754][ C2] _raw_spin_lock_nested+0x33/0x80
[ 2254.635026][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2254.635289][ C2] tcp_v4_rcv+0x221e/0x2ac0
[ 2254.635530][ C2] ? __pfx_tcp_v4_rcv+
DETECTED CRASH, lowering timeout
0x10/0x10
[ 2254.635788][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 2254.636070][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2254.636365][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 2254.636666][ C2] ip_local_deliver_finish+0x2b6/0x490
[ 2254.636956][ C2] ip_local_deliver+0x19d/0x480
[ 2254.637212][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 2254.637490][ C2] ? tcp_v4_early_demux+0x5a1/0x9e0
[ 2254.637772][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2254.638117][ C2] ip_rcv+0x564/0x740
[ 2254.638483][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2254.638761][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 2254.639060][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 2254.639397][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2254.639648][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 2254.639975][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2254.640338][ C2] ? mark_held_locks+0xa5/0xf0
[ 2254.640598][ C2] ? lock_acquire+0x1c1/0x220
[ 2254.640860][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 2254.641194][ C2] netif_receive_skb_internal+0xb0/0x300
[ 2254.641499][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 2254.641843][ C2] ? __copy_skb_header+0xaf/0x490
[ 2254.642130][ C2] ? __skb_clone+0x57a/0x760
[ 2254.642383][ C2] netif_receive_skb+0x55/0x280
[ 2254.642662][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 2254.643008][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 2254.643381][ C2] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 2254.643711][ C2] tcf_action_exec.part.0+0x112/0x3d0
[ 2254.644016][ C2] fl_classify+0x4dc/0x650 [cls_flower]
[ 2254.644340][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 2254.644689][ C2] ? __pfx_check_irq_usage+0x10/0x10
[ 2254.644989][ C2] ? __bfs+0x247/0x650
[ 2254.645213][ C2] ? __pfx_hlock_conflict+0x10/0x10
[ 2254.645508][ C2] ? check_path.constprop.0+0x24/0x50
[ 2254.645814][ C2] ? check_noncircular+0x14e/0x3e0
[ 2254.646094][ C2] ? hlock_class+0x4e/0x130
[ 2254.646345][ C2] ? __pfx_check_noncircular+0x10/0x10
[ 2254.646667][ C2] ? __pfx_validate_chain+0x10/0x10
[ 2254.646951][ C2] ? hlock_class+0x4e/0x130
[ 2254.647205][ C2] ? hlock_class+0x4e/0x130
[ 2254.647465][ C2] ? check_prev_add+0x773/0xce0
[ 2254.647733][ C2] __tcf_classify+0x329/0x7d0
[ 2254.647995][ C2] tcf_classify+0x283/0x930
[ 2254.648264][ C2] ? __pfx_tcf_classify+0x10/0x10
[ 2254.648549][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 2254.648833][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 2254.649125][ C2] tc_run+0x2e4/0x5d0
[ 2254.649346][ C2] ? __pfx_tc_run+0x10/0x10
[ 2254.649604][ C2] ? lock_acquire+0x1c1/0x220
[ 2254.649876][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 2254.650155][ C2] __dev_queue_xmit+0x686/0x17e0
[ 2254.650437][ C2] ? mark_held_locks+0xa5/0xf0
[ 2254.650716][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 2254.651072][ C2] ? __pfx___dev_queue_xmit+0x10/0x10
[ 2254.651382][ C2] ? neigh_hh_output+0x36d/0x5d0
[ 2254.651671][ C2] ip_finish_output2+0x786/0x18e0
[ 2254.651956][ C2] ? __pfx_ip_finish_output2+0x10/0x10
[ 2254.652265][ C2] ? __ip_finish_output+0x3dd/0x770
[ 2254.652551][ C2] ip_output+0x16b/0x4f0
[ 2254.652787][ C2] ? mark_held_locks+0xa5/0xf0
[ 2254.653063][ C2] ? __pfx_ip_output+0x10/0x10
[ 2254.653323][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2254.653628][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 2254.653989][ C2] ? ip_local_out+0x114/0x3b0
[ 2254.654264][ C2] __ip_queue_xmit+0x672/0x17b0
[ 2254.654531][ C2] ? __skb_clone+0x57a/0x760
[ 2254.654787][ C2] __tcp_transmit_skb+0x22b2/0x2d30
[ 2254.655087][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 2254.655397][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 2254.655741][ C2] tcp_write_xmit+0x94f/0x1cb0
[ 2254.656003][ C2] ? ipv4_mtu+0x37/0x360
[ 2254.656240][ C2] ? __pfx_tcp_write_xmit+0x10/0x10
[ 2254.656540][ C2] ? __pfx_tcp_current_mss+0x10/0x10
[ 2254.656830][ C2] __tcp_push_pending_frames+0x96/0x320
[ 2254.657138][ C2] tcp_rcv_state_process+0x77c/0x1fd0
[ 2254.657444][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2254.657700][ C2] ? hlock_class+0x4e/0x130
[ 2254.657950][ C2] ? __lock_acquired+0x18a/0x6b0
[ 2254.658244][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 2254.658562][ C2] ? __pfx___lock_acquired+0x10/0x10
[ 2254.658854][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2254.659175][ C2] tcp_v4_do_rcv+0x154/0x860
[ 2254.659430][ C2] tcp_v4_rcv+0x2449/0x2ac0
[ 2254.659686][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2254.659955][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 2254.660246][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2254.660553][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 2254.660850][ C2] ip_local_deliver_finish+0x2b6/0x490
[ 2254.661162][ C2] ip_local_deliver+0x19d/0x480
[ 2254.661426][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 2254.661735][ C2] ? tcp_v4_early_demux+0x5a1/0x9e0
[ 2254.662036][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2254.662380][ C2] ip_rcv+0x564/0x740
[ 2254.662612][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2254.662883][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 2254.663166][ C2] ? process_backlog+0x1ef/0x5e0
[ 2254.663442][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2254.663709][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 2254.664031][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2254.664381][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2254.664713][ C2] ? lock_acquire+0x1c1/0x220
[ 2254.664967][ C2] ? process_backlog+0x1ef/0x5e0
[ 2254.665242][ C2] process_backlog+0xd5/0x5e0
[ 2254.665529][ C2] __napi_poll.constprop.0+0xa2/0x460
[ 2254.665823][ C2] net_rx_action+0x440/0xb40
[ 2254.666082][ C2] ? __pfx_net_rx_action+0x10/0x10
[ 2254.666374][ C2] ? ktime_get+0x90/0x190
[ 2254.666611][ C2] ? hrtimer_interrupt+0x2c0/0x770
[ 2254.666904][ C2] ? __pfx_rebalance_domains+0x10/0x10
[ 2254.667217][ C2] ? clockevents_program_event+0x1ea/0x300
[ 2254.667536][ C2] __do_softirq+0x1b9/0x7ff
[ 2254.667792][ C2] irq_exit_rcu+0x98/0xc0
[ 2254.668042][ C2] sysvec_apic_timer_interrupt+0x75/0x80
[ 2254.668359][ C2]
[ 2254.668520][ C2]
[ 2254.668691][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 2254.669034][ C2] RIP: 0010:default_idle+0xf/0x20
[ 2254.669312][ 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 b3 28 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
[ 2254.670350][ C2] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242
[ 2254.670686][ C2] RAX: 00000000010c60d3 RBX: 1ffff92000029fc1 RCX: ffffffff86c6e402
[ 2254.671116][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff84698386
[ 2254.671560][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e3eea4
[ 2254.671986][ C2] R10: ffff88802f1f7523 R11: 1ffff110003dc34c R12: 0000000000000000
[ 2254.672418][ C2] R13: ffff888001d1a640 R14: dffffc0000000000 R15: 0000000000000000
[ 2254.672866][ C2] ? ct_kernel_exit.constprop.0+0xc2/0xe0
[ 2254.673175][ C2] ? cpuidle_idle_call+0x1f6/0x280
[ 2254.673460][ C2] default_idle_call+0x69/0xa0
[ 2254.673735][ C2] cpuidle_idle_call+0x1f6/0x280
[ 2254.674003][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10
[ 2254.674303][ C2] ? tsc_verify_tsc_adjust+0x65/0x2b0
[ 2254.674610][ C2] do_idle+0xfb/0x160
[ 2254.674829][ C2] cpu_startup_entry+0x55/0x60
[ 2254.675093][ C2] start_secondary+0x21c/0x2b0
[ 2254.675369][ C2] ? __pfx_start_secondary+0x10/0x10
[ 2254.675661][ C2] secondary_startup_64_no_verify+0x16d/0x17b
[ 2254.675998][ C2]
[ 2284.741635][ T7562] ncat (7562) used greatest stack depth: 21120 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__->