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 [ 1865.418843][T12575] veth1: left promiscuous mode # TEST: gact drop and ok (skip_hw) [ OK ] [ 1876.404329][T12670] 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 ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1888.262350][ C1] [ 1888.262505][ C1] ============================================ [ 1888.262827][ C1] WARNING: possible recursive locking detected [ 1888.263173][ C1] 6.8.0-rc1-virtme #1 Not tainted [ 1888.263440][ C1] -------------------------------------------- [ 1888.263763][ C1] swapper/1/0 is trying to acquire lock: [ 1888.264072][ C1] ffff888005468e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1888.264562][ C1] [ 1888.264562][ C1] but task is already holding lock: [ 1888.264943][ C1] ffff888005469b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1888.265429][ C1] [ 1888.265429][ C1] other info that might help us debug this: [ 1888.265843][ C1] Possible unsafe locking scenario: [ 1888.265843][ C1] [ 1888.266258][ C1] CPU0 [ 1888.266431][ C1] ---- [ 1888.266631][ C1] lock(slock-AF_INET/1); [ 1888.266869][ C1] lock(slock-AF_INET/1); [ 1888.267120][ C1] [ 1888.267120][ C1] *** DEADLOCK *** [ 1888.267120][ C1] [ 1888.267541][ C1] May be due to missing lock nesting notation [ 1888.267541][ C1] [ 1888.267983][ C1] 8 locks held by swapper/1/0: [ 1888.268252][ C1] #0: ffffffff9f7447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1888.268747][ C1] #1: ffffffff9f7447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1888.269288][ C1] #2: ffff888005469b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1888.269798][ C1] #3: ffffffff9f7447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1888.270303][ C1] #4: ffffffff9f7447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1888.270809][ C1] #5: ffffffff9f744780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1888.271334][ C1] #6: ffffffff9f7447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1888.271871][ C1] #7: ffffffff9f7447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1888.272418][ C1] [ 1888.272418][ C1] stack backtrace: [ 1888.272735][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc1-virtme #1 [ 1888.273152][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1888.273790][ C1] Call Trace: [ 1888.273966][ C1] [ 1888.274136][ C1] dump_stack_lvl+0x64/0xb0 [ 1888.274379][ C1] validate_chain+0x525/0xa00 [ 1888.274653][ C1] ? __pfx_validate_chain+0x10/0x10 [ 1888.274952][ C1] ? hlock_class+0x4e/0x130 [ 1888.275198][ C1] ? mark_lock+0x38/0x3e0 [ 1888.275449][ C1] __lock_acquire+0xb67/0x1610 [ 1888.275700][ C1] ? lock_downgrade+0x90/0x110 [ 1888.275967][ C1] ? mark_lock+0x38/0x3e0 [ 1888.276198][ C1] lock_acquire.part.0+0xe5/0x330 [ 1888.276482][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1888.276733][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1888.277044][ C1] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1888.277332][ C1] ? lock_acquire+0x1c1/0x220 [ 1888.277576][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1888.277847][ C1] _raw_spin_lock_nested+0x33/0x80 [ 1888.278122][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1888.278387][ C1] tcp_v4_rcv+0x2159/0x29b0 [ 1888.278633][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1888.278905][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 1888.279170][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1888.279484][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 1888.279774][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 1888.280074][ C1] ip_local_deliver+0x19d/0x480 [ 1888.280328][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 1888.280615][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1888.280966][ C1] ip_rcv+0x564/0x740 [ 1888.281181][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1888.281442][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1888.281715][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 1888.282041][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1888.282277][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 1888.282615][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1888.282947][ C1] ? lock_acquire+0x1c1/0x220 [ 1888.283220][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 1888.283522][ C1] netif_receive_skb_internal+0xb0/0x300 [ 1888.283816][ C1] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1888.284163][ C1] ? __copy_skb_header+0xaf/0x490 [ 1888.284427][ C1] ? __skb_clone+0x57a/0x760 [ 1888.284668][ C1] netif_receive_skb+0x55/0x280 [ 1888.284944][ C1] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1888.285299][ C1] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1888.285644][ C1] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1888.285970][ C1] tcf_action_exec.part.0+0x115/0x3d0 [ 1888.286251][ C1] fl_classify+0x4dc/0x650 [cls_flower] [ 1888.286557][ C1] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1888.286904][ C1] ? hlock_class+0x4e/0x130 [ 1888.287142][ C1] ? hlock_class+0x4e/0x130 [ 1888.287400][ C1] ? validate_chain+0x130/0xa00 [ 1888.287651][ C1] ? mark_lock+0x38/0x3e0 [ 1888.287914][ C1] ? __pfx_validate_chain+0x10/0x10 [ 1888.288188][ C1] ? hlock_class+0x4e/0x130 [ 1888.288449][ C1] ? hlock_class+0x4e/0x130 [ 1888.288694][ C1] ? validate_chain+0x130/0xa00 [ 1888.288968][ C1] ? __lock_acquire+0xb67/0x1610 [ 1888.289236][ C1] ? __pfx_validate_chain+0x10/0x10 [ 1888.289524][ C1] ? hlock_class+0x4e/0x130 [ 1888.289759][ C1] ? mark_lock+0x38/0x3e0 [ 1888.290002][ C1] ? __lock_acquire+0xb67/0x1610 [ 1888.290260][ C1] __tcf_classify+0x32c/0x7d0 [ 1888.290536][ C1] tcf_classify+0x283/0x930 [ 1888.290776][ C1] ? __pfx_tcf_classify+0x10/0x10 [ 1888.291058][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1888.291337][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1888.291636][ C1] tc_run+0x2e4/0x5d0 [ 1888.291843][ C1] ? handle_irq_event+0x112/0x1c0 [ 1888.292120][ C1] ? __pfx_tc_run+0x10/0x10 [ 1888.292358][ C1] ? lock_acquire+0x1c1/0x220 [ 1888.292601][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1888.292883][ C1] __dev_queue_xmit+0x8eb/0x1ca0 [ 1888.293155][ C1] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1888.293454][ C1] ? neigh_hh_output+0xd2/0x590 [ 1888.293711][ C1] ip_finish_output2+0x786/0x18e0 [ 1888.293988][ C1] ? __pfx_ip_finish_output2+0x10/0x10 [ 1888.294271][ C1] ? __ip_finish_output+0x10f/0x770 [ 1888.294566][ C1] ip_output+0x16b/0x4f0 [ 1888.294791][ C1] ? __pfx_ip_output+0x10/0x10 [ 1888.295057][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1888.295353][ C1] ? __do_softirq+0x1bc/0x7ff [ 1888.295597][ C1] ? ip_local_out+0x114/0x3b0 [ 1888.295861][ C1] __ip_queue_xmit+0x672/0x1910 [ 1888.296113][ C1] ? __create_object+0x5e/0xb0 [ 1888.296380][ C1] __tcp_transmit_skb+0x22b1/0x2d20 [ 1888.296657][ C1] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1888.296972][ C1] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 1888.297254][ C1] tcp_rcv_state_process+0x862/0x1fd0 [ 1888.297543][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1888.297816][ C1] ? hlock_class+0x4e/0x130 [ 1888.298049][ C1] ? __lock_acquired+0x2cf/0x6b0 [ 1888.298332][ C1] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1888.298634][ C1] ? __pfx___lock_acquired+0x10/0x10 [ 1888.298924][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1888.299218][ C1] tcp_v4_do_rcv+0x154/0x850 [ 1888.299475][ C1] tcp_v4_rcv+0x235a/0x29b0 [ 1888.299723][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1888.299990][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 1888.300265][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 1888.300570][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 1888.300859][ C1] ip_local_deliver+0x19d/0x480 [ 1888.301127][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 1888.301405][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1888.301758][ C1] ip_rcv+0x564/0x740 [ 1888.301977][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1888.302237][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1888.302510][ C1] ? process_backlog+0x1ed/0x5e0 [ 1888.302769][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1888.303023][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 1888.303331][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1888.303662][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1888.303972][ C1] ? lock_acquire+0x1c1/0x220 [ 1888.304217][ C1] ? process_backlog+0x1ed/0x5e0 [ 1888.304500][ C1] process_backlog+0xd3/0x5e0 [ 1888.304747][ C1] ? __pfx___lock_release+0x10/0x10 [ 1888.305034][ C1] __napi_poll.constprop.0+0xa5/0x450 [ 1888.305312][ C1] net_rx_action+0x440/0xb40 [ 1888.305552][ C1] ? __pfx_net_rx_action+0x10/0x10 [ 1888.305843][ C1] __do_softirq+0x1bc/0x7ff [ 1888.306083][ C1] irq_exit_rcu+0x98/0xc0 [ 1888.306326][ C1] common_interrupt+0x83/0x90 [ 1888.306568][ C1] [ 1888.306749][ C1] [ 1888.306902][ C1] asm_common_interrupt+0x26/0x40 [ 1888.307182][ C1] RIP: 0010:default_idle+0xf/0x20 [ 1888.307444][ C1] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d e3 d2 41 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 1888.308445][ C1] RSP: 0018:ffffc9000013fdf8 EFLAGS: 00000206 [ 1888.308783][ C1] RAX: 0000000001749241 RBX: 1ffff92000027fc1 RCX: ffffffff9e443812 [ 1888.309194][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9be969c6 [ 1888.309628][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005dbeea4 [ 1888.310043][ C1] R10: ffff88802edf7523 R11: 1ffff110003da34c R12: 0000000000000000 [ 1888.310480][ C1] R13: ffff888001d0bec0 R14: dffffc0000000000 R15: 0000000000000000 [ 1888.310894][ C1] ? ct_kernel_exit.constprop.0+0xc2/0xe0 [ 1888.311211][ C1] ? cpuidle_idle_call+0x1f6/0x280 [ 1888.311480][ C1] default_idle_call+0x69/0xa0 [ 1888.311728][ C1] cpuidle_idle_call+0x1f6/0x280 [ 1888.312007][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 1888.312294][ C1] do_idle+0xfb/0x160 [ 1888.312502][ C1] cpu_startup_entry+0x55/0x60 [ 1888.312772][ C1] start_secondary+0x21c/0x2b0 [ 1888.313025][ C1] ? __pfx_start_secondary+0x10/0x10 [ 1888.313320][ C1] secondary_startup_64_no_verify+0x16d/0x17b [ 1888.313637][ C1] [ 1927.852008][T12848] ncat (12848) 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__->