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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1143.136358] ping (20156) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1147.957824] [ 1147.957951] ============================================ [ 1147.958264] WARNING: possible recursive locking detected [ 1147.958554] 6.8.0-rc1-virtme #1 Not tainted [ 1147.958802] -------------------------------------------- [ 1147.959081] ksoftirqd/3/32 is trying to acquire lock: [ 1147.959376] ffff9373456e8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1147.959803] [ 1147.959803] but task is already holding lock: [ 1147.960142] ffff9373456e80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1147.960569] [ 1147.960569] other info that might help us debug this: [ 1147.960910] Possible unsafe locking scenario: [ 1147.960910] [ 1147.961233] CPU0 [ 1147.961425] ---- [ 1147.961590] lock(slock-AF_INET/1); [ 1147.961794] lock(slock-AF_INET/1); [ 1147.962004] [ 1147.962004] *** DEADLOCK *** [ 1147.962004] [ 1147.962321] May be due to missing lock nesting notation [ 1147.962321] [ 1147.962675] 8 locks held by ksoftirqd/3/32: [ 1147.962902] #0: ffffffff8bb678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1147.963367] #1: ffffffff8bb678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1147.963917] #2: ffff9373456e80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1147.964368] #3: ffffffff8bb678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1147.964830] #4: ffffffff8bb678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1147.965301] #5: ffffffff8bb67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1147.965817] #6: ffffffff8bb678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1147.966281] #7: ffffffff8bb678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1147.966758] [ 1147.966758] stack backtrace: [ 1147.966996] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc1-virtme #1 [ 1147.967379] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1147.968023] Call Trace: [ 1147.968175] [ 1147.968309] dump_stack_lvl+0x4b/0x80 [ 1147.968556] __lock_acquire+0x1215/0x1750 [ 1147.968805] ? sk_filter_trim_cap+0x53/0x360 [ 1147.969044] lock_acquire+0xc1/0x2b0 [ 1147.969245] ? tcp_v4_rcv+0xdb5/0xef0 [ 1147.969453] ? sk_filter_trim_cap+0x11a/0x360 [ 1147.969741] _raw_spin_lock_nested+0x2e/0x40 [ 1147.969996] ? tcp_v4_rcv+0xdb5/0xef0 [ 1147.970205] tcp_v4_rcv+0xdb5/0xef0 [ 1147.970408] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1147.970684] ip_local_deliver_finish+0xaf/0x180 [ 1147.970952] __netif_receive_skb_one_core+0x8b/0xa0 [ 1147.971214] netif_receive_skb+0x87/0x2c0 [ 1147.971436] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1147.971727] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1147.972032] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1147.972317] tcf_action_exec+0xaf/0x230 [ 1147.972540] fl_classify+0x20e/0x260 [cls_flower] [ 1147.972831] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1147.973111] ? __pfx_usage_match+0x10/0x10 [ 1147.973331] ? __bfs+0xf6/0x240 [ 1147.973509] ? check_irq_usage+0x19c/0xc40 [ 1147.973735] ? lock_release+0xbe/0x270 [ 1147.973943] ? check_path.constprop.0+0x24/0x50 [ 1147.974197] ? check_noncircular+0x81/0x150 [ 1147.974497] ? lock_release+0xbe/0x270 [ 1147.974724] ? __lock_acquire+0xa6e/0x1750 [ 1147.974955] tcf_classify+0x17d/0x540 [ 1147.975158] tc_run+0x9f/0x150 [ 1147.975357] __dev_queue_xmit+0x311/0x1180 [ 1147.975638] ? mark_held_locks+0x49/0x80 [ 1147.975870] ip_finish_output2+0x39f/0xa20 [ 1147.976088] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1147.976314] __ip_queue_xmit+0x1d5/0x6f0 [ 1147.976533] __tcp_transmit_skb+0xb65/0xd30 [ 1147.976771] tcp_write_xmit+0x492/0x1410 [ 1147.977031] __tcp_push_pending_frames+0x36/0xc0 [ 1147.977287] tcp_rcv_state_process+0x4d3/0x11f0 [ 1147.977545] ? tcp_v4_rcv+0xdb5/0xef0 [ 1147.977786] ? tcp_v4_do_rcv+0x64/0x360 [ 1147.978019] tcp_v4_do_rcv+0x64/0x360 [ 1147.978222] tcp_v4_rcv+0xe4f/0xef0 [ 1147.978421] ? process_backlog+0x6f/0x260 [ 1147.978662] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1147.978935] ip_local_deliver_finish+0xaf/0x180 [ 1147.979179] __netif_receive_skb_one_core+0x8b/0xa0 [ 1147.979445] process_backlog+0x7c/0x260 [ 1147.979664] __napi_poll.constprop.0+0x2a/0x1e0 [ 1147.979938] net_rx_action+0x2be/0x340 [ 1147.980145] __do_softirq+0xcb/0x37a [ 1147.980348] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1147.980608] run_ksoftirqd+0x2e/0x40 [ 1147.980843] smpboot_thread_fn+0xdc/0x1d0 [ 1147.981081] kthread+0xdd/0x110 [ 1147.981261] ? __pfx_kthread+0x10/0x10 [ 1147.981477] ret_from_fork+0x34/0x50 [ 1147.981710] ? __pfx_kthread+0x10/0x10 [ 1147.981945] ret_from_fork_asm+0x1b/0x30 [ 1147.982188] [ 1168.666925] ncat (20305) 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__->