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 ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 878.821162] [ 878.821283] ============================================ [ 878.821565] WARNING: possible recursive locking detected [ 878.821843] 6.8.0-rc2-virtme #1 Not tainted [ 878.822092] -------------------------------------------- [ 878.822395] ksoftirqd/3/32 is trying to acquire lock: [ 878.822677] ffff910d45430cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 878.823118] [ 878.823118] but task is already holding lock: [ 878.823440] ffff910d454300b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 878.823920] [ 878.823920] other info that might help us debug this: [ 878.824295] Possible unsafe locking scenario: [ 878.824295] [ 878.824608] CPU0 [ 878.824768] ---- [ 878.824913] lock(slock-AF_INET/1); [ 878.825131] lock(slock-AF_INET/1); [ 878.825333] [ 878.825333] *** DEADLOCK *** [ 878.825333] [ 878.825648] May be due to missing lock nesting notation [ 878.825648] [ 878.826009] 8 locks held by ksoftirqd/3/32: [ 878.826228] #0: ffffffffb53678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 878.826670] #1: ffffffffb53678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 878.827155] #2: ffff910d454300b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 878.827628] #3: ffffffffb53678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 878.828113] #4: ffffffffb53678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 878.828560] #5: ffffffffb5367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 878.829038] #6: ffffffffb53678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 878.829527] #7: ffffffffb53678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 878.830022] [ 878.830022] stack backtrace: [ 878.830304] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 878.830688] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 878.831300] Call Trace: [ 878.831438] [ 878.831588] dump_stack_lvl+0x4b/0x80 [ 878.831808] __lock_acquire+0x1215/0x1750 [ 878.832038] ? sk_filter_trim_cap+0x53/0x360 [ 878.832275] lock_acquire+0xc1/0x2b0 [ 878.832467] ? tcp_v4_rcv+0xdba/0xf00 [ 878.832669] ? sk_filter_trim_cap+0x11a/0x360 [ 878.832910] _raw_spin_lock_nested+0x2e/0x40 [ 878.833161] ? tcp_v4_rcv+0xdba/0xf00 [ 878.833365] tcp_v4_rcv+0xdba/0xf00 [ 878.833566] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 878.833809] ip_local_deliver_finish+0xaf/0x180 [ 878.834077] __netif_receive_skb_one_core+0x8b/0xa0 [ 878.834342] netif_receive_skb+0x87/0x2c0 [ 878.834568] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 878.834846] tcf_mirred_act+0xee/0x560 [act_mirred] [ 878.835116] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 878.835401] tcf_action_exec+0xac/0x230 [ 878.835645] fl_classify+0x20e/0x260 [cls_flower] [ 878.835926] ? __bfs+0xf3/0x240 [ 878.836110] ? check_irq_usage+0x19c/0xc40 [ 878.836327] ? check_path.constprop.0+0x24/0x50 [ 878.836590] ? check_noncircular+0x81/0x150 [ 878.836812] ? __skb_flow_dissect+0xc9/0x2d60 [ 878.837046] ? __lock_acquire+0xa6e/0x1750 [ 878.837286] tcf_classify+0x17a/0x540 [ 878.837493] tc_run+0x9f/0x150 [ 878.837673] __dev_queue_xmit+0x311/0x1180 [ 878.837896] ? mark_held_locks+0x49/0x80 [ 878.838138] ? eth_header+0x2a/0xc0 [ 878.838336] ip_finish_output2+0x22d/0xa20 [ 878.838562] ? __ip_queue_xmit+0x1d5/0x6f0 [ 878.838788] __ip_queue_xmit+0x1d5/0x6f0 [ 878.839006] __tcp_transmit_skb+0xb65/0xd30 [ 878.839258] ? mark_held_locks+0x49/0x80 [ 878.839491] tcp_write_xmit+0x492/0x1410 [ 878.839717] ? tcp_current_mss+0x195/0x210 [ 878.839943] __tcp_push_pending_frames+0x36/0xc0 [ 878.840210] tcp_rcv_state_process+0x4db/0x1230 [ 878.840460] ? lock_acquire+0xc1/0x2b0 [ 878.840686] ? tcp_v4_rcv+0xdba/0xf00 [ 878.840904] ? tcp_v4_do_rcv+0x85/0x3a0 [ 878.841124] tcp_v4_do_rcv+0x85/0x3a0 [ 878.841329] tcp_v4_rcv+0xe54/0xf00 [ 878.841527] ? process_backlog+0x6f/0x260 [ 878.841749] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 878.841994] ip_local_deliver_finish+0xaf/0x180 [ 878.842241] __netif_receive_skb_one_core+0x8b/0xa0 [ 878.842508] process_backlog+0x7c/0x260 [ 878.842720] __napi_poll.constprop.0+0x27/0x1e0 [ 878.842970] net_rx_action+0x2be/0x340 [ 878.843181] __do_softirq+0xc8/0x37a [ 878.843385] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 878.843661] run_ksoftirqd+0x2e/0x40 [ 878.843872] smpboot_thread_fn+0xd9/0x1d0 [ 878.844095] kthread+0xda/0x110 [ 878.844275] ? __pfx_kthread+0x10/0x10 [ 878.844474] ret_from_fork+0x31/0x50 [ 878.844670] ? __pfx_kthread+0x10/0x10 [ 878.844884] ret_from_fork_asm+0x1b/0x30 [ 878.845098] [ 898.690949] ncat (3037) 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__->