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 [ 1151.041097] veth1: left promiscuous mode # TEST: gact drop and ok (skip_hw) [ OK ] [ 1158.643690] 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 ] [ 1161.227670] tc (18324) used greatest stack depth: 11552 bytes left [ 1163.424956] ping (18447) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1168.306889] [ 1168.307078] ============================================ [ 1168.307507] WARNING: possible recursive locking detected [ 1168.307947] 6.8.0-rc2-virtme #1 Not tainted [ 1168.308280] -------------------------------------------- [ 1168.308684] ksoftirqd/2/27 is trying to acquire lock: [ 1168.309088] ffff927ac1938cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1168.309727] [ 1168.309727] but task is already holding lock: [ 1168.310168] ffff927ac19380b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1168.310790] [ 1168.310790] other info that might help us debug this: [ 1168.311307] Possible unsafe locking scenario: [ 1168.311307] [ 1168.311770] CPU0 [ 1168.311979] ---- [ 1168.312203] lock(slock-AF_INET/1); [ 1168.312492] lock(slock-AF_INET/1); [ 1168.312773] [ 1168.312773] *** DEADLOCK *** [ 1168.312773] [ 1168.313253] May be due to missing lock nesting notation [ 1168.313253] [ 1168.313774] 8 locks held by ksoftirqd/2/27: [ 1168.314108] #0: ffffffffacf678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1168.314819] #1: ffffffffacf678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1168.315519] #2: ffff927ac19380b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1168.316165] #3: ffffffffacf678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1168.316824] #4: ffffffffacf678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1168.317515] #5: ffffffffacf67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1168.318240] #6: ffffffffacf678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1168.318910] #7: ffffffffacf678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1168.319633] [ 1168.319633] stack backtrace: [ 1168.319977] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 1168.320576] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1168.321399] Call Trace: [ 1168.321599] [ 1168.321807] dump_stack_lvl+0x4b/0x80 [ 1168.322116] __lock_acquire+0x1215/0x1750 [ 1168.322466] ? sk_filter_trim_cap+0x53/0x360 [ 1168.322839] lock_acquire+0xc1/0x2b0 [ 1168.323154] ? tcp_v4_rcv+0xdba/0xf00 [ 1168.323446] ? sk_filter_trim_cap+0x11a/0x360 [ 1168.323816] _raw_spin_lock_nested+0x2e/0x40 [ 1168.324136] ? tcp_v4_rcv+0xdba/0xf00 [ 1168.324420] tcp_v4_rcv+0xdba/0xf00 [ 1168.324719] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1168.325054] ip_local_deliver_finish+0xaf/0x180 [ 1168.325389] __netif_receive_skb_one_core+0x8b/0xa0 [ 1168.325774] netif_receive_skb+0x87/0x2c0 [ 1168.326092] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1168.326539] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1168.326903] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1168.327294] tcf_action_exec+0xac/0x230 [ 1168.327665] fl_classify+0x20e/0x260 [cls_flower] [ 1168.328043] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1168.328451] ? __bfs+0xf3/0x240 [ 1168.328720] ? check_irq_usage+0x19c/0xc40 [ 1168.329055] ? check_path.constprop.0+0x24/0x50 [ 1168.329403] ? find_held_lock+0x2b/0x80 [ 1168.329722] ? check_noncircular+0x81/0x150 [ 1168.330058] ? __lock_acquire+0xa6e/0x1750 [ 1168.330394] tcf_classify+0x17a/0x540 [ 1168.330704] tc_run+0x9f/0x150 [ 1168.330956] __dev_queue_xmit+0x311/0x1180 [ 1168.331358] ? mark_held_locks+0x49/0x80 [ 1168.331656] ip_finish_output2+0x39f/0xa20 [ 1168.332034] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1168.332374] __ip_queue_xmit+0x1d5/0x6f0 [ 1168.332688] __tcp_transmit_skb+0xb65/0xd30 [ 1168.333052] ? mark_held_locks+0x49/0x80 [ 1168.333372] tcp_write_xmit+0x492/0x1410 [ 1168.333699] __tcp_push_pending_frames+0x36/0xc0 [ 1168.334053] tcp_rcv_state_process+0x4db/0x1230 [ 1168.334436] ? lock_acquire+0xc1/0x2b0 [ 1168.334748] ? tcp_v4_rcv+0xdba/0xf00 [ 1168.335071] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1168.335359] tcp_v4_do_rcv+0x85/0x3a0 [ 1168.335705] tcp_v4_rcv+0xe54/0xf00 [ 1168.335979] ? process_backlog+0x6f/0x260 [ 1168.336297] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1168.336690] ip_local_deliver_finish+0xaf/0x180 [ 1168.337046] __netif_receive_skb_one_core+0x8b/0xa0 [ 1168.337417] process_backlog+0x7c/0x260 [ 1168.337753] __napi_poll.constprop.0+0x27/0x1e0 [ 1168.338123] net_rx_action+0x2be/0x340 [ 1168.338442] __do_softirq+0xc8/0x37a [ 1168.338730] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1168.339117] run_ksoftirqd+0x2e/0x40 [ 1168.339404] smpboot_thread_fn+0xd9/0x1d0 [ 1168.339764] kthread+0xda/0x110 [ 1168.340031] ? __pfx_kthread+0x10/0x10 [ 1168.340345] ret_from_fork+0x31/0x50 [ 1168.340641] ? __pfx_kthread+0x10/0x10 [ 1168.340967] ret_from_fork_asm+0x1b/0x30 [ 1168.341302] [ 1185.564799] ncat (18571) 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__->