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 ]
[ 2354.885759][ T8245] tc (8245) used greatest stack depth: 23080 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 2362.732272][ C3]
[ 2362.732435][ C3] ============================================
[ 2362.732752][ C3] WARNING: possible recursive locking detected
[ 2362.733077][ C3] 6.8.0-rc4-virtme #1 Not tainted
[ 2362.733341][ C3] --------------------------------------------
[ 2362.733662][ C3] ncat/8329 is trying to acquire lock:
[ 2362.733955][ C3] ffff88800c380f68 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2209/0x2a80
[ 2362.734454][ C3]
[ 2362.734454][ C3] but task is already holding lock:
[ 2362.734826][ C3] ffff88800c381ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2209/0x2a80
[ 2362.735291][ C3]
[ 2362.735291][ C3] other info that might help us debug this:
[ 2362.735735][ C3] Possible unsafe locking scenario:
[ 2362.735735][ C3]
[ 2362.736161][ C3] CPU0
[ 2362.736349][ C3] ----
[ 2362.736534][ C3] lock(slock-AF_INET/1);
[ 2362.736780][ C3] lock(slock-AF_INET/1);
[ 2362.737009][ C3]
[ 2362.737009][ C3] *** DEADLOCK ***
[ 2362.737009][ C3]
[ 2362.737431][ C3] May be due to missing lock nesting notation
[ 2362.737431][ C3]
[ 2362.737847][ C3] 8 locks held by ncat/8329:
[ 2362.738082][ C3] #0: ffffffff8cd467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ef/0x5e0
[ 2362.738568][ C3] #1: ffffffff8cd467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490
[ 2362.739084][ C3] #2: ffff88800c381ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2209/0x2a80
[ 2362.739562][ C3] #3: ffffffff8cd467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0
[ 2362.740040][ C3] #4: ffffffff8cd467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 2362.740533][ C3] #5: ffffffff8cd46780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 2362.741038][ C3] #6: ffffffff8cd467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 2362.741582][ C3] #7: ffffffff8cd467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490
[ 2362.742145][ C3]
[ 2362.742145][ C3] stack backtrace:
[ 2362.742462][ C3] CPU: 3 PID: 8329 Comm: ncat Not tainted 6.8.0-rc4-virtme #1
[ 2362.742862][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 2362.743480][ C3] Call Trace:
[ 2362.743652][ C3]
[ 2362.743819][ C3] dump_stack_lvl+0x64/0xb0
[ 2362.744063][ C3] validate_chain+0x525/0xa00
[ 2362.744329][ C3] ? __pfx_validate_chain+0x10/0x10
[ 2362.744605][ C3] ? hlock_class+0x4e/0x130
[ 2362.744842][ C3] ? mark_lock+0x38/0x3e0
[ 2362.745069][ C3] __lock_acquire+0xb67/0x1610
[ 2362.745331][ C3] ? lock_downgrade+0xe0/0x110
[ 2362.745597][ C3] ? mark_lock+0x38/0x3e0
[ 2362.745820][ C3] lock_
DETECTED CRASH, lowering timeout
acquire.part.0+0xe5/0x330
[ 2362.746091][ C3] ? tcp_v4_rcv+0x2209/0x2a80
[ 2362.746338][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2362.746640][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 2362.746923][ C3] ? lock_acquire+0x1c1/0x220
[ 2362.747164][ C3] ? tcp_v4_rcv+0x2209/0x2a80
[ 2362.747419][ C3] _raw_spin_lock_nested+0x33/0x80
[ 2362.747696][ C3] ? tcp_v4_rcv+0x2209/0x2a80
[ 2362.747941][ C3] tcp_v4_rcv+0x2209/0x2a80
[ 2362.748193][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2362.748444][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 2362.748720][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2362.749019][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 2362.749310][ C3] ip_local_deliver_finish+0x2b6/0x490
[ 2362.749602][ C3] ip_local_deliver+0x19d/0x480
[ 2362.749864][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 2362.750138][ C3] ? tcp_v4_early_demux+0x5a1/0x9e0
[ 2362.750417][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2362.750748][ C3] ip_rcv+0x564/0x740
[ 2362.750967][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2362.751222][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2362.751486][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 2362.751799][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2362.752031][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 2362.752332][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2362.752664][ C3] ? mark_held_locks+0xa5/0xf0
[ 2362.752909][ C3] ? lock_acquire+0x1c1/0x220
[ 2362.753162][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 2362.753474][ C3] netif_receive_skb_internal+0xb0/0x300
[ 2362.753771][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 2362.754109][ C3] ? __copy_skb_header+0xaf/0x490
[ 2362.754381][ C3] ? __skb_clone+0x57a/0x760
[ 2362.754616][ C3] netif_receive_skb+0x55/0x280
[ 2362.754881][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 2362.755216][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 2362.755550][ C3] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 2362.755851][ C3] tcf_action_exec.part.0+0x112/0x3d0
[ 2362.756129][ C3] fl_classify+0x4dc/0x650 [cls_flower]
[ 2362.756419][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 2362.756734][ C3] ? __pfx_check_irq_usage+0x10/0x10
[ 2362.757002][ C3] ? __bfs+0x247/0x650
[ 2362.757213][ C3] ? __pfx_hlock_conflict+0x10/0x10
[ 2362.757478][ C3] ? check_path.constprop.0+0x24/0x50
[ 2362.757751][ C3] ? check_noncircular+0x14e/0x3e0
[ 2362.758011][ C3] ? __pfx_check_noncircular+0x10/0x10
[ 2362.758287][ C3] ? __pfx___lock_release+0x10/0x10
[ 2362.758553][ C3] ? clockevents_program_event+0xf6/0x300
[ 2362.758846][ C3] ? hlock_class+0x4e/0x130
[ 2362.759078][ C3] ? check_prev_add+0x773/0xce0
[ 2362.759328][ C3] __tcf_classify+0x329/0x7d0
[ 2362.759575][ C3] tcf_classify+0x283/0x930
[ 2362.759808][ C3] ? __pfx_tcf_classify+0x10/0x10
[ 2362.760064][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 2362.760325][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2362.760594][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 2362.760855][ C3] tc_run+0x2e4/0x5d0
[ 2362.761067][ C3] ? __pfx_tc_run+0x10/0x10
[ 2362.761314][ C3] ? lock_acquire+0x1c1/0x220
[ 2362.761560][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 2362.761840][ C3] __dev_queue_xmit+0x686/0x17e0
[ 2362.762106][ C3] ? mark_held_locks+0xa5/0xf0
[ 2362.762351][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 2362.762693][ C3] ? __pfx___dev_queue_xmit+0x10/0x10
[ 2362.762980][ C3] ? neigh_hh_output+0x36d/0x5d0
[ 2362.763242][ C3] ip_finish_output2+0x786/0x18e0
[ 2362.763521][ C3] ? __pfx_ip_finish_output2+0x10/0x10
[ 2362.763814][ C3] ? __ip_finish_output+0x10f/0x770
[ 2362.764096][ C3] ip_output+0x16b/0x4f0
[ 2362.764333][ C3] ? __pfx_ip_output+0x10/0x10
[ 2362.764578][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2362.764884][ C3] ? ip_local_out+0x114/0x3b0
[ 2362.765146][ C3] __ip_queue_xmit+0x672/0x17b0
[ 2362.765403][ C3] ? __create_object+0x5e/0xb0
[ 2362.765663][ C3] __tcp_transmit_skb+0x22b2/0x2d30
[ 2362.765935][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 2362.766237][ C3] ? __tcp_send_ack.part.0+0x66/0x6e0
[ 2362.766527][ C3] tcp_rcv_state_process+0x7c7/0x1fe0
[ 2362.766809][ C3] ? tcp_v4_rcv+0x2209/0x2a80
[ 2362.767064][ C3] ? hlock_class+0x4e/0x130
[ 2362.767298][ C3] ? __lock_acquired+0x18a/0x6b0
[ 2362.767551][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 2362.767865][ C3] ? __pfx___lock_acquired+0x10/0x10
[ 2362.768151][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2362.768445][ C3] tcp_v4_do_rcv+0x154/0x860
[ 2362.768696][ C3] tcp_v4_rcv+0x2431/0x2a80
[ 2362.768939][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2362.769197][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 2362.769470][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2362.769766][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 2362.770056][ C3] ip_local_deliver_finish+0x2b6/0x490
[ 2362.770349][ C3] ip_local_deliver+0x19d/0x480
[ 2362.770604][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 2362.770881][ C3] ? tcp_v4_early_demux+0x5a1/0x9e0
[ 2362.771156][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2362.771494][ C3] ip_rcv+0x564/0x740
[ 2362.771715][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2362.771946][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2362.772223][ C3] ? process_backlog+0x1ef/0x5e0
[ 2362.772484][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2362.772716][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 2362.773034][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2362.773379][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2362.773678][ C3] ? lock_acquire+0x1c1/0x220
[ 2362.773924][ C3] ? process_backlog+0x1ef/0x5e0
[ 2362.774201][ C3] process_backlog+0xd5/0x5e0
[ 2362.774447][ C3] __napi_poll.constprop.0+0xa2/0x460
[ 2362.774739][ C3] net_rx_action+0x440/0xb40
[ 2362.774988][ C3] ? __pfx_net_rx_action+0x10/0x10
[ 2362.775249][ C3] ? kvm_clock_get_cycles+0x18/0x30
[ 2362.775518][ C3] ? ktime_get+0xb3/0x190
[ 2362.775739][ C3] ? hrtimer_interrupt+0x30e/0x770
[ 2362.776000][ C3] ? hrtimer_interrupt+0x31a/0x770
[ 2362.776263][ C3] __do_softirq+0x1b9/0x7ff
[ 2362.776501][ C3] ? tcp_recvmsg+0xf8/0x4f0
[ 2362.776735][ C3] do_softirq+0x4d/0xa0
[ 2362.776951][ C3]
[ 2362.777102][ C3]
[ 2362.777255][ C3] __local_bh_enable_ip+0xf6/0x120
[ 2362.777516][ C3] tcp_recvmsg+0xf8/0x4f0
[ 2362.777738][ C3] ? __pfx_tcp_recvmsg+0x10/0x10
[ 2362.777991][ C3] ? core_sys_select+0x620/0x710
[ 2362.778248][ C3] ? __pfx_core_sys_select+0x10/0x10
[ 2362.778518][ C3] inet_recvmsg+0xf9/0x2c0
[ 2362.778748][ C3] ? __pfx_inet_recvmsg+0x10/0x10
[ 2362.779005][ C3] ? __fget_light+0x54/0x1e0
[ 2362.779241][ C3] ? sockfd_lookup_light+0x1a/0x160
[ 2362.779512][ C3] __sys_recvfrom+0x2fb/0x3b0
[ 2362.779754][ C3] ? __pfx___sys_recvfrom+0x10/0x10
[ 2362.780020][ C3] ? __pfx___lock_release+0x10/0x10
[ 2362.780291][ C3] ? do_pselect.constprop.0+0x12b/0x1e0
[ 2362.780576][ C3] ? __pfx_do_pselect.constprop.0+0x10/0x10
[ 2362.780885][ C3] ? restore_fpregs_from_fpstate+0x99/0x160
[ 2362.781205][ C3] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10
[ 2362.781530][ C3] __x64_sys_recvfrom+0xe0/0x1c0
[ 2362.781785][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 2362.782133][ C3] do_syscall_64+0xc9/0x1e0
[ 2362.782383][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 2362.782693][ C3] RIP: 0033:0x7f6588a504c0
[ 2362.782938][ 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
[ 2362.783948][ C3] RSP: 002b:00007ffc6a4ec468 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 2362.784399][ C3] RAX: ffffffffffffffda RBX: 0000561927d5da20 RCX: 00007f6588a504c0
[ 2362.784814][ C3] RDX: 0000000000002000 RSI: 00007ffc6a4ec4f0 RDI: 0000000000000008
[ 2362.785232][ C3] RBP: 00007ffc6a4ec4f0 R08: 0000000000000000 R09: 0000000000000000
[ 2362.785648][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 2362.786045][ C3] R13: 0000561927d5da20 R14: 0000000000000000 R15: 00007ffc6a4ec4ec
[ 2362.786464][ C3]
[ 2375.803607][ T8330] ncat (8330) used greatest stack depth: 21496 bytes left
[ 2407.585330][ T8329] ncat (8329) used greatest stack depth: 20656 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__->