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 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 ] [ 2043.465490][ T5799] ping (5799) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2047.077408][ C0] [ 2047.077575][ C0] ============================================ [ 2047.077923][ C0] WARNING: possible recursive locking detected [ 2047.078263][ C0] 6.8.0-rc1-virtme #1 Not tainted [ 2047.078530][ C0] -------------------------------------------- [ 2047.078907][ C0] ksoftirqd/0/16 is trying to acquire lock: [ 2047.079238][ C0] ffff88800b839b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 2047.079754][ C0] [ 2047.079754][ C0] but task is already holding lock: [ 2047.080139][ C0] ffff88800b838e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 2047.080622][ C0] [ 2047.080622][ C0] other info that might help us debug this: [ 2047.081044][ C0] Possible unsafe locking scenario: [ 2047.081044][ C0] [ 2047.081450][ C0] CPU0 [ 2047.081630][ C0] ---- [ 2047.081806][ C0] lock(slock-AF_INET/1); [ 2047.082051][ C0] lock(slock-AF_INET/1); [ 2047.082372][ C0] [ 2047.082372][ C0] *** DEADLOCK *** [ 2047.082372][ C0] [ 2047.082828][ C0] May be due to missing lock nesting notation [ 2047.082828][ C0] [ 2047.083272][ C0] 8 locks held by ksoftirqd/0/16: [ 2047.083556][ C0] #0: ffffffff935447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2047.084092][ C0] #1: ffffffff935447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2047.084682][ C0] #2: ffff88800b838e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 2047.085184][ C0] #3: ffffffff935447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2047.085690][ C0] #4: ffffffff935447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2047.086228][ C0] #5: ffffffff93544780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 2047.086761][ C0] #6: ffffffff935447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2047.087324][ C0] #7: ffffffff935447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2047.087869][ C0] [ 2047.087869][ C0] stack backtrace: [ 2047.088187][ C0] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc1-virtme #1 [ 2047.088618][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2047.089319][ C0] Call Trace: [ 2047.089503][ C0] [ 2047.089678][ C0] dump_stack_lvl+0x64/0xb0 [ 2047.089958][ C0] validate_chain+0x525/0xa00 [ 2047.090225][ C0] ? __pfx_validate_chain+0x10/0x10 [ 2047.090500][ C0] ? hlock_class+0x4e/0x130 [ 2047.090747][ C0] ? mark_lock+0x38/0x3e0 [ 2047.091008][ C0] __lock_acquire+0xb67/0x1610 [ 2047.091272][ C0] ? lock_downgrade+0x90/0x110 [ 2047.091548][ C0] ? mark_lock+0x38/0x3e0 [ 2047.091816][ C0] lock_acquire.part.0+0xe5/0x330 [ 2047.092085][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 2047.092381][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2047.092705][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2047.093001][ C0] ? lock_acquire+0x1c1/0x220 [ 2047.093259][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 2047.093538][ C0] _raw_spin_lock_nested+0x33/0x80 [ 2047.093819][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 2047.094072][ C0] tcp_v4_rcv+0x2159/0x29b0 [ 2047.094334][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2047.094598][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2047.094892][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2047.095195][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2047.095489][ C0] ip_local_deliver_finish+0x2ae/0x450 [ 2047.095799][ C0] ip_local_deliver+0x19d/0x480 [ 2047.096061][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2047.096351][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2047.096732][ C0] ip_rcv+0x564/0x740 [ 2047.096960][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2047.097202][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2047.097492][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2047.097848][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2047.098103][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2047.098415][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2047.098761][ C0] ? mark_held_locks+0xa5/0xf0 [ 2047.099045][ C0] ? lock_acquire+0x1c1/0x220 [ 2047.099313][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2047.099631][ C0] netif_receive_skb_internal+0xb0/0x300 [ 2047.099933][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2047.100294][ C0] ? __copy_skb_header+0xaf/0x490 [ 2047.100585][ C0] ? __skb_clone+0x57a/0x760 [ 2047.100832][ C0] netif_receive_skb+0x55/0x280 [ 2047.101093][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2047.101424][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2047.101801][ C0] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2047.102116][ C0] tcf_action_exec.part.0+0x115/0x3d0 [ 2047.102419][ C0] fl_classify+0x4dc/0x650 [cls_flower] [ 2047.102738][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2047.103079][ C0] ? __pfx_usage_match+0x10/0x10 [ 2047.103366][ C0] ? check_irq_usage+0x27e/0x850 [ 2047.103636][ C0] ? __pfx_check_irq_usage+0x10/0x10 [ 2047.103918][ C0] ? __bfs+0x24a/0x650 [ 2047.104165][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 2047.104449][ C0] ? __bfs+0x24a/0x650 [ 2047.104672][ C0] ? __pfx_usage_match+0x10/0x10 [ 2047.104956][ C0] ? check_path.constprop.0+0x24/0x50 [ 2047.105242][ C0] ? check_noncircular+0x14e/0x3e0 [ 2047.105518][ C0] ? __pfx_check_noncircular+0x10/0x10 [ 2047.105845][ C0] __tcf_classify+0x32c/0x7d0 [ 2047.106106][ C0] tcf_classify+0x283/0x930 [ 2047.106373][ C0] ? __pfx_tcf_classify+0x10/0x10 [ 2047.106639][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2047.106920][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2047.107217][ C0] tc_run+0x2e4/0x5d0 [ 2047.107435][ C0] ? __pfx_tc_run+0x10/0x10 [ 2047.107682][ C0] ? lock_acquire+0x1c1/0x220 [ 2047.107966][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2047.108241][ C0] __dev_queue_xmit+0x8eb/0x1ca0 [ 2047.108508][ C0] ? hlock_class+0x4e/0x130 [ 2047.108777][ C0] ? mark_lock+0x38/0x3e0 [ 2047.109014][ C0] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2047.109302][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2047.109653][ C0] ? neigh_hh_output+0x348/0x590 [ 2047.109956][ C0] ip_finish_output2+0x786/0x18e0 [ 2047.110229][ C0] ? __pfx_ip_finish_output2+0x10/0x10 [ 2047.110527][ C0] ? __ip_finish_output+0x3dd/0x770 [ 2047.110847][ C0] ip_output+0x16b/0x4f0 [ 2047.111090][ C0] ? __pfx_ip_output+0x10/0x10 [ 2047.111346][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2047.111647][ C0] ? ip_local_out+0x114/0x3b0 [ 2047.111930][ C0] __ip_queue_xmit+0x672/0x1910 [ 2047.112203][ C0] ? __skb_clone+0x57a/0x760 [ 2047.112457][ C0] __tcp_transmit_skb+0x22b1/0x2d20 [ 2047.112768][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2047.113072][ C0] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 2047.113391][ C0] tcp_write_xmit+0xe42/0x24c0 [ 2047.113684][ C0] ? ipv4_mtu+0x37/0x360 [ 2047.113917][ C0] ? __pfx_tcp_write_xmit+0x10/0x10 [ 2047.114212][ C0] ? __pfx_tcp_current_mss+0x10/0x10 [ 2047.114503][ C0] __tcp_push_pending_frames+0x96/0x320 [ 2047.114800][ C0] tcp_rcv_state_process+0x81e/0x1fd0 [ 2047.115103][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 2047.115353][ C0] ? hlock_class+0x4e/0x130 [ 2047.115600][ C0] ? __lock_acquired+0x18a/0x6b0 [ 2047.115890][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2047.116202][ C0] ? __pfx___lock_acquired+0x10/0x10 [ 2047.116489][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2047.116815][ C0] tcp_v4_do_rcv+0x154/0x850 [ 2047.117063][ C0] tcp_v4_rcv+0x235a/0x29b0 [ 2047.117305][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2047.117592][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2047.117857][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2047.118156][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2047.118446][ C0] ip_local_deliver_finish+0x2ae/0x450 [ 2047.118749][ C0] ip_local_deliver+0x19d/0x480 [ 2047.119011][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2047.119299][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2047.119655][ C0] ip_rcv+0x564/0x740 [ 2047.119873][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2047.120128][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2047.120424][ C0] ? process_backlog+0x1ed/0x5e0 [ 2047.120694][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2047.120944][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2047.121290][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2047.121628][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2047.121929][ C0] ? lock_acquire+0x1c1/0x220 [ 2047.122217][ C0] ? process_backlog+0x1ed/0x5e0 [ 2047.122485][ C0] process_backlog+0xd3/0x5e0 [ 2047.122738][ C0] __napi_poll.constprop.0+0xa5/0x450 [ 2047.123039][ C0] net_rx_action+0x440/0xb40 [ 2047.123284][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 2047.123564][ C0] ? __pfx___schedule+0x10/0x10 [ 2047.123856][ C0] ? __pfx___lock_release+0x10/0x10 [ 2047.124136][ C0] __do_softirq+0x1bc/0x7ff [ 2047.124383][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 2047.124676][ C0] run_ksoftirqd+0x2e/0x60 [ 2047.124912][ C0] smpboot_thread_fn+0x30e/0x840 [ 2047.125192][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2047.125487][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2047.125794][ C0] kthread+0x292/0x360 [ 2047.126026][ C0] ? __pfx_kthread+0x10/0x10 [ 2047.126279][ C0] ret_from_fork+0x34/0x70 [ 2047.126533][ C0] ? __pfx_kthread+0x10/0x10 [ 2047.126785][ C0] ret_from_fork_asm+0x1b/0x30 [ 2047.127050][ C0] [ 2072.130594][ T5848] ncat (5848) used greatest stack depth: 21168 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__->