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 0
# selftests: net/forwarding: tc_actions.sh
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 1137.509610] tc (25860) used greatest stack depth: 11752 bytes left
# TEST: mirred egress flower redirect (skip_hw) [ OK ]
# TEST: mirred egress flower mirror (skip_hw) [ OK ]
# TEST: mirred egress matchall mirror (skip_hw) [ OK ]
[ 1139.947637] tc (26153) used greatest stack depth: 11552 bytes left
[ 1142.105993] ping (26298) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 1143.390793]
[ 1143.390954] ============================================
[ 1143.391260] WARNING: possible recursive locking detected
[ 1143.391639] 6.8.0-rc1-virtme #1 Not tainted
[ 1143.391925] --------------------------------------------
[ 1143.392300] ncat/26456 is trying to acquire lock:
[ 1143.392643] ffff8d4485f700b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1143.393221]
[ 1143.393221] but task is already holding lock:
[ 1143.393648] ffff8d4485f70cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1143.394222]
[ 1143.394222] other info that might help us debug this:
[ 1143.394700] Possible unsafe locking scenario:
[ 1143.394700]
[ 1143.395134] CPU0
[ 1143.395310] ----
[ 1143.395484] lock(slock-AF_INET/1);
[ 1143.395755] lock(slock-AF_INET/1);
[ 1143.396001]
[ 1143.396001] *** DEADLOCK ***
[ 1143.396001]
[ 1143.396407] May be due to missing lock nesting notation
[ 1143.396407]
[ 1143.396891] 8 locks held by ncat/26456:
[ 1143.397096] #0: ffffffff907678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1143.397542] #1: ffffffff907678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1143.398090] #2: ffff8d4485f70cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1143.398543] #3: ffffffff907678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1143.399007] #4: ffffffff907678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1143.399574] #5: ffffffff90767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1143.400072] #6: ffffffff907678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1143.400652] #7: ffffffff907678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1143.401278]
[ 1143.401278] stack backtrace:
[ 1143.401583] CPU: 3 PID: 26456 Comm: ncat Not tainted 6.8.0-rc1-virtme #1
[ 1143.402051] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1143.402825] Call Trace:
[ 1143.403011]
[ 1143.403158] dump_stack_lvl+0x4b/0x80
[ 1143.403415] __lock_acquire+0x1215/0x1750
[ 1143.403702] ? sk_filter_trim_cap+0x53/0x360
[ 1143.403987] lock_acquire+0xc1/0x2b0
[ 1143.404244] ? tcp_v4_rcv+0xdb5/0xef0
[ 1143.404486] ? sk_filter_trim_cap+0x11a/0x360
[ 1143.404799] _raw_spin_lock_nested+0x2e/0x40
[ 1143.405090] ? tcp_v4_rcv+0xdb5/0xef0
[ 1143.405353] tcp_v4_rcv+0xdb5/0xef0
[ 1143.405589] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1143.405916] ip_local_deliver_finish+0xaf/0x180
[ 1143.406220] __netif_receive_skb_one_core+0x8b/0xa0
[ 1143.406538] netif_receive_skb+0x87/0x2c0
[ 1143.406835] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1143.407184] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1143.407514] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1143.407805] tcf_action_exec+0xaf/0x230
[ 1143.408057] fl_classify+0x20e/0x260 [cls_flower]
[ 1143.408324] ? __pfx_usage_match+0x10/0x10
[ 1143.408543] ? __bfs+0xf6/0x240
[ 1143.408729] ? check_irq_usage+0x19c/0xc40
[ 1143.408947] ? __skb_flow_dissect+0xc9/0x2d60
[ 1143.409185] ? check_path.constprop.0+0x24/0x50
[ 1143.409427] ? check_noncircular+0x81/0x150
[ 1143.409652] ? __skb_flow_dissect+0x2fb/0x2d60
[ 1143.409895] ? find_held_lock+0x2b/0x80
[ 1143.410100] ? __lock_acquire+0xa6e/0x1750
[ 1143.410320] tcf_classify+0x17d/0x540
[ 1143.410521] tc_run+0x9f/0x150
[ 1143.410692] __dev_queue_xmit+0x311/0x1180
[ 1143.410910] ? mark_held_locks+0x49/0x80
[ 1143.411124] ? eth_header+0x2a/0xc0
[ 1143.411313] ip_finish_output2+0x230/0xa20
[ 1143.411531] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1143.411745] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1143.411963] __ip_queue_xmit+0x1d5/0x6f0
[ 1143.412178] __tcp_transmit_skb+0xb65/0xd30
[ 1143.412402] ? __alloc_skb+0xdc/0x1a0
[ 1143.412598] tcp_rcv_state_process+0x4f3/0x11f0
[ 1143.412838] ? tcp_v4_rcv+0xdb5/0xef0
[ 1143.413034] ? tcp_v4_do_rcv+0x64/0x360
[ 1143.413239] tcp_v4_do_rcv+0x64/0x360
[ 1143.413440] tcp_v4_rcv+0xe4f/0xef0
[ 1143.413629] ? process_backlog+0x6f/0x260
[ 1143.413895] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1143.414194] ip_local_deliver_finish+0xaf/0x180
[ 1143.414545] __netif_receive_skb_one_core+0x8b/0xa0
[ 1143.414919] process_backlog+0x7c/0x260
[ 1143.415216] __napi_poll.constprop.0+0x2a/0x1e0
[ 1143.415567] net_rx_action+0x2be/0x340
[ 1143.415862] __do_softirq+0xcb/0x37a
[ 1143.416144] ? inet_shutdown+0xa8/0x100
[ 1143.416443] do_softirq+0x4d/0x90
[ 1143.416704]
[ 1143.416870]
[ 1143.417038] __local_bh_enable_ip+0xbf/0xe0
[ 1143.417359] inet_shutdown+0xa8/0x100
[ 1143.417641] __sys_shutdown+0x48/0x90
[ 1143.417927] __x64_sys_shutdown+0x14/0x20
[ 1143.418245] do_syscall_64+0xcc/0x1e0
[ 1143.418536] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1143.418935] RIP: 0033:0x7fe2657c5beb
[ 1143.419217] 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
[ 1143.420449] RSP: 002b:00007ffcddc96b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000030
[ 1143.420851] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007fe2657c5beb
[ 1143.421330] RDX: 000055cf50540420 RSI: 0000000000000001 RDI: 0000000000000008
[ 1143.421723] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
[ 1143.422242] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1143.422743] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[ 1143.423257]
# [ 1143.579493] ncat (26457) 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__->