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.0 # 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 ] [ 2380.555373][ T8022] tc (8022) used greatest stack depth: 23464 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2391.387004][ C2] [ 2391.387168][ C2] ============================================ [ 2391.387496][ C2] WARNING: possible recursive locking detected [ 2391.387826][ C2] 6.8.0-rc3-virtme #1 Not tainted [ 2391.388097][ C2] -------------------------------------------- [ 2391.388422][ C2] ksoftirqd/2/27 is trying to acquire lock: [ 2391.388725][ C2] ffff888006911b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2391.389200][ C2] [ 2391.389200][ C2] but task is already holding lock: [ 2391.389587][ C2] ffff888006910e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2391.390047][ C2] [ 2391.390047][ C2] other info that might help us debug this: [ 2391.390475][ C2] Possible unsafe locking scenario: [ 2391.390475][ C2] [ 2391.390854][ C2] CPU0 [ 2391.391033][ C2] ---- [ 2391.391206][ C2] lock(slock-AF_INET/1); [ 2391.391448][ C2] lock(slock-AF_INET/1); [ 2391.391682][ C2] [ 2391.391682][ C2] *** DEADLOCK *** [ 2391.391682][ C2] [ 2391.392095][ C2] May be due to missing lock nesting notation [ 2391.392095][ C2] [ 2391.392530][ C2] 8 locks held by ksoftirqd/2/27: [ 2391.392788][ C2] #0: ffffffffa63467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2391.393276][ C2] #1: ffffffffa63467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2391.393817][ C2] #2: ffff888006910e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2391.394296][ C2] #3: ffffffffa63467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2391.394788][ C2] #4: ffffffffa63467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2391.395291][ C2] #5: ffffffffa6346780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2391.395807][ C2] #6: ffffffffa63467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2391.396339][ C2] #7: ffffffffa63467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2391.396878][ C2] [ 2391.396878][ C2] stack backtrace: [ 2391.397182][ C2] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc3-virtme #1 [ 2391.397590][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2391.398224][ C2] Call Trace: [ 2391.398409][ C2] [ 2391.398583][ C2] dump_stack_lvl+0x64/0xb0 [ 2391.398834][ C2] validate_chain+0x525/0xa00 [ 2391.399082][ C2] ? DETECTED CRASH, lowering timeout __pfx_validate_chain+0x10/0x10 [ 2391.399359][ C2] ? hlock_class+0x4e/0x130 [ 2391.399598][ C2] ? mark_lock+0x38/0x3e0 [ 2391.399823][ C2] __lock_acquire+0xb67/0x1610 [ 2391.400086][ C2] ? lock_downgrade+0xa0/0x110 [ 2391.400342][ C2] ? mark_lock+0x38/0x3e0 [ 2391.400577][ C2] lock_acquire.part.0+0xe5/0x330 [ 2391.400839][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2391.401084][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2391.401388][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2391.401681][ C2] ? lock_acquire+0x1c1/0x220 [ 2391.401934][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2391.402184][ C2] _raw_spin_lock_nested+0x33/0x80 [ 2391.402457][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2391.402700][ C2] tcp_v4_rcv+0x221e/0x2ac0 [ 2391.402941][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2391.403214][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 2391.403485][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2391.403777][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 2391.404069][ C2] ip_local_deliver_finish+0x2ae/0x480 [ 2391.404358][ C2] ip_local_deliver+0x19d/0x480 [ 2391.404625][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 2391.404902][ C2] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2391.405173][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2391.405521][ C2] ip_rcv+0x564/0x740 [ 2391.405728][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2391.405970][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2391.406258][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 2391.406564][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2391.406816][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 2391.407124][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2391.407455][ C2] ? mark_held_locks+0xa5/0xf0 [ 2391.407717][ C2] ? lock_acquire+0x1c1/0x220 [ 2391.407961][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 2391.408264][ C2] netif_receive_skb_internal+0xb0/0x300 [ 2391.408569][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2391.408902][ C2] ? __copy_skb_header+0xaf/0x490 [ 2391.409167][ C2] ? __skb_clone+0x57a/0x760 [ 2391.409420][ C2] netif_receive_skb+0x55/0x280 [ 2391.409676][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2391.410008][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2391.410346][ C2] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2391.410661][ C2] tcf_action_exec.part.0+0x112/0x3d0 [ 2391.410949][ C2] fl_classify+0x4dc/0x650 [cls_flower] [ 2391.411254][ C2] ? ip6_output+0x1ea/0x760 [ 2391.411497][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2391.411823][ C2] ? __pfx_check_irq_usage+0x10/0x10 [ 2391.412097][ C2] ? __bfs+0x247/0x650 [ 2391.412320][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 2391.412594][ C2] ? check_path.constprop.0+0x24/0x50 [ 2391.412881][ C2] ? check_noncircular+0x14e/0x3e0 [ 2391.413153][ C2] ? hlock_class+0x4e/0x130 [ 2391.413399][ C2] ? __pfx_check_noncircular+0x10/0x10 [ 2391.413692][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 2391.413963][ C2] ? __pfx_validate_chain+0x10/0x10 [ 2391.414250][ C2] ? hlock_class+0x4e/0x130 [ 2391.414496][ C2] ? hlock_class+0x4e/0x130 [ 2391.414742][ C2] ? check_prev_add+0x773/0xce0 [ 2391.415010][ C2] __tcf_classify+0x329/0x7d0 [ 2391.415261][ C2] tcf_classify+0x283/0x930 [ 2391.415504][ C2] ? __pfx_tcf_classify+0x10/0x10 [ 2391.415762][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 2391.416027][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 2391.416293][ C2] tc_run+0x2e4/0x5d0 [ 2391.416518][ C2] ? __pfx_tc_run+0x10/0x10 [ 2391.416763][ C2] ? lock_acquire+0x1c1/0x220 [ 2391.417020][ C2] ? __dev_queue_xmit+0x1da/0x17e0 [ 2391.417289][ C2] __dev_queue_xmit+0x686/0x17e0 [ 2391.417548][ C2] ? mark_held_locks+0xa5/0xf0 [ 2391.417810][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2391.418145][ C2] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2391.418430][ C2] ? __pfx_vrf_output_direct_finish+0x1/0x10 [vrf] [ 2391.418778][ C2] ip_finish_output2+0x786/0x18e0 [ 2391.419038][ C2] ? __pfx_ip_finish_output2+0x10/0x10 [ 2391.419324][ C2] ? __ip_finish_output+0x3dd/0x770 [ 2391.419605][ C2] ip_output+0x16b/0x4f0 [ 2391.419830][ C2] ? __pfx_ip_output+0x10/0x10 [ 2391.420089][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2391.420385][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2391.420730][ C2] ? ip_local_out+0x114/0x3b0 [ 2391.420985][ C2] __ip_queue_xmit+0x672/0x1910 [ 2391.421244][ C2] ? __skb_clone+0x57a/0x760 [ 2391.421494][ C2] __tcp_transmit_skb+0x22b1/0x2d20 [ 2391.421767][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2391.422063][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 2391.422372][ C2] tcp_write_xmit+0x94f/0x1cb0 [ 2391.422634][ C2] ? ipv4_mtu+0x37/0x360 [ 2391.422861][ C2] ? __pfx_tcp_write_xmit+0x10/0x10 [ 2391.423143][ C2] ? __pfx_tcp_current_mss+0x10/0x10 [ 2391.423423][ C2] __tcp_push_pending_frames+0x96/0x320 [ 2391.423733][ C2] tcp_rcv_state_process+0x786/0x1fe0 [ 2391.424017][ C2] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2391.424261][ C2] ? hlock_class+0x4e/0x130 [ 2391.424524][ C2] ? __lock_acquired+0x18a/0x6b0 [ 2391.424790][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2391.425095][ C2] ? __pfx___lock_acquired+0x10/0x10 [ 2391.425380][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2391.425679][ C2] tcp_v4_do_rcv+0x154/0x860 [ 2391.425932][ C2] tcp_v4_rcv+0x2449/0x2ac0 [ 2391.426180][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2391.426450][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 2391.426709][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2391.427005][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 2391.427300][ C2] ip_local_deliver_finish+0x2ae/0x480 [ 2391.427590][ C2] ip_local_deliver+0x19d/0x480 [ 2391.427853][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 2391.428136][ C2] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2391.428417][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2391.428749][ C2] ip_rcv+0x564/0x740 [ 2391.428966][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2391.429200][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2391.429469][ C2] ? process_backlog+0x1ed/0x5e0 [ 2391.429727][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2391.429975][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 2391.430288][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2391.430628][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2391.430915][ C2] ? lock_acquire+0x1c1/0x220 [ 2391.431162][ C2] ? process_backlog+0x1ed/0x5e0 [ 2391.431419][ C2] process_backlog+0xd3/0x5e0 [ 2391.431677][ C2] __napi_poll.constprop.0+0xa2/0x460 [ 2391.431956][ C2] net_rx_action+0x440/0xb40 [ 2391.432202][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 2391.432481][ C2] ? __pfx___schedule+0x10/0x10 [ 2391.432741][ C2] ? __pfx___lock_release+0x10/0x10 [ 2391.433012][ C2] __do_softirq+0x1b9/0x7ff [ 2391.433255][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 2391.433550][ C2] run_ksoftirqd+0x2e/0x60 [ 2391.433781][ C2] smpboot_thread_fn+0x30b/0x840 [ 2391.434042][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2391.434324][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2391.434624][ C2] kthread+0x28f/0x360 [ 2391.434838][ C2] ? __pfx_kthread+0x10/0x10 [ 2391.435078][ C2] ret_from_fork+0x31/0x70 [ 2391.435329][ C2] ? __pfx_kthread+0x10/0x10 [ 2391.435581][ C2] ret_from_fork_asm+0x1b/0x30 [ 2391.435835][ C2] [ 2407.986759][ T8106] ncat (8106) used greatest stack depth: 20784 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__->