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 ]
[ 876.570430] ping (2930) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 912.747723]
[ 912.747821] ============================================
[ 912.748106] WARNING: possible recursive locking detected
[ 912.748381] 6.8.0-rc2-virtme #1 Not tainted
[ 912.748599] --------------------------------------------
[ 912.748876] ncat/3066 is trying to acquire lock:
[ 912.749117] ffff8979850000b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 912.749534]
[ 912.749534] but task is already holding lock:
[ 912.749836] ffff897985000cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 912.750256]
[ 912.750256] other info that might help us debug this:
[ 912.750592] Possible unsafe locking scenario:
[ 912.750592]
[ 912.750898] CPU0
[ 912.751031] ----
[ 912.751164] lock(slock-AF_INET/1);
[ 912.751354] lock(slock-AF_INET/1);
[ 912.751543]
[ 912.751543] *** DEADLOCK ***
[ 912.751543]
[ 912.751850] May be due to missing lock nesting notation
[ 912.751850]
[ 912.752199] 8 locks held by ncat/3066:
[ 912.752398] #0: ffffffff96b678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 912.752837] #1: ffffffff96b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 912.753310] #2: ffff897985000cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 912.753735] #3: ffffffff96b678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 912.754176] #4: ffffffff96b678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 912.754622] #5: ffffffff96b67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 912.755082] #6: ffffffff96b678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 912.755529] #7: ffffffff96b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 912.755999]
[ 912.755999] stack backtrace:
[ 912.756231] CPU: 1 PID: 3066 Comm: ncat Not tainted 6.8.0-rc2-virtme #1
[ 912.756576] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 912.757164] Call Trace:
[ 912.757300]
[ 912.757415] dump_stack_lvl+0x4b/0x80
[ 912.757613] __lock_acquire+0x1215/0x1750
[ 912.757827] ? sk_filter_trim_cap+0x53/0x360
[ 912.758055] lock_acquire+0xc1/0x2b0
[ 912.758246] ? tcp_v4_rcv+0xdb5/0xef0
[ 912.758442] ? sk_filter_trim_cap+0x11a/0x360
[ 912.758671] _raw_spin_lock_nested+0x2e/0x40
[ 912.758901] ? tcp_v4_rcv+0xdb5/0xef0
[ 912.759097] tcp_v4_rcv+0xdb5/0xef0
[ 912.759286] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 912.759525] ip_local_deliver_finish+0xaf/0x180
[ 912.759763] __netif_receive_skb_one_core+0x8b/0xa0
[ 912.760020] netif_receive_skb+0x87/0x2c0
[ 912.760246] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 912.760524] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 912.760784] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 912.761064] tcf_action_exec+0xac/0x230
[ 912.761269] fl_classify+0x20e/0x260 [cls_flower]
[ 912.761525] ? tcf_mirred_act+0xee/0x560 [act_mirred]
[ 912.761791] ? __bfs+0xf3/0x240
[ 912.761963] ? check_irq_usage+0x19c/0xc40
[ 912.762180] ? __skb_flow_dissect+0x2f6/0x2d60
[ 912.762419] ? check_path.constprop.0+0x24/0x50
[ 912.762659] ? check_noncircular+0x81/0x150
[ 912.762880] ? __lock_acquire+0xa6e/0x1750
[ 912.763103] tcf_classify+0x17a/0x540
[ 912.763301] tc_run+0x9f/0x150
[ 912.763467] __dev_queue_xmit+0x311/0x1180
[ 912.763686] ? mark_held_locks+0x49/0x80
[ 912.763894] ip_finish_output2+0x39f/0xa20
[ 912.764110] ? ip_skb_dst_mtu+0x51/0x1c0
[ 912.764321] ? __ip_queue_xmit+0x1d5/0x6f0
[ 912.764537] __ip_queue_xmit+0x1d5/0x6f0
[ 912.764744] __tcp_transmit_skb+0xb65/0xd30
[ 912.764969] ? __alloc_skb+0xdc/0x1a0
[ 912.765165] tcp_rcv_state_process+0x4f3/0x11f0
[ 912.765405] ? tcp_v4_rcv+0xdb5/0xef0
[ 912.765602] ? tcp_v4_do_rcv+0x64/0x360
[ 912.765806] tcp_v4_do_rcv+0x64/0x360
[ 912.766001] tcp_v4_rcv+0xe4f/0xef0
[ 912.766189] ? process_backlog+0x6f/0x260
[ 912.766399] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 912.766639] ip_local_deliver_finish+0xaf/0x180
[ 912.766878] __netif_receive_skb_one_core+0x8b/0xa0
[ 912.767135] process_backlog+0x7c/0x260
[ 912.767339] __napi_poll.constprop.0+0x27/0x1e0
[ 912.767578] net_rx_action+0x2be/0x340
[ 912.767779] __do_softirq+0xc8/0x37a
[ 912.767972] ? tcp_recvmsg+0x80/0x200
[ 912.768170] do_softirq+0x4d/0x90
[ 912.768349]
[ 912.768464]
[ 912.768581] __local_bh_enable_ip+0xbf/0xe0
[ 912.768803] tcp_recvmsg+0x80/0x200
[ 912.768992] inet_recvmsg+0x70/0x260
[ 912.769184] __sys_recvfrom+0x168/0x1a0
[ 912.769391] ? do_pselect.constprop.0+0xde/0x170
[ 912.769637] ? task_mm_cid_work+0x18b/0x3c0
[ 912.769856] ? restore_fpregs_from_fpstate+0x47/0xd0
[ 912.770118] __x64_sys_recvfrom+0x24/0x30
[ 912.770334] do_syscall_64+0xc9/0x1e0
[ 912.770532] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 912.770801] RIP: 0033:0x7fd8f37a44c0
[ 912.770993] 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
[ 912.771942] RSP: 002b:00007ffe69180d38 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 912.772334] RAX: ffffffffffffffda RBX: 000056389c974a20 RCX: 00007fd8f37a44c0
[ 912.772705] RDX: 0000000000002000 RSI: 00007ffe69180dc0 RDI: 0000000000000008
[ 912.773074] RBP: 00007ffe69180dc0 R08: 0000000000000000 R09: 0000000000000000
[ 912.773442] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 912.773809] R13: 000056389c974a20 R14: 0000000000000000 R15: 00007ffe69180dbc
[ 912.774179]
[ 916.596548] ncat (3067) 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__->