make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-4/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # timeout set to 10800 # selftests: net/forwarding: tc_actions.sh [ 39.677945][ T330] GACT probability NOT on # TEST: gact drop and ok (skip_hw) [ OK ] [ 44.519430][ T392] 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 ] [ 54.881377][ T501] ping (501) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 63.069507][ C3] [ 63.069669][ C3] ============================================ [ 63.069983][ C3] WARNING: possible recursive locking detected [ 63.070309][ C3] 6.8.0-rc2-virtme #1 Not tainted [ 63.070578][ C3] -------------------------------------------- [ 63.070907][ C3] ksoftirqd/3/32 is trying to acquire lock: [ 63.071216][ C3] ffff88803a429b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 63.071715][ C3] [ 63.071715][ C3] but task is already holding lock: [ 63.072083][ C3] ffff88803a428e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 63.072548][ C3] [ 63.072548][ C3] other info that might help us debug this: [ 63.072955][ C3] Possible unsafe locking scenario: [ 63.072955][ C3] [ 63.073340][ C3] CPU0 [ 63.073516][ C3] ---- [ 63.073691][ C3] lock(slock-AF_INET/1); [ 63.073935][ C3] lock(slock-AF_INET/1); [ 63.074173][ C3] [ 63.074173][ C3] *** DEADLOCK *** [ 63.074173][ C3] [ 63.074584][ C3] May be due to missing lock nesting notation [ 63.074584][ C3] [ 63.075005][ C3] 8 locks held by ksoftirqd/3/32: [ 63.075291][ C3] #0: ffffffffb6b447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 63.075775][ C3] #1: ffffffffb6b447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 63.076302][ C3] #2: ffff88803a428e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 63.076779][ C3] #3: ffffffffb6b447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 63.077272][ C3] #4: ffffffffb6b447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 63.077760][ C3] #5: ffffffffb6b44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 63.078259][ C3] #6: ffffffffb6b447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 63.078780][ C3] #7: ffffffffb6b447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 63.079309][ C3] [ 63.079309][ C3] stack backtrace: [ 63.079611][ C3] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 63.080030][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 63.080638][ C3] Call Trace: [ 63.080810][ C3] [ 63.080965][ C3] dump_stack_lvl+0x64/0xb0 [ 63.081215][ C3] validate_chain+0x525/0xa00 [ 63.081460][ C3] ? __pfx_validate_chain+0x10/0x10 [ 63.081743][ C3] ? hlock_class+0x4e/0x130 [ 63.081999][ C3] ? mark_lock+0x38/0x3e0 [ 63.082230][ C3] __lock_acquire+0xb67/0x1610 [ 63.082481][ C3] ? lock_downgrade+0xa0/0x110 [ 63.082738][ C3] ? mark_lock+0x38/0x3e0 [ 63.082961][ C3] lock_acquire.part.0+0xe5/0x330 [ 63.083225][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 63.083476][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.083761][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 63.084057][ C3] ? lock_acquire+0x1c1/0x220 [ 63.084302][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 63.084551][ C3] _raw_spin_lock_nested+0x33/0x80 [ 63.084821][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 63.085070][ C3] tcp_v4_rcv+0x2161/0x29c0 [ 63.085305][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 63.085557][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 63.085822][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.086118][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 63.086407][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 63.086695][ C3] ip_local_deliver+0x19d/0x480 [ 63.086957][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 63.087242][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 63.087564][ C3] ip_rcv+0x564/0x740 [ 63.087784][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 63.088027][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 63.088288][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 63.088588][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 63.088840][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 63.089140][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 63.089462][ C3] ? mark_held_locks+0xa5/0xf0 [ 63.089714][ C3] ? lock_acquire+0x1c1/0x220 [ 63.089957][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 63.090265][ C3] netif_receive_skb_internal+0xb0/0x300 [ 63.090553][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 63.090878][ C3] ? __copy_skb_header+0xaf/0x490 [ 63.091133][ C3] ? __skb_clone+0x57a/0x760 [ 63.091379][ C3] netif_receive_skb+0x55/0x280 [ 63.091646][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 63.091965][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 63.092301][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 63.092610][ C3] tcf_action_exec.part.0+0x112/0x3d0 [ 63.092889][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 63.093178][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 63.093492][ C3] ? __pfx_usage_match+0x10/0x10 [ 63.093755][ C3] ? check_irq_usage+0x27e/0x850 [ 63.094013][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 63.094290][ C3] ? __bfs+0x247/0x650 [ 63.094504][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 63.094786][ C3] ? check_path.constprop.0+0x24/0x50 [ 63.095060][ C3] ? check_noncircular+0x14e/0x3e0 [ 63.095343][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 63.095629][ C3] ? unwind_next_frame+0x1478/0x1d10 [ 63.095906][ C3] __tcf_classify+0x329/0x7d0 [ 63.096162][ C3] tcf_classify+0x283/0x930 [ 63.096402][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 63.096661][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 63.096944][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 63.097217][ C3] tc_run+0x2e4/0x5d0 [ 63.097426][ C3] ? __pfx_tc_run+0x10/0x10 [ 63.097678][ C3] ? lock_acquire+0x1c1/0x220 [ 63.097924][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 63.098184][ C3] __dev_queue_xmit+0x8eb/0x1ca0 [ 63.098447][ C3] ? hlock_class+0x4e/0x130 [ 63.098688][ C3] ? mark_lock+0x38/0x3e0 [ 63.098911][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 63.099185][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 63.099527][ C3] ? neigh_hh_output+0x348/0x590 [ 63.099787][ C3] ip_finish_output2+0x786/0x18e0 [ 63.100051][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 63.100335][ C3] ? __ip_finish_output+0x3dd/0x770 [ 63.100610][ C3] ip_output+0x16b/0x4f0 [ 63.100832][ C3] ? tcp_clean_rtx_queue.constprop.0+0x9ae/0x2bd0 [ 63.101178][ C3] ? __pfx_ip_output+0x10/0x10 [ 63.101425][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.101735][ C3] ? ip_local_out+0x114/0x3b0 [ 63.101984][ C3] __ip_queue_xmit+0x672/0x1910 [ 63.102236][ C3] ? __skb_clone+0x57a/0x760 [ 63.102483][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 63.102758][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 63.103049][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 63.103352][ C3] tcp_write_xmit+0xe42/0x24c0 [ 63.103610][ C3] ? ipv4_mtu+0x37/0x360 [ 63.103837][ C3] ? __pfx_tcp_write_xmit+0x10/0x10 [ 63.104124][ C3] ? __pfx_tcp_current_mss+0x10/0x10 [ 63.104404][ C3] __tcp_push_pending_frames+0x96/0x320 [ 63.104689][ C3] tcp_rcv_state_process+0x862/0x21c0 [ 63.104972][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 63.105266][ C3] ? find_held_lock+0x33/0x120 [ 63.105522][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 63.105767][ C3] ? hlock_class+0x4e/0x130 [ 63.106007][ C3] tcp_v4_do_rcv+0x1ac/0x8e0 [ 63.106252][ C3] ? __pfx_tcp_v4_do_rcv+0x10/0x10 [ 63.106525][ C3] tcp_v4_rcv+0x2362/0x29c0 [ 63.106761][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 63.107015][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 63.107273][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.107559][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 63.107852][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 63.108138][ C3] ip_local_deliver+0x19d/0x480 [ 63.108390][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 63.108674][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 63.108995][ C3] ip_rcv+0x564/0x740 [ 63.109210][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 63.109447][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 63.109722][ C3] ? process_backlog+0x1ed/0x5e0 [ 63.109979][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 63.110220][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 63.110525][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 63.110860][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 63.111150][ C3] ? lock_acquire+0x1c1/0x220 [ 63.111400][ C3] ? process_backlog+0x1ed/0x5e0 [ 63.111666][ C3] process_backlog+0xd3/0x5e0 [ 63.111918][ C3] __napi_poll.constprop.0+0xa2/0x450 [ 63.112208][ C3] net_rx_action+0x440/0xb40 [ 63.112456][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 63.112720][ C3] ? __pfx___schedule+0x10/0x10 [ 63.112985][ C3] ? __pfx___lock_release+0x10/0x10 [ 63.113250][ C3] __do_softirq+0x1b9/0x7ff [ 63.113488][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 63.113758][ C3] run_ksoftirqd+0x2e/0x60 [ 63.113991][ C3] smpboot_thread_fn+0x30b/0x840 [ 63.114253][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 63.114531][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 63.114818][ C3] kthread+0x28f/0x360 [ 63.115030][ C3] ? __pfx_kthread+0x10/0x10 [ 63.115271][ C3] ret_from_fork+0x31/0x70 [ 63.115518][ C3] ? __pfx_kthread+0x10/0x10 [ 63.115756][ C3] ret_from_fork_asm+0x1b/0x30 [ 63.116004][ C3] [ 80.483683][ C1] clocksource: Long readout interval, skipping watchdog check: cs_nsec: 1581807132 wd_nsec: 1581806863 [ 94.431529][ T545] ncat (545) used greatest stack depth: 21056 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-4/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-4/tools/testing/selftests' xx__-> echo $? 0 xx__->