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
[ 1852.800257][T12578] veth1: left promiscuous mode
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 1863.331162][T12678] 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 ]
[ 1868.358179][T12769] tc (12769) used greatest stack depth: 23848 bytes left
[ 1871.313763][T12812] ping (12812) used greatest stack depth: 23352 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1874.451531][ C2]
[ 1874.451771][ C2] ============================================
[ 1874.452287][ C2] WARNING: possible recursive locking detected
[ 1874.452804][ C2] 6.8.0-rc2-virtme #1 Not tainted
[ 1874.453207][ C2] --------------------------------------------
[ 1874.453712][ C2] swapper/2/0 is trying to acquire lock:
[ 1874.454166][ C2] ffff8880062d1b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1874.454905][ C2]
[ 1874.454905][ C2] but task is already holding lock:
[ 1874.455489][ C2] ffff8880062d0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1874.456210][ C2]
[ 1874.456210][ C2] other info that might help us debug this:
[ 1874.456836][ C2] Possible unsafe locking scenario:
[ 1874.456836][ C2]
[ 1874.457418][ C2] CPU0
[ 1874.457688][ C2] ----
[ 1874.457948][ C2] lock(slock-AF_INET/1);
[ 1874.458308][ C2] lock(slock-AF_INET/1);
[ 1874.458670][ C2]
[ 1874.458670][ C2] *** DEADLOCK ***
[ 1874.458670][ C2]
[ 1874.459316][ C2] May be due to missing lock nesting notation
[ 1874.459316][ C2]
[ 1874.459977][ C2] 8 locks held by swapper/2/0:
[ 1874.460365][ C2] #0: ffffffff875447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1874.461109][ C2] #1: ffffffff875447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1874.461919][ C2] #2: ffff8880062d0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1874.462653][ C2] #3: ffffffff875447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1874.463406][ C2] #4: ffffffff875447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1874.464167][ C2] #5: ffffffff87544780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 1874.464948][ C2] #6: ffffffff875447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1874.465760][ C2] #7: ffffffff875447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1874.466575][ C2]
[ 1874.466575][ C2] stack backtrace:
[ 1874.467047][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc2-virtme #1
[ 1874.467638][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1874.468446][ C2] Call Trace:
[ 1874.468644][ C2]
[ 1874.468810][ C2] dump_stack_lvl+0x64/0xb0
[ 1874.469062][ C2] validate_chain+0x525/0xa00
[ 1874.469315][ C2] ? __pfx_validate_chain+0x10/0x10
[ 1874.469599][ C2] ? hlock_class+0x4e/0x130
[ 1874.469970][ C2] ? mark_lock+0x38/0x3e0
[ 1874.470205][ C2] __lock_acquire+0xb67/0x1610
[ 1874.470470][ C2] ? lock_downgrade+0xa0/0x110
[ 1874.470752][ C2] ? mark_lock+0x38/0x3e0
[ 1874.470979][ C2] lock_acquire.part.0+0xe5/0x330
[ 1874.471253][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1874.471507][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1874.471826][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1874.472119][ C2] ? lock_acquire+0x1c1/0x220
[ 1874.472366][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1874.472628][ C2] _raw_spin_lock_nested+0x33/0x80
[ 1874.472930][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1874.473175][ C2] tcp_v4_rcv+0x2159/0x29b0
[ 1874.473421][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1874.473741][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1874.474046][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1874.474352][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1874.474660][ C2] ip_local_deliver_finish+0x2ae/0x450
[ 1874.474958][ C2] ip_local_deliver+0x19d/0x480
[ 1874.475232][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1874.475517][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1874.475861][ C2] ip_rcv+0x564/0x740
[ 1874.476088][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1874.476334][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1874.476623][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1874.476945][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1874.477182][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1874.477494][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1874.477853][ C2] ? mark_held_locks+0xa5/0xf0
[ 1874.478109][ C2] ? lock_acquire+0x1c1/0x220
[ 1874.478354][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1874.478711][ C2] netif_receive_skb_internal+0xb0/0x300
[ 1874.479158][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1874.479647][ C2] ? __copy_skb_header+0xaf/0x490
[ 1874.480059][ C2] ? __skb_clone+0x57a/0x760
[ 1874.480384][ C2] netif_receive_skb+0x55/0x280
[ 1874.480734][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1874.481240][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1874.481748][ C2] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1874.482219][ C2] tcf_action_exec.part.0+0x115/0x3d0
[ 1874.482660][ C2] fl_classify+0x4dc/0x650 [cls_flower]
[ 1874.483116][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1874.483609][ C2] ? __pfx_usage_match+0x10/0x10
[ 1874.484025][ C2] ? check_irq_usage+0x27e/0x850
[ 1874.484429][ C2] ? ip_local_deliver_finish+0x2cf/0x450
[ 1874.484871][ C2] ? __pfx_check_irq_usage+0x10/0x10
[ 1874.485293][ C2] ? __bfs+0x24a/0x650
[ 1874.485615][ C2] ? __pfx_hlock_conflict+0x10/0x10
[ 1874.486031][ C2] ? __bfs+0x24a/0x650
[ 1874.486361][ C2] ? __pfx_usage_match+0x10/0x10
[ 1874.486779][ C2] ? check_path.constprop.0+0x24/0x50
[ 1874.487218][ C2] ? check_noncircular+0x14e/0x3e0
[ 1874.487622][ C2] ? __pfx_check_noncircular+0x10/0x10
[ 1874.488078][ C2] ? __pfx_validate_chain+0x10/0x10
[ 1874.488495][ C2] ? hlock_class+0x4e/0x130
[ 1874.488867][ C2] __tcf_classify+0x32c/0x7d0
[ 1874.489255][ C2] tcf_classify+0x283/0x930
[ 1874.489624][ C2] ? __pfx_tcf_classify+0x10/0x10
[ 1874.490044][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1874.490453][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1874.490883][ C2] tc_run+0x2e4/0x5d0
[ 1874.491227][ C2] ? __pfx_tc_run+0x10/0x10
[ 1874.491599][ C2] ? lock_acquire+0x1c1/0x220
[ 1874.491984][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1874.492403][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1874.492828][ C2] __dev_queue_xmit+0x8eb/0x1ca0
[ 1874.493226][ C2] ? mark_lock+0x38/0x3e0
[ 1874.493570][ C2] ? mark_held_locks+0xa5/0xf0
[ 1874.493950][ C2] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1874.494386][ C2] ? neigh_hh_output+0x348/0x590
[ 1874.494794][ C2] ? vrf_ip_local_out+0x781/0x860 [vrf]
[ 1874.495263][ C2] ip_finish_output2+0x786/0x18e0
[ 1874.495673][ C2] ? __pfx_ip_finish_output2+0x10/0x10
[ 1874.496112][ C2] ? __ip_finish_output+0x3dd/0x770
[ 1874.496521][ C2] ip_output+0x16b/0x4f0
[ 1874.496875][ C2] ? hlock_class+0x4e/0x130
[ 1874.497242][ C2] ? __pfx_ip_output+0x10/0x10
[ 1874.497632][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1874.498083][ C2] ? ip_local_out+0x114/0x3b0
[ 1874.498460][ C2] __ip_queue_xmit+0x672/0x1910
[ 1874.498858][ C2] ? __skb_clone+0x57a/0x760
[ 1874.499233][ C2] __tcp_transmit_skb+0x22b1/0x2d20
[ 1874.499647][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1874.500102][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 1874.500580][ C2] tcp_write_xmit+0xe42/0x24c0
[ 1874.500980][ C2] ? ipv4_mtu+0x37/0x360
[ 1874.501331][ C2] ? __pfx_tcp_write_xmit+0x10/0x10
[ 1874.501735][ C2] ? __pfx_tcp_current_mss+0x10/0x10
[ 1874.502158][ C2] __tcp_push_pending_frames+0x96/0x320
[ 1874.502589][ C2] tcp_rcv_state_process+0x81e/0x1fd0
[ 1874.503027][ C2] ? tcp_v4_rcv+0x2159/0x29b0
[ 1874.503413][ C2] ? hlock_class+0x4e/0x130
[ 1874.503775][ C2] ? __lock_acquired+0x18a/0x6b0
[ 1874.504165][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1874.504623][ C2] ? __pfx___lock_acquired+0x10/0x10
[ 1874.505033][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1874.505475][ C2] tcp_v4_do_rcv+0x154/0x850
[ 1874.505839][ C2] tcp_v4_rcv+0x235a/0x29b0
[ 1874.506212][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1874.506598][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1874.507005][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1874.507460][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1874.507891][ C2] ip_local_deliver_finish+0x2ae/0x450
[ 1874.508338][ C2] ip_local_deliver+0x19d/0x480
[ 1874.508734][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1874.509175][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1874.509685][ C2] ip_rcv+0x564/0x740
[ 1874.510012][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1874.510382][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1874.510794][ C2] ? process_backlog+0x1ed/0x5e0
[ 1874.511257][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1874.511503][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1874.511839][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1874.512191][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1874.512491][ C2] ? lock_acquire+0x1c1/0x220
[ 1874.512759][ C2] ? process_backlog+0x1ed/0x5e0
[ 1874.513086][ C2] process_backlog+0xd3/0x5e0
[ 1874.513369][ C2] __napi_poll.constprop.0+0xa5/0x450
[ 1874.513691][ C2] net_rx_action+0x440/0xb40
[ 1874.513975][ C2] ? __pfx_net_rx_action+0x10/0x10
[ 1874.514312][ C2] ? ktime_get_raw_ts64+0x230/0x240
[ 1874.514624][ C2] ? hrtimer_interrupt+0x2e0/0x770
[ 1874.514941][ C2] ? __pfx_rebalance_domains+0x10/0x10
[ 1874.515299][ C2] ? clockevents_program_event+0x1ed/0x300
[ 1874.515674][ C2] __do_softirq+0x1bc/0x7ff
[ 1874.515952][ C2] irq_exit_rcu+0x98/0xc0
[ 1874.516223][ C2] sysvec_apic_timer_interrupt+0x75/0x80
[ 1874.516546][ C2]
[ 1874.516744][ C2]
[ 1874.516905][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1874.517284][ C2] RIP: 0010:default_idle+0xf/0x20
[ 1874.517591][ C2] 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 73 82 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
[ 1874.518707][ C2] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000206
[ 1874.519074][ C2] RAX: 000000000183d51d RBX: 1ffff92000029fc1 RCX: ffffffff86248942
[ 1874.519516][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83c968b6
[ 1874.519932][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006b7eea4
[ 1874.520367][ C2] R10: ffff888035bf7523 R11: ffff888035bfc348 R12: 0000000000000000
[ 1874.520790][ C2] R13: ffff888001d0de00 R14: dffffc0000000000 R15: 0000000000000000
[ 1874.521265][ C2] ? ct_kernel_exit.constprop.0+0xc2/0xe0
[ 1874.521568][ C2] ? cpuidle_idle_call+0x1f6/0x280
[ 1874.521845][ C2] default_idle_call+0x69/0xa0
[ 1874.522115][ C2] cpuidle_idle_call+0x1f6/0x280
[ 1874.522381][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10
[ 1874.522675][ C2] do_idle+0xfb/0x160
[ 1874.522902][ C2] cpu_startup_entry+0x55/0x60
[ 1874.523156][ C2] start_secondary+0x21c/0x2b0
[ 1874.523414][ C2] ? __pfx_start_secondary+0x10/0x10
[ 1874.523709][ C2] secondary_startup_64_no_verify+0x16d/0x17b
[ 1874.524038][ C2]
[ 1905.818863][T12861] ncat (12861) 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__->