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 ] [ 1672.565315][ T3877] 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 ] [ 1682.398657][ T3991] ping (3991) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1690.846581][ C3] [ 1690.846742][ C3] ============================================ [ 1690.847071][ C3] WARNING: possible recursive locking detected [ 1690.847392][ C3] 6.8.0-rc2-virtme #1 Not tainted [ 1690.847672][ C3] -------------------------------------------- [ 1690.847995][ C3] ksoftirqd/3/32 is trying to acquire lock: [ 1690.848313][ C3] ffff8880083f1b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 1690.848794][ C3] [ 1690.848794][ C3] but task is already holding lock: [ 1690.849177][ C3] ffff8880083f0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 1690.849665][ C3] [ 1690.849665][ C3] other info that might help us debug this: [ 1690.850102][ C3] Possible unsafe locking scenario: [ 1690.850102][ C3] [ 1690.850494][ C3] CPU0 [ 1690.850686][ C3] ---- [ 1690.850866][ C3] lock(slock-AF_INET/1); [ 1690.851104][ C3] lock(slock-AF_INET/1); [ 1690.851357][ C3] [ 1690.851357][ C3] *** DEADLOCK *** [ 1690.851357][ C3] [ 1690.851772][ C3] May be due to missing lock nesting notation [ 1690.851772][ C3] [ 1690.852199][ C3] 8 locks held by ksoftirqd/3/32: [ 1690.852469][ C3] #0: ffffffffacf447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1690.852992][ C3] #1: ffffffffacf447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1690.853523][ C3] #2: ffff8880083f0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 1690.854020][ C3] #3: ffffffffacf447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1690.854512][ C3] #4: ffffffffacf447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1690.855070][ C3] #5: ffffffffacf44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1690.855594][ C3] #6: ffffffffacf447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1690.856140][ C3] #7: ffffffffacf447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1690.856679][ C3] [ 1690.856679][ C3] stack backtrace: [ 1690.856993][ C3] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1690.857431][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1690.858065][ C3] Call Trace: [ 1690.858251][ C3] [ 1690.858425][ C3] dump_stack_lvl+0x64/0xb0 [ 1690.858683][ C3] validate_chain+0x525/0xa00 [ 1690.858967][ C3] ? __pfx_validate_chain+0x10/0x10 [ 1690.859245][ C3] ? hlock_class+0x4e/0x130 [ 1690.859487][ C3] ? mark_lock+0x38/0x3e0 [ 1690.859748][ C3] __lock_acquire+0xb67/0x1610 [ 1690.860003][ C3] ? lock_downgrade+0xa0/0x110 [ 1690.860264][ C3] ? mark_lock+0x38/0x3e0 [ 1690.860530][ C3] lock_acquire.part.0+0xe5/0x330 [ 1690.860800][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 1690.861052][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1690.861366][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1690.861665][ C3] ? lock_acquire+0x1c1/0x220 [ 1690.861915][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 1690.862189][ C3] _raw_spin_lock_nested+0x33/0x80 [ 1690.862465][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 1690.862716][ C3] tcp_v4_rcv+0x2161/0x29c0 [ 1690.862987][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1690.863246][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 1690.863519][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1690.863831][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 1690.864118][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 1690.864410][ C3] ip_local_deliver+0x19d/0x480 [ 1690.864693][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 1690.864982][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1690.865317][ C3] ip_rcv+0x564/0x740 [ 1690.865567][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1690.865812][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 1690.866088][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 1690.866424][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1690.866672][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 1690.866989][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1690.867364][ C3] ? mark_held_locks+0xa5/0xf0 [ 1690.867628][ C3] ? lock_acquire+0x1c1/0x220 [ 1690.867877][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 1690.868206][ C3] netif_receive_skb_internal+0xb0/0x300 [ 1690.868497][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1690.868828][ C3] ? __copy_skb_header+0xaf/0x490 [ 1690.869098][ C3] ? __skb_clone+0x57a/0x760 [ 1690.869366][ C3] netif_receive_skb+0x55/0x280 [ 1690.869629][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1690.869993][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1690.870346][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1690.870665][ C3] tcf_action_exec.part.0+0x112/0x3d0 [ 1690.870962][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 1690.871296][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1690.871620][ C3] ? __pfx_usage_match+0x10/0x10 [ 1690.871905][ C3] ? check_irq_usage+0x27e/0x850 [ 1690.872168][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 1690.872447][ C3] ? __bfs+0x247/0x650 [ 1690.872679][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 1690.872955][ C3] ? __bfs+0x247/0x650 [ 1690.873185][ C3] ? __pfx_usage_match+0x10/0x10 [ 1690.873467][ C3] ? check_path.constprop.0+0x24/0x50 [ 1690.873746][ C3] ? check_noncircular+0x14e/0x3e0 [ 1690.874019][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 1690.874314][ C3] ? __pfx_validate_chain+0x10/0x10 [ 1690.874599][ C3] ? hlock_class+0x4e/0x130 [ 1690.874845][ C3] __tcf_classify+0x329/0x7d0 [ 1690.875094][ C3] tcf_classify+0x283/0x930 [ 1690.875372][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 1690.875639][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 1690.875914][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1690.876204][ C3] tc_run+0x2e4/0x5d0 [ 1690.876418][ C3] ? __pfx_tc_run+0x10/0x10 [ 1690.876662][ C3] ? lock_acquire+0x1c1/0x220 [ 1690.876941][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1690.877214][ C3] __dev_queue_xmit+0x8eb/0x1ca0 [ 1690.877484][ C3] ? hlock_class+0x4e/0x130 [ 1690.877740][ C3] ? mark_lock+0x38/0x3e0 [ 1690.877977][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1690.878266][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 1690.878630][ C3] ? neigh_hh_output+0x348/0x590 [ 1690.878901][ C3] ip_finish_output2+0x786/0x18e0 [ 1690.879171][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 1690.879494][ C3] ? __ip_finish_output+0x3dd/0x770 [ 1690.879770][ C3] ip_output+0x16b/0x4f0 [ 1690.879996][ C3] ? __pfx_ip_output+0x10/0x10 [ 1690.880276][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1690.880573][ C3] ? ip_local_out+0x114/0x3b0 [ 1690.880825][ C3] __ip_queue_xmit+0x672/0x1910 [ 1690.881104][ C3] ? __skb_clone+0x57a/0x760 [ 1690.881356][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 1690.881635][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1690.881942][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 1690.882257][ C3] tcp_write_xmit+0xe42/0x24c0 [ 1690.882513][ C3] ? ipv4_mtu+0x37/0x360 [ 1690.882753][ C3] ? __pfx_tcp_write_xmit+0x10/0x10 [ 1690.883032][ C3] ? __pfx_tcp_current_mss+0x10/0x10 [ 1690.883320][ C3] __tcp_push_pending_frames+0x96/0x320 [ 1690.883627][ C3] tcp_rcv_state_process+0x862/0x21c0 [ 1690.883912][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1690.884220][ C3] ? find_held_lock+0x33/0x120 [ 1690.884509][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 1690.884761][ C3] ? hlock_class+0x4e/0x130 [ 1690.885010][ C3] tcp_v4_do_rcv+0x1ac/0x8e0 [ 1690.885274][ C3] ? __pfx_tcp_v4_do_rcv+0x10/0x10 [ 1690.885548][ C3] tcp_v4_rcv+0x2362/0x29c0 [ 1690.885793][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1690.886065][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 1690.886332][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1690.886636][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 1690.886937][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 1690.887226][ C3] ip_local_deliver+0x19d/0x480 [ 1690.887491][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 1690.887798][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1690.888130][ C3] ip_rcv+0x564/0x740 [ 1690.888343][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1690.888602][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 1690.888889][ C3] ? process_backlog+0x1ed/0x5e0 [ 1690.889158][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1690.889417][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 1690.889729][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1690.890072][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1690.890408][ C3] ? lock_acquire+0x1c1/0x220 [ 1690.890663][ C3] ? process_backlog+0x1ed/0x5e0 [ 1690.890932][ C3] process_backlog+0xd3/0x5e0 [ 1690.891196][ C3] __napi_poll.constprop.0+0xa2/0x450 [ 1690.891480][ C3] net_rx_action+0x440/0xb40 [ 1690.891728][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 1690.892034][ C3] ? __pfx___schedule+0x10/0x10 [ 1690.892298][ C3] ? __pfx___lock_release+0x10/0x10 [ 1690.892574][ C3] __do_softirq+0x1b9/0x7ff [ 1690.892834][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 1690.893111][ C3] run_ksoftirqd+0x2e/0x60 [ 1690.893355][ C3] smpboot_thread_fn+0x30b/0x840 [ 1690.893639][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1690.893934][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1690.894222][ C3] kthread+0x28f/0x360 [ 1690.894471][ C3] ? __pfx_kthread+0x10/0x10 [ 1690.894721][ C3] ret_from_fork+0x31/0x70 [ 1690.894959][ C3] ? __pfx_kthread+0x10/0x10 [ 1690.895221][ C3] ret_from_fork_asm+0x1b/0x30 [ 1690.895478][ C3] [ 1710.459877][ T4035] ncat (4035) used greatest stack depth: 20864 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__->