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 ]
[ 1068.709543] ping (10438) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1070.144066]
[ 1070.144185] ============================================
[ 1070.144498] WARNING: possible recursive locking detected
[ 1070.144794] 6.8.0-rc2-virtme #1 Not tainted
[ 1070.145068] --------------------------------------------
[ 1070.145386] ncat/10571 is trying to acquire lock:
[ 1070.145661] ffff8b7c055000b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1070.146139]
[ 1070.146139] but task is already holding lock:
[ 1070.146462] ffff8b7c05500cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1070.146928]
[ 1070.146928] other info that might help us debug this:
[ 1070.147322] Possible unsafe locking scenario:
[ 1070.147322]
[ 1070.147679] CPU0
[ 1070.147842] ----
[ 1070.147989] lock(slock-AF_INET/1);
[ 1070.148207] lock(slock-AF_INET/1);
[ 1070.148438]
[ 1070.148438] *** DEADLOCK ***
[ 1070.148438]
[ 1070.148786] May be due to missing lock nesting notation
[ 1070.148786]
[ 1070.149181] 8 locks held by ncat/10571:
[ 1070.149418] #0: ffffffff97f678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1070.149922] #1: ffffffff97f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1070.150472] #2: ffff8b7c05500cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1070.150940] #3: ffffffff97f678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1070.151414] #4: ffffffff97f678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1070.151895] #5: ffffffff97f67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1070.152383] #6: ffffffff97f678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1070.152890] #7: ffffffff97f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1070.153403]
[ 1070.153403] stack backtrace:
[ 1070.153667] CPU: 0 PID: 10571 Comm: ncat Not tainted 6.8.0-rc2-virtme #1
[ 1070.154088] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1070.154712] Call Trace:
[ 1070.154853]
[ 1070.154980] dump_stack_lvl+0x4b/0x80
[ 1070.155209] __lock_acquire+0x1215/0x1750
[ 1070.155446] ? sk_filter_trim_cap+0x53/0x360
[ 1070.155698] lock_acquire+0xc1/0x2b0
[ 1070.155900] ? tcp_v4_rcv+0xdba/0xf00
[ 1070.156119] ? sk_filter_trim_cap+0x11a/0x360
[ 1070.156386] _raw_spin_lock_nested+0x2e/0x40
[ 1070.156620] ? tcp_v4_rcv+0xdba/0xf00
[ 1070.156827] tcp_v4_rcv+0xdba/0xf00
[ 1070.157055] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1070.157310] ip_local_deliver_finish+0xaf/0x180
[ 1070.157591] __netif_receive_skb_one_core+0x8b/0xa0
[ 1070.157873] netif_receive_skb+0x87/0x2c0
[ 1070.158094] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1070.158397] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1070.158668] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1070.158986] tcf_action_exec+0xaf/0x230
[ 1070.159200] fl_classify+0x20e/0x260 [cls_flower]
[ 1070.159466] ? __pfx_usage_match+0x10/0x10
[ 1070.159705] ? __bfs+0xf6/0x240
[ 1070.159917] ? check_irq_usage+0x19c/0xc40
[ 1070.160166] ? lock_acquire+0xc1/0x2b0
[ 1070.160381] ? __skb_flow_dissect+0xc9/0x2d60
[ 1070.160639] ? check_path.constprop.0+0x24/0x50
[ 1070.160915] ? check_noncircular+0x81/0x150
[ 1070.161163] ? __lock_acquire+0xa6e/0x1750
[ 1070.161422] tcf_classify+0x17d/0x540
[ 1070.161630] tc_run+0x9f/0x150
[ 1070.161816] __dev_queue_xmit+0x311/0x1180
[ 1070.162050] ? mark_held_locks+0x49/0x80
[ 1070.162280] ? eth_header+0x2a/0xc0
[ 1070.162514] ip_finish_output2+0x230/0xa20
[ 1070.162779] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1070.163004] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1070.163238] __ip_queue_xmit+0x1d5/0x6f0
[ 1070.163489] __tcp_transmit_skb+0xb65/0xd30
[ 1070.163724] ? __alloc_skb+0xdc/0x1a0
[ 1070.163943] tcp_rcv_state_process+0x4fb/0x1230
[ 1070.164226] ? lock_acquire+0xc1/0x2b0
[ 1070.164445] ? tcp_v4_rcv+0xdba/0xf00
[ 1070.164666] ? tcp_v4_do_rcv+0x85/0x3a0
[ 1070.164903] tcp_v4_do_rcv+0x85/0x3a0
[ 1070.165122] tcp_v4_rcv+0xe54/0xf00
[ 1070.165327] ? process_backlog+0x6f/0x260
[ 1070.165560] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1070.165816] ip_local_deliver_finish+0xaf/0x180
[ 1070.166066] __netif_receive_skb_one_core+0x8b/0xa0
[ 1070.166340] process_backlog+0x7c/0x260
[ 1070.166588] __napi_poll.constprop.0+0x2a/0x1e0
[ 1070.166854] net_rx_action+0x2be/0x340
[ 1070.167085] __do_softirq+0xcb/0x37a
[ 1070.167297] ? tcp_recvmsg+0x80/0x200
[ 1070.167518] do_softirq+0x4d/0x90
[ 1070.167707]
[ 1070.167833]
[ 1070.167961] __local_bh_enable_ip+0xbf/0xe0
[ 1070.168219] tcp_recvmsg+0x80/0x200
[ 1070.168438] inet_recvmsg+0x70/0x260
[ 1070.168644] __sys_recvfrom+0x168/0x1a0
[ 1070.168863] ? do_pselect.constprop.0+0xde/0x170
[ 1070.169150] __x64_sys_recvfrom+0x24/0x30
[ 1070.169376] do_syscall_64+0xcc/0x1e0
[ 1070.169584] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1070.169895] RIP: 0033:0x7f0edcb334c0
[ 1070.170108] 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
[ 1070.171091] RSP: 002b:00007ffda989d728 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 1070.171547] RAX: ffffffffffffffda RBX: 00005600bce38a20 RCX: 00007f0edcb334c0
[ 1070.171940] RDX: 0000000000002000 RSI: 00007ffda989d7b0 RDI: 0000000000000008
[ 1070.172340] RBP: 00007ffda989d7b0 R08: 0000000000000000 R09: 0000000000000000
[ 1070.172728] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1070.173125] R13: 00005600bce38a20 R14: 0000000000000000 R15: 00007ffda989d7ac
[ 1070.173550]
[ 1089.926623] ncat (10572) used greatest stack depth: 10656 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__->