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 [ 1884.986789][T18924] veth1: left promiscuous mode # TEST: gact drop and ok (skip_hw) [ OK ] [ 1895.630955][T19019] 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 ] [ 1904.472910][T19148] ping (19148) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1908.189211][ C1] [ 1908.189365][ C1] ============================================ [ 1908.189690][ C1] WARNING: possible recursive locking detected [ 1908.190045][ C1] 6.8.0-rc1-virtme #1 Not tainted [ 1908.190328][ C1] -------------------------------------------- [ 1908.190653][ C1] swapper/1/0 is trying to acquire lock: [ 1908.190969][ C1] ffff88800ab29b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1908.191463][ C1] [ 1908.191463][ C1] but task is already holding lock: [ 1908.191851][ C1] ffff88800ab28e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1908.192338][ C1] [ 1908.192338][ C1] other info that might help us debug this: [ 1908.192760][ C1] Possible unsafe locking scenario: [ 1908.192760][ C1] [ 1908.193172][ C1] CPU0 [ 1908.193349][ C1] ---- [ 1908.193522][ C1] lock(slock-AF_INET/1); [ 1908.193781][ C1] lock(slock-AF_INET/1); [ 1908.194040][ C1] [ 1908.194040][ C1] *** DEADLOCK *** [ 1908.194040][ C1] [ 1908.194474][ C1] May be due to missing lock nesting notation [ 1908.194474][ C1] [ 1908.194924][ C1] 8 locks held by swapper/1/0: [ 1908.195197][ C1] #0: ffffffffb9b447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1908.195714][ C1] #1: ffffffffb9b447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1908.196284][ C1] #2: ffff88800ab28e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1908.196799][ C1] #3: ffffffffb9b447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1908.197332][ C1] #4: ffffffffb9b447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1908.197878][ C1] #5: ffffffffb9b44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1908.198417][ C1] #6: ffffffffb9b447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1908.198985][ C1] #7: ffffffffb9b447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1908.199534][ C1] [ 1908.199534][ C1] stack backtrace: [ 1908.199852][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc1-virtme #1 [ 1908.200265][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1908.200926][ C1] Call Trace: [ 1908.201104][ C1] [ 1908.201280][ C1] dump_stack_lvl+0x64/0xb0 [ 1908.201541][ C1] validate_chain+0x525/0xa00 [ 1908.201793][ C1] ? __pfx_validate_chain+0x10/0x10 [ 1908.202084][ C1] ? hlock_class+0x4e/0x130 [ 1908.202343][ C1] ? mark_lock+0x38/0x3e0 [ 1908.202573][ C1] __lock_acquire+0xb67/0x1610 [ 1908.202844][ C1] ? lock_downgrade+0x90/0x110 [ 1908.203123][ C1] ? mark_lock+0x38/0x3e0 [ 1908.203374][ C1] lock_acquire.part.0+0xe5/0x330 [ 1908.203639][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1908.203904][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1908.204222][ C1] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1908.204539][ C1] ? lock_acquire+0x1c1/0x220 [ 1908.204792][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1908.205068][ C1] _raw_spin_lock_nested+0x33/0x80 [ 1908.205364][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1908.205612][ C1] tcp_v4_rcv+0x2159/0x29b0 [ 1908.205874][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1908.206147][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 1908.206435][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1908.206732][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 1908.207049][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 1908.207357][ C1] ip_local_deliver+0x19d/0x480 [ 1908.207622][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 1908.207930][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1908.208286][ C1] ip_rcv+0x564/0x740 [ 1908.208519][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1908.208759][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1908.209050][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 1908.209378][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1908.209622][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 1908.209954][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1908.210317][ C1] ? lock_acquire+0x1c1/0x220 [ 1908.210595][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 1908.210914][ C1] netif_receive_skb_internal+0xb0/0x300 [ 1908.211226][ C1] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1908.211578][ C1] ? __copy_skb_header+0xaf/0x490 [ 1908.211849][ C1] ? __skb_clone+0x57a/0x760 [ 1908.212117][ C1] netif_receive_skb+0x55/0x280 [ 1908.212401][ C1] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1908.212748][ C1] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1908.213109][ C1] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1908.213442][ C1] tcf_action_exec.part.0+0x115/0x3d0 [ 1908.213735][ C1] fl_classify+0x4dc/0x650 [cls_flower] [ 1908.214045][ C1] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1908.214388][ C1] ? hlock_class+0x4e/0x130 [ 1908.214629][ C1] ? hlock_class+0x4e/0x130 [ 1908.214883][ C1] ? validate_chain+0x130/0xa00 [ 1908.215163][ C1] ? mark_lock+0x38/0x3e0 [ 1908.215417][ C1] ? __pfx_validate_chain+0x10/0x10 [ 1908.215692][ C1] ? hlock_class+0x4e/0x130 [ 1908.215950][ C1] ? hlock_class+0x4e/0x130 [ 1908.216208][ C1] ? validate_chain+0x130/0xa00 [ 1908.216485][ C1] ? __lock_acquire+0xb67/0x1610 [ 1908.216756][ C1] ? __pfx_validate_chain+0x10/0x10 [ 1908.217057][ C1] ? hlock_class+0x4e/0x130 [ 1908.217317][ C1] ? mark_lock+0x38/0x3e0 [ 1908.217579][ C1] ? __lock_acquire+0xb67/0x1610 [ 1908.217863][ C1] __tcf_classify+0x32c/0x7d0 [ 1908.218141][ C1] tcf_classify+0x283/0x930 [ 1908.218404][ C1] ? __pfx_tcf_classify+0x10/0x10 [ 1908.218672][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1908.218971][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1908.219271][ C1] tc_run+0x2e4/0x5d0 [ 1908.219500][ C1] ? handle_irq_event+0x112/0x1c0 [ 1908.219765][ C1] ? __pfx_tc_run+0x10/0x10 [ 1908.220022][ C1] ? lock_acquire+0x1c1/0x220 [ 1908.220290][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1908.220587][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1908.220862][ C1] __dev_queue_xmit+0x8eb/0x1ca0 [ 1908.221151][ C1] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1908.221453][ C1] ? ip_finish_output2+0x786/0x18e0 [ 1908.221739][ C1] ? neigh_hh_output+0x348/0x590 [ 1908.222023][ C1] ? neigh_hh_output+0xd2/0x590 [ 1908.222302][ C1] ? vrf_ip_local_out+0x781/0x860 [vrf] [ 1908.222621][ C1] ip_finish_output2+0x786/0x18e0 [ 1908.222892][ C1] ? __pfx_ip_finish_output2+0x10/0x10 [ 1908.223199][ C1] ? __ip_finish_output+0x3dd/0x770 [ 1908.223497][ C1] ip_output+0x16b/0x4f0 [ 1908.223722][ C1] ? __pfx_ip_output+0x10/0x10 [ 1908.223995][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1908.224314][ C1] ? ip_local_out+0x114/0x3b0 [ 1908.224587][ C1] __ip_queue_xmit+0x672/0x1910 [ 1908.224879][ C1] ? __skb_clone+0x57a/0x760 [ 1908.225148][ C1] __tcp_transmit_skb+0x22b1/0x2d20 [ 1908.225448][ C1] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1908.225741][ C1] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 1908.226074][ C1] tcp_write_xmit+0xe42/0x24c0 [ 1908.226352][ C1] ? ipv4_mtu+0x37/0x360 [ 1908.226580][ C1] ? __pfx_tcp_write_xmit+0x10/0x10 [ 1908.226877][ C1] ? __pfx_tcp_current_mss+0x10/0x10 [ 1908.227187][ C1] __tcp_push_pending_frames+0x96/0x320 [ 1908.227503][ C1] tcp_rcv_state_process+0x81e/0x1fd0 [ 1908.227789][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1908.228059][ C1] ? hlock_class+0x4e/0x130 [ 1908.228326][ C1] ? __lock_acquired+0x18a/0x6b0 [ 1908.228595][ C1] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1908.228929][ C1] ? __pfx___lock_acquired+0x10/0x10 [ 1908.229233][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1908.229551][ C1] tcp_v4_do_rcv+0x154/0x850 [ 1908.229807][ C1] tcp_v4_rcv+0x235a/0x29b0 [ 1908.230067][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1908.230347][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 1908.230614][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1908.230927][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 1908.231235][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 1908.231549][ C1] ip_local_deliver+0x19d/0x480 [ 1908.231807][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 1908.232114][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1908.232469][ C1] ip_rcv+0x564/0x740 [ 1908.232682][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1908.232944][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1908.233246][ C1] ? process_backlog+0x1ed/0x5e0 [ 1908.233535][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1908.233781][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 1908.234108][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1908.234475][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1908.234772][ C1] ? lock_acquire+0x1c1/0x220 [ 1908.235040][ C1] ? process_backlog+0x1ed/0x5e0 [ 1908.235327][ C1] process_backlog+0xd3/0x5e0 [ 1908.235575][ C1] ? __pfx___lock_release+0x10/0x10 [ 1908.235867][ C1] __napi_poll.constprop.0+0xa5/0x450 [ 1908.236173][ C1] net_rx_action+0x440/0xb40 [ 1908.236439][ C1] ? __pfx_net_rx_action+0x10/0x10 [ 1908.236721][ C1] __do_softirq+0x1bc/0x7ff [ 1908.236985][ C1] do_softirq+0x4d/0xa0 [ 1908.237234][ C1] [ 1908.237416][ C1] [ 1908.237578][ C1] flush_smp_call_function_queue+0x9e/0xc0 [ 1908.237910][ C1] do_idle+0x120/0x160 [ 1908.238146][ C1] cpu_startup_entry+0x55/0x60 [ 1908.238427][ C1] start_secondary+0x21c/0x2b0 [ 1908.238707][ C1] ? __pfx_start_secondary+0x10/0x10 [ 1908.239017][ C1] secondary_startup_64_no_verify+0x16d/0x17b [ 1908.239356][ C1] [ 1963.776730][T19197] ncat (19197) 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__->