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 ]
[ 1111.697405] tc (3367) used greatest stack depth: 11720 bytes left
[ 1113.870350] ping (3502) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1116.963786]
[ 1116.963909] ============================================
[ 1116.964217] WARNING: possible recursive locking detected
[ 1116.964533] 6.8.0-rc2-virtme #1 Not tainted
[ 1116.964772] --------------------------------------------
[ 1116.965057] ncat/3641 is trying to acquire lock:
[ 1116.965322] ffff8bc685b880b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1116.965774]
[ 1116.965774] but task is already holding lock:
[ 1116.966100] ffff8bc685b88cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1116.966532]
[ 1116.966532] other info that might help us debug this:
[ 1116.966900] Possible unsafe locking scenario:
[ 1116.966900]
[ 1116.967247] CPU0
[ 1116.967389] ----
[ 1116.967529] lock(slock-AF_INET/1);
[ 1116.967732] lock(slock-AF_INET/1);
[ 1116.967957]
[ 1116.967957] *** DEADLOCK ***
[ 1116.967957]
[ 1116.968272] May be due to missing lock nesting notation
[ 1116.968272]
[ 1116.968643] 8 locks held by ncat/3641:
[ 1116.968853] #0: ffffffffb9b678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1116.969328] #1: ffffffffb9b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1116.969931] #2: ffff8bc685b88cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1116.970377] #3: ffffffffb9b678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1116.970838] #4: ffffffffb9b678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1116.971454] #5: ffffffffb9b67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1116.972160] #6: ffffffffb9b678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1116.972852] #7: ffffffffb9b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1116.973574]
[ 1116.973574] stack backtrace:
[ 1116.973931] CPU: 2 PID: 3641 Comm: ncat Not tainted 6.8.0-rc2-virtme #1
[ 1116.974479] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1116.975369] Call Trace:
[ 1116.975585]
[ 1116.975787] dump_stack_lvl+0x4b/0x80
[ 1116.976089] __lock_acquire+0x1215/0x1750
[ 1116.976440] ? sk_filter_trim_cap+0x53/0x360
[ 1116.976789] lock_acquire+0xc1/0x2b0
[ 1116.977089] ? tcp_v4_rcv+0xdb5/0xef0
[ 1116.977422] ? sk_filter_trim_cap+0x11a/0x360
[ 1116.977774] _raw_spin_lock_nested+0x2e/0x40
[ 1116.978127] ? tcp_v4_rcv+0xdb5/0xef0
[ 1116.978451] tcp_v4_rcv+0xdb5/0xef0
[ 1116.978739] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1116.979105] ip_local_deliver_finish+0xaf/0x180
[ 1116.979485] __netif_receive_skb_one_core+0x8b/0xa0
[ 1116.979884] netif_receive_skb+0x87/0x2c0
[ 1116.980234] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1116.980651] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1116.981055] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1116.981372] tcf_action_exec+0xaf/0x230
[ 1116.981595] fl_classify+0x20e/0x260 [cls_flower]
[ 1116.981860] ? __pfx_usage_match+0x10/0x10
[ 1116.982136] ? __bfs+0xf6/0x240
[ 1116.982373] ? check_irq_usage+0x19c/0xc40
[ 1116.982697] ? __skb_flow_dissect+0xc9/0x2d60
[ 1116.983015] ? check_path.constprop.0+0x24/0x50
[ 1116.983387] ? check_noncircular+0x81/0x150
[ 1116.983678] ? __skb_flow_dissect+0x2fb/0x2d60
[ 1116.984028] ? __lock_acquire+0xa6e/0x1750
[ 1116.984381] tcf_classify+0x17d/0x540
[ 1116.984688] tc_run+0x9f/0x150
[ 1116.984959] __dev_queue_xmit+0x311/0x1180
[ 1116.985307] ? mark_held_locks+0x49/0x80
[ 1116.985639] ? eth_header+0x2a/0xc0
[ 1116.985932] ip_finish_output2+0x230/0xa20
[ 1116.986275] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1116.986600] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1116.986944] __ip_queue_xmit+0x1d5/0x6f0
[ 1116.987275] __tcp_transmit_skb+0xb65/0xd30
[ 1116.987609] ? __alloc_skb+0xdc/0x1a0
[ 1116.987940] tcp_rcv_state_process+0x4f3/0x11f0
[ 1116.988317] ? tcp_v4_rcv+0xdb5/0xef0
[ 1116.988625] ? tcp_v4_do_rcv+0x64/0x360
[ 1116.988949] tcp_v4_do_rcv+0x64/0x360
[ 1116.989255] tcp_v4_rcv+0xe4f/0xef0
[ 1116.989557] ? process_backlog+0x6f/0x260
[ 1116.989882] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1116.990140] ip_local_deliver_finish+0xaf/0x180
[ 1116.990406] __netif_receive_skb_one_core+0x8b/0xa0
[ 1116.990680] process_backlog+0x7c/0x260
[ 1116.990904] __napi_poll.constprop.0+0x2a/0x1e0
[ 1116.991156] net_rx_action+0x2be/0x340
[ 1116.991368] __do_softirq+0xcb/0x37a
[ 1116.991577] ? tcp_recvmsg+0x80/0x200
[ 1116.991787] do_softirq+0x4d/0x90
[ 1116.991984]
[ 1116.992116]
[ 1116.992253] __local_bh_enable_ip+0xbf/0xe0
[ 1116.992492] tcp_recvmsg+0x80/0x200
[ 1116.992699] inet_recvmsg+0x70/0x260
[ 1116.992915] __sys_recvfrom+0x168/0x1a0
[ 1116.993137] ? do_pselect.constprop.0+0xde/0x170
[ 1116.993398] ? task_mm_cid_work+0x18b/0x3c0
[ 1116.993639] __x64_sys_recvfrom+0x24/0x30
[ 1116.993866] do_syscall_64+0xcc/0x1e0
[ 1116.994079] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1116.994381] RIP: 0033:0x7f3bf43624c0
[ 1116.994657] 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
[ 1116.996109] RSP: 002b:00007ffd7736c1c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 1116.996710] RAX: ffffffffffffffda RBX: 000056473d108a20 RCX: 00007f3bf43624c0
[ 1116.997278] RDX: 0000000000002000 RSI: 00007ffd7736c250 RDI: 0000000000000008
[ 1116.997843] RBP: 00007ffd7736c250 R08: 0000000000000000 R09: 0000000000000000
[ 1116.998403] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1116.998960] R13: 000056473d108a20 R14: 0000000000000000 R15: 00007ffd7736c24c
[ 1116.999537]
[ 1159.845966] ncat (3642) 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__->