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 ]
[ 1070.868509] 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 ]
[ 1073.429374] tc (18454) used greatest stack depth: 11552 bytes left
[ 1075.647627] ping (18577) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1078.804242]
[ 1078.804370] ============================================
[ 1078.804680] WARNING: possible recursive locking detected
[ 1078.805001] 6.8.0-rc1-virtme #1 Not tainted
[ 1078.805238] --------------------------------------------
[ 1078.805565] ncat/18711 is trying to acquire lock:
[ 1078.805842] ffff94ff02a100b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1078.806297]
[ 1078.806297] but task is already holding lock:
[ 1078.806627] ffff94ff02a10cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1078.807075]
[ 1078.807075] other info that might help us debug this:
[ 1078.807461] Possible unsafe locking scenario:
[ 1078.807461]
[ 1078.807800] CPU0
[ 1078.807946] ----
[ 1078.808101] lock(slock-AF_INET/1);
[ 1078.808321] lock(slock-AF_INET/1);
[ 1078.808540]
[ 1078.808540] *** DEADLOCK ***
[ 1078.808540]
[ 1078.808887] May be due to missing lock nesting notation
[ 1078.808887]
[ 1078.809281] 8 locks held by ncat/18711:
[ 1078.809514] #0: ffffffffa37678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1078.810023] #1: ffffffffa37678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1078.810542] #2: ffff94ff02a10cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1078.811014] #3: ffffffffa37678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1078.811514] #4: ffffffffa37678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1078.812006] #5: ffffffffa3767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1078.812514] #6: ffffffffa37678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1078.813023] #7: ffffffffa37678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1078.813510]
[ 1078.813510] stack backtrace:
[ 1078.813761] CPU: 2 PID: 18711 Comm: ncat Not tainted 6.8.0-rc1-virtme #1
[ 1078.814148] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1078.814770] Call Trace:
[ 1078.814917]
[ 1078.815057] dump_stack_lvl+0x4b/0x80
[ 1078.815271] __lock_acquire+0x1215/0x1750
[ 1078.815516] ? sk_filter_trim_cap+0x53/0x360
[ 1078.815773] lock_acquire+0xc1/0x2b0
[ 1078.815979] ? tcp_v4_rcv+0xdb5/0xef0
[ 1078.816190] ? sk_filter_trim_cap+0x11a/0x360
[ 1078.816482] _raw_spin_lock_nested+0x2e/0x40
[ 1078.816731] ? tcp_v4_rcv+0xdb5/0xef0
[ 1078.816942] tcp_v4_rcv+0xdb5/0xef0
[ 1078.817171] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1078.817446] ip_local_deliver_finish+0xaf/0x180
[ 1078.817728] __netif_receive_skb_one_core+0x8b/0xa0
[ 1078.818012] netif_receive_skb+0x87/0x2c0
[ 1078.818271] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1078.818581] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1078.818868] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1078.819158] tcf_action_exec+0xaf/0x230
[ 1078.819388] fl_classify+0x20e/0x260 [cls_flower]
[ 1078.819657] ? __pfx_usage_match+0x10/0x10
[ 1078.819926] ? __bfs+0xf6/0x240
[ 1078.820120] ? check_irq_usage+0x19c/0xc40
[ 1078.820363] ? __skb_flow_dissect+0xc9/0x2d60
[ 1078.820644] ? check_path.constprop.0+0x24/0x50
[ 1078.820923] ? check_noncircular+0x81/0x150
[ 1078.821179] ? __skb_flow_dissect+0x2fb/0x2d60
[ 1078.821442] ? __lock_acquire+0xa6e/0x1750
[ 1078.821688] tcf_classify+0x17d/0x540
[ 1078.821935] tc_run+0x9f/0x150
[ 1078.822130] __dev_queue_xmit+0x311/0x1180
[ 1078.822367] ? mark_held_locks+0x49/0x80
[ 1078.822599] ? eth_header+0x2a/0xc0
[ 1078.822847] ip_finish_output2+0x230/0xa20
[ 1078.823091] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1078.823326] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1078.823566] __ip_queue_xmit+0x1d5/0x6f0
[ 1078.823816] __tcp_transmit_skb+0xb65/0xd30
[ 1078.824054] ? __alloc_skb+0xdc/0x1a0
[ 1078.824256] tcp_rcv_state_process+0x4f3/0x11f0
[ 1078.824498] ? tcp_v4_rcv+0xdb5/0xef0
[ 1078.824726] ? tcp_v4_do_rcv+0x64/0x360
[ 1078.824944] tcp_v4_do_rcv+0x64/0x360
[ 1078.825159] tcp_v4_rcv+0xe4f/0xef0
[ 1078.825358] ? process_backlog+0x6f/0x260
[ 1078.825610] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1078.825864] ip_local_deliver_finish+0xaf/0x180
[ 1078.826142] __netif_receive_skb_one_core+0x8b/0xa0
[ 1078.826416] process_backlog+0x7c/0x260
[ 1078.826645] __napi_poll.constprop.0+0x2a/0x1e0
[ 1078.826901] net_rx_action+0x2be/0x340
[ 1078.827135] __do_softirq+0xcb/0x37a
[ 1078.827348] ? tcp_recvmsg+0x80/0x200
[ 1078.827550] do_softirq+0x4d/0x90
[ 1078.827770]
[ 1078.827896]
[ 1078.828038] __local_bh_enable_ip+0xbf/0xe0
[ 1078.828274] tcp_recvmsg+0x80/0x200
[ 1078.828485] inet_recvmsg+0x70/0x260
[ 1078.828694] __sys_recvfrom+0x168/0x1a0
[ 1078.828914] ? do_pselect.constprop.0+0xde/0x170
[ 1078.829187] ? task_mm_cid_work+0x18b/0x3c0
[ 1078.829431] __x64_sys_recvfrom+0x24/0x30
[ 1078.829669] do_syscall_64+0xcc/0x1e0
[ 1078.829887] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1078.830192] RIP: 0033:0x7f76f34524c0
[ 1078.830397] 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
[ 1078.831400] RSP: 002b:00007ffc11840a68 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 1078.831840] RAX: ffffffffffffffda RBX: 00005608cd1cda20 RCX: 00007f76f34524c0
[ 1078.832235] RDX: 0000000000002000 RSI: 00007ffc11840af0 RDI: 0000000000000008
[ 1078.832646] RBP: 00007ffc11840af0 R08: 0000000000000000 R09: 0000000000000000
[ 1078.833063] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1078.833477] R13: 00005608cd1cda20 R14: 0000000000000000 R15: 00007ffc11840aec
[ 1078.833885]
[ 1111.031094] ncat (18712) 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__->