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
# 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 ]
[ 880.885220] ping (2906) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 882.385691]
[ 882.385846] ============================================
[ 882.386262] WARNING: possible recursive locking detected
[ 882.386640] 6.8.0-rc3-virtme #1 Not tainted
[ 882.386858] --------------------------------------------
[ 882.387135] ncat/3032 is trying to acquire lock:
[ 882.387393] ffff88f2449e00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 882.387909]
[ 882.387909] but task is already holding lock:
[ 882.388204] ffff88f2449e0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 882.388607]
[ 882.388607] other info that might help us debug this:
[ 882.388968] Possible unsafe locking scenario:
[ 882.388968]
[ 882.389409] CPU0
[ 882.389594] ----
[ 882.389794] lock(slock-AF_INET/1);
[ 882.390016] lock(slock-AF_INET/1);
[ 882.390202]
[ 882.390202] *** DEADLOCK ***
[ 882.390202]
[ 882.390561] May be due to missing lock nesting notation
[ 882.390561]
[ 882.391077] 8 locks held by ncat/3032:
[ 882.391375] #0: ffffffff93d678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 882.392015] #1: ffffffff93d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 882.392716] #2: ffff88f2449e0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 882.393342] #3: ffffffff93d678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 882.393987] #4: ffffffff93d678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 882.394632] #5: ffffffff93d67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 882.395303] #6: ffffffff93d678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 882.395950] #7: ffffffff93d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 882.396669]
[ 882.396669] stack backtrace:
[ 882.397001] CPU: 0 PID: 3032 Comm: ncat Not tainted 6.8.0-rc3-virtme #1
[ 882.397500] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 882.398367] Call Trace:
[ 882.398570]
[ 882.398743] dump_stack_lvl+0x4b/0x80
[ 882.399035] __lock_acquire+0x1215/0x1750
[ 882.399347] ? sk_filter_trim_cap+0x53/0x360
[ 882.399685] lock_acquire+0xc1/0x2b0
[ 882.399964] ? tcp_v4_rcv+0xdb5/0xef0
[ 882.400253] ? sk_filter_trim_cap+0x11a/0x360
[ 882.400610] _raw_spin_lock_nested+0x2e/0x40
[ 882.400942] ? tcp_v4_rcv+0xdb5/0xef0
[ 882.401235] tcp_v4_rcv+0xdb5/0xef0
[ 882.401511] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 882.401887] ip_local_deliver_finish+0xaf/0x180
[ 882.402249] __netif_receive_skb_one_core+0x8b/0xa0
[ 882.402631] netif_receive_skb+0x87/0x2c0
[ 882.402936] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 882.403338] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 882.403732] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 882.404130] tcf_action_exec+0xac/0x230
[ 882.404354] fl_classify+0x20e
DETECTED CRASH, lowering timeout
/0x260 [cls_flower]
[ 882.404614] ? __bfs+0xf3/0x240
[ 882.404796] ? check_irq_usage+0x19c/0xc40
[ 882.405011] ? __skb_flow_dissect+0xc9/0x2d60
[ 882.405254] ? check_path.constprop.0+0x24/0x50
[ 882.405528] ? check_noncircular+0x81/0x150
[ 882.405750] ? __skb_flow_dissect+0x2fb/0x2d60
[ 882.405980] ? __lock_acquire+0xa6e/0x1750
[ 882.406215] ? skb_flow_dissect_ct+0x6b/0x70
[ 882.406459] tcf_classify+0x17a/0x540
[ 882.406653] tc_run+0x9f/0x150
[ 882.406825] __dev_queue_xmit+0x311/0x1180
[ 882.407054] ? mark_held_locks+0x49/0x80
[ 882.407265] ? eth_header+0x2a/0xc0
[ 882.407464] ip_finish_output2+0x22d/0xa20
[ 882.407693] ? ip_skb_dst_mtu+0x51/0x1c0
[ 882.407898] ? __ip_queue_xmit+0x1d5/0x6f0
[ 882.408120] __ip_queue_xmit+0x1d5/0x6f0
[ 882.408361] __tcp_transmit_skb+0xb65/0xd30
[ 882.408578] ? __alloc_skb+0xdc/0x1a0
[ 882.408775] tcp_rcv_state_process+0x4f3/0x11f0
[ 882.409029] ? tcp_v4_rcv+0xdb5/0xef0
[ 882.409224] ? tcp_v4_do_rcv+0x64/0x360
[ 882.409434] tcp_v4_do_rcv+0x64/0x360
[ 882.409632] tcp_v4_rcv+0xe4f/0xef0
[ 882.409855] ? process_backlog+0x6f/0x260
[ 882.410069] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 882.410302] ip_local_deliver_finish+0xaf/0x180
[ 882.410542] __netif_receive_skb_one_core+0x8b/0xa0
[ 882.410816] process_backlog+0x7c/0x260
[ 882.411020] __napi_poll.constprop.0+0x27/0x1e0
[ 882.411261] net_rx_action+0x2be/0x340
[ 882.411476] __do_softirq+0xc8/0x37a
[ 882.411668] ? tcp_recvmsg+0x80/0x200
[ 882.411864] do_softirq+0x4d/0x90
[ 882.412055]
[ 882.412179]
[ 882.412331] __local_bh_enable_ip+0xbf/0xe0
[ 882.412562] tcp_recvmsg+0x80/0x200
[ 882.412751] inet_recvmsg+0x70/0x260
[ 882.412941] __sys_recvfrom+0x168/0x1a0
[ 882.413160] ? do_pselect.constprop.0+0xde/0x170
[ 882.413417] ? task_mm_cid_work+0x18b/0x3c0
[ 882.413638] ? restore_fpregs_from_fpstate+0x47/0xd0
[ 882.413896] __x64_sys_recvfrom+0x24/0x30
[ 882.414117] do_syscall_64+0xc9/0x1e0
[ 882.414317] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 882.414578] RIP: 0033:0x7f9922f494c0
[ 882.414788] Code: 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20
[ 882.415718] RSP: 002b:00007fff855e9048 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 882.416107] RAX: ffffffffffffffda RBX: 000055972de01a20 RCX: 00007f9922f494c0
[ 882.416483] RDX: 0000000000002000 RSI: 00007fff855e90d0 RDI: 0000000000000008
[ 882.416883] RBP: 00007fff855e90d0 R08: 0000000000000000 R09: 0000000000000000
[ 882.417410] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 882.417859] R13: 000055972de01a20 R14: 0000000000000000 R15: 00007fff855e90cc
[ 882.418352]
[ 890.114712] ncat (3033) used greatest stack depth: 10680 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__->