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 ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2257.864910][ C1] [ 2257.865062][ C1] ============================================ [ 2257.865376][ C1] WARNING: possible recursive locking detected [ 2257.865689][ C1] 6.8.0-rc3-virtme #1 Not tainted [ 2257.865964][ C1] -------------------------------------------- [ 2257.866277][ C1] swapper/1/0 is trying to acquire lock: [ 2257.866564][ C1] ffff88800a5e8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2257.867039][ C1] [ 2257.867039][ C1] but task is already holding lock: [ 2257.867428][ C1] ffff88800a5e9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2257.867884][ C1] [ 2257.867884][ C1] other info that might help us debug this: [ 2257.868310][ C1] Possible unsafe locking scenario: [ 2257.868310][ C1] [ 2257.868697][ C1] CPU0 [ 2257.868887][ C1] ---- [ 2257.869058][ C1] lock(slock-AF_INET/1); [ 2257.869303][ C1] lock(slock-AF_INET/1); [ 2257.869532][ C1] [ 2257.869532][ C1] *** DEADLOCK *** [ 2257.869532][ C1] [ 2257.869966][ C1] May be due to missing lock nesting notation [ 2257.869966][ C1] [ 2257.870384][ C1] 8 locks held by swapper/1/0: [ 2257.870627][ C1] #0: ffffffff98d467e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2257.871119][ C1] #1: ffffffff98d467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2257.871635][ C1] #2: ffff88800a5e9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2257.872123][ C1] #3: ffffffff98d467e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x17b0 [ 2257.872605][ C1] #4: ffffffff98d467e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2257.873109][ C1] #5: ffffffff98d46780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2257.873611][ C1] #6: ffffffff98d467e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2257.874146][ C1] #7: ffffffff98d467e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2257.874662][ C1] [ 2257.874662][ C1] stack backtrace: [ 2257.874987][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc3-virtme #1 [ 2257.875395][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2257.876013][ C1] Call Trace: [ 2257.876201][ C1] [ 2257.876351][ C1] dump_stack_lvl+0x64/0xb0 [ 2257.876601][ C1] validate_chain+0x525/0xa00 [ 2257.876846][ C1] ? __pfx_validate_chain+0x10/0x10 [ 2257.877126][ C1] ? hlock_class+0x4e/0x130 [ 2257.877359][ C1] ? mark_lock+0x38/0x3e0 [ 2257.877601][ C1] __lock_acquire+0xb67/0x1610 [ 2257.877848][ C1] ? lock_downgrade+0xa0/0x110 [ 2257.878109][ C1] ? mark_lock+0x38/0x3e0 [ 2257.878332][ C1] lock_acquire.part.0+0xe5/0x330 [ 2257.878612][ C1] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2257.878853][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2257.879157][ C1] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2257.879444][ C1] ? lock_acquire+0x1c1/0x220 [ 2257.879699][ C1] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2257.879940][ C1] _raw_spin_lock_nested+0x33/0x80 [ 2257.880217][ C1] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2257.880458][ C1] tcp_v4_rcv+0x221e/0x2ac0 [ DETECTED CRASH, lowering timeout 2257.880713][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2257.880981][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 2257.881240][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2257.881527][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 2257.881820][ C1] ip_local_deliver_finish+0x2ae/0x480 [ 2257.882098][ C1] ip_local_deliver+0x19d/0x480 [ 2257.882346][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 2257.882635][ C1] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2257.882902][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2257.883241][ C1] ip_rcv+0x564/0x740 [ 2257.883446][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 2257.883697][ C1] ? lock_acquire.part.0+0x113/0x330 [ 2257.883968][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 2257.884215][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 2257.884518][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2257.884863][ C1] ? lock_acquire+0x1c1/0x220 [ 2257.885104][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 2257.885400][ C1] netif_receive_skb_internal+0xb0/0x300 [ 2257.885707][ C1] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2257.886026][ C1] ? __copy_skb_header+0xaf/0x490 [ 2257.886298][ C1] ? __skb_clone+0x57a/0x760 [ 2257.886534][ C1] netif_receive_skb+0x55/0x280 [ 2257.886799][ C1] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2257.887134][ C1] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2257.887467][ C1] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2257.887783][ C1] tcf_action_exec.part.0+0x112/0x3d0 [ 2257.888081][ C1] fl_classify+0x4dc/0x650 [cls_flower] [ 2257.888390][ C1] ? find_held_lock+0x33/0x120 [ 2257.888641][ C1] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2257.888973][ C1] ? hlock_class+0x4e/0x130 [ 2257.889208][ C1] ? __pfx_check_irq_usage+0x10/0x10 [ 2257.889476][ C1] ? __bfs+0x247/0x650 [ 2257.889703][ C1] ? __pfx_hlock_conflict+0x10/0x10 [ 2257.889971][ C1] ? hlock_class+0x4e/0x130 [ 2257.890221][ C1] ? check_path.constprop.0+0x24/0x50 [ 2257.890494][ C1] ? check_noncircular+0x14e/0x3e0 [ 2257.890776][ C1] ? __pfx_check_noncircular+0x10/0x10 [ 2257.891055][ C1] ? hlock_class+0x4e/0x130 [ 2257.891302][ C1] ? hlock_class+0x4e/0x130 [ 2257.891539][ C1] ? hlock_class+0x4e/0x130 [ 2257.891789][ C1] ? check_prev_add+0x773/0xce0 [ 2257.892039][ C1] __tcf_classify+0x329/0x7d0 [ 2257.892296][ C1] tcf_classify+0x283/0x930 [ 2257.892531][ C1] ? __pfx_tcf_classify+0x10/0x10 [ 2257.892805][ C1] ? __dev_queue_xmit+0x1da/0x17e0 [ 2257.893066][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 2257.893351][ C1] ? __dev_queue_xmit+0x1da/0x17e0 [ 2257.893613][ C1] tc_run+0x2e4/0x5d0 [ 2257.893836][ C1] ? __pfx_tc_run+0x10/0x10 [ 2257.894069][ C1] ? lock_acquire+0x1c1/0x220 [ 2257.894327][ C1] ? __dev_queue_xmit+0x1da/0x17e0 [ 2257.894589][ C1] __dev_queue_xmit+0x686/0x17e0 [ 2257.894861][ C1] ? mark_held_locks+0xa5/0xf0 [ 2257.895105][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2257.895439][ C1] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2257.895731][ C1] ? neigh_hh_output+0x348/0x590 [ 2257.895986][ C1] ip_finish_output2+0x786/0x18e0 [ 2257.896266][ C1] ? __pfx_ip_finish_output2+0x10/0x10 [ 2257.896545][ C1] ? __ip_finish_output+0x10f/0x770 [ 2257.896827][ C1] ip_output+0x16b/0x4f0 [ 2257.897048][ C1] ? __pfx_ip_output+0x10/0x10 [ 2257.897307][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2257.897600][ C1] ? ip_local_out+0x114/0x3b0 [ 2257.897873][ C1] __ip_queue_xmit+0x672/0x17b0 [ 2257.898124][ C1] ? __create_object+0x5e/0xb0 [ 2257.898368][ C1] __tcp_transmit_skb+0x22b1/0x2d20 [ 2257.898662][ C1] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2257.898947][ C1] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 2257.899239][ C1] tcp_rcv_state_process+0x7ca/0x1fe0 [ 2257.899513][ C1] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2257.899770][ C1] ? hlock_class+0x4e/0x130 [ 2257.900003][ C1] ? __lock_acquired+0x2cf/0x6b0 [ 2257.900274][ C1] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2257.900569][ C1] ? __pfx___lock_acquired+0x10/0x10 [ 2257.900857][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2257.901150][ C1] tcp_v4_do_rcv+0x154/0x860 [ 2257.901388][ C1] tcp_v4_rcv+0x2449/0x2ac0 [ 2257.901644][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2257.901893][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 2257.902170][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2257.902459][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 2257.902751][ C1] ip_local_deliver_finish+0x2ae/0x480 [ 2257.903028][ C1] ip_local_deliver+0x19d/0x480 [ 2257.903294][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 2257.903567][ C1] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2257.903852][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2257.904182][ C1] ip_rcv+0x564/0x740 [ 2257.904411][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 2257.904644][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 2257.904925][ C1] ? process_backlog+0x1ed/0x5e0 [ 2257.905181][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 2257.905414][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 2257.905747][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2257.906073][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2257.906377][ C1] ? lock_acquire+0x1c1/0x220 [ 2257.906617][ C1] ? process_backlog+0x1ed/0x5e0 [ 2257.906891][ C1] process_backlog+0xd3/0x5e0 [ 2257.907132][ C1] ? __pfx___lock_release+0x10/0x10 [ 2257.907398][ C1] __napi_poll.constprop.0+0xa2/0x460 [ 2257.907690][ C1] net_rx_action+0x440/0xb40 [ 2257.907929][ C1] ? __pfx_net_rx_action+0x10/0x10 [ 2257.908208][ C1] __do_softirq+0x1b9/0x7ff [ 2257.908443][ C1] irq_exit_rcu+0x98/0xc0 [ 2257.908693][ C1] common_interrupt+0x83/0x90 [ 2257.908935][ C1] [ 2257.909106][ C1] [ 2257.909257][ C1] asm_common_interrupt+0x26/0x40 [ 2257.909536][ C1] RIP: 0010:tick_nohz_idle_exit+0xc9/0x240 [ 2257.909838][ C1] Code: 00 00 0f b6 2b 83 e5 fe 41 89 ec 40 88 2b 40 d0 ed 41 c0 ec 02 83 e5 01 41 83 e4 01 75 20 40 84 ed 75 1b e8 09 a3 10 00 fb 5b <5d> 41 5c 41 5d c3 cc cc cc cc e8 88 a3 10 00 e9 4d ff ff ff e8 de [ 2257.910830][ C1] RSP: 0018:ffffc9000013fe78 EFLAGS: 00000206 [ 2257.911142][ C1] RAX: 00000000027a58e1 RBX: 0000000000000001 RCX: 1ffffffff32dc7b9 [ 2257.911544][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff955fee27 [ 2257.911964][ C1] RBP: 000000000000001c R08: 0000000000000001 R09: fffffbfff32dce42 [ 2257.912366][ C1] R10: ffffffff996e7217 R11: ffff88802edfc348 R12: 0000000000000001 [ 2257.912767][ C1] R13: 0000020db26615fb R14: ffffffff996e7210 R15: 0000000000000000 [ 2257.913188][ C1] ? tick_nohz_idle_exit+0xc7/0x240 [ 2257.913454][ C1] do_idle+0x10d/0x160 [ 2257.913680][ C1] cpu_startup_entry+0x55/0x60 [ 2257.913924][ C1] start_secondary+0x21c/0x2b0 [ 2257.914187][ C1] ? __pfx_start_secondary+0x10/0x10 [ 2257.914456][ C1] secondary_startup_64_no_verify+0x16d/0x17b [ 2257.914782][ C1] [ 2262.430147][ C1] irq 4: nobody cared (try booting with the "irqpoll" option) [ 2262.430539][ C1] CPU: 1 PID: 4391 Comm: perl Not tainted 6.8.0-rc3-virtme #1 [ 2262.430913][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2262.431524][ C1] Call Trace: [ 2262.431697][ C1] [ 2262.431845][ C1] dump_stack_lvl+0x64/0xb0 [ 2262.432085][ C1] __report_bad_irq+0x5f/0x180 [ 2262.432332][ C1] note_interrupt+0x6b3/0x860 [ 2262.432572][ C1] handle_irq_event+0x16d/0x1c0 [ 2262.432823][ C1] handle_edge_irq+0x1fa/0xb60 [ 2262.433071][ C1] __common_interrupt+0x7c/0x180 [ 2262.433326][ C1] common_interrupt+0x7e/0x90 [ 2262.433571][ C1] [ 2262.433721][ C1] [ 2262.433872][ C1] asm_common_interrupt+0x26/0x40 [ 2262.434131][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70 [ 2262.434459][ C1] Code: 10 e8 d1 90 a4 fd 48 89 ef e8 e9 18 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 65 fd 75 68 <74> 0e 5b 5d c3 cc cc cc cc e8 bf d7 c6 fd eb dc 0f 1f 44 00 00 5b [ 2262.435427][ C1] RSP: 0018:ffffc900027efa88 EFLAGS: 00000286 [ 2262.435735][ C1] RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff32dd08b [ 2262.436140][ C1] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff97a9b971 [ 2262.436539][ C1] RBP: ffffffff9b833820 R08: 0000000000000000 R09: fffffbfff32dce42 [ 2262.436937][ C1] R10: ffffffff996e7217 R11: 0000000000000000 R12: 0000000000000e72 [ 2262.437336][ C1] R13: ffffffff9b833930 R14: ffffffff9b833820 R15: ffff888005010000 [ 2262.437737][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70 [ 2262.438031][ C1] uart_write+0x220/0x440 [ 2262.438258][ C1] process_output_block+0x13e/0x790 [ 2262.438529][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 2262.438843][ C1] n_tty_write+0x414/0x7a0 [ 2262.439072][ C1] ? __pfx_n_tty_write+0x10/0x10 [ 2262.439324][ C1] ? __pfx_woken_wake_function+0x10/0x10 [ 2262.439611][ C1] ? lock_acquire+0x1c1/0x220 [ 2262.439849][ C1] ? iterate_tty_write+0x95/0x540 [ 2262.440107][ C1] iterate_tty_write+0x229/0x540 [ 2262.440359][ C1] file_tty_write.constprop.0+0x1db/0x370 [ 2262.440651][ C1] vfs_write+0x9e9/0x10a0 [ 2262.440876][ C1] ? __run_hrtimer+0x5df/0x710 [ 2262.441120][ C1] ? __pfx_vfs_write+0x10/0x10 [ 2262.441365][ C1] ? lock_acquire+0x1c1/0x220 [ 2262.441604][ C1] ? clockevents_program_event+0xf6/0x300 [ 2262.441898][ C1] ? kvm_clock_get_cycles+0x18/0x30 [ 2262.442164][ C1] ? __fget_light+0x54/0x1e0 [ 2262.442403][ C1] ksys_write+0xf5/0x1e0 [ 2262.442619][ C1] ? __pfx_ksys_write+0x10/0x10 [ 2262.442869][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 2262.443173][ C1] do_syscall_64+0xc9/0x1e0 [ 2262.443407][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2262.443708][ C1] RIP: 0033:0x7f651265b957 [ 2262.443937][ 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 [ 2262.444904][ C1] RSP: 002b:00007ffd3220d638 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2262.445331][ C1] RAX: ffffffffffffffda RBX: 000055a24b5a1000 RCX: 00007f651265b957 [ 2262.445733][ C1] RDX: 0000000000000001 RSI: 000055a24b5a1000 RDI: 0000000000000001 [ 2262.446131][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 2262.446529][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 000055a24b58d560 [ 2262.446927][ C1] R13: 000055a24b56e2a0 R14: 0000000000000001 R15: 000055a24b58d560 [ 2262.447341][ C1] [ 2262.447497][ C1] handlers: [ 2262.447659][ C1] [] serial8250_interrupt [ 2262.447972][ C1] Disabling IRQ #4 [ 2286.920020][ T4692] ncat (4692) 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