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 ]
[ 1472.202811][ T7323] ping (7323) used greatest stack depth: 23480 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1476.454482][ C3]
[ 1476.454657][ C3] ============================================
[ 1476.454979][ C3] WARNING: possible recursive locking detected
[ 1476.455305][ C3] 6.8.0-rc3-virtme #1 Not tainted
[ 1476.455585][ C3] --------------------------------------------
[ 1476.455905][ C3] swapper/3/0 is trying to acquire lock:
[ 1476.456206][ C3] ffff888006a49b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1476.456698][ C3]
[ 1476.456698][ C3] but task is already holding lock:
[ 1476.457093][ C3] ffff888006a48e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1476.457556][ C3]
[ 1476.457556][ C3] other info that might help us debug this:
[ 1476.457976][ C3] Possible unsafe locking scenario:
[ 1476.457976][ C3]
[ 1476.458373][ C3] CPU0
[ 1476.458566][ C3] ----
[ 1476.458755][ C3] lock(slock-AF_INET/1);
[ 1476.458991][ C3] lock(slock-AF_INET/1);
[ 1476.459241][ C3]
[ 1476.459241][ C3] *** DEADLOCK ***
[ 1476.459241][ C3]
[ 1476.459665][ C3] May be due to missing lock nesting notation
[ 1476.459665][ C3]
[ 1476.460099][ C3] 8 locks held by swapper/3/0:
[ 1476.460367][ C3] #0: ffffffffb89467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1476.460865][ C3] #1: ffffffffb89467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 1476.461395][ C3] #2: ffff888006a48e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1476.461878][ C3] #3: ffffffffb89467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1476.462384][ C3] #4: ffffffffb89467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1476.462891][ C3] #5: ffffffffb8946780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 1476.463417][ C3] #6: ffffffffb89467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1476.463953][ C3] #7: ffffffffb89467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 1476.464477][ C3]
[ 1476.464477][ C3] stack backtrace:
[ 1476.464805][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.8.0-rc3-virtme #1
[ 1476.465203][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1476.465835][ C3] Call Trace:
[ 1476.466027][ C3]
[ 1476.466175][ C3] dump_stack_lvl+0x64/0xb0
[ 1476.466426][ C3] validate_chain+0x525/0xa00
[ 1476.466686][ C3] ? __pfx_validate_chain+0x10/0x10
[ 1476.466956][ C3] ? hlock_class+0x4e/0x130
[ 1476.467201][ C3] ? mark_lock+0x38/0x3e0
[ 1476.467446][ C3] __lock_acquire+0xb67/0x1610
[ 1476.467697][ C3] ? lock_downgrade+0xa0/0x110
[ 1476.467954][ C3] ? mark_lock+0x38/0x3e0
[ 1476.468203][ C3] lock_acquire.part.0+0xe5/0x330
[ 1476.468466][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.468720][ C3] ?
DETECTED CRASH, lowering timeout
__pfx_lock_acquire.part.0+0x10/0x10
[ 1476.469027][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1476.469317][ C3] ? lock_acquire+0x1c1/0x220
[ 1476.469569][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.469855][ C3] _raw_spin_lock_nested+0x33/0x80
[ 1476.470129][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.470383][ C3] tcp_v4_rcv+0x221e/0x2ac0
[ 1476.470638][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1476.470900][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 1476.471176][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1476.471466][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 1476.471747][ C3] ip_local_deliver_finish+0x2ae/0x480
[ 1476.472030][ C3] ip_local_deliver+0x19d/0x480
[ 1476.472301][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 1476.472581][ C3] ? tcp_v4_early_demux+0x59a/0x9d0
[ 1476.472860][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1476.473222][ C3] ip_rcv+0x564/0x740
[ 1476.473434][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1476.473677][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1476.473972][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 1476.474282][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1476.474525][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 1476.474844][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1476.475175][ C3] ? mark_held_locks+0xa5/0xf0
[ 1476.475432][ C3] ? lock_acquire+0x1c1/0x220
[ 1476.475692][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 1476.476000][ C3] netif_receive_skb_internal+0xb0/0x300
[ 1476.476299][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1476.476648][ C3] ? __copy_skb_header+0xaf/0x490
[ 1476.476914][ C3] ? __skb_clone+0x57a/0x760
[ 1476.477163][ C3] netif_receive_skb+0x55/0x280
[ 1476.477442][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1476.477774][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1476.478125][ C3] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1476.478440][ C3] tcf_action_exec.part.0+0x112/0x3d0
[ 1476.478738][ C3] fl_classify+0x4dc/0x650 [cls_flower]
[ 1476.479044][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1476.479374][ C3] ? __pfx_check_irq_usage+0x10/0x10
[ 1476.479651][ C3] ? __bfs+0x247/0x650
[ 1476.479872][ C3] ? __pfx_hlock_conflict+0x10/0x10
[ 1476.480160][ C3] ? check_path.constprop.0+0x24/0x50
[ 1476.480446][ C3] ? check_noncircular+0x14e/0x3e0
[ 1476.480721][ C3] ? validate_chain+0x130/0xa00
[ 1476.480990][ C3] ? __pfx_check_noncircular+0x10/0x10
[ 1476.481274][ C3] ? get_stack_info_noinstr+0x18/0x110
[ 1476.481565][ C3] ? get_stack_info_noinstr+0x18/0x110
[ 1476.481887][ C3] ? stack_access_ok+0xda/0x1f0
[ 1476.482148][ C3] ? get_reg+0x119/0x190
[ 1476.482379][ C3] ? get_stack_info_noinstr+0x18/0x110
[ 1476.482680][ C3] ? hlock_class+0x4e/0x130
[ 1476.482919][ C3] ? check_prev_add+0x773/0xce0
[ 1476.483183][ C3] __tcf_classify+0x329/0x7d0
[ 1476.483451][ C3] tcf_classify+0x283/0x930
[ 1476.483692][ C3] ? __pfx_tcf_classify+0x10/0x10
[ 1476.483963][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 1476.484252][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 1476.484521][ C3] tc_run+0x2e4/0x5d0
[ 1476.484740][ C3] ? __pfx_tc_run+0x10/0x10
[ 1476.484992][ C3] ? lock_acquire+0x1c1/0x220
[ 1476.485233][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 1476.485503][ C3] __dev_queue_xmit+0x686/0x17e0
[ 1476.485767][ C3] ? mark_held_locks+0xa5/0xf0
[ 1476.486031][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1476.486373][ C3] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1476.486661][ C3] ? neigh_hh_output+0x348/0x590
[ 1476.486937][ C3] ip_finish_output2+0x786/0x18e0
[ 1476.487207][ C3] ? __pfx_ip_finish_output2+0x10/0x10
[ 1476.487493][ C3] ? __ip_finish_output+0x3dd/0x770
[ 1476.487782][ C3] ip_output+0x16b/0x4f0
[ 1476.488005][ C3] ? tcp_clean_rtx_queue.constprop.0+0x9ae/0x2bf0
[ 1476.488341][ C3] ? __pfx_ip_output+0x10/0x10
[ 1476.488611][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1476.488909][ C3] ? ip_local_out+0x114/0x3b0
[ 1476.489157][ C3] __ip_queue_xmit+0x672/0x1910
[ 1476.489432][ C3] ? __skb_clone+0x57a/0x760
[ 1476.489678][ C3] __tcp_transmit_skb+0x22b1/0x2d20
[ 1476.489959][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1476.490275][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 1476.490588][ C3] tcp_write_xmit+0x94f/0x1cb0
[ 1476.490847][ C3] ? ipv4_mtu+0x37/0x360
[ 1476.491084][ C3] ? __pfx_tcp_write_xmit+0x10/0x10
[ 1476.491353][ C3] ? __pfx_tcp_current_mss+0x10/0x10
[ 1476.491633][ C3] __tcp_push_pending_frames+0x96/0x320
[ 1476.491922][ C3] tcp_rcv_state_process+0x786/0x1fe0
[ 1476.492247][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1476.492503][ C3] ? hlock_class+0x4e/0x130
[ 1476.492758][ C3] ? __lock_acquired+0x18a/0x6b0
[ 1476.493012][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1476.493337][ C3] ? __pfx___lock_acquired+0x10/0x10
[ 1476.493619][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1476.493946][ C3] tcp_v4_do_rcv+0x154/0x860
[ 1476.494200][ C3] tcp_v4_rcv+0x2449/0x2ac0
[ 1476.494456][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1476.494707][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 1476.494976][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1476.495278][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 1476.495575][ C3] ip_local_deliver_finish+0x2ae/0x480
[ 1476.495860][ C3] ip_local_deliver+0x19d/0x480
[ 1476.496122][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 1476.496424][ C3] ? tcp_v4_early_demux+0x59a/0x9d0
[ 1476.496700][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1476.497037][ C3] ip_rcv+0x564/0x740
[ 1476.497263][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1476.497503][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1476.497781][ C3] ? process_backlog+0x1ed/0x5e0
[ 1476.498057][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1476.498299][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 1476.498615][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1476.498963][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1476.499251][ C3] ? lock_acquire+0x1c1/0x220
[ 1476.499500][ C3] ? process_backlog+0x1ed/0x5e0
[ 1476.499769][ C3] process_backlog+0xd3/0x5e0
[ 1476.500029][ C3] __napi_poll.constprop.0+0xa2/0x460
[ 1476.500317][ C3] net_rx_action+0x440/0xb40
[ 1476.500570][ C3] ? __pfx_net_rx_action+0x10/0x10
[ 1476.500850][ C3] ? ktime_get_raw_ts64+0x230/0x240
[ 1476.501123][ C3] ? hrtimer_interrupt+0x2e0/0x770
[ 1476.501396][ C3] ? __pfx_rebalance_domains+0x10/0x10
[ 1476.501696][ C3] ? clockevents_program_event+0x1ea/0x300
[ 1476.502003][ C3] __do_softirq+0x1b9/0x7ff
[ 1476.502249][ C3] irq_exit_rcu+0x98/0xc0
[ 1476.502494][ C3] sysvec_apic_timer_interrupt+0x75/0x80
[ 1476.502787][ C3]
[ 1476.502952][ C3]
[ 1476.503126][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1476.503448][ C3] RIP: 0010:default_idle+0xf/0x20
[ 1476.503714][ C3] 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 73 8a 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.504732][ C3] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246
[ 1476.505049][ C3] RAX: 00000000011a0f1d RBX: 1ffff9200002bfc1 RCX: ffffffffb7668242
[ 1476.505466][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb50978b6
[ 1476.505898][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006bfeea4
[ 1476.506310][ C3] R10: ffff888035ff7523 R11: ffff888035ffc348 R12: 0000000000000000
[ 1476.506727][ C3] R13: ffff888001d1cc40 R14: dffffc0000000000 R15: 0000000000000000
[ 1476.507169][ C3] ? ct_kernel_exit.constprop.0+0xc2/0xe0
[ 1476.507464][ C3] ? cpuidle_idle_call+0x1f6/0x280
[ 1476.507738][ C3] default_idle_call+0x69/0xa0
[ 1476.508005][ C3] cpuidle_idle_call+0x1f6/0x280
[ 1476.508259][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10
[ 1476.508549][ C3] ? tsc_verify_tsc_adjust+0x65/0x2b0
[ 1476.508860][ C3] do_idle+0xfb/0x160
[ 1476.509066][ C3] cpu_startup_entry+0x55/0x60
[ 1476.509320][ C3] start_secondary+0x21c/0x2b0
[ 1476.509580][ C3] ? __pfx_start_secondary+0x10/0x10
[ 1476.509874][ C3] secondary_startup_64_no_verify+0x16d/0x17b
[ 1476.510200][ C3]
[ 1492.623840][ T7367] ncat (7367) 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__->