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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 2231.545138][T11068] ping (11068) used greatest stack depth: 23480 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2235.708753][ C3] [ 2235.708916][ C3] ============================================ [ 2235.709236][ C3] WARNING: possible recursive locking detected [ 2235.709586][ C3] 6.8.0-rc4-virtme #1 Not tainted [ 2235.709853][ C3] -------------------------------------------- [ 2235.710164][ C3] ncat/11111 is trying to acquire lock: [ 2235.710464][ C3] ffff888006648f68 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2235.710936][ C3] [ 2235.710936][ C3] but task is already holding lock: [ 2235.711322][ C3] ffff888006649ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2235.711782][ C3] [ 2235.711782][ C3] other info that might help us debug this: [ 2235.712210][ C3] Possible unsafe locking scenario: [ 2235.712210][ C3] [ 2235.712598][ C3] CPU0 [ 2235.712769][ C3] ---- [ 2235.712949][ C3] lock(slock-AF_INET/1); [ 2235.713181][ C3] lock(slock-AF_INET/1); [ 2235.713425][ C3] [ 2235.713425][ C3] *** DEADLOCK *** [ 2235.713425][ C3] [ 2235.713834][ C3] May be due to missing lock nesting notation [ 2235.713834][ C3] [ 2235.714262][ C3] 8 locks held by ncat/11111: [ 2235.714516][ C3] #0: ffffffff9a9467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ef/0x5e0 [ 2235.715012][ C3] #1: ffffffff9a9467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490 [ 2235.715554][ C3] #2: ffff888006649ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2235.716045][ C3] #3: ffffffff9a9467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0 [ 2235.716531][ C3] #4: ffffffff9a9467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2235.717037][ C3] #5: ffffffff9a946780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2235.717552][ C3] #6: ffffffff9a9467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2235.718097][ C3] #7: ffffffff9a9467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490 [ 2235.718620][ C3] [ 2235.718620][ C3] stack backtrace: [ 2235.718938][ C3] CPU: 3 PID: 11111 Comm: ncat Not tainted 6.8.0-rc4-virtme #1 [ 2235.719330][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2235.719956][ C3] Call Trace: [ 2235.720131][ C3] [ 2235.720301][ DETECTED CRASH, lowering timeout C3] dump_stack_lvl+0x64/0xb0 [ 2235.720549][ C3] validate_chain+0x525/0xa00 [ 2235.720800][ C3] ? __pfx_validate_chain+0x10/0x10 [ 2235.721073][ C3] ? hlock_class+0x4e/0x130 [ 2235.721315][ C3] ? mark_lock+0x38/0x3e0 [ 2235.721547][ C3] __lock_acquire+0xb67/0x1610 [ 2235.721799][ C3] ? lock_downgrade+0xd0/0x110 [ 2235.722064][ C3] ? mark_lock+0x38/0x3e0 [ 2235.722300][ C3] lock_acquire.part.0+0xe5/0x330 [ 2235.722557][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2235.722806][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2235.723106][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2235.723396][ C3] ? lock_acquire+0x1c1/0x220 [ 2235.723640][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2235.723894][ C3] _raw_spin_lock_nested+0x33/0x80 [ 2235.724168][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2235.724427][ C3] tcp_v4_rcv+0x221e/0x2ac0 [ 2235.724676][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2235.724934][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2235.725203][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2235.725494][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2235.725775][ C3] ip_local_deliver_finish+0x2b6/0x490 [ 2235.726065][ C3] ip_local_deliver+0x19d/0x480 [ 2235.726323][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2235.726610][ C3] ? tcp_v4_early_demux+0x5a1/0x9e0 [ 2235.726897][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2235.727233][ C3] ip_rcv+0x564/0x740 [ 2235.727445][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2235.727680][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2235.727963][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2235.728273][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2235.728518][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2235.728829][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2235.729170][ C3] ? mark_held_locks+0xa5/0xf0 [ 2235.729429][ C3] ? lock_acquire+0x1c1/0x220 [ 2235.729670][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2235.729990][ C3] netif_receive_skb_internal+0xb0/0x300 [ 2235.730295][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2235.730614][ C3] ? __copy_skb_header+0xaf/0x490 [ 2235.730871][ C3] ? __skb_clone+0x57a/0x760 [ 2235.731106][ C3] netif_receive_skb+0x55/0x280 [ 2235.731360][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2235.731678][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2235.732011][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2235.732313][ C3] tcf_action_exec.part.0+0x112/0x3d0 [ 2235.732591][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 2235.732892][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2235.733210][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 2235.733482][ C3] ? __bfs+0x247/0x650 [ 2235.733692][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 2235.733966][ C3] ? hlock_class+0x4e/0x130 [ 2235.734199][ C3] ? check_path.constprop.0+0x24/0x50 [ 2235.734475][ C3] ? check_noncircular+0x14e/0x3e0 [ 2235.734743][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 2235.735028][ C3] ? hlock_class+0x4e/0x130 [ 2235.735262][ C3] ? check_prev_add+0x773/0xce0 [ 2235.735516][ C3] __tcf_classify+0x329/0x7d0 [ 2235.735757][ C3] tcf_classify+0x283/0x930 [ 2235.735991][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 2235.736248][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2235.736510][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2235.736782][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2235.737051][ C3] tc_run+0x2e4/0x5d0 [ 2235.737257][ C3] ? __pfx_tc_run+0x10/0x10 [ 2235.737492][ C3] ? lock_acquire+0x1c1/0x220 [ 2235.737733][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2235.737996][ C3] __dev_queue_xmit+0x686/0x17e0 [ 2235.738259][ C3] ? mark_held_locks+0xa5/0xf0 [ 2235.738504][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2235.738844][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2235.739118][ C3] ? neigh_hh_output+0x36d/0x5d0 [ 2235.739374][ C3] ip_finish_output2+0x786/0x18e0 [ 2235.739633][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 2235.739914][ C3] ? __ip_finish_output+0x10f/0x770 [ 2235.740180][ C3] ip_output+0x16b/0x4f0 [ 2235.740403][ C3] ? __pfx_ip_output+0x10/0x10 [ 2235.740647][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2235.740935][ C3] ? ip_local_out+0x114/0x3b0 [ 2235.741178][ C3] __ip_queue_xmit+0x672/0x17b0 [ 2235.741427][ C3] ? __create_object+0x5e/0xb0 [ 2235.741678][ C3] __tcp_transmit_skb+0x22b2/0x2d30 [ 2235.741949][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2235.742233][ C3] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 2235.742506][ C3] tcp_rcv_state_process+0x7c0/0x1fd0 [ 2235.742787][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2235.743027][ C3] ? hlock_class+0x4e/0x130 [ 2235.743267][ C3] ? __lock_acquired+0x18a/0x6b0 [ 2235.743520][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2235.743813][ C3] ? __pfx___lock_acquired+0x10/0x10 [ 2235.744084][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2235.744372][ C3] tcp_v4_do_rcv+0x154/0x860 [ 2235.744611][ C3] tcp_v4_rcv+0x2449/0x2ac0 [ 2235.744845][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2235.745094][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2235.745352][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2235.745640][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2235.745917][ C3] ip_local_deliver_finish+0x2b6/0x490 [ 2235.746196][ C3] ip_local_deliver+0x19d/0x480 [ 2235.746445][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2235.746732][ C3] ? tcp_v4_early_demux+0x5a1/0x9e0 [ 2235.747002][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2235.747325][ C3] ip_rcv+0x564/0x740 [ 2235.747531][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2235.747763][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2235.748028][ C3] ? process_backlog+0x1ef/0x5e0 [ 2235.748283][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2235.748516][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2235.748819][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2235.749145][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2235.749431][ C3] ? lock_acquire+0x1c1/0x220 [ 2235.749672][ C3] ? process_backlog+0x1ef/0x5e0 [ 2235.749929][ C3] process_backlog+0xd5/0x5e0 [ 2235.750172][ C3] __napi_poll.constprop.0+0xa2/0x460 [ 2235.750446][ C3] net_rx_action+0x440/0xb40 [ 2235.750684][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 2235.750945][ C3] ? kvm_clock_get_cycles+0x18/0x30 [ 2235.751217][ C3] ? ktime_get+0xb3/0x190 [ 2235.751437][ C3] ? hrtimer_interrupt+0x30e/0x770 [ 2235.751699][ C3] ? hrtimer_interrupt+0x31a/0x770 [ 2235.751969][ C3] __do_softirq+0x1b9/0x7ff [ 2235.752207][ C3] ? tcp_recvmsg+0xf8/0x4f0 [ 2235.752440][ C3] do_softirq+0x4d/0xa0 [ 2235.752655][ C3] [ 2235.752805][ C3] [ 2235.752956][ C3] __local_bh_enable_ip+0xf6/0x120 [ 2235.753222][ C3] tcp_recvmsg+0xf8/0x4f0 [ 2235.753443][ C3] ? __pfx_tcp_recvmsg+0x10/0x10 [ 2235.753695][ C3] ? core_sys_select+0x620/0x710 [ 2235.753955][ C3] ? __pfx_core_sys_select+0x10/0x10 [ 2235.754224][ C3] inet_recvmsg+0xf9/0x2c0 [ 2235.754454][ C3] ? __pfx_inet_recvmsg+0x10/0x10 [ 2235.754711][ C3] ? __fget_light+0x54/0x1e0 [ 2235.754946][ C3] ? sockfd_lookup_light+0x1a/0x160 [ 2235.755215][ C3] __sys_recvfrom+0x2fb/0x3b0 [ 2235.755461][ C3] ? __pfx___sys_recvfrom+0x10/0x10 [ 2235.755726][ C3] ? __pfx___lock_release+0x10/0x10 [ 2235.755999][ C3] ? do_pselect.constprop.0+0x12b/0x1e0 [ 2235.756287][ C3] ? __pfx_do_pselect.constprop.0+0x10/0x10 [ 2235.756593][ C3] ? restore_fpregs_from_fpstate+0x99/0x160 [ 2235.756905][ C3] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10 [ 2235.757236][ C3] __x64_sys_recvfrom+0xe0/0x1c0 [ 2235.757489][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 2235.757824][ C3] do_syscall_64+0xc9/0x1e0 [ 2235.758065][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2235.758368][ C3] RIP: 0033:0x7f8773e094c0 [ 2235.758596][ C3] 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 [ 2235.759578][ C3] RSP: 002b:00007ffc5fd1e488 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 2235.760005][ C3] RAX: ffffffffffffffda RBX: 0000561ff2a95a20 RCX: 00007f8773e094c0 [ 2235.760405][ C3] RDX: 0000000000002000 RSI: 00007ffc5fd1e510 RDI: 0000000000000008 [ 2235.760813][ C3] RBP: 00007ffc5fd1e510 R08: 0000000000000000 R09: 0000000000000000 [ 2235.761215][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 2235.761621][ C3] R13: 0000561ff2a95a20 R14: 0000000000000000 R15: 00007ffc5fd1e50c [ 2235.762023][ C3] [ 2253.836128][T11112] ncat (11112) used greatest stack depth: 21120 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__->