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 # 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 ] [ 2337.454260][T12113] tc (12113) used greatest stack depth: 23432 bytes left [ 2341.150084][T12153] ping (12153) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2348.605689][ C0] [ 2348.605848][ C0] ============================================ [ 2348.606163][ C0] WARNING: possible recursive locking detected [ 2348.606481][ C0] 6.8.0-rc2-virtme #1 Not tainted [ 2348.606750][ C0] -------------------------------------------- [ 2348.607063][ C0] ksoftirqd/0/16 is trying to acquire lock: [ 2348.607361][ C0] ffff88800a181b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2348.607824][ C0] [ 2348.607824][ C0] but task is already holding lock: [ 2348.608203][ C0] ffff88800a180e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2348.608660][ C0] [ 2348.608660][ C0] other info that might help us debug this: [ 2348.609070][ C0] Possible unsafe locking scenario: [ 2348.609070][ C0] [ 2348.609445][ C0] CPU0 [ 2348.609618][ C0] ---- [ 2348.609804][ C0] lock(slock-AF_INET/1); [ 2348.610042][ C0] lock(slock-AF_INET/1); [ 2348.610274][ C0] [ 2348.610274][ C0] *** DEADLOCK *** [ 2348.610274][ C0] [ 2348.610691][ C0] May be due to missing lock nesting notation [ 2348.610691][ C0] [ 2348.611104][ C0] 8 locks held by ksoftirqd/0/16: [ 2348.611357][ C0] #0: ffffffff965447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2348.611838][ C0] #1: ffffffff965447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2348.612348][ C0] #2: ffff88800a180e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2348.612828][ C0] #3: ffffffff965447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2348.613300][ C0] #4: ffffffff965447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2348.613795][ C0] #5: ffffffff96544780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 2348.614295][ C0] #6: ffffffff965447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2348.614823][ C0] #7: ffffffff965447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2348.615352][ C0] [ 2348.615352][ C0] stack backtrace: [ 2348.615650][ C0] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 2348.616048][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2348.616675][ C0] Call Trace: [ 2348.616848][ C0] [ 2348.616999][ C0] dump_stack_lvl+0x64/0xb0 [ 2348.617244][ C0] validate_chain+0x525/0xa00 [ 2348.617485][ C0] ? __pfx_validate_chain+0x10/0x10 [ 2348.617755][ C0] ? hlock_class+0x4e/0x130 [ 2348.617994][ C0] ? mark_lock+0x38/0x3e0 [ 2348.618221][ C0] __lock_acquire+0xb67/0x1610 [ 2348.618476][ C0] ? lock_downgrade+0xa0/0x110 [ 2348.618724][ C0] ? mark_lock+0x38/0x3e0 [ 2348.618956][ C0] lock_acquire.part.0+0xe5/0x330 [ 2348.619215][ C0] ? tcp_v4_rcv+0x2161/0x29c0 [ 2348.619468][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2348.619757][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2348.620047][ C0] ? lock_acquire+0x1c1/0x220 [ 2348.620289][ C0] ? tcp_v4_rcv+0x2161/0x29c0 [ 2348.620541][ C0] _raw_spin_lock_nested+0x33/0x80 [ 2348.620802][ C0] ? tcp_v4_rcv+0x2161/0x29c0 [ 2348.621058][ C0] tcp_v4_rcv+0x2161/0x29c0 [ 2348.621300][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2348.621548][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2348.621818][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2348.622106][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2348.622393][ C0] ip_local_deliver_finish+0x2ae/0x450 [ 2348.622674][ C0] ip_local_deliver+0x19d/0x480 [ 2348.622930][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2348.623207][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2348.623538][ C0] ip_rcv+0x564/0x740 [ 2348.623744][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2348.623985][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2348.624249][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2348.624555][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2348.624796][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2348.625103][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2348.625423][ C0] ? mark_held_locks+0xa5/0xf0 [ 2348.625672][ C0] ? lock_acquire+0x1c1/0x220 [ 2348.625921][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2348.626222][ C0] netif_receive_skb_internal+0xb0/0x300 [ 2348.626516][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2348.626836][ C0] ? __copy_skb_header+0xaf/0x490 [ 2348.627100][ C0] ? __skb_clone+0x57a/0x760 [ 2348.627345][ C0] netif_receive_skb+0x55/0x280 [ 2348.627599][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2348.627929][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2348.628261][ C0] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2348.628570][ C0] tcf_action_exec.part.0+0x112/0x3d0 [ 2348.628843][ C0] fl_classify+0x4dc/0x650 [cls_flower] [ 2348.629139][ C0] ? kernel_text_address+0x17/0xe0 [ 2348.629408][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2348.629737][ C0] ? __pfx_usage_match+0x10/0x10 [ 2348.629995][ C0] ? check_irq_usage+0x27e/0x850 [ 2348.630254][ C0] ? stack_trace_save+0x95/0xd0 [ 2348.630505][ C0] ? __pfx_check_irq_usage+0x10/0x10 [ 2348.630783][ C0] ? __bfs+0x247/0x650 [ 2348.630995][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 2348.631268][ C0] ? __bfs+0x247/0x650 [ 2348.631474][ C0] ? __pfx_usage_match+0x10/0x10 [ 2348.631729][ C0] ? check_path.constprop.0+0x24/0x50 [ 2348.632009][ C0] ? check_noncircular+0x14e/0x3e0 [ 2348.632273][ C0] ? __pfx_check_noncircular+0x10/0x10 [ 2348.632564][ C0] __tcf_classify+0x329/0x7d0 [ 2348.632806][ C0] tcf_classify+0x283/0x930 [ 2348.633050][ C0] ? __pfx_tcf_classify+0x10/0x10 [ 2348.633304][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2348.633570][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2348.633840][ C0] tc_run+0x2e4/0x5d0 [ 2348.634047][ C0] ? __pfx_tc_run+0x10/0x10 [ 2348.634294][ C0] ? lock_acquire+0x1c1/0x220 [ 2348.634541][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2348.634818][ C0] __dev_queue_xmit+0x8eb/0x1ca0 [ 2348.635074][ C0] ? hlock_class+0x4e/0x130 [ 2348.635305][ C0] ? mark_lock+0x38/0x3e0 [ 2348.635535][ C0] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2348.635807][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2348.636153][ C0] ? neigh_hh_output+0x348/0x590 [ 2348.636415][ C0] ip_finish_output2+0x786/0x18e0 [ 2348.636676][ C0] ? __pfx_ip_finish_output2+0x10/0x10 [ 2348.636968][ C0] ? __ip_finish_output+0x3dd/0x770 [ 2348.637241][ C0] ip_output+0x16b/0x4f0 [ 2348.637465][ C0] ? __pfx_ip_output+0x10/0x10 [ 2348.637722][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2348.638013][ C0] ? ip_local_out+0x114/0x3b0 [ 2348.638259][ C0] __ip_queue_xmit+0x672/0x1910 [ 2348.638504][ C0] ? __skb_clone+0x57a/0x760 [ 2348.638744][ C0] __tcp_transmit_skb+0x22b1/0x2d20 [ 2348.639026][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2348.639311][ C0] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 2348.639614][ C0] tcp_write_xmit+0xe42/0x24c0 [ 2348.639887][ C0] ? ipv4_mtu+0x37/0x360 [ 2348.640110][ C0] ? __pfx_tcp_write_xmit+0x10/0x10 [ 2348.640381][ C0] ? __pfx_tcp_current_mss+0x10/0x10 [ 2348.640660][ C0] __tcp_push_pending_frames+0x96/0x320 [ 2348.640944][ C0] tcp_rcv_state_process+0x862/0x21c0 [ 2348.641234][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2348.641538][ C0] ? find_held_lock+0x33/0x120 [ 2348.641785][ C0] ? tcp_v4_rcv+0x2161/0x29c0 [ 2348.642033][ C0] ? hlock_class+0x4e/0x130 [ 2348.642270][ C0] tcp_v4_do_rcv+0x1ac/0x8e0 [ 2348.642516][ C0] ? __pfx_tcp_v4_do_rcv+0x10/0x10 [ 2348.642782][ C0] tcp_v4_rcv+0x2362/0x29c0 [ 2348.643023][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2348.643273][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2348.643538][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2348.643827][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2348.644108][ C0] ip_local_deliver_finish+0x2ae/0x450 [ 2348.644389][ C0] ip_local_deliver+0x19d/0x480 [ 2348.644644][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2348.644930][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2348.645256][ C0] ip_rcv+0x564/0x740 [ 2348.645459][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2348.645698][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2348.645969][ C0] ? process_backlog+0x1ed/0x5e0 [ 2348.646222][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2348.646452][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2348.646760][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2348.647087][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2348.647380][ C0] ? lock_acquire+0x1c1/0x220 [ 2348.647624][ C0] ? process_backlog+0x1ed/0x5e0 [ 2348.647892][ C0] process_backlog+0xd3/0x5e0 [ 2348.648142][ C0] __napi_poll.constprop.0+0xa2/0x450 [ 2348.648419][ C0] net_rx_action+0x440/0xb40 [ 2348.648664][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 2348.648927][ C0] ? __pfx___schedule+0x10/0x10 [ 2348.649181][ C0] ? __pfx___lock_release+0x10/0x10 [ 2348.649452][ C0] __do_softirq+0x1b9/0x7ff [ 2348.649693][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 2348.649954][ C0] run_ksoftirqd+0x2e/0x60 [ 2348.650191][ C0] smpboot_thread_fn+0x30b/0x840 [ 2348.650447][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2348.650723][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2348.651022][ C0] kthread+0x28f/0x360 [ 2348.651241][ C0] ? __pfx_kthread+0x10/0x10 [ 2348.651479][ C0] ret_from_fork+0x31/0x70 [ 2348.651717][ C0] ? __pfx_kthread+0x10/0x10 [ 2348.651955][ C0] ret_from_fork_asm+0x1b/0x30 [ 2348.652211][ C0] [ 2351.997956][ C1] clocksource: Long readout interval, skipping watchdog check: cs_nsec: 1131912106 wd_nsec: 1131911734 [ 2366.810309][T12197] ncat (12197) used greatest stack depth: 20528 bytes left [ 2406.442182][T12196] ncat (12196) used greatest stack depth: 19952 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__->