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 [ 853.609751] tc (2326) used greatest stack depth: 11696 bytes left # 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 ] [ 858.320474] tc (2924) used greatest stack depth: 11648 bytes left [ 860.462330] ping (3079) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 861.823955] [ 861.824096] ============================================ [ 861.824521] WARNING: possible recursive locking detected [ 861.824899] 6.8.0-rc1-virtme #1 Not tainted [ 861.825199] -------------------------------------------- [ 861.825511] ksoftirqd/0/16 is trying to acquire lock: [ 861.825803] ffff9a27048e00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 861.826306] [ 861.826306] but task is already holding lock: [ 861.826618] ffff9a27048e0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 861.827093] [ 861.827093] other info that might help us debug this: [ 861.827552] Possible unsafe locking scenario: [ 861.827552] [ 861.827907] CPU0 [ 861.828043] ---- [ 861.828241] lock(slock-AF_INET/1); [ 861.828505] lock(slock-AF_INET/1); [ 861.828750] [ 861.828750] *** DEADLOCK *** [ 861.828750] [ 861.829171] May be due to missing lock nesting notation [ 861.829171] [ 861.829648] 8 locks held by ksoftirqd/0/16: [ 861.829957] #0: ffffffff999678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 861.830561] #1: ffffffff999678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 861.831197] #2: ffff9a27048e0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 861.831792] #3: ffffffff999678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 861.832398] #4: ffffffff999678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 861.833017] #5: ffffffff99967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 861.833604] #6: ffffffff999678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 861.834198] #7: ffffffff999678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 861.834825] [ 861.834825] stack backtrace: [ 861.835139] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc1-virtme #1 [ 861.835641] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 861.836367] Call Trace: [ 861.836512] [ 861.836660] dump_stack_lvl+0x4b/0x80 [ 861.836891] __lock_acquire+0x1215/0x1750 [ 861.837141] ? sk_filter_trim_cap+0x53/0x360 [ 861.837400] lock_acquire+0xc1/0x2b0 [ 861.837611] ? tcp_v4_rcv+0xdb5/0xef0 [ 861.837842] ? sk_filter_trim_cap+0x11a/0x360 [ 861.838079] _raw_spin_lock_nested+0x2e/0x40 [ 861.838322] ? tcp_v4_rcv+0xdb5/0xef0 [ 861.838532] tcp_v4_rcv+0xdb5/0xef0 [ 861.838760] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 861.839025] ip_local_deliver_finish+0xaf/0x180 [ 861.839276] __netif_receive_skb_one_core+0x8b/0xa0 [ 861.839557] netif_receive_skb+0x87/0x2c0 [ 861.839804] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 861.840105] tcf_mirred_act+0xee/0x560 [act_mirred] [ 861.840406] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 861.840707] tcf_action_exec+0xaf/0x230 [ 861.840941] fl_classify+0x20e/0x260 [cls_flower] [ 861.841231] ? __pfx_usage_match+0x10/0x10 [ 861.841478] ? __bfs+0xf6/0x240 [ 861.841673] ? check_irq_usage+0x19c/0xc40 [ 861.841918] ? __skb_flow_dissect+0xc9/0x2d60 [ 861.842168] ? check_path.constprop.0+0x24/0x50 [ 861.842441] ? check_noncircular+0x81/0x150 [ 861.842665] ? __skb_flow_dissect+0x2fb/0x2d60 [ 861.842921] ? lock_release+0xbe/0x270 [ 861.843148] ? __lock_acquire+0xa6e/0x1750 [ 861.843383] tcf_classify+0x17d/0x540 [ 861.843605] tc_run+0x9f/0x150 [ 861.843795] __dev_queue_xmit+0x311/0x1180 [ 861.844039] ? mark_held_locks+0x49/0x80 [ 861.844269] ? eth_header+0x2a/0xc0 [ 861.844484] ip_finish_output2+0x230/0xa20 [ 861.844720] ? ip_skb_dst_mtu+0x51/0x1c0 [ 861.844959] ? __ip_queue_xmit+0x1d5/0x6f0 [ 861.845181] __ip_queue_xmit+0x1d5/0x6f0 [ 861.845409] __tcp_transmit_skb+0xb65/0xd30 [ 861.845656] ? __alloc_skb+0xdc/0x1a0 [ 861.845874] tcp_rcv_state_process+0x4f3/0x11f0 [ 861.846149] ? tcp_v4_rcv+0xdb5/0xef0 [ 861.846373] ? tcp_v4_do_rcv+0x64/0x360 [ 861.846597] tcp_v4_do_rcv+0x64/0x360 [ 861.846820] tcp_v4_rcv+0xe4f/0xef0 [ 861.847012] ? process_backlog+0x6f/0x260 [ 861.847242] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 861.847511] ip_local_deliver_finish+0xaf/0x180 [ 861.847771] __netif_receive_skb_one_core+0x8b/0xa0 [ 861.848057] process_backlog+0x7c/0x260 [ 861.848281] __napi_poll.constprop.0+0x2a/0x1e0 [ 861.848549] net_rx_action+0x2be/0x340 [ 861.848756] __do_softirq+0xcb/0x37a [ 861.848968] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 861.849236] run_ksoftirqd+0x2e/0x40 [ 861.849431] smpboot_thread_fn+0xdc/0x1d0 [ 861.849662] kthread+0xdd/0x110 [ 861.849859] ? __pfx_kthread+0x10/0x10 [ 861.850062] ret_from_fork+0x34/0x50 [ 861.850270] ? __pfx_kthread+0x10/0x10 [ 861.850475] ret_from_fork_asm+0x1b/0x30 [ 861.850700] [ 884.003695] ncat (3232) 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__->