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 ] [ 2356.963392][T18712] 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 ] [ 2367.503514][T18826] ping (18826) used greatest stack depth: 23480 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2371.986434][ C0] [ 2371.986592][ C0] ============================================ [ 2371.986917][ C0] WARNING: possible recursive locking detected [ 2371.987235][ C0] 6.8.0-rc4-virtme #1 Not tainted [ 2371.987493][ C0] -------------------------------------------- [ 2371.987796][ C0] ncat/18869 is trying to acquire lock: [ 2371.988086][ C0] ffff88800a7b0f68 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2209/0x2a80 [ 2371.988592][ C0] [ 2371.988592][ C0] but task is already holding lock: [ 2371.988968][ C0] ffff88800a7b1ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2209/0x2a80 [ 2371.989425][ C0] [ 2371.989425][ C0] other info that might help us debug this: [ 2371.989850][ C0] Possible unsafe locking scenario: [ 2371.989850][ C0] [ 2371.990224][ C0] CPU0 [ 2371.990403][ C0] ---- [ 2371.990574][ C0] lock(slock-AF_INET/1); [ 2371.990818][ C0] lock(slock-AF_INET/1); [ 2371.991038][ C0] [ 2371.991038][ C0] *** DEADLOCK *** [ 2371.991038][ C0] [ 2371.991449][ C0] May be due to missing lock nesting notation [ 2371.991449][ C0] [ 2371.991861][ C0] 8 locks held by ncat/18869: [ 2371.992095][ C0] #0: ffffffff905467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ef/0x5e0 [ 2371.992573][ C0] #1: ffffffff905467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490 [ 2371.993080][ C0] #2: ffff88800a7b1ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2209/0x2a80 [ 2371.993543][ C0] #3: ffffffff905467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0 [ 2371.994024][ C0] #4: ffffffff905467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2371.994505][ C0] #5: ffffffff90546780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2371.994988][ C0] #6: ffffffff905467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2371.995495][ C0] #7: ffffffff905467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490 [ 2371.995994][ C0] [ 2371.995994][ C0] stack backtrace: [ 2371.996305][ C0] CPU: 0 PID: 18869 Comm: ncat Not tainted 6.8.0-rc4-virtme #1 [ 2371.996703][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2371.997307][ C0] Call Trace: [ 2371.997475][ C0] [ 2371.997623][ C0] dump_stack_lvl+0x64/0xb0 [ 2371.997866][ C0] validate_chain+0x525/ DETECTED CRASH, lowering timeout 0xa00 [ 2371.998105][ C0] ? __pfx_validate_chain+0x10/0x10 [ 2371.998372][ C0] ? hlock_class+0x4e/0x130 [ 2371.998601][ C0] ? mark_lock+0x38/0x3e0 [ 2371.998826][ C0] __lock_acquire+0xb67/0x1610 [ 2371.999065][ C0] ? lock_downgrade+0xe0/0x110 [ 2371.999303][ C0] ? mark_lock+0x38/0x3e0 [ 2371.999533][ C0] lock_acquire.part.0+0xe5/0x330 [ 2371.999782][ C0] ? tcp_v4_rcv+0x2209/0x2a80 [ 2372.000016][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2372.000308][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2372.000596][ C0] ? lock_acquire+0x1c1/0x220 [ 2372.000830][ C0] ? tcp_v4_rcv+0x2209/0x2a80 [ 2372.001062][ C0] _raw_spin_lock_nested+0x33/0x80 [ 2372.001318][ C0] ? tcp_v4_rcv+0x2209/0x2a80 [ 2372.001550][ C0] tcp_v4_rcv+0x2209/0x2a80 [ 2372.001790][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2372.002031][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2372.002289][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2372.002566][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2372.002840][ C0] ip_local_deliver_finish+0x2b6/0x490 [ 2372.003112][ C0] ip_local_deliver+0x19d/0x480 [ 2372.003353][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2372.003617][ C0] ? tcp_v4_early_demux+0x5a1/0x9e0 [ 2372.003875][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2372.004189][ C0] ip_rcv+0x564/0x740 [ 2372.004387][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2372.004615][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2372.004880][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2372.005172][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2372.005395][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2372.005687][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2372.006002][ C0] ? mark_held_locks+0xa5/0xf0 [ 2372.006238][ C0] ? lock_acquire+0x1c1/0x220 [ 2372.006476][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2372.006764][ C0] netif_receive_skb_internal+0xb0/0x300 [ 2372.007045][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2372.007357][ C0] ? __copy_skb_header+0xaf/0x490 [ 2372.007606][ C0] ? __skb_clone+0x57a/0x760 [ 2372.007833][ C0] netif_receive_skb+0x55/0x280 [ 2372.008075][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2372.008386][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2372.008712][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2372.008988][ C0] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2372.009287][ C0] tcf_action_exec.part.0+0x112/0x3d0 [ 2372.009583][ C0] fl_classify+0x4dc/0x650 [cls_flower] [ 2372.009899][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2372.010204][ C0] ? __pfx_check_irq_usage+0x10/0x10 [ 2372.010486][ C0] ? __bfs+0x247/0x650 [ 2372.010690][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 2372.010949][ C0] ? hlock_class+0x4e/0x130 [ 2372.011176][ C0] ? check_path.constprop.0+0x24/0x50 [ 2372.011455][ C0] ? check_noncircular+0x14e/0x3e0 [ 2372.011708][ C0] ? __pfx_check_noncircular+0x10/0x10 [ 2372.011985][ C0] ? __pfx_validate_chain+0x10/0x10 [ 2372.012242][ C0] ? hlock_class+0x4e/0x130 [ 2372.012469][ C0] ? hlock_class+0x4e/0x130 [ 2372.012695][ C0] ? check_prev_add+0x773/0xce0 [ 2372.012944][ C0] __tcf_classify+0x329/0x7d0 [ 2372.013177][ C0] tcf_classify+0x283/0x930 [ 2372.013406][ C0] ? __pfx_tcf_classify+0x10/0x10 [ 2372.013654][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2372.013907][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2372.014163][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2372.014418][ C0] tc_run+0x2e4/0x5d0 [ 2372.014618][ C0] ? __pfx_tc_run+0x10/0x10 [ 2372.014858][ C0] ? lock_acquire+0x1c1/0x220 [ 2372.015092][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2372.015349][ C0] __dev_queue_xmit+0x686/0x17e0 [ 2372.015596][ C0] ? mark_held_locks+0xa5/0xf0 [ 2372.015832][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2372.016156][ C0] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2372.016422][ C0] ? neigh_hh_output+0x36d/0x5d0 [ 2372.016670][ C0] ip_finish_output2+0x786/0x18e0 [ 2372.016921][ C0] ? __pfx_ip_finish_output2+0x10/0x10 [ 2372.017190][ C0] ? __ip_finish_output+0x10f/0x770 [ 2372.017447][ C0] ip_output+0x16b/0x4f0 [ 2372.017661][ C0] ? __pfx_ip_output+0x10/0x10 [ 2372.017903][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2372.018198][ C0] ? ip_local_out+0x114/0x3b0 [ 2372.018436][ C0] __ip_queue_xmit+0x672/0x17b0 [ 2372.018723][ C0] ? __create_object+0x5e/0xb0 [ 2372.018964][ C0] __tcp_transmit_skb+0x22b2/0x2d30 [ 2372.019226][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2372.019501][ C0] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 2372.019779][ C0] tcp_rcv_state_process+0x7c7/0x1fe0 [ 2372.020043][ C0] ? tcp_v4_rcv+0x2209/0x2a80 [ 2372.020288][ C0] ? hlock_class+0x4e/0x130 [ 2372.020513][ C0] ? __lock_acquired+0x18a/0x6b0 [ 2372.020773][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2372.021074][ C0] ? __pfx___lock_acquired+0x10/0x10 [ 2372.021334][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2372.021611][ C0] tcp_v4_do_rcv+0x154/0x860 [ 2372.021851][ C0] tcp_v4_rcv+0x2431/0x2a80 [ 2372.022078][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2372.022333][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2372.022581][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2372.022875][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2372.023143][ C0] ip_local_deliver_finish+0x2b6/0x490 [ 2372.023411][ C0] ip_local_deliver+0x19d/0x480 [ 2372.023653][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2372.023917][ C0] ? tcp_v4_early_demux+0x5a1/0x9e0 [ 2372.024173][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2372.024484][ C0] ip_rcv+0x564/0x740 [ 2372.024690][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2372.024925][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2372.025180][ C0] ? process_backlog+0x1ef/0x5e0 [ 2372.025431][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2372.025661][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2372.025967][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2372.026299][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2372.026578][ C0] ? lock_acquire+0x1c1/0x220 [ 2372.026824][ C0] ? process_backlog+0x1ef/0x5e0 [ 2372.027070][ C0] process_backlog+0xd5/0x5e0 [ 2372.027305][ C0] __napi_poll.constprop.0+0xa2/0x460 [ 2372.027574][ C0] net_rx_action+0x440/0xb40 [ 2372.027808][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 2372.028061][ C0] ? hlock_class+0x20/0x130 [ 2372.028304][ C0] ? mark_held_locks+0xa5/0xf0 [ 2372.028546][ C0] ? hrtimer_interrupt+0x31a/0x770 [ 2372.028817][ C0] __do_softirq+0x1b9/0x7ff [ 2372.029045][ C0] ? tcp_recvmsg+0xf8/0x4f0 [ 2372.029269][ C0] do_softirq+0x4d/0xa0 [ 2372.029497][ C0] [ 2372.029644][ C0] [ 2372.029796][ C0] __local_bh_enable_ip+0xf6/0x120 [ 2372.030052][ C0] tcp_recvmsg+0xf8/0x4f0 [ 2372.030282][ C0] ? __pfx_tcp_recvmsg+0x10/0x10 [ 2372.030526][ C0] ? core_sys_select+0x620/0x710 [ 2372.030792][ C0] ? __pfx_core_sys_select+0x10/0x10 [ 2372.031054][ C0] inet_recvmsg+0xf9/0x2c0 [ 2372.031275][ C0] ? __pfx_inet_recvmsg+0x10/0x10 [ 2372.031531][ C0] ? __fget_light+0x54/0x1e0 [ 2372.031773][ C0] ? sockfd_lookup_light+0x1a/0x160 [ 2372.032030][ C0] __sys_recvfrom+0x2fb/0x3b0 [ 2372.032267][ C0] ? __pfx___sys_recvfrom+0x10/0x10 [ 2372.032536][ C0] ? __pfx___lock_release+0x10/0x10 [ 2372.032802][ C0] ? do_pselect.constprop.0+0x12b/0x1e0 [ 2372.033076][ C0] ? __pfx_do_pselect.constprop.0+0x10/0x10 [ 2372.033381][ C0] ? restore_fpregs_from_fpstate+0x99/0x160 [ 2372.033674][ C0] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10 [ 2372.034013][ C0] __x64_sys_recvfrom+0xe0/0x1c0 [ 2372.034263][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 2372.034586][ C0] do_syscall_64+0xc9/0x1e0 [ 2372.034813][ C0] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2372.035104][ C0] RIP: 0033:0x7f1e0f24e4c0 [ 2372.035327][ C0] Code: 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20 [ 2372.036283][ C0] RSP: 002b:00007ffee0835d48 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 2372.036693][ C0] RAX: ffffffffffffffda RBX: 000055ac6ed37a20 RCX: 00007f1e0f24e4c0 [ 2372.037080][ C0] RDX: 0000000000002000 RSI: 00007ffee0835dd0 RDI: 0000000000000008 [ 2372.037466][ C0] RBP: 00007ffee0835dd0 R08: 0000000000000000 R09: 0000000000000000 [ 2372.037858][ C0] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 2372.038263][ C0] R13: 000055ac6ed37a20 R14: 0000000000000000 R15: 00007ffee0835dcc [ 2372.038653][ C0] [ 2404.375512][T18870] ncat (18870) used greatest stack depth: 21496 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__->