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 ]
[ 1292.839791][ T3862] 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 ]
[ 1298.478845][ T3943] tc (3943) used greatest stack depth: 23848 bytes left
[ 1301.726201][ T3986] ping (3986) used greatest stack depth: 23352 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1305.218827][ C0]
[ 1305.219044][ C0] ============================================
[ 1305.219477][ C0] WARNING: possible recursive locking detected
[ 1305.219935][ C0] 6.8.0-rc1-virtme #1 Not tainted
[ 1305.220279][ C0] --------------------------------------------
[ 1305.220716][ C0] swapper/0/0 is trying to acquire lock:
[ 1305.221111][ C0] ffff888007e21b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1305.221743][ C0]
[ 1305.221743][ C0] but task is already holding lock:
[ 1305.222223][ C0] ffff888007e20e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1305.222776][ C0]
[ 1305.222776][ C0] other info that might help us debug this:
[ 1305.223250][ C0] Possible unsafe locking scenario:
[ 1305.223250][ C0]
[ 1305.223686][ C0] CPU0
[ 1305.223873][ C0] ----
[ 1305.224064][ C0] lock(slock-AF_INET/1);
[ 1305.224329][ C0] lock(slock-AF_INET/1);
[ 1305.224573][ C0]
[ 1305.224573][ C0] *** DEADLOCK ***
[ 1305.224573][ C0]
[ 1305.225006][ C0] May be due to missing lock nesting notation
[ 1305.225006][ C0]
[ 1305.225464][ C0] 8 locks held by swapper/0/0:
[ 1305.225713][ C0] #0: ffffffffa8d447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1305.226242][ C0] #1: ffffffffa8d447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1305.226817][ C0] #2: ffff888007e20e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1305.227319][ C0] #3: ffffffffa8d447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1305.227824][ C0] #4: ffffffffa8d447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1305.228372][ C0] #5: ffffffffa8d44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 1305.228897][ C0] #6: ffffffffa8d447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1305.229444][ C0] #7: ffffffffa8d447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1305.230006][ C0]
[ 1305.230006][ C0] stack backtrace:
[ 1305.230323][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.8.0-rc1-virtme #1
[ 1305.230731][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1305.231388][ C0] Call Trace:
[ 1305.231590][ C0]
[ 1305.231758][ C0] dump_stack_lvl+0x64/0xb0
[ 1305.232007][ C0] validate_chain+0x525/0xa00
[ 1305.232294][ C0] ? __pfx_validate_chain+0x10/0x10
[ 1305.232648][ C0] ? hlock_class+0x4e/0x130
[ 1305.233003][ C0] ? mark_lock+0x38/0x3e0
[ 1305.233255][ C0] __lock_acquire+0xb67/0x1610
[ 1305.233614][ C0] ? lock_downgrade+0x90/0x110
[ 1305.233942][ C0] ? mark_lock+0x38/0x3e0
[ 1305.234265][ C0] lock_acquire.part.0+0xe5/0x330
[ 1305.234662][ C0] ? tcp_v4_rcv+0x2159/0x29b0
[ 1305.235037][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1305.235466][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1305.235887][ C0] ? lock_acquire+0x1c1/0x220
[ 1305.236259][ C0] ? tcp_v4_rcv+0x2159/0x29b0
[ 1305.236552][ C0] _raw_spin_lock_nested+0x33/0x80
[ 1305.236841][ C0] ? tcp_v4_rcv+0x2159/0x29b0
[ 1305.237109][ C0] tcp_v4_rcv+0x2159/0x29b0
[ 1305.237375][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1305.237646][ C0] ? __pfx_raw_v4_input+0x10/0x10
[ 1305.237929][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1305.238227][ C0] ip_protocol_deliver_rcu+0x93/0x360
[ 1305.238530][ C0] ip_local_deliver_finish+0x2ae/0x450
[ 1305.238837][ C0] ip_local_deliver+0x19d/0x480
[ 1305.239107][ C0] ? __pfx_ip_local_deliver+0x10/0x10
[ 1305.239411][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1305.239760][ C0] ip_rcv+0x564/0x740
[ 1305.240007][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1305.240327][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 1305.240622][ C0] ? netif_receive_skb_internal+0x84/0x300
[ 1305.240935][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1305.241230][ C0] __netif_receive_skb_one_core+0x166/0x1b0
[ 1305.241645][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1305.242038][ C0] ? mark_held_locks+0xa5/0xf0
[ 1305.242362][ C0] ? lock_acquire+0x1c1/0x220
[ 1305.242698][ C0] ? netif_receive_skb_internal+0x84/0x300
[ 1305.243132][ C0] netif_receive_skb_internal+0xb0/0x300
[ 1305.243560][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1305.244014][ C0] ? __copy_skb_header+0xaf/0x490
[ 1305.244389][ C0] ? __skb_clone+0x57a/0x760
[ 1305.244746][ C0] netif_receive_skb+0x55/0x280
[ 1305.245115][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1305.245579][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1305.246039][ C0] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1305.246453][ C0] tcf_action_exec.part.0+0x115/0x3d0
[ 1305.246880][ C0] fl_classify+0x4dc/0x650 [cls_flower]
[ 1305.247298][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1305.247749][ C0] ? __pfx_usage_match+0x10/0x10
[ 1305.248099][ C0] ? check_irq_usage+0x27e/0x850
[ 1305.248469][ C0] ? __pfx_check_irq_usage+0x10/0x10
[ 1305.248858][ C0] ? __bfs+0x24a/0x650
[ 1305.249169][ C0] ? __pfx_hlock_conflict+0x10/0x10
[ 1305.249464][ C0] ? check_path.constprop.0+0x24/0x50
[ 1305.249816][ C0] ? check_noncircular+0x14e/0x3e0
[ 1305.250222][ C0] ? hlock_class+0x4e/0x130
[ 1305.250486][ C0] ? __pfx_check_noncircular+0x10/0x10
[ 1305.250808][ C0] ? validate_chain+0x130/0xa00
[ 1305.251076][ C0] __tcf_classify+0x32c/0x7d0
[ 1305.251347][ C0] tcf_classify+0x283/0x930
[ 1305.251613][ C0] ? __pfx_tcf_classify+0x10/0x10
[ 1305.251879][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 1305.252164][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1305.252455][ C0] tc_run+0x2e4/0x5d0
[ 1305.252715][ C0] ? __pfx_tc_run+0x10/0x10
[ 1305.252984][ C0] ? lock_acquire+0x1c1/0x220
[ 1305.253231][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1305.253520][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1305.253805][ C0] __dev_queue_xmit+0x8eb/0x1ca0
[ 1305.254089][ C0] ? mark_lock+0x38/0x3e0
[ 1305.254342][ C0] ? mark_held_locks+0xa5/0xf0
[ 1305.254608][ C0] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1305.254929][ C0] ? neigh_hh_output+0x348/0x590
[ 1305.255202][ C0] ? vrf_ip_local_out+0x781/0x860 [vrf]
[ 1305.255539][ C0] ip_finish_output2+0x786/0x18e0
[ 1305.255827][ C0] ? __pfx_ip_finish_output2+0x10/0x10
[ 1305.256155][ C0] ? __ip_finish_output+0x3dd/0x770
[ 1305.256446][ C0] ip_output+0x16b/0x4f0
[ 1305.256687][ C0] ? __pfx_ip_output+0x10/0x10
[ 1305.256944][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1305.257259][ C0] ? ip_local_out+0x114/0x3b0
[ 1305.257527][ C0] __ip_queue_xmit+0x672/0x1910
[ 1305.257785][ C0] ? __skb_clone+0x57a/0x760
[ 1305.258050][ C0] __tcp_transmit_skb+0x22b1/0x2d20
[ 1305.258347][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1305.258644][ C0] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 1305.258976][ C0] tcp_write_xmit+0xe42/0x24c0
[ 1305.259242][ C0] ? ipv4_mtu+0x37/0x360
[ 1305.259486][ C0] ? __pfx_tcp_write_xmit+0x10/0x10
[ 1305.259775][ C0] ? __pfx_tcp_current_mss+0x10/0x10
[ 1305.260088][ C0] __tcp_push_pending_frames+0x96/0x320
[ 1305.260396][ C0] tcp_rcv_state_process+0x81e/0x1fd0
[ 1305.260814][ C0] ? tcp_v4_rcv+0x2159/0x29b0
[ 1305.261131][ C0] ? hlock_class+0x4e/0x130
[ 1305.261502][ C0] ? __lock_acquired+0x18a/0x6b0
[ 1305.261885][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1305.262355][ C0] ? __pfx___lock_acquired+0x10/0x10
[ 1305.262797][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1305.263248][ C0] tcp_v4_do_rcv+0x154/0x850
[ 1305.263643][ C0] tcp_v4_rcv+0x235a/0x29b0
[ 1305.264023][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1305.264410][ C0] ? __pfx_raw_v4_input+0x10/0x10
[ 1305.264828][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1305.265285][ C0] ip_protocol_deliver_rcu+0x93/0x360
[ 1305.265722][ C0] ip_local_deliver_finish+0x2ae/0x450
[ 1305.266159][ C0] ip_local_deliver+0x19d/0x480
[ 1305.266553][ C0] ? __pfx_ip_local_deliver+0x10/0x10
[ 1305.267007][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1305.267516][ C0] ip_rcv+0x564/0x740
[ 1305.267851][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1305.268220][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 1305.268643][ C0] ? process_backlog+0x1ed/0x5e0
[ 1305.269043][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1305.269414][ C0] __netif_receive_skb_one_core+0x166/0x1b0
[ 1305.269908][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1305.270430][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1305.270881][ C0] ? lock_acquire+0x1c1/0x220
[ 1305.271276][ C0] ? process_backlog+0x1ed/0x5e0
[ 1305.271605][ C0] process_backlog+0xd3/0x5e0
[ 1305.271891][ C0] __napi_poll.constprop.0+0xa5/0x450
[ 1305.272200][ C0] net_rx_action+0x440/0xb40
[ 1305.272494][ C0] ? __pfx_net_rx_action+0x10/0x10
[ 1305.272782][ C0] ? kvm_clock_get_cycles+0x18/0x30
[ 1305.273084][ C0] ? ktime_get+0x70/0x190
[ 1305.273323][ C0] ? hrtimer_interrupt+0x30e/0x770
[ 1305.273604][ C0] ? __pfx_lapic_next_deadline+0x10/0x10
[ 1305.273912][ C0] ? clockevents_program_event+0x1ed/0x300
[ 1305.274248][ C0] __do_softirq+0x1bc/0x7ff
[ 1305.274505][ C0] irq_exit_rcu+0x98/0xc0
[ 1305.274750][ C0] sysvec_apic_timer_interrupt+0x75/0x80
[ 1305.275057][ C0]
[ 1305.275231][ C0]
[ 1305.275410][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1305.275745][ C0] RIP: 0010:default_idle+0xf/0x20
[ 1305.276045][ C0] 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
[ 1305.277097][ C0] RSP: 0018:ffffffffa8a07df8 EFLAGS: 00000202
[ 1305.277431][ C0] RAX: 0000000001e922bf RBX: 1ffffffff5140fc1 RCX: ffffffffa7a46832
[ 1305.277856][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa54969c6
[ 1305.278286][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006a7eea4
[ 1305.278712][ C0] R10: ffff8880353f7523 R11: ffff8880353fc348 R12: 0000000000000000
[ 1305.279132][ C0] R13: ffffffffa8a1ce00 R14: dffffc0000000000 R15: 0000000000013d50
[ 1305.279563][ C0] ? ct_kernel_exit.constprop.0+0xc2/0xe0
[ 1305.279880][ C0] ? cpuidle_idle_call+0x1f6/0x280
[ 1305.280262][ C0] default_idle_call+0x69/0xa0
[ 1305.280589][ C0] cpuidle_idle_call+0x1f6/0x280
[ 1305.280994][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10
[ 1305.281427][ C0] do_idle+0xfb/0x160
[ 1305.281755][ C0] cpu_startup_entry+0x55/0x60
[ 1305.282139][ C0] rest_init+0x153/0x260
[ 1305.282482][ C0] ? acpi_enable_subsystem+0xac/0x150
[ 1305.282922][ C0] arch_call_rest_init+0x13/0x40
[ 1305.283327][ C0] start_kernel+0x314/0x3d0
[ 1305.283693][ C0] x86_64_start_reservations+0x18/0x30
[ 1305.284142][ C0] x86_64_start_kernel+0xba/0x110
[ 1305.284543][ C0] secondary_startup_64_no_verify+0x16d/0x17b
[ 1305.285041][ C0]
[ 1321.310790][ T4028] ncat (4028) 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__->