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 10800
# selftests: net/forwarding: tc_actions.sh
[ 1176.093577] veth1: left promiscuous mode
[ 1181.339444] tc (17831) used greatest stack depth: 11696 bytes left
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 1183.684017] 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 ]
[ 1186.273732] tc (18302) used greatest stack depth: 11552 bytes left
[ 1188.472716] ping (18425) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 1189.865689]
[ 1189.865854] ============================================
[ 1189.866255] WARNING: possible recursive locking detected
[ 1189.866658] 6.8.0-rc2-virtme #1 Not tainted
[ 1189.866981] --------------------------------------------
[ 1189.867397] ncat/18554 is trying to acquire lock:
[ 1189.867755] ffff9149c38100b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1189.868360]
[ 1189.868360] but task is already holding lock:
[ 1189.868799] ffff9149c3810cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1189.869377]
[ 1189.869377] other info that might help us debug this:
[ 1189.869870] Possible unsafe locking scenario:
[ 1189.869870]
[ 1189.870335] CPU0
[ 1189.870537] ----
[ 1189.870732] lock(slock-AF_INET/1);
[ 1189.871000] lock(slock-AF_INET/1);
[ 1189.871263]
[ 1189.871263] *** DEADLOCK ***
[ 1189.871263]
[ 1189.871694] May be due to missing lock nesting notation
[ 1189.871694]
[ 1189.872184] 8 locks held by ncat/18554:
[ 1189.872468] #0: ffffffff8cd678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1189.873090] #1: ffffffff8cd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1189.873759] #2: ffff9149c3810cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1189.874350] #3: ffffffff8cd678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1189.874976] #4: ffffffff8cd678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1189.875609] #5: ffffffff8cd67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1189.876251] #6: ffffffff8cd678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1189.876875] #7: ffffffff8cd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1189.877542]
[ 1189.877542] stack backtrace:
[ 1189.877889] CPU: 2 PID: 18554 Comm: ncat Not tainted 6.8.0-rc2-virtme #1
[ 1189.878407] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1189.879279] Call Trace:
[ 1189.879484]
[ 1189.879651] dump_stack_lvl+0x4b/0x80
[ 1189.879899] __lock_acquire+0x1215/0x1750
[ 1189.880110] ? sk_filter_trim_cap+0x53/0x360
[ 1189.880334] lock_acquire+0xc1/0x2b0
[ 1189.880521] ? tcp_v4_rcv+0xdba/0xf00
[ 1189.880724] ? sk_filter_trim_cap+0x11a/0x360
[ 1189.880949] _raw_spin_lock_nested+0x2e/0x40
[ 1189.881171] ? tcp_v4_rcv+0xdba/0xf00
[ 1189.881359] tcp_v4_rcv+0xdba/0xf00
[ 1189.881552] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1189.881792] ip_local_deliver_finish+0xaf/0x180
[ 1189.882031] __netif_receive_skb_one_core+0x8b/0xa0
[ 1189.882284] netif_receive_skb+0x87/0x2c0
[ 1189.882491] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1189.882769] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1189.883023] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1189.883299] tcf_action_exec+0xac/0x230
[ 1189.883500] fl_classify+0x20e/0x260 [cls_flower]
[ 1189.883754] ? __bfs+0xf3/0x240
[ 1189.883918] ? check_irq_usage+0x19c/0xc40
[ 1189.884131] ? lock_acquire+0xc1/0x2b0
[ 1189.884325] ? __skb_flow_dissect+0xc9/0x2d60
[ 1189.884562] ? check_path.constprop.0+0x24/0x50
[ 1189.884794] ? check_noncircular+0x81/0x150
[ 1189.885012] ? __lock_acquire+0xa6e/0x1750
[ 1189.885223] tcf_classify+0x17a/0x540
[ 1189.885416] tc_run+0x9f/0x150
[ 1189.885592] __dev_queue_xmit+0x311/0x1180
[ 1189.885802] ? mark_held_locks+0x49/0x80
[ 1189.886003] ? eth_header+0x2a/0xc0
[ 1189.886187] ip_finish_output2+0x22d/0xa20
[ 1189.886400] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1189.886612] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1189.886821] __ip_queue_xmit+0x1d5/0x6f0
[ 1189.887026] __tcp_transmit_skb+0xb65/0xd30
[ 1189.887243] ? __alloc_skb+0xdc/0x1a0
[ 1189.887447] tcp_rcv_state_process+0x4fb/0x1230
[ 1189.887705] ? lock_acquire+0xc1/0x2b0
[ 1189.887900] ? tcp_v4_rcv+0xdba/0xf00
[ 1189.888090] ? tcp_v4_do_rcv+0x85/0x3a0
[ 1189.888287] tcp_v4_do_rcv+0x85/0x3a0
[ 1189.888477] tcp_v4_rcv+0xe54/0xf00
[ 1189.888673] ? process_backlog+0x6f/0x260
[ 1189.888881] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1189.889113] ip_local_deliver_finish+0xaf/0x180
[ 1189.889346] __netif_receive_skb_one_core+0x8b/0xa0
[ 1189.889608] process_backlog+0x7c/0x260
[ 1189.889806] __napi_poll.constprop.0+0x27/0x1e0
[ 1189.890040] net_rx_action+0x2be/0x340
[ 1189.890235] __do_softirq+0xc8/0x37a
[ 1189.890423] ? inet_shutdown+0xa8/0x100
[ 1189.890633] do_softirq+0x4d/0x90
[ 1189.890811]
[ 1189.890925]
[ 1189.891038] __local_bh_enable_ip+0xbf/0xe0
[ 1189.891251] inet_shutdown+0xa8/0x100
[ 1189.891440] __sys_shutdown+0x45/0x90
[ 1189.891679] __x64_sys_shutdown+0x14/0x20
[ 1189.891887] do_syscall_64+0xc9/0x1e0
[ 1189.892080] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1189.892339] RIP: 0033:0x7fd78d468beb
[ 1189.892530] Code: 73 01 c3 48 8b 0d 15 92 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 30 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e5 91 1b 00 f7 d8 64 89 01 48
[ 1189.893454] RSP: 002b:00007ffebf5de008 EFLAGS: 00000246 ORIG_RAX: 0000000000000030
[ 1189.893858] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007fd78d468beb
[ 1189.894214] RDX: 000055ecb3034420 RSI: 0000000000000001 RDI: 0000000000000008
[ 1189.894582] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
[ 1189.894939] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1189.895297] R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
[ 1189.895725]
# [ 1190.276818] ncat (18555) used greatest stack depth: 10664 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__->