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 ]
# 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 ]
# [ 1452.004902][ C2]
[ 1452.005073][ C2] ============================================
[ 1452.005410][ C2] WARNING: possible recursive locking detected
[ 1452.005735][ C2] 6.8.0-rc2-virtme #1 Not tainted
[ 1452.006014][ C2] --------------------------------------------
[ 1452.006336][ C2] ksoftirqd/2/27 is trying to acquire lock:
[ 1452.006646][ C2] ffff88800aed9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1452.007148][ C2]
[ 1452.007148][ C2] but task is already holding lock:
[ 1452.007534][ C2] ffff88800aed8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1452.008022][ C2]
[ 1452.008022][ C2] other info that might help us debug this:
[ 1452.008442][ C2] Possible unsafe locking scenario:
[ 1452.008442][ C2]
[ 1452.008831][ C2] CPU0
[ 1452.009022][ C2] ----
[ 1452.009199][ C2] lock(slock-AF_INET/1);
[ 1452.009434][ C2] lock(slock-AF_INET/1);
[ 1452.009684][ C2]
[ 1452.009684][ C2] *** DEADLOCK ***
[ 1452.009684][ C2]
[ 1452.010107][ C2] May be due to missing lock nesting notation
[ 1452.010107][ C2]
[ 1452.010565][ C2] 8 locks held by ksoftirqd/2/27:
[ 1452.010831][ C2] #0: ffffffffaef447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1452.011337][ C2] #1: ffffffffaef447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 1452.011873][ C2] #2: ffff88800aed8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 1452.012373][ C2] #3: ffffffffaef447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1452.012893][ C2] #4: ffffffffaef447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1452.013413][ C2] #5: ffffffffaef44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 1452.013935][ C2] #6: ffffffffaef447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1452.014488][ C2] #7: ffffffffaef447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 1452.015022][ C2]
[ 1452.015022][ C2] stack backtrace:
[ 1452.015355][ C2] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1
[ 1452.015785][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1452.016444][ C2] Call Trace:
[ 1452.016621][ C2]
[ 1452.016815][ C2] dump_stack_lvl+0x64/0xb0
[ 1452.017069][ C2] validate_chain+0x525/0xa00
[ 1452.017339][ C2] ? __pfx_validate_chain+0x10/0x10
[ 1452.017617][ C2] ? hlock_class+0x4e/0x130
[ 1452.017873][ C2] ? mark_lock+0x38/0x3e0
[ 1452.018120][ C2] __lock_acquire+0xb67/0x1610
[ 1452.018393][ C2] ? lock_downgrade+0xa0/0x110
[ 1452.018650][ C2] ? mark_lock+0x38/0x3e0
[ 1452.018892][ C2] lock_acquire.part.0+0xe5/0x330
[ 1452.019175][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1452.019427][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1452.019739][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1452.020048][ C2] ? lock_acquire+0x1c1/0x220
[ 1452.020308][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1452.020560][ C2] _raw_spin_lock_nested+0x33/0x80
[ 1452.020848][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1452.021115][ C2] tcp_v4_rcv+0x221e/0x2ac0
[ 1452.021376][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1452.021639][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1452.021921][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1452.022236][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1452.022527][ C2] ip_local_deliver_finish+0x2ae/0x480
[ 1452.022825][ C2] ip_local_deliver+0x19d/0x480
[ 1452.023101][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1452.023402][ C2] ? tcp_v4_early_demux+0x59a/0x9d0
[ 1452.023681][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1452.024032][ C2] ip_rcv+0x564/0x740
[ 1452.024263][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1452.024510][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1452.024798][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1452.025127][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1452.025382][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1452.025697][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1452.026049][ C2] ? mark_held_locks+0xa5/0xf0
[ 1452.026325][ C2] ? lock_acquire+0x1c1/0x220
[ 1452.026574][ C2] ? netif_receive_skb_internal+0x84/0x300
[ 1452.026896][ C2] netif_receive_skb_internal+0xb0/0x300
[ 1452.027211][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1452.027542][ C2] ? __copy_skb_header+0xaf/0x490
[ 1452.027824][ C2] ? __skb_clone+0x57a/0x760
[ 1452.028085][ C2] netif_receive_skb+0x55/0x280
[ 1452.028360][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1452.028708][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1452.029065][ C2] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1452.029393][ C2] tcf_action_exec.part.0+0x112/0x3d0
[ 1452.029683][ C2] fl_classify+0x4dc/0x650 [cls_flower]
[ 1452.029992][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1452.030337][ C2] ? __pfx_check_irq_usage+0x10/0x10
[ 1452.030617][ C2] ? __bfs+0x247/0x650
[ 1452.030851][ C2] ? __pfx_hlock_conflict+0x10/0x10
[ 1452.031144][ C2] ? check_path.constprop.0+0x24/0x50
[ 1452.031442][ C2] ? check_noncircular+0x14e/0x3e0
[ 1452.031733][ C2] ? hlock_class+0x4e/0x130
[ 1452.031992][ C2] ? __pfx_check_noncircular+0x10/0x10
[ 1452.032295][ C2] ? __pfx_hlock_conflict+0x10/0x10
[ 1452.032572][ C2] ? __pfx_validate_chain+0x10/0x10
[ 1452.032862][ C2] ? hlock_class+0x4e/0x130
[ 1452.033122][ C2] ? hlock_class+0x4e/0x130
[ 1452.033377][ C2] ? check_prev_add+0x773/0xce0
[ 1452.033637][ C2] __tcf_classify+0x329/0x7d0
[ 1452.033901][ C2] tcf_classify+0x283/0x930
[ 1452.034160][ C2] ? __pfx_tcf_classify+0x10/0x10
[ 1452.034453][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 1452.034728][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 1452.035014][ C2] tc_run+0x2e4/0x5d0
[ 1452.035243][ C2] ? __pfx_tc_run+0x10/0x10
[ 1452.035487][ C2] ? lock_acquire+0x1c1/0x220
[ 1452.035749][ C2] ? __dev_queue_xmit+0x1da/0x17e0
[ 1452.036039][ C2] __dev_queue_xmit+0x686/0x17e0
[ 1452.036316][ C2] ? mark_held_locks+0xa5/0xf0
[ 1452.036573][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1452.036934][ C2] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1452.037235][ C2] ? vrf_ip_local_out+0x7d1/0x860 [vrf]
[ 1452.037554][ C2] ip_finish_output2+0x786/0x18e0
[ 1452.037838][ C2] ? __pfx_ip_finish_output2+0x10/0x10
[ 1452.038142][ C2] ? __ip_finish_output+0x3dd/0x770
[ 1452.038435][ C2] ip_output+0x16b/0x4f0
[ 1452.038678][ C2] ? __pfx_ip_output+0x10/0x10
[ 1452.038950][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1452.039264][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1452.039614][ C2] ? ip_local_out+0x114/0x3b0
[ 1452.039878][ C2] __ip_queue_xmit+0x672/0x1910
[ 1452.040162][ C2] ? __skb_clone+0x57a/0x760
[ 1452.040427][ C2] __tcp_transmit_skb+0x22b1/0x2d20
[ 1452.040723][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1452.041032][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 1452.041369][ C2] tcp_write_xmit+0x94f/0x1cb0
[ 1452.041631][ C2] ? ipv4_mtu+0x37/0x360
[ 1452.041868][ C2] ? __pfx_tcp_write_xmit+0x10/0x10
[ 1452.042161][ C2] ? __pfx_tcp_current_mss+0x10/0x10
[ 1452.042446][ C2] __tcp_push_pending_frames+0x96/0x320
[ 1452.042752][ C2] tcp_rcv_state_process+0x786/0x1fe0
[ 1452.043054][ C2] ? tcp_v4_rcv+0x221e/0x2ac0
[ 1452.043322][ C2] ? hlock_class+0x4e/0x130
[ 1452.043564][ C2] ? __lock_acquired+0x18a/0x6b0
[ 1452.043840][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1452.044166][ C2] ? __pfx___lock_acquired+0x10/0x10
[ 1452.044448][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1452.044764][ C2] tcp_v4_do_rcv+0x154/0x860
[ 1452.045025][ C2] tcp_v4_rcv+0x2449/0x2ac0
[ 1452.045289][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1452.045569][ C2] ? __pfx_raw_v4_input+0x10/0x10
[ 1452.045852][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1452.046168][ C2] ip_protocol_deliver_rcu+0x93/0x360
[ 1452.046458][ C2] ip_local_deliver_finish+0x2ae/0x480
[ 1452.046765][ C2] ip_local_deliver+0x19d/0x480
[ 1452.047050][ C2] ? __pfx_ip_local_deliver+0x10/0x10
[ 1452.047347][ C2] ? tcp_v4_early_demux+0x59a/0x9d0
[ 1452.047628][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1452.047982][ C2] ip_rcv+0x564/0x740
[ 1452.048212][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1452.048459][ C2] ? lock_acquire.part.0+0xe5/0x330
[ 1452.048751][ C2] ? process_backlog+0x1ed/0x5e0
[ 1452.049033][ C2] ? __pfx_ip_rcv+0x10/0x10
[ 1452.049292][ C2] __netif_receive_skb_one_core+0x166/0x1b0
[ 1452.049611][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1452.049967][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1452.050295][ C2] ? lock_acquire+0x1c1/0x220
[ 1452.050548][ C2] ? process_backlog+0x1ed/0x5e0
[ 1452.050829][ C2] process_backlog+0xd3/0x5e0
[ 1452.051099][ C2] __napi_poll.constprop.0+0xa2/0x460
[ 1452.051400][ C2] net_rx_action+0x440/0xb40
[ 1452.051652][ C2] ? __pfx_net_rx_action+0x10/0x10
[ 1452.051939][ C2] ? __pfx___schedule+0x10/0x10
[ 1452.052216][ C2] ? __pfx___lock_release+0x10/0x10
[ 1452.052496][ C2] __do_softirq+0x1b9/0x7ff
[ 1452.052754][ C2] ? __pfx_run_ksoftirqd+0x10/0x10
[ 1452.053044][ C2] run_ksoftirqd+0x2e/0x60
[ 1452.053298][ C2] smpboot_thread_fn+0x30b/0x840
[ 1452.053565][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10
[ 1452.053871][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10
[ 1452.054180][ C2] kthread+0x28f/0x360
[ 1452.054399][ C2] ? __pfx_kthread+0x10/0x10
[ 1452.054660][ C2] ret_from_fork+0x31/0x70
[ 1452.054915][ C2] ? __pfx_kthread+0x10/0x10
[ 1452.055178][ C2] ret_from_fork_asm+0x1b/0x30
[ 1452.055443][ C2]
[ 1452.781139][ C1] irq 4: nobody cared (try booting with the "irqpoll" option)
[ 1452.781532][ C1] CPU: 1 PID: 3127 Comm: perl Not tainted 6.8.0-rc2-virtme #1
[ 1452.781911][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1452.782526][ C1] Call Trace:
[ 1452.782698][ C1]
[ 1452.782850][ C1] dump_stack_lvl+0x64/0xb0
[ 1452.783089][ C1] __report_bad_irq+0x5f/0x180
[ 1452.783337][ C1] note_interrupt+0x6b3/0x860
[ 1452.783580][ C1] handle_irq_event+0x16d/0x1c0
[ 1452.783831][ C1] handle_edge_irq+0x1fa/0xb60
[ 1452.784075][ C1] __common_interrupt+0x7c/0x180
[ 1452.784331][ C1] common_interrupt+0x7e/0x90
[ 1452.784574][ C1]
[ 1452.784726][ C1]
[ 1452.784877][ C1] asm_common_interrupt+0x26/0x40
[ 1452.785138][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70
[ 1452.785466][ C1] Code: 10 e8 f1 28 a6 fd 48 89 ef e8 09 b1 a6 fd 81 e3 00 02 00 00 75 1d 9c 58 f6 c4 02 75 29 48 85 db 74 01 fb 65 ff 0d 85 a5 57 52 <74> 0e 5b 5d c3 cc cc cc cc e8 8f 71 c8 fd eb dc 0f 1f 44 00 00 5b
[ 1452.786443][ C1] RSP: 0018:ffffc9000142fa88 EFLAGS: 00000286
[ 1452.786760][ C1] RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff5f1c49b
[ 1452.787166][ C1] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffffadc81151
[ 1452.787564][ C1] RBP: ffffffffb1a27860 R08: 0000000000000000 R09: fffffbfff5f1c252
[ 1452.787966][ C1] R10: ffffffffaf8e1297 R11: 0000000000000000 R12: 0000000000000f6c
[ 1452.788366][ C1] R13: ffffffffb1a27970 R14: ffffffffb1a27860 R15: ffff8880045a0000
[ 1452.788768][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70
[ 1452.789067][ C1] uart_write+0x220/0x440
[ 1452.789293][ C1] process_output_block+0x13e/0x790
[ 1452.789559][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100
[ 1452.789866][ C1] n_tty_write+0x414/0x7a0
[ 1452.790097][ C1] ? __pfx_n_tty_write+0x10/0x10
[ 1452.790358][ C1] ? __pfx_woken_wake_function+0x10/0x10
[ 1452.790645][ C1] ? lock_acquire+0x1c1/0x220
[ 1452.790888][ C1] ? iterate_tty_write+0x95/0x540
[ 1452.791146][ C1] iterate_tty_write+0x229/0x540
[ 1452.791399][ C1] file_tty_write.constprop.0+0x1db/0x370
[ 1452.791689][ C1] vfs_write+0x9e9/0x10a0
[ 1452.791916][ C1] ? __run_hrtimer+0x5df/0x710
[ 1452.792160][ C1] ? __pfx_vfs_write+0x10/0x10
[ 1452.792404][ C1] ? lock_acquire+0x1c1/0x220
[ 1452.792643][ C1] ? clockevents_program_event+0xf6/0x300
[ 1452.792938][ C1] ? kvm_clock_get_cycles+0x18/0x30
[ 1452.793206][ C1] ? __fget_light+0x54/0x1e0
[ 1452.793445][ C1] ksys_write+0xf5/0x1e0
[ 1452.793664][ C1] ? __pfx_ksys_write+0x10/0x10
[ 1452.793913][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100
[ 1452.794216][ C1] do_syscall_64+0xc9/0x1e0
[ 1452.794453][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1452.794754][ C1] RIP: 0033:0x7f244ee15957
[ 1452.794982][ C1] 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
[ 1452.795963][ C1] RSP: 002b:00007ffd5da9a198 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 1452.796387][ C1] RAX: ffffffffffffffda RBX: 000055cf6ee1ae70 RCX: 00007f244ee15957
[ 1452.796787][ C1] RDX: 0000000000000001 RSI: 000055cf6ee1ae70 RDI: 0000000000000001
[ 1452.797187][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 1452.797589][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 000055cf6ee07530
[ 1452.797989][ C1] R13: 000055cf6ede82a0 R14: 0000000000000001 R15: 000055cf6ee07530
[ 1452.798396][ C1]
[ 1452.798553][ C1] handlers:
[ 1452.798714][ C1] [] serial8250_interrupt
[ 1452.799028][ C1] Disabling IRQ #4
[ 1472.806311][ T3423] ncat (3423) used greatest stack depth: 21312 bytes left
TEST: mirred_egress_to_ingress_tcp (skip_hw) [ OK ]
# INFO: Could not test offloaded functionality
ok 1 selftests:
WAIT TIMEOUT stdout
Ctrl-C stdout
Ctrl-C stdout
WAIT TIMEOUT stdout