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 # overriding timeout to 21600 # 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 ] [ 2389.266327][T19123] ping (19123) used greatest stack depth: 23480 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2393.813862][ C2] [ 2393.814038][ C2] ============================================ [ 2393.814417][ C2] WARNING: possible recursive locking detected [ 2393.814725][ C2] 6.8.0-rc3-virtme #1 Not tainted [ 2393.815014][ C2] -------------------------------------------- [ 2393.815346][ C2] ksoftirqd/2/27 is trying to acquire lock: [ 2393.815688][ C2] ffff88803d2c8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2393.816183][ C2] [ 2393.816183][ C2] but task is already holding lock: [ 2393.816554][ C2] ffff88803d2c9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2393.817023][ C2] [ 2393.817023][ C2] other info that might help us debug this: [ 2393.817448][ C2] Possible unsafe locking scenario: [ 2393.817448][ C2] [ 2393.817830][ C2] CPU0 [ 2393.818012][ C2] ---- [ 2393.818204][ C2] lock(slock-AF_INET/1); [ 2393.818463][ C2] lock(slock-AF_INET/1); [ 2393.818696][ C2] [ 2393.818696][ C2] *** DEADLOCK *** [ 2393.818696][ C2] [ 2393.819131][ C2] May be due to missing lock nesting notation [ 2393.819131][ C2] [ 2393.819562][ C2] 8 locks held by ksoftirqd/2/27: [ 2393.819830][ C2] #0: ffffffffa9f467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2393.820326][ C2] #1: ffffffffa9f467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2393.820862][ C2] #2: ffff88803d2c9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2393.821362][ C2] #3: ffffffffa9f467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0 [ 2393.821852][ C2] #4: ffffffffa9f467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2393.822399][ C2] #5: ffffffffa9f46780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2393.822906][ C2] #6: ffffffffa9f467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2393.823460][ C2] #7: ffffffffa9f467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2393.823977][ C2] [ 2393.823977][ C2] stack backtrace: [ 2393.824304][ C2] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc3-virtme #1 [ 2393.824728][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2393.825350][ C2] Call Trace: [ 2393.825527][ C2] [ 2393.825698][ C2] dump_stack_lvl+0x64/0xb0 [ 2393.825955][ C2] validate_chain+0x525/0xa00 [ 2393.826206][ C2] ? __pfx_validate_chain+0x10/0x10 [ 2393.826503][ C2] ? hlock_class+0x4e/0x130 [ 2393.826754][ C2] ? mark_lock+0x38/0x3e0 [ 2393.826982][ C2] __lock_acquire+0xb67/0x1610 [ 2393.827241][ C2] ? lock_downgrade+0xa0/0x110 [ 2393.827518][ C2] ? mark_lock+0x38/0x3e0 [ 2393.827747][ C2] lock_acquire.part.0+0xe5/0x330 [ 2393.828007][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2393.828273][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2393.828566][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2393.828855][ C2] ? lock_acquire+0x1c1/0x220 [ 2393.829116][ C2] ? t DETECTED CRASH, lowering timeout cp_v4_rcv+0x221e/0x2ac0 [ 2393.829363][ C2] _raw_spin_lock_nested+0x33/0x80 [ 2393.829629][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2393.829898][ C2] tcp_v4_rcv+0x221e/0x2ac0 [ 2393.830140][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2393.830468][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 2393.830733][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2393.831033][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 2393.831334][ C2] ip_local_deliver_finish+0x2ae/0x480 [ 2393.831612][ C2] ip_local_deliver+0x19d/0x480 [ 2393.831863][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 2393.832143][ C2] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2393.832452][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2393.832784][ C2] ip_rcv+0x564/0x740 [ 2393.833000][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2393.833267][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2393.833541][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 2393.833841][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2393.834098][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 2393.834446][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2393.834775][ C2] ? mark_held_locks+0xa5/0xf0 [ 2393.835052][ C2] ? lock_acquire+0x1c1/0x220 [ 2393.835300][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 2393.835610][ C2] netif_receive_skb_internal+0xb0/0x300 [ 2393.835913][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2393.836243][ C2] ? __copy_skb_header+0xaf/0x490 [ 2393.836518][ C2] ? __skb_clone+0x57a/0x760 [ 2393.836759][ C2] netif_receive_skb+0x55/0x280 [ 2393.837015][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2393.837351][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2393.837688][ C2] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2393.838009][ C2] tcf_action_exec.part.0+0x112/0x3d0 [ 2393.838310][ C2] fl_classify+0x4dc/0x650 [cls_flower] [ 2393.838628][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2393.838958][ C2] ? __pfx_check_irq_usage+0x10/0x10 [ 2393.839253][ C2] ? __bfs+0x247/0x650 [ 2393.839472][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 2393.839751][ C2] ? check_path.constprop.0+0x24/0x50 [ 2393.840045][ C2] ? check_noncircular+0x14e/0x3e0 [ 2393.840312][ C2] ? __pfx_check_noncircular+0x10/0x10 [ 2393.840603][ C2] ? hlock_class+0x4e/0x130 [ 2393.840852][ C2] ? check_prev_add+0x773/0xce0 [ 2393.841110][ C2] __tcf_classify+0x329/0x7d0 [ 2393.841363][ C2] tcf_classify+0x283/0x930 [ 2393.841627][ C2] ? __pfx_tcf_classify+0x10/0x10 [ 2393.841892][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 2393.842165][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2393.842482][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 2393.842746][ C2] tc_run+0x2e4/0x5d0 [ 2393.842957][ C2] ? __pfx_tc_run+0x10/0x10 [ 2393.843213][ C2] ? lock_acquire+0x1c1/0x220 [ 2393.843456][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 2393.843730][ C2] __dev_queue_xmit+0x686/0x17e0 [ 2393.844005][ C2] ? mark_held_locks+0xa5/0xf0 [ 2393.844266][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2393.844603][ C2] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2393.844898][ C2] ? __pfx_vrf_output_direct_finish+0x1/0x10 [vrf] [ 2393.845266][ C2] ip_finish_output2+0x786/0x18e0 [ 2393.845530][ C2] ? __pfx_ip_finish_output2+0x10/0x10 [ 2393.845813][ C2] ? __ip_finish_output+0x10f/0x770 [ 2393.846100][ C2] ip_output+0x16b/0x4f0 [ 2393.846347][ C2] ? hlock_class+0x4e/0x130 [ 2393.846585][ C2] ? __pfx_ip_output+0x10/0x10 [ 2393.846850][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2393.847142][ C2] ? ip_local_out+0x114/0x3b0 [ 2393.847389][ C2] __ip_queue_xmit+0x672/0x17b0 [ 2393.847678][ C2] __tcp_transmit_skb+0x22b1/0x2d20 [ 2393.847964][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2393.848292][ C2] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 2393.848570][ C2] tcp_rcv_state_process+0x7ca/0x1fe0 [ 2393.848851][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2393.849122][ C2] ? hlock_class+0x4e/0x130 [ 2393.849374][ C2] ? __lock_acquired+0x2cf/0x6b0 [ 2393.849643][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2393.849946][ C2] ? __pfx___lock_acquired+0x10/0x10 [ 2393.850220][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2393.850549][ C2] tcp_v4_do_rcv+0x154/0x860 [ 2393.850803][ C2] tcp_v4_rcv+0x2449/0x2ac0 [ 2393.851045][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2393.851332][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 2393.851600][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2393.851916][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 2393.852230][ C2] ip_local_deliver_finish+0x2ae/0x480 [ 2393.852524][ C2] ip_local_deliver+0x19d/0x480 [ 2393.852777][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 2393.853076][ C2] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2393.853350][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2393.853684][ C2] ip_rcv+0x564/0x740 [ 2393.853913][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2393.854153][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2393.854461][ C2] ? process_backlog+0x1ed/0x5e0 [ 2393.854736][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2393.854974][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 2393.855287][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2393.855633][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2393.855922][ C2] ? lock_acquire+0x1c1/0x220 [ 2393.856168][ C2] ? process_backlog+0x1ed/0x5e0 [ 2393.856452][ C2] process_backlog+0xd3/0x5e0 [ 2393.856698][ C2] __napi_poll.constprop.0+0xa2/0x460 [ 2393.856981][ C2] net_rx_action+0x440/0xb40 [ 2393.857244][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 2393.857512][ C2] ? __pfx___schedule+0x10/0x10 [ 2393.857768][ C2] ? __pfx___lock_release+0x10/0x10 [ 2393.858057][ C2] __do_softirq+0x1b9/0x7ff [ 2393.858316][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 2393.858600][ C2] run_ksoftirqd+0x2e/0x60 [ 2393.858843][ C2] smpboot_thread_fn+0x30b/0x840 [ 2393.859114][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2393.859396][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2393.859684][ C2] kthread+0x28f/0x360 [ 2393.859912][ C2] ? __pfx_kthread+0x10/0x10 [ 2393.860152][ C2] ret_from_fork+0x31/0x70 [ 2393.860385][ C2] ? __pfx_kthread+0x10/0x10 [ 2393.860658][ C2] ret_from_fork_asm+0x1b/0x30 [ 2393.860914][ C2] [ 2428.633690][T19167] ncat (19167) used greatest stack depth: 21312 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__->