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 ]
[ 2526.131151][ T3734] 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 ]
[ 2536.748062][ T3847] ping (3847) used greatest stack depth: 23352 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 2544.631643][ C3]
[ 2544.631794][ C3] ============================================
[ 2544.632110][ C3] WARNING: possible recursive locking detected
[ 2544.632421][ C3] 6.8.0-rc2-virtme #1 Not tainted
[ 2544.632677][ C3] --------------------------------------------
[ 2544.632987][ C3] perl/3589 is trying to acquire lock:
[ 2544.633265][ C3] ffff88800a471b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 2544.633737][ C3]
[ 2544.633737][ C3] but task is already holding lock:
[ 2544.634113][ C3] ffff88800a470e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 2544.634578][ C3]
[ 2544.634578][ C3] other info that might help us debug this:
[ 2544.634983][ C3] Possible unsafe locking scenario:
[ 2544.634983][ C3]
[ 2544.635360][ C3] CPU0
[ 2544.635530][ C3] ----
[ 2544.635704][ C3] lock(slock-AF_INET/1);
[ 2544.635935][ C3] lock(slock-AF_INET/1);
[ 2544.636161][ C3]
[ 2544.636161][ C3] *** DEADLOCK ***
[ 2544.636161][ C3]
[ 2544.636571][ C3] May be due to missing lock nesting notation
[ 2544.636571][ C3]
[ 2544.636986][ C3] 11 locks held by perl/3589:
[ 2544.637225][ C3] #0: ffff8880064488a8 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x80
[ 2544.637723][ C3] #1: ffff888006448948 (&tty->atomic_write_lock){+.+.}-{3:3}, at: iterate_tty_write+0x95/0x540
[ 2544.638256][ C3] #2: ffff888006448b30 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x18f/0x7a0
[ 2544.638746][ C3] #3: ffffffffb21447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 2544.639227][ C3] #4: ffffffffb21447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 2544.639745][ C3] #5: ffff88800a470e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 2544.640224][ C3] #6: ffffffffb21447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 2544.640717][ C3] #7: ffffffffb21447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 2544.641211][ C3] #8: ffffffffb2144780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 2544.641714][ C3] #9: ffffffffb21447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 2544.642238][ C3] #10: ffffffffb21447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 2544.642760][ C3]
[ 2544.642760][ C3] stack backtrace:
[ 2544.643063][ C3] CPU: 3 PID: 3589 Comm: perl Not tainted 6.8.0-rc2-virtme #1
[ 2544.643441][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 2544.644059][ C3] Call Trace:
[ 2544.644229][ C3]
[ 2544.644380][ C3] dump_stack_lvl+0x64/0xb0
[ 2544.644627][ C3] validate_chain+0x525/0xa00
[ 2544.644870][ C3] ? __pfx_validate_chain+0x10/0x10
[ 2544.645134][ C3] ? hlock_class+0x4e/0x130
[ 2544.645371][ C3] ? mark_lock+0x38/0x3e0
[ 2544.645594][ C3] __lock_acquire+0xb67/0x1610
[ 2544.645838][ C3] ? lock_downgrade+0xa0/0x110
[ 2544.646084][ C3] ? mark_lock+0x38/0x3e0
[ 2544.646306][ C3] lock_acquire.part.0+0xe5/0x330
[ 2544.646562][ C3] ? tcp_v4_rcv+0x2161/0x29c0
[ 2544.646802][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2544.647091][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 2544.647375][ C3] ? lock_acquire+0x1c1/0x220
[ 2544.647616][ C3] ? tcp_v4_rcv+0x2161/0x29c0
[ 2544.647858][ C3] _raw_spin_lock_nested+0x33/0x80
[ 2544.648125][ C3] ? tcp_v4_rcv+0x2161/0x29c0
[ 2544.648364][ C3] tcp_v4_rcv+0x2161/0x29c0
[ 2544.648602][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2544.648853][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 2544.649113][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2544.649399][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 2544.649678][ C3] ip_local_deliver_finish+0x2ae/0x450
[ 2544.649957][ C3] ip_local_deliver+0x19d/0x480
[ 2544.650207][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 2544.650482][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2544.650806][ C3] ip_rcv+0x564/0x740
[ 2544.651011][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2544.651244][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2544.651509][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 2544.651807][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2544.652039][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 2544.652342][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2544.652668][ C3] ? mark_held_locks+0xa5/0xf0
[ 2544.652914][ C3] ? lock_acquire+0x1c1/0x220
[ 2544.653154][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 2544.653451][ C3] netif_receive_skb_internal+0xb0/0x300
[ 2544.653737][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 2544.654054][ C3] ? __copy_skb_header+0xaf/0x490
[ 2544.654313][ C3] ? __skb_clone+0x57a/0x760
[ 2544.654560][ C3] netif_receive_skb+0x55/0x280
[ 2544.654810][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 2544.655129][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 2544.655464][ C3] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 2544.655766][ C3] tcf_action_exec.part.0+0x112/0x3d0
[ 2544.656044][ C3] fl_classify+0x4dc/0x650 [cls_flower]
[ 2544.656340][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 2544.656654][ C3] ? __pfx_usage_match+0x10/0x10
[ 2544.656909][ C3] ? check_irq_usage+0x27e/0x850
[ 2544.657163][ C3] ? __pfx_check_irq_usage+0x10/0x10
[ 2544.657432][ C3] ? __bfs+0x247/0x650
[ 2544.657642][ C3] ? __pfx_hlock_conflict+0x10/0x10
[ 2544.657909][ C3] ? hlock_class+0x4e/0x130
[ 2544.658141][ C3] ? check_path.constprop.0+0x24/0x50
[ 2544.658416][ C3] ? check_noncircular+0x14e/0x3e0
[ 2544.658678][ C3] ? __pfx_check_noncircular+0x10/0x10
[ 2544.658962][ C3] ? __pfx_validate_chain+0x10/0x10
[ 2544.659227][ C3] ? hlock_class+0x4e/0x130
[ 2544.659463][ C3] __tcf_classify+0x329/0x7d0
[ 2544.659704][ C3] tcf_classify+0x283/0x930
[ 2544.659939][ C3] ? __pfx_tcf_classify+0x10/0x10
[ 2544.660195][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2544.660461][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 2544.660723][ C3] tc_run+0x2e4/0x5d0
[ 2544.660930][ C3] ? __pfx_tc_run+0x10/0x10
[ 2544.661166][ C3] ? lock_acquire+0x1c1/0x220
[ 2544.661406][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 2544.661668][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 2544.661930][ C3] __dev_queue_xmit+0x8eb/0x1ca0
[ 2544.662185][ C3] ? mark_lock+0x38/0x3e0
[ 2544.662406][ C3] ? mark_held_locks+0xa5/0xf0
[ 2544.662651][ C3] ? __pfx___dev_queue_xmit+0x10/0x10
[ 2544.662925][ C3] ? neigh_hh_output+0x348/0x590
[ 2544.663179][ C3] ? vrf_ip_local_out+0x781/0x860 [vrf]
[ 2544.663477][ C3] ip_finish_output2+0x786/0x18e0
[ 2544.663736][ C3] ? __pfx_ip_finish_output2+0x10/0x10
[ 2544.664015][ C3] ? __ip_finish_output+0x3dd/0x770
[ 2544.664281][ C3] ip_output+0x16b/0x4f0
[ 2544.664507][ C3] ? hlock_class+0x4e/0x130
[ 2544.664739][ C3] ? __pfx_ip_output+0x10/0x10
[ 2544.664983][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2544.665271][ C3] ? ip_local_out+0x114/0x3b0
[ 2544.665513][ C3] __ip_queue_xmit+0x672/0x1910
[ 2544.665762][ C3] ? __skb_clone+0x57a/0x760
[ 2544.666000][ C3] __tcp_transmit_skb+0x22b1/0x2d20
[ 2544.666270][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 2544.666553][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 2544.666861][ C3] tcp_write_xmit+0xe42/0x24c0
[ 2544.667115][ C3] ? ipv4_mtu+0x37/0x360
[ 2544.667334][ C3] ? __pfx_tcp_write_xmit+0x10/0x10
[ 2544.667599][ C3] ? __pfx_tcp_current_mss+0x10/0x10
[ 2544.667871][ C3] __tcp_push_pending_frames+0x96/0x320
[ 2544.668156][ C3] tcp_rcv_state_process+0x862/0x21c0
[ 2544.668431][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 2544.668728][ C3] ? find_held_lock+0x33/0x120
[ 2544.668973][ C3] ? tcp_v4_rcv+0x2161/0x29c0
[ 2544.669211][ C3] ? hlock_class+0x4e/0x130
[ 2544.669446][ C3] tcp_v4_do_rcv+0x1ac/0x8e0
[ 2544.669684][ C3] ? __pfx_tcp_v4_do_rcv+0x10/0x10
[ 2544.669946][ C3] tcp_v4_rcv+0x2362/0x29c0
[ 2544.670185][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2544.670434][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 2544.670691][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2544.670979][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 2544.671254][ C3] ip_local_deliver_finish+0x2ae/0x450
[ 2544.671532][ C3] ip_local_deliver+0x19d/0x480
[ 2544.671781][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 2544.672055][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2544.672379][ C3] ip_rcv+0x564/0x740
[ 2544.672585][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2544.672822][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2544.673087][ C3] ? process_backlog+0x1ed/0x5e0
[ 2544.673340][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2544.673573][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 2544.673874][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2544.674201][ C3] ? lock_acquire+0x1c1/0x220
[ 2544.674446][ C3] ? process_backlog+0x1ed/0x5e0
[ 2544.674700][ C3] process_backlog+0xd3/0x5e0
[ 2544.674943][ C3] __napi_poll.constprop.0+0xa2/0x450
[ 2544.675217][ C3] net_rx_action+0x440/0xb40
[ 2544.675457][ C3] ? __pfx_net_rx_action+0x10/0x10
[ 2544.675719][ C3] ? lockdep_unlock+0x220/0x230
[ 2544.675970][ C3] ? mark_held_locks+0xa5/0xf0
[ 2544.676217][ C3] __do_softirq+0x1b9/0x7ff
[ 2544.676451][ C3] irq_exit_rcu+0x98/0xc0
[ 2544.676676][ C3] sysvec_apic_timer_interrupt+0x75/0x80
[ 2544.676965][ C3]
[ 2544.677117][ C3]
[ 2544.677269][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 2544.677580][ C3] RIP: 0010:lock_is_held_type+0xed/0x120
[ 2544.677867][ C3] Code: 94 c4 b8 ff ff ff ff 65 0f c1 05 0e 2b 3a 4f 83 f8 01 75 2d 9c 58 f6 c4 02 75 37 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 45 31 e4 eb
[ 2544.678850][ C3] RSP: 0018:ffffc90000b6f948 EFLAGS: 00000286
[ 2544.679161][ C3] RAX: 0000000000000046 RBX: ffffffffb2144780 RCX: 0000000000000001
[ 2544.679563][ C3] RDX: 0000000000000002 RSI: ffffffffb2144780 RDI: ffff8880066b8af0
[ 2544.679967][ C3] RBP: ffff8880066b8040 R08: ffffffffaf81735e R09: ffffed1000cd7008
[ 2544.680370][ C3] R10: ffffc90000b6fb00 R11: ffffffffb14ae608 R12: 0000000000000000
[ 2544.680771][ C3] R13: 00000000ffffffff R14: ffff8880066b8af0 R15: 0000000000000003
[ 2544.681173][ C3] ? process_output_block+0x5e/0x790
[ 2544.681449][ C3] __might_resched+0x3ba/0x530
[ 2544.681696][ C3] __mutex_lock+0xb9/0xb10
[ 2544.681929][ C3] ? find_held_lock+0x33/0x120
[ 2544.682174][ C3] ? process_output_block+0x5e/0x790
[ 2544.682443][ C3] ? __pfx___mutex_lock+0x10/0x10
[ 2544.682701][ C3] ? hlock_class+0x4e/0x130
[ 2544.682933][ C3] ? __lock_release+0x40f/0x880
[ 2544.683179][ C3] ? do_raw_spin_trylock+0xb9/0x190
[ 2544.683448][ C3] ? __pfx___lock_release+0x10/0x10
[ 2544.683714][ C3] ? hlock_class+0x4e/0x130
[ 2544.683946][ C3] ? process_output_block+0x5e/0x790
[ 2544.684215][ C3] process_output_block+0x5e/0x790
[ 2544.684488][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 2544.684824][ C3] n_tty_write+0x414/0x7a0
[ 2544.685053][ C3] ? __pfx_n_tty_write+0x10/0x10
[ 2544.685307][ C3] ? __pfx_woken_wake_function+0x10/0x10
[ 2544.685595][ C3] ? lock_acquire+0x1c1/0x220
[ 2544.685835][ C3] ? iterate_tty_write+0x95/0x540
[ 2544.686095][ C3] iterate_tty_write+0x229/0x540
[ 2544.686351][ C3] file_tty_write.constprop.0+0x1db/0x370
[ 2544.686645][ C3] vfs_write+0x9e9/0x10a0
[ 2544.686868][ C3] ? lock_acquire+0x1c1/0x220
[ 2544.687111][ C3] ? __pfx_vfs_write+0x10/0x10
[ 2544.687356][ C3] ? __might_fault+0xc6/0x180
[ 2544.687603][ C3] ? kvm_clock_get_cycles+0x18/0x30
[ 2544.687874][ C3] ? __fget_light+0x54/0x1e0
[ 2544.688110][ C3] ksys_write+0xf5/0x1e0
[ 2544.688330][ C3] ? __pfx_ksys_write+0x10/0x10
[ 2544.688582][ C3] do_syscall_64+0xc9/0x1e0
[ 2544.688815][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 2544.689123][ C3] RIP: 0033:0x7fd41e533957
[ 2544.689353][ C3] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
[ 2544.690332][ C3] RSP: 002b:00007ffdb04dfca8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 2544.690756][ C3] RAX: ffffffffffffffda RBX: 00005583e10dbfb0 RCX: 00007fd41e533957
[ 2544.691159][ C3] RDX: 0000000000000001 RSI: 00005583e10dbfb0 RDI: 0000000000000001
[ 2544.691562][ C3] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 2544.691964][ C3] R10: 0000000000000001 R11: 0000000000000246 R12: 00005583e10c8530
[ 2544.692365][ C3] R13: 00005583e10a92a0 R14: 0000000000000001 R15: 00005583e10c8530
[ 2544.692771][ C3]
[ 2569.847381][ T3891] ncat (3891) used greatest stack depth: 21056 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__->