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 ]
[ 2355.970097][T18711] 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 ]
# [ 2370.769988][ C2]
[ 2370.770162][ C2] ============================================
[ 2370.770489][ C2] WARNING: possible recursive locking detected
[ 2370.770824][ C2] 6.8.0-rc4-virtme #1 Not tainted
[ 2370.771083][ C2] --------------------------------------------
[ 2370.771428][ C2] ncat/18868 is trying to acquire lock:
[ 2370.771727][ C2] ffff8880081e8f68 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2370.772215][ C2]
[ 2370.772215][ C2] but task is already holding lock:
[ 2370.772611][ C2] ffff8880081e9ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2370.773091][ C2]
[ 2370.773091][ C2] other info that might help us debug this:
[ 2370.773520][ C2] Possible unsafe locking scenario:
[ 2370.773520][ C2]
[ 2370.773899][ C2] CPU0
[ 2370.774082][ C2] ----
[ 2370.774263][ C2] lock(slock-AF_INET/1);
[ 2370.774522][ C2] lock(slock-AF_INET/1);
[ 2370.774764][ C2]
[ 2370.774764][ C2] *** DEADLOCK ***
[ 2370.774764][ C2]
[ 2370.775198][ C2] May be due to missing lock nesting notation
[ 2370.775198][ C2]
[ 2370.775636][ C2] 8 locks held by ncat/18868:
[ 2370.775896][ C2] #0: ffffffffabf467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ef/0x5e0
[ 2370.776397][ C2] #1: ffffffffabf467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490
[ 2370.776928][ C2] #2: ffff8880081e9ca8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2370.777413][ C2] #3: ffffffffabf467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0
[ 2370.777917][ C2] #4: ffffffffabf467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 2370.778425][ C2] #5: ffffffffabf46780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 2370.778952][ C2] #6: ffffffffabf467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 2370.779491][ C2] #7: ffffffffabf467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1fd/0x490
[ 2370.780048][ C2]
[ 2370.780048][ C2] stack backtrace:
[ 2370.780372][ C2] CPU: 2 PID: 18868 Comm: ncat Not tainted 6.8.0-rc4-virtme #1
[ 2370.780774][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 2370.781413][ C2] Call Trace:
[ 2370.781606][ C2]
[ 2370.781765][ C2] dump_stack_lvl+0x64/0xb0
[ 2370.782015][ C2] validate_chain+0x525/0xa00
[ 2370.782268][ C2] ? __pfx_validate_chain+0x10/0x10
[ 2370.782541][ C2] ? hlock_class+0x4e/0x130
[ 2370.782796][ C2] ? mark_lock+0x38/0x3e0
[ 2370.783028][ C2] __lock_acquire+0xb67/0x1610
[ 2370.783290][ C2] ? lock_downgrade+0xe0/0x110
[ 2370.783563][ C2] ? mark_lock+0x38/0x3e0
[ 2370.783792][ C2] lock_acquire.part.0+0xe5/0x330
[ 2370.784063][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2370.784331][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2370.784634][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 2370.784925][ C2] ? lock_acquire+0x1c1/0x220
[ 2370.785200][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2370.785451][ C2] _raw_spin_lock_nested+0x33/0x80
[ 2370.785720][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2370.785983][ C2] tcp_v4_rcv+0x221e/0x2ac0
[ 2370.786238][ C2] ? __pfx_tcp_
DETECTED CRASH, lowering timeout
v4_rcv+0x10/0x10
[ 2370.786502][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 2370.786763][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2370.787074][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 2370.787413][ C2] ip_local_deliver_finish+0x2b6/0x490
[ 2370.787705][ C2] ip_local_deliver+0x19d/0x480
[ 2370.787969][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 2370.788269][ C2] ? tcp_v4_early_demux+0x5a1/0x9e0
[ 2370.788544][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2370.788874][ C2] ip_rcv+0x564/0x740
[ 2370.789092][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2370.789352][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 2370.789625][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 2370.789931][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2370.790192][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 2370.790525][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2370.790865][ C2] ? mark_held_locks+0xa5/0xf0
[ 2370.791134][ C2] ? lock_acquire+0x1c1/0x220
[ 2370.791389][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 2370.791709][ C2] netif_receive_skb_internal+0xb0/0x300
[ 2370.792003][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 2370.792329][ C2] ? __copy_skb_header+0xaf/0x490
[ 2370.792601][ C2] ? __skb_clone+0x57a/0x760
[ 2370.792858][ C2] netif_receive_skb+0x55/0x280
[ 2370.793118][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 2370.793474][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 2370.793816][ C2] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 2370.794143][ C2] tcf_action_exec.part.0+0x112/0x3d0
[ 2370.794435][ C2] fl_classify+0x4dc/0x650 [cls_flower]
[ 2370.794739][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 2370.795063][ C2] ? __pfx_check_irq_usage+0x10/0x10
[ 2370.795362][ C2] ? __bfs+0x247/0x650
[ 2370.795594][ C2] ? __pfx_hlock_conflict+0x10/0x10
[ 2370.795880][ C2] ? hlock_class+0x4e/0x130
[ 2370.796147][ C2] ? check_path.constprop.0+0x24/0x50
[ 2370.796439][ C2] ? check_noncircular+0x14e/0x3e0
[ 2370.796732][ C2] ? __pfx_check_noncircular+0x10/0x10
[ 2370.797025][ C2] ? __pfx_validate_chain+0x10/0x10
[ 2370.797306][ C2] ? hlock_class+0x4e/0x130
[ 2370.797565][ C2] ? hlock_class+0x4e/0x130
[ 2370.797803][ C2] ? check_prev_add+0x773/0xce0
[ 2370.798066][ C2] __tcf_classify+0x329/0x7d0
[ 2370.798337][ C2] tcf_classify+0x283/0x930
[ 2370.798583][ C2] ? __pfx_tcf_classify+0x10/0x10
[ 2370.798847][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 2370.799121][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 2370.799411][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 2370.799689][ C2] tc_run+0x2e4/0x5d0
[ 2370.799915][ C2] ? __pfx_tc_run+0x10/0x10
[ 2370.800163][ C2] ? lock_acquire+0x1c1/0x220
[ 2370.800421][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 2370.800686][ C2] __dev_queue_xmit+0x686/0x17e0
[ 2370.800972][ C2] ? mark_held_locks+0xa5/0xf0
[ 2370.801231][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 2370.801593][ C2] ? __pfx___dev_queue_xmit+0x10/0x10
[ 2370.801882][ C2] ? neigh_hh_output+0x36d/0x5d0
[ 2370.802160][ C2] ip_finish_output2+0x786/0x18e0
[ 2370.802437][ C2] ? __pfx_ip_finish_output2+0x10/0x10
[ 2370.802736][ C2] ? __ip_finish_output+0x10f/0x770
[ 2370.803020][ C2] ip_output+0x16b/0x4f0
[ 2370.803259][ C2] ? __pfx_ip_output+0x10/0x10
[ 2370.803504][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2370.803803][ C2] ? ip_local_out+0x114/0x3b0
[ 2370.804051][ C2] __ip_queue_xmit+0x672/0x17b0
[ 2370.804332][ C2] ? __create_object+0x5e/0xb0
[ 2370.804592][ C2] __tcp_transmit_skb+0x22b2/0x2d30
[ 2370.804879][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 2370.805180][ C2] ? __tcp_send_ack.part.0+0x66/0x6e0
[ 2370.805475][ C2] tcp_rcv_state_process+0x7c0/0x1fd0
[ 2370.805750][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2370.806006][ C2] ? hlock_class+0x4e/0x130
[ 2370.806259][ C2] ? __lock_acquired+0x18a/0x6b0
[ 2370.806513][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 2370.806826][ C2] ? __pfx___lock_acquired+0x10/0x10
[ 2370.807116][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2370.807419][ C2] tcp_v4_do_rcv+0x154/0x860
[ 2370.807671][ C2] tcp_v4_rcv+0x2449/0x2ac0
[ 2370.807910][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2370.808172][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 2370.808446][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2370.808747][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 2370.809036][ C2] ip_local_deliver_finish+0x2b6/0x490
[ 2370.809340][ C2] ip_local_deliver+0x19d/0x480
[ 2370.809598][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 2370.809885][ C2] ? tcp_v4_early_demux+0x5a1/0x9e0
[ 2370.810184][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2370.810516][ C2] ip_rcv+0x564/0x740
[ 2370.810735][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2370.810988][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 2370.811266][ C2] ? process_backlog+0x1ef/0x5e0
[ 2370.811539][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 2370.811773][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 2370.812090][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2370.812439][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2370.812728][ C2] ? lock_acquire+0x1c1/0x220
[ 2370.812978][ C2] ? process_backlog+0x1ef/0x5e0
[ 2370.813245][ C2] process_backlog+0xd5/0x5e0
[ 2370.813510][ C2] __napi_poll.constprop.0+0xa2/0x460
[ 2370.813805][ C2] net_rx_action+0x440/0xb40
[ 2370.814063][ C2] ? __pfx_net_rx_action+0x10/0x10
[ 2370.814336][ C2] ? kvm_clock_get_cycles+0x18/0x30
[ 2370.814619][ C2] ? ktime_get+0xb3/0x190
[ 2370.814846][ C2] ? hrtimer_interrupt+0x30e/0x770
[ 2370.815125][ C2] ? hrtimer_interrupt+0x31a/0x770
[ 2370.815407][ C2] __do_softirq+0x1b9/0x7ff
[ 2370.815644][ C2] ? tcp_recvmsg+0xf8/0x4f0
[ 2370.815890][ C2] do_softirq+0x4d/0xa0
[ 2370.816124][ C2]
[ 2370.816290][ C2]
[ 2370.816459][ C2] __local_bh_enable_ip+0xf6/0x120
[ 2370.816721][ C2] tcp_recvmsg+0xf8/0x4f0
[ 2370.816960][ C2] ? __pfx_tcp_recvmsg+0x10/0x10
[ 2370.817247][ C2] ? core_sys_select+0x620/0x710
[ 2370.817516][ C2] ? __pfx_core_sys_select+0x10/0x10
[ 2370.817793][ C2] inet_recvmsg+0xf9/0x2c0
[ 2370.818040][ C2] ? __pfx_inet_recvmsg+0x10/0x10
[ 2370.818311][ C2] ? __fget_light+0x54/0x1e0
[ 2370.818572][ C2] ? sockfd_lookup_light+0x1a/0x160
[ 2370.818840][ C2] __sys_recvfrom+0x2fb/0x3b0
[ 2370.819089][ C2] ? __pfx___sys_recvfrom+0x10/0x10
[ 2370.819370][ C2] ? __pfx___lock_release+0x10/0x10
[ 2370.819663][ C2] ? do_pselect.constprop.0+0x12b/0x1e0
[ 2370.819956][ C2] ? __pfx_do_pselect.constprop.0+0x10/0x10
[ 2370.820270][ C2] ? restore_fpregs_from_fpstate+0x99/0x160
[ 2370.820598][ C2] ? __pfx_restore_fpregs_from_fpstate+0x10/0x10
[ 2370.820931][ C2] __x64_sys_recvfrom+0xe0/0x1c0
[ 2370.821193][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 2370.821553][ C2] do_syscall_64+0xc9/0x1e0
[ 2370.821803][ C2] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 2370.822117][ C2] RIP: 0033:0x7f51501274c0
[ 2370.822387][ C2] 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
[ 2370.823369][ C2] RSP: 002b:00007ffe77827fb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 2370.823806][ C2] RAX: ffffffffffffffda RBX: 000055950452ca20 RCX: 00007f51501274c0
[ 2370.824212][ C2] RDX: 0000000000002000 RSI: 00007ffe77828040 RDI: 0000000000000008
[ 2370.824625][ C2] RBP: 00007ffe77828040 R08: 0000000000000000 R09: 0000000000000000
[ 2370.825076][ C2] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 2370.825499][ C2] R13: 000055950452ca20 R14: 0000000000000000 R15: 00007ffe7782803c
[ 2370.825925][ C2]
[ 2371.610263][T18869] ncat (18869) used greatest stack depth: 21120 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__->