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 ] [ 646.064685] Mirror/redirect action on [ 646.067323] tc (960) used greatest stack depth: 11792 bytes left # TEST: mirred egress flower redirect (skip_hw) [ OK ] [ 647.285535] tc (1084) used greatest stack depth: 11680 bytes left # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 650.874204] ping (1344) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 653.985015] [ 653.985166] ============================================ [ 653.985479] WARNING: possible recursive locking detected [ 653.985760] 6.8.0-rc3-virtme #1 Not tainted [ 653.986024] -------------------------------------------- [ 653.986303] ksoftirqd/0/16 is trying to acquire lock: [ 653.986614] ffff953341ba0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 653.987057] [ 653.987057] but task is already holding lock: [ 653.987380] ffff953341ba00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 653.987838] [ 653.987838] other info that might help us debug this: [ 653.988210] Possible unsafe locking scenario: [ 653.988210] [ 653.988515] CPU0 [ 653.988683] ---- [ 653.988815] lock(slock-AF_INET/1); [ 653.989054] lock(slock-AF_INET/1); [ 653.989244] [ 653.989244] *** DEADLOCK *** [ 653.989244] [ 653.989588] May be due to missing lock nesting notation [ 653.989588] [ 653.989941] 8 locks held by ksoftirqd/0/16: [ 653.990209] #0: ffffffffb65678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 653.990674] #1: ffffffffb65678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 653.991181] #2: ffff953341ba00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 653.991609] #3: ffffffffb65678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x700 [ 653.992114] #4: ffffffffb65678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 653.992661] #5: ffffffffb6567880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 653.993302] #6: ffffffffb65678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 653.993960] #7: ffffffffb65678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 653.994646] [ 653.994646] stack backtrace: [ 653.995034] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc3-virtme #1 [ 653.995570] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 653.996465] Call Trace: [ 653.996663] [ 653.996890] dump_stack_lvl+0x4b/0x80 [ 653.997227] __lock_acquire+0x1215/0x1750 [ 653.997521] ? sk_filter_trim_cap+0x53/0x360 [ 653.997893] lock_acquire+0xc1/0x2b0 [ 653.998174] ? tcp_v4_rcv+0xdb5/0xef0 [ 653.998499] ? sk_filter_trim_cap+0x11a/0x360 [ 653.998836] _raw_spin_lock_nested+0x2e/0x40 [ 653.999208] ? tcp_v4_rcv+0xdb5/0xef0 [ 653.999497] tcp_v4_rcv+0xdb5/0xef0 [ 653.999808] ip_protocol_deliver_rcu+0x4b/0x1e0 DETECTED CRASH, lowering timeout [ 654.000205] ip_local_deliver_finish+0xaf/0x180 [ 654.000558] __netif_receive_skb_one_core+0x8b/0xa0 [ 654.000970] netif_receive_skb+0x87/0x2c0 [ 654.001286] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 654.001719] tcf_mirred_act+0xee/0x560 [act_mirred] [ 654.002135] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 654.002579] tcf_action_exec+0xac/0x230 [ 654.002917] fl_classify+0x20e/0x260 [cls_flower] [ 654.003324] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 654.003743] ? __bfs+0xf3/0x240 [ 654.004022] ? check_irq_usage+0x19c/0xc40 [ 654.004343] ? check_path.constprop.0+0x24/0x50 [ 654.004729] ? check_noncircular+0x81/0x150 [ 654.005057] ? __lock_acquire+0xa6e/0x1750 [ 654.005407] tcf_classify+0x17a/0x540 [ 654.005730] tc_run+0x9f/0x150 [ 654.006015] __dev_queue_xmit+0x311/0x1180 [ 654.006330] ? mark_held_locks+0x49/0x80 [ 654.006674] ip_finish_output2+0x39f/0xa20 [ 654.006980] ? __ip_queue_xmit+0x1d5/0x700 [ 654.007349] __ip_queue_xmit+0x1d5/0x700 [ 654.007680] __tcp_transmit_skb+0xb65/0xd30 [ 654.007974] ? mark_held_locks+0x49/0x80 [ 654.008182] tcp_write_xmit+0x492/0x1400 [ 654.008430] __tcp_push_pending_frames+0x36/0xc0 [ 654.008683] tcp_rcv_state_process+0x4c9/0x11f0 [ 654.008951] ? tcp_v4_rcv+0xdb5/0xef0 [ 654.009146] ? tcp_v4_do_rcv+0x64/0x360 [ 654.009385] tcp_v4_do_rcv+0x64/0x360 [ 654.009585] tcp_v4_rcv+0xe4f/0xef0 [ 654.009817] ? process_backlog+0x6f/0x260 [ 654.010032] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 654.010297] ip_local_deliver_finish+0xaf/0x180 [ 654.010538] __netif_receive_skb_one_core+0x8b/0xa0 [ 654.010861] process_backlog+0x7c/0x260 [ 654.011109] __napi_poll.constprop.0+0x27/0x1e0 [ 654.011351] net_rx_action+0x2be/0x340 [ 654.011580] __do_softirq+0xc8/0x37a [ 654.011778] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 654.012065] run_ksoftirqd+0x2e/0x40 [ 654.012261] smpboot_thread_fn+0xd9/0x1d0 [ 654.012512] kthread+0xda/0x110 [ 654.012692] ? __pfx_kthread+0x10/0x10 [ 654.012931] ret_from_fork+0x31/0x50 [ 654.013159] ? __pfx_kthread+0x10/0x10 [ 654.013360] ret_from_fork_asm+0x1b/0x30 [ 654.013612] [ 682.676649] ncat (1478) 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__->