make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests
make: Entering directory '/home/virtme/testing-2/tools/testing/selftests'
make[1]: Entering directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding'
make[1]: Entering directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding'
TAP version 13
1..1
# timeout set to 0
# selftests: net/forwarding: tc_actions.sh
[ 1091.897941] veth1: left promiscuous mode
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 1099.367688] tc (2928) used greatest stack depth: 11760 bytes left
# TEST: mirred egress flower redirect (skip_hw) [ OK ]
# TEST: mirred egress flower mirror (skip_hw) [ OK ]
# TEST: mirred egress matchall mirror (skip_hw) [ OK ]
[ 1101.848786] tc (3201) used greatest stack depth: 11720 bytes left
[ 1104.036260] ping (3351) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1105.437635]
[ 1105.437749] ============================================
[ 1105.438059] WARNING: possible recursive locking detected
[ 1105.438347] 6.8.0-rc1-virtme #1 Not tainted
[ 1105.438591] --------------------------------------------
[ 1105.438869] swapper/1/0 is trying to acquire lock:
[ 1105.439127] ffff8d0b85a700b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1105.439566]
[ 1105.439566] but task is already holding lock:
[ 1105.439885] ffff8d0b85a70cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1105.440324]
[ 1105.440324] other info that might help us debug this:
[ 1105.440668] Possible unsafe locking scenario:
[ 1105.440668]
[ 1105.441003] CPU0
[ 1105.441140] ----
[ 1105.441300] lock(slock-AF_INET/1);
[ 1105.441495] lock(slock-AF_INET/1);
[ 1105.441704]
[ 1105.441704] *** DEADLOCK ***
[ 1105.441704]
[ 1105.442019] May be due to missing lock nesting notation
[ 1105.442019]
[ 1105.442377] 8 locks held by swapper/1/0:
[ 1105.442611] #0: ffffffffaaf678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1105.443077] #1: ffffffffaaf678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1105.443559] #2: ffff8d0b85a70cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1105.444010] #3: ffffffffaaf678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1105.444460] #4: ffffffffaaf678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1105.444934] #5: ffffffffaaf67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1105.445410] #6: ffffffffaaf678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1105.445883] #7: ffffffffaaf678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1105.446362]
[ 1105.446362] stack backtrace:
[ 1105.446617] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc1-virtme #1
[ 1105.446997] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1105.447599] Call Trace:
[ 1105.447766]
[ 1105.447886] dump_stack_lvl+0x4b/0x80
[ 1105.448109] __lock_acquire+0x1215/0x1750
[ 1105.448353] ? sk_filter_trim_cap+0x53/0x360
[ 1105.448590] lock_acquire+0xc1/0x2b0
[ 1105.448805] ? tcp_v4_rcv+0xdb5/0xef0
[ 1105.449007] ? sk_filter_trim_cap+0x11a/0x360
[ 1105.449245] _raw_spin_lock_nested+0x2e/0x40
[ 1105.449500] ? tcp_v4_rcv+0xdb5/0xef0
[ 1105.449702] tcp_v4_rcv+0xdb5/0xef0
[ 1105.449929] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1105.450174] ip_local_deliver_finish+0xaf/0x180
[ 1105.450439] __netif_receive_skb_one_core+0x8b/0xa0
[ 1105.450700] netif_receive_skb+0x87/0x2c0
[ 1105.450940] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1105.451223] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1105.451506] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1105.451812] tcf_action_exec+0xaf/0x230
[ 1105.452026] fl_classify+0x20e/0x260 [cls_flower]
[ 1105.452302] ? __lock_acquire+0xa6e/0x1750
[ 1105.452544] ? __lock_acquire+0xa6e/0x1750
[ 1105.452788] ? __lock_acquire+0xa6e/0x1750
[ 1105.453012] ? __lock_acquire+0xa6e/0x1750
[ 1105.453249] ? __pfx_cpu_numa_flags+0x8/0x10
[ 1105.453501] ? irq_exit_rcu+0x86/0xa0
[ 1105.453717] ? lock_release+0xbe/0x270
[ 1105.453920] tcf_classify+0x17d/0x540
[ 1105.454122] tc_run+0x9f/0x150
[ 1105.454313] __dev_queue_xmit+0x311/0x1180
[ 1105.454555] ? eth_header+0x2a/0xc0
[ 1105.454764] ip_finish_output2+0x230/0xa20
[ 1105.455004] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1105.455216] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1105.455455] __ip_queue_xmit+0x1d5/0x6f0
[ 1105.455666] __tcp_transmit_skb+0xb65/0xd30
[ 1105.455911] ? __alloc_skb+0xdc/0x1a0
[ 1105.456115] tcp_rcv_state_process+0x4f3/0x11f0
[ 1105.456377] ? tcp_v4_rcv+0xdb5/0xef0
[ 1105.456595] ? tcp_v4_do_rcv+0x64/0x360
[ 1105.456820] tcp_v4_do_rcv+0x64/0x360
[ 1105.457024] tcp_v4_rcv+0xe4f/0xef0
[ 1105.457237] ? process_backlog+0x6f/0x260
[ 1105.457474] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1105.457726] ip_local_deliver_finish+0xaf/0x180
[ 1105.457991] __netif_receive_skb_one_core+0x8b/0xa0
[ 1105.458254] process_backlog+0x7c/0x260
[ 1105.458479] __napi_poll.constprop.0+0x2a/0x1e0
[ 1105.458727] net_rx_action+0x2be/0x340
[ 1105.458951] __do_softirq+0xcb/0x37a
[ 1105.459148] irq_exit_rcu+0x7f/0xa0
[ 1105.459356] sysvec_apic_timer_interrupt+0x78/0x90
[ 1105.459634]
[ 1105.459752]
[ 1105.459894] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1105.460172] RIP: 0010:default_idle+0xf/0x20
[ 1105.460410] 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 d3 2d 40 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90
[ 1105.461393] RSP: 0018:ffff9934800a3ee8 EFLAGS: 00000202
[ 1105.461693] RAX: 0000000000696eab RBX: ffff8d0b81373480 RCX: 4000000000000000
[ 1105.462083] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa95a8a13
[ 1105.462456] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
[ 1105.462850] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[ 1105.463224] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 1105.463619] ? do_idle+0x1e3/0x220
[ 1105.463822] default_idle_call+0x83/0x180
[ 1105.464038] do_idle+0x1e3/0x220
[ 1105.464235] ? finish_task_switch.isra.0+0xf7/0x330
[ 1105.464512] cpu_startup_entry+0x2a/0x30
[ 1105.464740] start_secondary+0xfc/0x100
[ 1105.464972] secondary_startup_64_no_verify+0x16d/0x17b
[ 1105.465262]
[ 1138.054944] ncat (3501) used greatest stack depth: 10672 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-2/tools/testing/selftests/net/forwarding'
make: Leaving directory '/home/virtme/testing-2/tools/testing/selftests'
xx__-> echo $?
0
xx__->