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 [ 41.503815][ T329] GACT probability NOT on # TEST: gact drop and ok (skip_hw) [ OK ] [ 46.842622][ T391] 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 ] [ 57.681284][ T506] ping (506) used greatest stack depth: 23480 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 66.078955][ C0] [ 66.079121][ C0] ============================================ [ 66.079449][ C0] WARNING: possible recursive locking detected [ 66.079798][ C0] 6.8.0-rc2-virtme #1 Not tainted [ 66.080080][ C0] -------------------------------------------- [ 66.080401][ C0] ksoftirqd/0/16 is trying to acquire lock: [ 66.080723][ C0] ffff888006e49b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 66.081203][ C0] [ 66.081203][ C0] but task is already holding lock: [ 66.081604][ C0] ffff888006e48e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 66.082074][ C0] [ 66.082074][ C0] other info that might help us debug this: [ 66.082504][ C0] Possible unsafe locking scenario: [ 66.082504][ C0] [ 66.082890][ C0] CPU0 [ 66.083098][ C0] ---- [ 66.083290][ C0] lock(slock-AF_INET/1); [ 66.083539][ C0] lock(slock-AF_INET/1); [ 66.083773][ C0] [ 66.083773][ C0] *** DEADLOCK *** [ 66.083773][ C0] [ 66.084205][ C0] May be due to missing lock nesting notation [ 66.084205][ C0] [ 66.084621][ C0] 8 locks held by ksoftirqd/0/16: [ 66.084899][ C0] #0: ffffffffa27447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 66.085383][ C0] #1: ffffffffa27447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 66.085893][ C0] #2: ffff888006e48e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 66.086375][ C0] #3: ffffffffa27447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 66.086861][ C0] #4: ffffffffa27447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 66.087361][ C0] #5: ffffffffa2744780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 66.087871][ C0] #6: ffffffffa27447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 66.088409][ C0] #7: ffffffffa27447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 66.088929][ C0] [ 66.088929][ C0] stack backtrace: [ 66.089243][ C0] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 66.089657][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 66.090262][ C0] Call Trace: [ 66.090433][ C0] [ 66.090596][ C0] dump_stack_lvl+0x64/0xb0 [ 66.090842][ C0] validate_chain+0x525/0xa00 [ 66.091117][ C0] ? __pfx_validate_chain+0x10/0x10 [ 66.091395][ C0] ? hlock_class+0x4e/0x130 [ 66.091651][ C0] ? mark_lock+0x38/0x3e0 [ 66.091873][ C0] __lock_acquire+0xb67/0x1610 [ 66.092140][ C0] ? lock_downgrade+0xa0/0x110 [ 66.092405][ C0] ? mark_lock+0x38/0x3e0 [ 66.092631][ C0] lock_acquire.part.0+0xe5/0x330 [ 66.092908][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 66.093168][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 66.093469][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 66.093781][ C0] ? lock_acquire+0x1c1/0x220 [ 66.094042][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 66.094305][ C0] _raw_spin_lock_nested+0x33/0x80 [ 66.094585][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 66.094842][ C0] tcp_v4_rcv+0x221e/0x2ac0 [ 66.095082][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 66.095345][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 66.095625][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 66.095922][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 66.096221][ C0] ip_local_deliver_finish+0x2ae/0x480 [ 66.096510][ C0] ip_local_deliver+0x19d/0x480 [ 66.096780][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 66.097068][ C0] ? tcp_v4_early_demux+0x59a/0x9d0 [ 66.097354][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 66.097702][ C0] ip_rcv+0x564/0x740 [ 66.097921][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 66.098222][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 66.098503][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 66.098815][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 66.099053][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 66.099373][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 66.099695][ C0] ? mark_held_locks+0xa5/0xf0 [ 66.099948][ C0] ? lock_acquire+0x1c1/0x220 [ 66.100205][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 66.100501][ C0] netif_receive_skb_internal+0xb0/0x300 [ 66.100801][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 66.101135][ C0] ? __copy_skb_header+0xaf/0x490 [ 66.101403][ C0] ? __skb_clone+0x57a/0x760 [ 66.101653][ C0] netif_receive_skb+0x55/0x280 [ 66.101901][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 66.102243][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 66.102648][ C0] tcf_mirred_act+0x338/0x780 [act_mirred] [ 66.103093][ C0] tcf_action_exec.part.0+0x112/0x3d0 [ 66.103441][ C0] fl_classify+0x4dc/0x650 [cls_flower] [ 66.103832][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 66.104315][ C0] ? __pfx_check_irq_usage+0x10/0x10 [ 66.104721][ C0] ? __bfs+0x247/0x650 [ 66.105039][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 66.105437][ C0] ? check_path.constprop.0+0x24/0x50 [ 66.105851][ C0] ? check_noncircular+0x14e/0x3e0 [ 66.106242][ C0] ? hlock_class+0x4e/0x130 [ 66.106595][ C0] ? __pfx_check_noncircular+0x10/0x10 [ 66.107015][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 66.107416][ C0] ? __pfx_validate_chain+0x10/0x10 [ 66.107813][ C0] ? hlock_class+0x4e/0x130 [ 66.108298][ C0] ? hlock_class+0x4e/0x130 [ 66.108560][ C0] ? check_prev_add+0x773/0xce0 [ 66.108844][ C0] __tcf_classify+0x329/0x7d0 [ 66.109105][ C0] tcf_classify+0x283/0x930 [ 66.109341][ C0] ? __pfx_tcf_classify+0x10/0x10 [ 66.109621][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 66.109945][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 66.110224][ C0] tc_run+0x2e4/0x5d0 [ 66.110436][ C0] ? __pfx_tc_run+0x10/0x10 [ 66.110684][ C0] ? lock_acquire+0x1c1/0x220 [ 66.110967][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 66.111246][ C0] __dev_queue_xmit+0x686/0x17e0 [ 66.111498][ C0] ? mark_held_locks+0xa5/0xf0 [ 66.111751][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 66.112133][ C0] ? __pfx___dev_queue_xmit+0x10/0x10 [ 66.112444][ C0] ? vrf_ip_local_out+0x7d1/0x860 [vrf] [ 66.112754][ C0] ip_finish_output2+0x786/0x18e0 [ 66.113030][ C0] ? __pfx_ip_finish_output2+0x10/0x10 [ 66.113371][ C0] ? __ip_finish_output+0x3dd/0x770 [ 66.113673][ C0] ip_output+0x16b/0x4f0 [ 66.113922][ C0] ? __pfx_ip_output+0x10/0x10 [ 66.114171][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 66.114509][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 66.114859][ C0] ? ip_local_out+0x114/0x3b0 [ 66.115120][ C0] __ip_queue_xmit+0x672/0x1910 [ 66.115376][ C0] ? __skb_clone+0x57a/0x760 [ 66.115655][ C0] __tcp_transmit_skb+0x22b1/0x2d20 [ 66.115938][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 66.116267][ C0] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 66.116642][ C0] tcp_write_xmit+0x94f/0x1cb0 [ 66.116937][ C0] ? ipv4_mtu+0x37/0x360 [ 66.117170][ C0] ? __pfx_tcp_write_xmit+0x10/0x10 [ 66.117450][ C0] ? __pfx_tcp_current_mss+0x10/0x10 [ 66.117769][ C0] __tcp_push_pending_frames+0x96/0x320 [ 66.118120][ C0] tcp_rcv_state_process+0x786/0x1fe0 [ 66.118401][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 66.118657][ C0] ? hlock_class+0x4e/0x130 [ 66.118895][ C0] ? __lock_acquired+0x18a/0x6b0 [ 66.119183][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 66.119506][ C0] ? __pfx___lock_acquired+0x10/0x10 [ 66.119808][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 66.120116][ C0] tcp_v4_do_rcv+0x154/0x860 [ 66.120407][ C0] tcp_v4_rcv+0x2449/0x2ac0 [ 66.120662][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 66.120944][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 66.121219][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 66.121526][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 66.121842][ C0] ip_local_deliver_finish+0x2ae/0x480 [ 66.122136][ C0] ip_local_deliver+0x19d/0x480 [ 66.122406][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 66.122712][ C0] ? tcp_v4_early_demux+0x59a/0x9d0 [ 66.122995][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 66.123351][ C0] ip_rcv+0x564/0x740 [ 66.123563][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 66.123821][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 66.124116][ C0] ? process_backlog+0x1ed/0x5e0 [ 66.124406][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 66.124656][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 66.124976][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 66.125326][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 66.125660][ C0] ? lock_acquire+0x1c1/0x220 [ 66.125925][ C0] ? process_backlog+0x1ed/0x5e0 [ 66.126212][ C0] process_backlog+0xd3/0x5e0 [ 66.126461][ C0] __napi_poll.constprop.0+0xa2/0x460 [ 66.126763][ C0] net_rx_action+0x440/0xb40 [ 66.127028][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 66.127310][ C0] ? __pfx___schedule+0x10/0x10 [ 66.127586][ C0] ? __pfx___lock_release+0x10/0x10 [ 66.127884][ C0] __do_softirq+0x1b9/0x7ff [ 66.128154][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 66.128454][ C0] run_ksoftirqd+0x2e/0x60 [ 66.128698][ C0] smpboot_thread_fn+0x30b/0x840 [ 66.128956][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 66.129249][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 66.129538][ C0] kthread+0x28f/0x360 [ 66.129807][ C0] ? __pfx_kthread+0x10/0x10 [ 66.130056][ C0] ret_from_fork+0x31/0x70 [ 66.130300][ C0] ? __pfx_kthread+0x10/0x10 [ 66.130533][ C0] ret_from_fork_asm+0x1b/0x30 [ 66.130789][ C0] [ 84.526713][ T550] ncat (550) 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__->