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.0
# 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 ]
[ 2236.731752][ T7307] ping (7307) used greatest stack depth: 23480 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 2239.690669][ T7345] tc (7345) used greatest stack depth: 23264 bytes left
# [ 2246.858287][ C3]
[ 2246.858456][ C3] ============================================
[ 2246.858807][ C3] WARNING: possible recursive locking detected
[ 2246.859121][ C3] 6.8.0-rc3-virtme #1 Not tainted
[ 2246.859400][ C3] --------------------------------------------
[ 2246.859727][ C3] ksoftirqd/3/32 is trying to acquire lock:
[ 2246.860030][ C3] ffff888007d81b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2246.860511][ C3]
[ 2246.860511][ C3] but task is already holding lock:
[ 2246.860911][ C3] ffff888007d80e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2246.861371][ C3]
[ 2246.861371][ C3] other info that might help us debug this:
[ 2246.861802][ C3] Possible unsafe locking scenario:
[ 2246.861802][ C3]
[ 2246.862193][ C3] CPU0
[ 2246.862390][ C3] ----
[ 2246.862566][ C3] lock(slock-AF_INET/1);
[ 2246.862823][ C3] lock(slock-AF_INET/1);
[ 2246.863083][ C3]
[ 2246.863083][ C3] *** DEADLOCK ***
[ 2246.863083][ C3]
[ 2246.863499][ C3] May be due to missing lock nesting notation
[ 2246.863499][ C3]
[ 2246.863937][ C3] 8 locks held by ksoftirqd/3/32:
[ 2246.864200][ C3] #0: ffffffff8c3467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 2246.864711][ C3] #1: ffffffff8c3467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 2246.865257][ C3] #2: ffff888007d80e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 2246.865786][ C3] #3: ffffffff8c3467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 2246.866269][ C3] #4: ffffffff8c3467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 2246.866803][ C3] #5: ffffffff8c346780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 2246.867333][ C3] #6: ffffffff8c3467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 2246.867876][ C3] #7: ffffffff8c3467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 2246.868399][ C3]
[ 2246.868399][ C3] stack backtrace:
[ 2246.868746][ C3] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc3-virtme #1
[ 2246.869149][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 2246.869823][ C3] Call Trace:
[ 2246.869996][ C3]
[ 2246.870177][ C3] dump_stack_lvl+0x64/0xb0
[ 2246.870449][ C3] validate_chain+0x525/0xa00
[ 2246.870711][ C3] ? __pfx_validate_chain+0x10/0x10
[ 2246.870984][ C3] ? hlock_class+0x4e/0x130
[ 2246.871237][ C3] ? mark_lock+0x38/0x3e0
[ 2246
DETECTED CRASH, lowering timeout
.871466][ C3] __lock_acquire+0xb67/0x1610
[ 2246.871750][ C3] ? lock_downgrade+0xa0/0x110
[ 2246.872006][ C3] ? mark_lock+0x38/0x3e0
[ 2246.872267][ C3] lock_acquire.part.0+0xe5/0x330
[ 2246.872550][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2246.872816][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2246.873106][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 2246.873407][ C3] ? lock_acquire+0x1c1/0x220
[ 2246.873689][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2246.873933][ C3] _raw_spin_lock_nested+0x33/0x80
[ 2246.874227][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2246.874476][ C3] tcp_v4_rcv+0x221e/0x2ac0
[ 2246.874741][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2246.874995][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 2246.875278][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2246.875572][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 2246.875899][ C3] ip_local_deliver_finish+0x2ae/0x480
[ 2246.876216][ C3] ip_local_deliver+0x19d/0x480
[ 2246.876496][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 2246.876785][ C3] ? tcp_v4_early_demux+0x59a/0x9d0
[ 2246.877053][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2246.877411][ C3] ip_rcv+0x564/0x740
[ 2246.877644][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2246.877878][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2246.878172][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 2246.878493][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2246.878768][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 2246.879071][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2246.879416][ C3] ? mark_held_locks+0xa5/0xf0
[ 2246.879699][ C3] ? lock_acquire+0x1c1/0x220
[ 2246.879944][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 2246.880264][ C3] netif_receive_skb_internal+0xb0/0x300
[ 2246.880574][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 2246.880895][ C3] ? __copy_skb_header+0xaf/0x490
[ 2246.881154][ C3] ? __skb_clone+0x57a/0x760
[ 2246.881430][ C3] netif_receive_skb+0x55/0x280
[ 2246.881701][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 2246.882056][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 2246.882409][ C3] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 2246.882713][ C3] tcf_action_exec.part.0+0x112/0x3d0
[ 2246.883033][ C3] fl_classify+0x4dc/0x650 [cls_flower]
[ 2246.883342][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 2246.883696][ C3] ? __pfx_check_irq_usage+0x10/0x10
[ 2246.883968][ C3] ? __bfs+0x247/0x650
[ 2246.884216][ C3] ? __pfx_hlock_conflict+0x10/0x10
[ 2246.884516][ C3] ? check_path.constprop.0+0x24/0x50
[ 2246.884822][ C3] ? check_noncircular+0x14e/0x3e0
[ 2246.885101][ C3] ? hlock_class+0x4e/0x130
[ 2246.885370][ C3] ? __pfx_check_noncircular+0x10/0x10
[ 2246.885683][ C3] ? __pfx_hlock_conflict+0x10/0x10
[ 2246.885953][ C3] ? __pfx_validate_chain+0x10/0x10
[ 2246.886257][ C3] ? hlock_class+0x4e/0x130
[ 2246.886525][ C3] ? hlock_class+0x4e/0x130
[ 2246.886798][ C3] ? check_prev_add+0x773/0xce0
[ 2246.887049][ C3] __tcf_classify+0x329/0x7d0
[ 2246.887327][ C3] tcf_classify+0x283/0x930
[ 2246.887579][ C3] ? __pfx_tcf_classify+0x10/0x10
[ 2246.887838][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 2246.888102][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 2246.888388][ C3] tc_run+0x2e4/0x5d0
[ 2246.888616][ C3] ? __pfx_tc_run+0x10/0x10
[ 2246.888873][ C3] ? lock_acquire+0x1c1/0x220
[ 2246.889146][ C3] ? __dev_queue_xmit+0x1da/0x17e0
[ 2246.889451][ C3] __dev_queue_xmit+0x686/0x17e0
[ 2246.889747][ C3] ? mark_held_locks+0xa5/0xf0
[ 2246.889994][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 2246.890348][ C3] ? __pfx___dev_queue_xmit+0x10/0x10
[ 2246.890626][ C3] ? __pfx_vrf_output_direct_finish+0x1/0x10 [vrf]
[ 2246.891003][ C3] ip_finish_output2+0x786/0x18e0
[ 2246.891301][ C3] ? __pfx_ip_finish_output2+0x10/0x10
[ 2246.891600][ C3] ? __ip_finish_output+0x3dd/0x770
[ 2246.891870][ C3] ip_output+0x16b/0x4f0
[ 2246.892121][ C3] ? __pfx_ip_output+0x10/0x10
[ 2246.892390][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2246.892713][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 2246.893053][ C3] ? ip_local_out+0x114/0x3b0
[ 2246.893327][ C3] __ip_queue_xmit+0x672/0x1910
[ 2246.893596][ C3] ? __skb_clone+0x57a/0x760
[ 2246.893845][ C3] __tcp_transmit_skb+0x22b1/0x2d20
[ 2246.894153][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 2246.894466][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 2246.894804][ C3] tcp_write_xmit+0x94f/0x1cb0
[ 2246.895055][ C3] ? ipv4_mtu+0x37/0x360
[ 2246.895309][ C3] ? __pfx_tcp_write_xmit+0x10/0x10
[ 2246.895599][ C3] ? __pfx_tcp_current_mss+0x10/0x10
[ 2246.895878][ C3] __tcp_push_pending_frames+0x96/0x320
[ 2246.896182][ C3] tcp_rcv_state_process+0x786/0x1fe0
[ 2246.896463][ C3] ? tcp_v4_rcv+0x221e/0x2ac0
[ 2246.896725][ C3] ? hlock_class+0x4e/0x130
[ 2246.896961][ C3] ? __lock_acquired+0x18a/0x6b0
[ 2246.897236][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 2246.897554][ C3] ? __pfx___lock_acquired+0x10/0x10
[ 2246.897863][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2246.898154][ C3] tcp_v4_do_rcv+0x154/0x860
[ 2246.898415][ C3] tcp_v4_rcv+0x2449/0x2ac0
[ 2246.898683][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2246.898936][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 2246.899213][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2246.899504][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 2246.899805][ C3] ip_local_deliver_finish+0x2ae/0x480
[ 2246.900084][ C3] ip_local_deliver+0x19d/0x480
[ 2246.900359][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 2246.900653][ C3] ? tcp_v4_early_demux+0x59a/0x9d0
[ 2246.900923][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2246.901248][ C3] ip_rcv+0x564/0x740
[ 2246.901490][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2246.901747][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 2246.902024][ C3] ? process_backlog+0x1ed/0x5e0
[ 2246.902304][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 2246.902541][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 2246.902884][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2246.903245][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 2246.903535][ C3] ? lock_acquire+0x1c1/0x220
[ 2246.903808][ C3] ? process_backlog+0x1ed/0x5e0
[ 2246.904068][ C3] process_backlog+0xd3/0x5e0
[ 2246.904347][ C3] __napi_poll.constprop.0+0xa2/0x460
[ 2246.904643][ C3] net_rx_action+0x440/0xb40
[ 2246.904886][ C3] ? __pfx_net_rx_action+0x10/0x10
[ 2246.905165][ C3] ? __pfx___schedule+0x10/0x10
[ 2246.905421][ C3] ? __pfx___lock_release+0x10/0x10
[ 2246.905715][ C3] __do_softirq+0x1b9/0x7ff
[ 2246.905989][ C3] ? __pfx_run_ksoftirqd+0x10/0x10
[ 2246.906275][ C3] run_ksoftirqd+0x2e/0x60
[ 2246.906536][ C3] smpboot_thread_fn+0x30b/0x840
[ 2246.906814][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10
[ 2246.907151][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10
[ 2246.907455][ C3] kthread+0x28f/0x360
[ 2246.907705][ C3] ? __pfx_kthread+0x10/0x10
[ 2246.907941][ C3] ret_from_fork+0x31/0x70
[ 2246.908200][ C3] ? __pfx_kthread+0x10/0x10
[ 2246.908448][ C3] ret_from_fork_asm+0x1b/0x30
[ 2246.908716][ C3]
[ 2258.869170][ C1] irq 4: nobody cared (try booting with the "irqpoll" option)
[ 2258.869562][ C1] CPU: 1 PID: 7050 Comm: perl Not tainted 6.8.0-rc3-virtme #1
[ 2258.869945][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 2258.870564][ C1] Call Trace:
[ 2258.870736][ C1]
[ 2258.870885][ C1] dump_stack_lvl+0x64/0xb0
[ 2258.871131][ C1] __report_bad_irq+0x5f/0x180
[ 2258.871381][ C1] note_interrupt+0x6b3/0x860
[ 2258.871625][ C1] handle_irq_event+0x16d/0x1c0
[ 2258.871888][ C1] handle_edge_irq+0x1fa/0xb60
[ 2258.872135][ C1] __common_interrupt+0x7c/0x180
[ 2258.872392][ C1] common_interrupt+0x7e/0x90
[ 2258.872638][ C1]
[ 2258.872790][ C1]
[ 2258.872943][ C1] asm_common_interrupt+0x26/0x40
[ 2258.873204][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70
[ 2258.873535][ C1] Code: 10 e8 91 a1 a4 fd 48 89 ef e8 a9 29 a5 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 25 0e 16 75 <74> 0e 5b 5d c3 cc cc cc cc e8 2f ea c6 fd eb dc 0f 1f 44 00 00 5b
[ 2258.874516][ C1] RSP: 0018:ffffc9000287fa88 EFLAGS: 00000286
[ 2258.874829][ C1] RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff199cf5b
[ 2258.875233][ C1] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8b09a8b1
[ 2258.875635][ C1] RBP: ffffffff8ee31820 R08: 0000000000000000 R09: fffffbfff199cd12
[ 2258.876040][ C1] R10: ffffffff8cce6897 R11: 0000000000000000 R12: 000000000000077b
[ 2258.876445][ C1] R13: ffffffff8ee31930 R14: ffffffff8ee31820 R15: ffff888004940000
[ 2258.876850][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70
[ 2258.877151][ C1] uart_write+0x220/0x440
[ 2258.877375][ C1] process_output_block+0x13e/0x790
[ 2258.877642][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100
[ 2258.877952][ C1] n_tty_write+0x414/0x7a0
[ 2258.878184][ C1] ? __pfx_n_tty_write+0x10/0x10
[ 2258.878438][ C1] ? __pfx_woken_wake_function+0x10/0x10
[ 2258.878729][ C1] ? lock_acquire+0x1c1/0x220
[ 2258.878974][ C1] ? iterate_tty_write+0x95/0x540
[ 2258.879233][ C1] iterate_tty_write+0x229/0x540
[ 2258.879490][ C1] file_tty_write.constprop.0+0x1db/0x370
[ 2258.879782][ C1] vfs_write+0x9e9/0x10a0
[ 2258.880007][ C1] ? lock_acquire+0x1c1/0x220
[ 2258.880246][ C1] ? __might_fault+0xc6/0x180
[ 2258.880490][ C1] ? __pfx_vfs_write+0x10/0x10
[ 2258.880736][ C1] ? __might_fault+0xc6/0x180
[ 2258.880979][ C1] ? lock_release+0x1d5/0x250
[ 2258.881219][ C1] ? __fget_light+0x54/0x1e0
[ 2258.881461][ C1] ksys_write+0xf5/0x1e0
[ 2258.881681][ C1] ? __pfx_ksys_write+0x10/0x10
[ 2258.881941][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100
[ 2258.882251][ C1] do_syscall_64+0xc9/0x1e0
[ 2258.882486][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 2258.882787][ C1] RIP: 0033:0x7faf485b4957
[ 2258.883017][ 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
[ 2258.883998][ C1] RSP: 002b:00007ffc1897cfd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 2258.884426][ C1] RAX: ffffffffffffffda RBX: 000056335df580d0 RCX: 00007faf485b4957
[ 2258.884831][ C1] RDX: 0000000000000001 RSI: 000056335df580d0 RDI: 0000000000000001
[ 2258.885234][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 2258.885637][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 000056335df44570
[ 2258.886047][ C1] R13: 000056335df252a0 R14: 0000000000000001 R15: 000056335df44570
[ 2258.886455][ C1]
[ 2258.886614][ C1] handlers:
[ 2258.886777][ C1] [] serial8250_interrupt
[ 2258.887093][ C1] Disabling IRQ #4
[ 2266.211538][ T7351] ncat (7351) used greatest stack depth: 20784 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