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 ]
[ 1143.396495] 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 ]
[ 1148.205647] ping (5485) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 1149.599674]
[ 1149.599798] ============================================
[ 1149.600156] WARNING: possible recursive locking detected
[ 1149.600529] 6.8.0-rc4-virtme #1 Not tainted
[ 1149.600821] --------------------------------------------
[ 1149.601196] ncat/5614 is trying to acquire lock:
[ 1149.601524] ffff8e9382b301d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1149.602048]
[ 1149.602048] but task is already holding lock:
[ 1149.602343] ffff8e9382b30dd8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1149.602744]
[ 1149.602744] other info that might help us debug this:
[ 1149.603076] Possible unsafe locking scenario:
[ 1149.603076]
[ 1149.603375] CPU0
[ 1149.603504] ----
[ 1149.603632] lock(slock-AF_INET/1);
[ 1149.603817] lock(slock-AF_INET/1);
[ 1149.604014]
[ 1149.604014] *** DEADLOCK ***
[ 1149.604014]
[ 1149.604317] May be due to missing lock nesting notation
[ 1149.604317]
[ 1149.604668] 8 locks held by ncat/5614:
[ 1149.604862] #0: ffffffff925678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x76/0x260
[ 1149.605298] #1: ffffffff925678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1149.605777] #2: ffff8e9382b30dd8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1149.606202] #3: ffffffff925678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1149.606637] #4: ffffffff925678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1149.607085] #5: ffffffff92567880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1149.607553] #6: ffffffff925678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1149.608007] #7: ffffffff925678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1149.608488]
[ 1149.608488] stack backtrace:
[ 1149.608718] CPU: 3 PID: 5614 Comm: ncat Not tainted 6.8.0-rc4-virtme #1
[ 1149.609071] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1149.609671] Call Trace:
[ 1149.609805]
[ 1149.609926] dump_stack_lvl+0x4b/0x80
[ 1149.610133] __lock_acquire+0x1215/0x1750
[ 1149.610353] ? sk_filter_trim_cap+0x53/0x360
[ 1149.610577] lock_acquire+0xc1/0x2b0
[ 1149.610770] ? tcp_v4_rcv+0xdb5/0xef0
[ 1149.610962] ? sk_filter_trim_cap+0x11a/0x360
[ 1149.611193] _raw_spin_lock_nested+0x2e/0x40
[ 1149.611420] ? tcp_v4_rcv+0xdb5/0xef0
[ 1149.611618] tcp_v4_rcv+0xdb5/0xef0
[ 1149.611804] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1149.612048] ip_local_deliver_finish+0xaf/0x180
[ 1149.612280] __netif_receive_skb_one_core+0x8b/0xa0
[ 1149.612536] netif_receive_skb+0x87/0x2c0
[ 1149.612747] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1149.613020] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1149.613282] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1149.613554] tcf_action_exec+0xac/0x230
[ 1149.613762] fl_classify+0x20e/0x260 [cls_flower]
[ 1149.614037] ? __bfs+0xf3/0x240
[ 1149.614204] ? check_irq_usage+0x19c/0xc40
[ 1149.614421] ? __skb_flow_dissect+0xc9/0x2d60
[ 1149.614647] ? check_path.constprop.0+0x24/0x50
[ 1149.614880] ? check_noncircular+0x81/0x150
[ 1149.615093] ? __skb_flow_dissect+0x2fb/0x2d60
[ 1149.615321] ? find_held_lock+0x2b/0x80
[ 1149.615519] ? __lock_acquire+0xa6e/0x1750
[ 1149.615732] tcf_classify+0x17a/0x540
[ 1149.615929] tc_run+0x9f/0x150
[ 1149.616092] __dev_queue_xmit+0x311/0x1180
[ 1149.616320] ? mark_held_locks+0x49/0x80
[ 1149.616523] ? eth_header+0x2a/0xc0
[ 1149.616722] ip_finish_output2+0x22d/0xa20
[ 1149.616950] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1149.617184] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1149.617397] __ip_queue_xmit+0x1d5/0x6f0
[ 1149.617623] __tcp_transmit_skb+0xb66/0xd30
[ 1149.617844] ? __alloc_skb+0xdc/0x1a0
[ 1149.618046] tcp_rcv_state_process+0x4e9/0x11f0
[ 1149.618339] ? tcp_v4_rcv+0xdb5/0xef0
[ 1149.618567] ? tcp_v4_do_rcv+0x64/0x360
[ 1149.618767] tcp_v4_do_rcv+0x64/0x360
[ 1149.618957] tcp_v4_rcv+0xe4f/0xef0
[ 1149.619205] ? process_backlog+0x76/0x260
[ 1149.619479] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1149.619769] ip_local_deliver_finish+0xaf/0x180
[ 1149.620074] __netif_receive_skb_one_core+0x8b/0xa0
[ 1149.620356] process_backlog+0x83/0x260
[ 1149.620561] __napi_poll.constprop.0+0x27/0x1e0
[ 1149.620861] net_rx_action+0x2c8/0x350
[ 1149.621109] __do_softirq+0xc8/0x37a
[ 1149.621359] ? inet_shutdown+0xa8/0x100
[ 1149.621630] do_softirq+0x4d/0x90
[ 1149.621831]
[ 1149.621981]
[ 1149.622137] __local_bh_enable_ip+0xbf/0xe0
[ 1149.622351] inet_shutdown+0xa8/0x100
[ 1149.622541] __sys_shutdown+0x45/0x90
[ 1149.622738] __x64_sys_shutdown+0x14/0x20
[ 1149.622941] do_syscall_64+0xc9/0x1e0
[ 1149.623131] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1149.623390] RIP: 0033:0x7f4db6319beb
[ 1149.623576] 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
[ 1149.624558] RSP: 002b:00007fff1d
DETECTED CRASH, lowering timeout
b26bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000030
[ 1149.624957] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f4db6319beb
[ 1149.625317] RDX: 0000555833693420 RSI: 0000000000000001 RDI: 0000000000000008
[ 1149.625680] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
[ 1149.626036] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1149.626398] R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
[ 1149.626765]
# [ 1149.937800] ncat (5615) 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__->