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 0
# 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 ]
[ 1242.075916][T12577] ping (12577) used greatest stack depth: 23352 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1245.824897][ C2]
[ 1245.825073][ C2] ============================================
[ 1245.825402][ C2] WARNING: possible recursive locking detected
[ 1245.825747][ C2] 6.8.0-rc1-virtme #1 Not tainted
[ 1245.826027][ C2] --------------------------------------------
[ 1245.826361][ C2] swapper/2/0 is trying to acquire lock:
[ 1245.826685][ C2] ffff88800a4d9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1245.827217][ C2]
[ 1245.827217][ C2] but task is already holding lock:
[ 1245.827658][ C2] ffff88800a4d8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1245.828157][ C2]
[ 1245.828157][ C2] other info that might help us debug this:
[ 1245.828600][ C2] Possible unsafe locking scenario:
[ 1245.828600][ C2]
[ 1245.829048][ C2] CPU0
[ 1245.829238][ C2] ----
[ 1245.829421][ C2] lock(slock-AF_INET/1);
[ 1245.829703][ C2] lock(slock-AF_INET/1);
[ 1245.829962][ C2]
[ 1245.829962][ C2] *** DEADLOCK ***
[ 1245.829962][ C2]
[ 1245.830419][ C2] May be due to missing lock nesting notation
[ 1245.830419][ C2]
[ 1245.830914][ C2] 8 locks held by swapper/2/0:
[ 1245.831187][ C2] #0: ffffffff9e7447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1245.831749][ C2] #1: ffffffff9e7447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1245.832317][ C2] #2: ffff88800a4d8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1245.832897][ C2] #3: ffffffff9e7447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1245.833445][ C2] #4: ffffffff9e7447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1245.834005][ C2] #5: ffffffff9e744780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 1245.834523][ C2] #6: ffffffff9e7447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1245.835071][ C2] #7: ffffffff9e7447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1245.835618][ C2]
[ 1245.835618][ C2] stack backtrace:
[ 1245.835945][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc1-virtme #1
[ 1245.836356][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1245.837060][ C2] Call Trace:
[ 1245.837240][ C2]
[ 1245.837409][ C2] dump_stack_lvl+0x64/0xb0
[ 1245.837673][ C2] validate_chain+0x525/0xa00
[ 1245.837935][ C2] ? __pfx_validate_chain+0x10/0x10
[ 1245.838208][ C2] ? hlock_class+0x4e/0x130
[ 1245.838457][ C2] ? mark_lock+0x38/0x3e0
[ 1245.838704][ C2] __lock_acquire+0xb67/0x1610
[ 1245.838974][ C2] ? lock_downgrade+0x90/0x110
[ 1245.839232][ C2] ? mark_lock+0x38/0x3e0
[ 1245.839478][ C2] lock_acquire.part.0+0xe5/0x330
[ 1245.839792][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1245.840063][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1245.840401][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1245.840761][ C2] ? lock_acquire+0x1c1/0x220
[ 1245.841028][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1245.841288][ C2] _raw_spin_lock_nested+0x33/0x80
[ 1245.841594][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1245.841857][ C2] tcp_v4_rcv+0x2159/0x29b0
[ 1245.842128][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1245.842407][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1245.842727][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1245.843048][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1245.843376][ C2] ip_local_deliver_finish+0x2ae/0x450
[ 1245.843716][ C2] ip_local_deliver+0x19d/0x480
[ 1245.844001][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1245.844316][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1245.844679][ C2] ip_rcv+0x564/0x740
[ 1245.844903][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1245.845164][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1245.845469][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1245.845816][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1245.846085][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1245.846444][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1245.846825][ C2] ? mark_held_locks+0xa5/0xf0
[ 1245.847107][ C2] ? lock_acquire+0x1c1/0x220
[ 1245.847388][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1245.847744][ C2] netif_receive_skb_internal+0xb0/0x300
[ 1245.848066][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1245.848416][ C2] ? __copy_skb_header+0xaf/0x490
[ 1245.848787][ C2] ? __skb_clone+0x57a/0x760
[ 1245.849039][ C2] netif_receive_skb+0x55/0x280
[ 1245.849318][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1245.849680][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1245.850066][ C2] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1245.850405][ C2] tcf_action_exec.part.0+0x115/0x3d0
[ 1245.850736][ C2] fl_classify+0x4dc/0x650 [cls_flower]
[ 1245.851080][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1245.851443][ C2] ? __pfx_usage_match+0x10/0x10
[ 1245.851740][ C2] ? check_irq_usage+0x27e/0x850
[ 1245.852013][ C2] ? __pfx_check_irq_usage+0x10/0x10
[ 1245.852292][ C2] ? __bfs+0x24a/0x650
[ 1245.852524][ C2] ? __pfx_hlock_conflict+0x10/0x10
[ 1245.852835][ C2] ? ip_rcv+0x564/0x740
[ 1245.853061][ C2] ? check_path.constprop.0+0x24/0x50
[ 1245.853353][ C2] ? check_noncircular+0x14e/0x3e0
[ 1245.853647][ C2] ? __pfx_check_noncircular+0x10/0x10
[ 1245.854001][ C2] ? hlock_class+0x4e/0x130
[ 1245.854247][ C2] ? __lock_release+0x40f/0x880
[ 1245.854518][ C2] ? validate_chain+0x130/0xa00
[ 1245.854792][ C2] __tcf_classify+0x32c/0x7d0
[ 1245.855052][ C2] tcf_classify+0x283/0x930
[ 1245.855296][ C2] ? __pfx_tcf_classify+0x10/0x10
[ 1245.855571][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1245.855868][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1245.856143][ C2] tc_run+0x2e4/0x5d0
[ 1245.856385][ C2] ? __pfx_tc_run+0x10/0x10
[ 1245.856652][ C2] ? lock_acquire+0x1c1/0x220
[ 1245.856948][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1245.857241][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1245.857542][ C2] __dev_queue_xmit+0x8eb/0x1ca0
[ 1245.857903][ C2] ? mark_lock+0x38/0x3e0
[ 1245.858161][ C2] ? mark_held_locks+0xa5/0xf0
[ 1245.858426][ C2] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1245.858745][ C2] ? neigh_hh_output+0x348/0x590
[ 1245.859025][ C2] ? vrf_ip_local_out+0x781/0x860 [vrf]
[ 1245.859356][ C2] ip_finish_output2+0x786/0x18e0
[ 1245.859662][ C2] ? __pfx_ip_finish_output2+0x10/0x10
[ 1245.859976][ C2] ? __ip_finish_output+0x3dd/0x770
[ 1245.860277][ C2] ip_output+0x16b/0x4f0
[ 1245.860530][ C2] ? __pfx_ip_output+0x10/0x10
[ 1245.860843][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1245.861166][ C2] ? ip_local_out+0x114/0x3b0
[ 1245.861439][ C2] __ip_queue_xmit+0x672/0x1910
[ 1245.861731][ C2] ? __skb_clone+0x57a/0x760
[ 1245.861992][ C2] __tcp_transmit_skb+0x22b1/0x2d20
[ 1245.862294][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1245.862625][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 1245.862952][ C2] tcp_write_xmit+0xe42/0x24c0
[ 1245.863222][ C2] ? ipv4_mtu+0x37/0x360
[ 1245.863476][ C2] ? __pfx_tcp_write_xmit+0x10/0x10
[ 1245.863776][ C2] ? __pfx_tcp_current_mss+0x10/0x10
[ 1245.864084][ C2] __tcp_push_pending_frames+0x96/0x320
[ 1245.864398][ C2] tcp_rcv_state_process+0x81e/0x1fd0
[ 1245.864733][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1245.865004][ C2] ? hlock_class+0x4e/0x130
[ 1245.865276][ C2] ? __lock_acquired+0x18a/0x6b0
[ 1245.865572][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1245.865960][ C2] ? __pfx___lock_acquired+0x10/0x10
[ 1245.866273][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1245.866570][ C2] tcp_v4_do_rcv+0x154/0x850
[ 1245.866845][ C2] tcp_v4_rcv+0x235a/0x29b0
[ 1245.867091][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1245.867374][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1245.867669][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1245.867999][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1245.868304][ C2] ip_local_deliver_finish+0x2ae/0x450
[ 1245.868631][ C2] ip_local_deliver+0x19d/0x480
[ 1245.868946][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1245.869256][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1245.869627][ C2] ip_rcv+0x564/0x740
[ 1245.869910][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1245.870159][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1245.870449][ C2] ? process_backlog+0x1ed/0x5e0
[ 1245.870741][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1245.870998][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1245.871322][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1245.871685][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1245.871985][ C2] ? lock_acquire+0x1c1/0x220
[ 1245.872241][ C2] ? process_backlog+0x1ed/0x5e0
[ 1245.872505][ C2] process_backlog+0xd3/0x5e0
[ 1245.872774][ C2] __napi_poll.constprop.0+0xa5/0x450
[ 1245.873064][ C2] net_rx_action+0x440/0xb40
[ 1245.873318][ C2] ? __pfx_net_rx_action+0x10/0x10
[ 1245.873600][ C2] ? ktime_get+0x70/0x190
[ 1245.873886][ C2] ? hrtimer_interrupt+0x270/0x770
[ 1245.874169][ C2] ? __pfx_rebalance_domains+0x10/0x10
[ 1245.874459][ C2] ? clockevents_program_event+0x1ed/0x300
[ 1245.874788][ C2] __do_softirq+0x1bc/0x7ff
[ 1245.875033][ C2] irq_exit_rcu+0x98/0xc0
[ 1245.875269][ C2] sysvec_apic_timer_interrupt+0x75/0x80
[ 1245.875573][ C2]
[ 1245.875744][ C2]
[ 1245.875917][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1245.876259][ C2] RIP: 0010:default_idle+0xf/0x20
[ 1245.876555][ 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 eb 07 0f 00 2d c3 a2 41 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90
[ 1245.877702][ C2] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000206
[ 1245.878050][ C2] RAX: 00000000017d458b RBX: 1ffff92000029fc1 RCX: ffffffff9d446832
[ 1245.878462][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9ae969c6
[ 1245.878922][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e3eea4
[ 1245.879364][ C2] R10: ffff88802f1f7523 R11: 1ffff110003da40c R12: 0000000000000000
[ 1245.879801][ C2] R13: ffff888001d0de00 R14: dffffc0000000000 R15: 0000000000000000
[ 1245.880242][ C2] ? ct_kernel_exit.constprop.0+0xc2/0xe0
[ 1245.880581][ C2] ? cpuidle_idle_call+0x1f6/0x280
[ 1245.880907][ C2] default_idle_call+0x69/0xa0
[ 1245.881192][ C2] cpuidle_idle_call+0x1f6/0x280
[ 1245.881470][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10
[ 1245.881799][ C2] do_idle+0xfb/0x160
[ 1245.882033][ C2] cpu_startup_entry+0x55/0x60
[ 1245.882314][ C2] start_secondary+0x21c/0x2b0
[ 1245.882582][ C2] ? __pfx_start_secondary+0x10/0x10
[ 1245.882883][ C2] secondary_startup_64_no_verify+0x16d/0x17b
[ 1245.883230][ C2]
[ 1271.170328][T12626] ncat (12626) used greatest stack depth: 21168 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__->