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 ] [ 1142.331944] 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 ] [ 1144.987710] tc (5373) used greatest stack depth: 11552 bytes left [ 1147.182034] ping (5486) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1148.685889] [ 1148.686007] ============================================ [ 1148.686309] WARNING: possible recursive locking detected [ 1148.686589] 6.8.0-rc2-virtme #1 Not tainted [ 1148.686813] -------------------------------------------- [ 1148.687110] ksoftirqd/3/32 is trying to acquire lock: [ 1148.687378] ffff8a0844b48cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1148.687811] [ 1148.687811] but task is already holding lock: [ 1148.688109] ffff8a0844b480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1148.688519] [ 1148.688519] other info that might help us debug this: [ 1148.688853] Possible unsafe locking scenario: [ 1148.688853] [ 1148.689183] CPU0 [ 1148.689330] ---- [ 1148.689469] lock(slock-AF_INET/1); [ 1148.689667] lock(slock-AF_INET/1); [ 1148.689875] [ 1148.689875] *** DEADLOCK *** [ 1148.689875] [ 1148.690208] May be due to missing lock nesting notation [ 1148.690208] [ 1148.690565] 8 locks held by ksoftirqd/3/32: [ 1148.690796] #0: ffffffffb7f678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1148.691254] #1: ffffffffb7f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1148.691868] #2: ffff8a0844b480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1148.692439] #3: ffffffffb7f678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1148.693018] #4: ffffffffb7f678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1148.693696] #5: ffffffffb7f67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1148.694368] #6: ffffffffb7f678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1148.695036] #7: ffffffffb7f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1148.695720] [ 1148.695720] stack backtrace: [ 1148.696073] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1148.696612] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1148.697479] Call Trace: [ 1148.697685] [ 1148.697856] dump_stack_lvl+0x4b/0x80 [ 1148.698152] __lock_acquire+0x1215/0x1750 [ 1148.698474] ? sk_filter_trim_cap+0x53/0x360 [ 1148.698820] lock_acquire+0xc1/0x2b0 [ 1148.699108] ? tcp_v4_rcv+0xdba/0xf00 [ 1148.699397] ? sk_filter_trim_cap+0x11a/0x360 [ 1148.699744] _raw_spin_lock_nested+0x2e/0x40 [ 1148.700075] ? tcp_v4_rcv+0xdba/0xf00 [ 1148.700370] tcp_v4_rcv+0xdba/0xf00 [ 1148.700643] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1148.701003] ip_local_deliver_finish+0xaf/0x180 [ 1148.701365] __netif_receive_skb_one_core+0x8b/0xa0 [ 1148.701744] netif_receive_skb+0x87/0x2c0 [ 1148.702011] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1148.702290] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1148.702567] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1148.702953] tcf_action_exec+0xac/0x230 [ 1148.703252] fl_classify+0x20e/0x260 [cls_flower] [ 1148.703648] ? __bfs+0xf3/0x240 [ 1148.703863] ? check_irq_usage+0x19c/0xc40 [ 1148.704186] ? __bfs+0xdf/0x240 [ 1148.704447] ? check_path.constprop.0+0x24/0x50 [ 1148.704742] ? check_noncircular+0x81/0x150 [ 1148.705006] ? __lock_acquire+0xa6e/0x1750 [ 1148.705322] tcf_classify+0x17a/0x540 [ 1148.705614] tc_run+0x9f/0x150 [ 1148.705864] __dev_queue_xmit+0x311/0x1180 [ 1148.706179] ? mark_held_locks+0x49/0x80 [ 1148.706498] ? eth_header+0x2a/0xc0 [ 1148.706777] ip_finish_output2+0x22d/0xa20 [ 1148.707105] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1148.707420] __ip_queue_xmit+0x1d5/0x6f0 [ 1148.707746] __tcp_transmit_skb+0xb65/0xd30 [ 1148.708069] ? mark_held_locks+0x49/0x80 [ 1148.708379] tcp_write_xmit+0x492/0x1410 [ 1148.708704] __tcp_push_pending_frames+0x36/0xc0 [ 1148.709063] tcp_rcv_state_process+0x4db/0x1230 [ 1148.709412] ? lock_acquire+0xc1/0x2b0 [ 1148.709712] ? tcp_v4_rcv+0xdba/0xf00 [ 1148.710009] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1148.710313] tcp_v4_do_rcv+0x85/0x3a0 [ 1148.710612] tcp_v4_rcv+0xe54/0xf00 [ 1148.710895] ? process_backlog+0x6f/0x260 [ 1148.711210] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1148.711567] ip_local_deliver_finish+0xaf/0x180 [ 1148.711926] __netif_receive_skb_one_core+0x8b/0xa0 [ 1148.712306] process_backlog+0x7c/0x260 [ 1148.712600] __napi_poll.constprop.0+0x27/0x1e0 [ 1148.712955] net_rx_action+0x2be/0x340 [ 1148.713258] __do_softirq+0xc8/0x37a [ 1148.713550] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1148.713909] run_ksoftirqd+0x2e/0x40 [ 1148.714199] smpboot_thread_fn+0xd9/0x1d0 [ 1148.714507] kthread+0xda/0x110 [ 1148.714769] ? __pfx_kthread+0x10/0x10 [ 1148.714986] ret_from_fork+0x31/0x50 [ 1148.715198] ? __pfx_kthread+0x10/0x10 [ 1148.715406] ret_from_fork_asm+0x1b/0x30 [ 1148.715633] [ 1148.718921] ncat (5616) used greatest stack depth: 10664 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__->