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 ] [ 1108.431957] tc (3235) used greatest stack depth: 11576 bytes left # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1111.861761] ping (3487) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1118.209997] [ 1118.210117] ============================================ [ 1118.210417] WARNING: possible recursive locking detected [ 1118.210716] 6.8.0-rc2-virtme #1 Not tainted [ 1118.210949] -------------------------------------------- [ 1118.211247] ksoftirqd/3/32 is trying to acquire lock: [ 1118.211544] ffff919505f88cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1118.212090] [ 1118.212090] but task is already holding lock: [ 1118.212543] ffff919505f880b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1118.213159] [ 1118.213159] other info that might help us debug this: [ 1118.213666] Possible unsafe locking scenario: [ 1118.213666] [ 1118.214132] CPU0 [ 1118.214350] ---- [ 1118.214547] lock(slock-AF_INET/1); [ 1118.214848] lock(slock-AF_INET/1); [ 1118.215144] [ 1118.215144] *** DEADLOCK *** [ 1118.215144] [ 1118.215603] May be due to missing lock nesting notation [ 1118.215603] [ 1118.216136] 8 locks held by ksoftirqd/3/32: [ 1118.216480] #0: ffffffffb4d678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1118.217155] #1: ffffffffb4d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1118.217883] #2: ffff919505f880b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1118.218548] #3: ffffffffb4d678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1118.219221] #4: ffffffffb4d678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1118.219916] #5: ffffffffb4d67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1118.220584] #6: ffffffffb4d678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1118.221264] #7: ffffffffb4d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1118.221791] [ 1118.221791] stack backtrace: [ 1118.222044] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1118.222436] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1118.223045] Call Trace: [ 1118.223186] [ 1118.223318] dump_stack_lvl+0x4b/0x80 [ 1118.223545] __lock_acquire+0x1215/0x1750 [ 1118.223778] ? sk_filter_trim_cap+0x53/0x360 [ 1118.224037] lock_acquire+0xc1/0x2b0 [ 1118.224234] ? tcp_v4_rcv+0xdb5/0xef0 [ 1118.224448] ? sk_filter_trim_cap+0x11a/0x360 [ 1118.224715] _raw_spin_lock_nested+0x2e/0x40 [ 1118.224967] ? tcp_v4_rcv+0xdb5/0xef0 [ 1118.225180] tcp_v4_rcv+0xdb5/0xef0 [ 1118.225372] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1118.225633] ip_local_deliver_finish+0xaf/0x180 [ 1118.225893] __netif_receive_skb_one_core+0x8b/0xa0 [ 1118.226161] netif_receive_skb+0x87/0x2c0 [ 1118.226389] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1118.226691] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1118.226966] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1118.227266] tcf_action_exec+0xaf/0x230 [ 1118.227484] fl_classify+0x20e/0x260 [cls_flower] [ 1118.227745] ? arch_stack_walk+0x68/0x100 [ 1118.227980] ? unwind_next_frame+0x388/0x850 [ 1118.228212] ? ret_from_fork_asm+0x1b/0x30 [ 1118.228443] ? unwind_next_frame+0x67/0x850 [ 1118.228706] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 1118.229005] ? __pfx_usage_match+0x10/0x10 [ 1118.229243] ? __bfs+0xf6/0x240 [ 1118.229427] ? check_irq_usage+0x19c/0xc40 [ 1118.229664] ? check_path.constprop.0+0x24/0x50 [ 1118.229954] ? check_noncircular+0x81/0x150 [ 1118.230183] ? save_trace+0x3f/0x3b0 [ 1118.230388] ? __lock_acquire+0xa6e/0x1750 [ 1118.230636] tcf_classify+0x17d/0x540 [ 1118.230847] tc_run+0x9f/0x150 [ 1118.231035] __dev_queue_xmit+0x311/0x1180 [ 1118.231263] ? mark_held_locks+0x49/0x80 [ 1118.231496] ip_finish_output2+0x39f/0xa20 [ 1118.231736] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1118.231964] __ip_queue_xmit+0x1d5/0x6f0 [ 1118.232179] __tcp_transmit_skb+0xb65/0xd30 [ 1118.232415] tcp_write_xmit+0x492/0x1410 [ 1118.232709] __tcp_push_pending_frames+0x36/0xc0 [ 1118.232992] tcp_rcv_state_process+0x4d3/0x11f0 [ 1118.233256] ? tcp_v4_rcv+0xdb5/0xef0 [ 1118.233465] ? tcp_v4_do_rcv+0x64/0x360 [ 1118.233685] tcp_v4_do_rcv+0x64/0x360 [ 1118.233907] tcp_v4_rcv+0xe4f/0xef0 [ 1118.234101] ? process_backlog+0x6f/0x260 [ 1118.234323] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1118.234587] ip_local_deliver_finish+0xaf/0x180 [ 1118.234838] __netif_receive_skb_one_core+0x8b/0xa0 [ 1118.235111] process_backlog+0x7c/0x260 [ 1118.235331] __napi_poll.constprop.0+0x2a/0x1e0 [ 1118.235595] net_rx_action+0x2be/0x340 [ 1118.235804] __do_softirq+0xcb/0x37a [ 1118.236015] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1118.236271] run_ksoftirqd+0x2e/0x40 [ 1118.236472] smpboot_thread_fn+0xdc/0x1d0 [ 1118.236709] kthread+0xdd/0x110 [ 1118.236890] ? __pfx_kthread+0x10/0x10 [ 1118.237110] ret_from_fork+0x34/0x50 [ 1118.237312] ? __pfx_kthread+0x10/0x10 [ 1118.237531] ret_from_fork_asm+0x1b/0x30 [ 1118.237753] [ 1140.917547] ncat (3626) 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__->