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 ] # [ 1992.486150][ C1] [ 1992.486296][ C1] ============================================ [ 1992.486631][ C1] WARNING: possible recursive locking detected [ 1992.486957][ C1] 6.8.0-rc2-virtme #1 Not tainted [ 1992.487236][ C1] -------------------------------------------- [ 1992.487560][ C1] swapper/1/0 is trying to acquire lock: [ 1992.487869][ C1] ffff88800af69b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1992.488356][ C1] [ 1992.488356][ C1] but task is already holding lock: [ 1992.488736][ C1] ffff88800af68e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1992.489227][ C1] [ 1992.489227][ C1] other info that might help us debug this: [ 1992.489653][ C1] Possible unsafe locking scenario: [ 1992.489653][ C1] [ 1992.490052][ C1] CPU0 [ 1992.490224][ C1] ---- [ 1992.490398][ C1] lock(slock-AF_INET/1); [ 1992.490646][ C1] lock(slock-AF_INET/1); [ 1992.490901][ C1] [ 1992.490901][ C1] *** DEADLOCK *** [ 1992.490901][ C1] [ 1992.491320][ C1] May be due to missing lock nesting notation [ 1992.491320][ C1] [ 1992.491748][ C1] 8 locks held by swapper/1/0: [ 1992.492013][ C1] #0: ffffffffa63447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1992.492529][ C1] #1: ffffffffa63447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1992.493078][ C1] #2: ffff88800af68e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1992.493574][ C1] #3: ffffffffa63447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1992.494089][ C1] #4: ffffffffa63447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1992.494596][ C1] #5: ffffffffa6344780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1992.495129][ C1] #6: ffffffffa63447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1992.495670][ C1] #7: ffffffffa63447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1992.496225][ C1] [ 1992.496225][ C1] stack backtrace: [ 1992.496541][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc2-virtme #1 [ 1992.496953][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1992.497586][ C1] Call Trace: [ 1992.497766][ C1] [ 1992.497944][ C1] dump_stack_lvl+0x64/0xb0 [ 1992.498183][ C1] validate_chain+0x525/0xa00 [ 1992.498433][ C1] ? __pfx_validate_chain+0x10/0x10 [ 1992.498723][ C1] ? hlock_class+0x4e/0x130 [ 1992.498964][ C1] ? mark_lock+0x38/0x3e0 [ 1992.499226][ C1] __lock_acquire+0xb67/0x1610 [ 1992.499480][ C1] ? lock_downgrade+0xa0/0x110 [ 1992.499753][ C1] ? mark_lock+0x38/0x3e0 [ 1992.499985][ C1] lock_acquire.part.0+0xe5/0x330 [ 1992.500271][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1992.500523][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1992.500836][ C1] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1992.501141][ C1] ? lock_acquire+0x1c1/0x220 [ 1992.501384][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1992.501648][ C1] _raw_spin_lock_nested+0x33/0x80 [ 1992.501930][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1992.502197][ C1] tcp_v4_rcv+0x2159/0x29b0 [ 1992.502445][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1992.502712][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 1992.502994][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1992.503295][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 1992.503598][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 1992.503901][ C1] ip_local_deliver+0x19d/0x480 [ 1992.504176][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 1992.504461][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1992.504807][ C1] ip_rcv+0x564/0x740 [ 1992.505033][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1992.505272][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1992.505546][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 1992.505872][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1992.506134][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 1992.506451][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1992.506802][ C1] ? lock_acquire+0x1c1/0x220 [ 1992.507066][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 1992.507374][ C1] netif_receive_skb_internal+0xb0/0x300 [ 1992.507669][ C1] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1992.508014][ C1] ? __copy_skb_header+0xaf/0x490 [ 1992.508301][ C1] ? __skb_clone+0x57a/0x760 [ 1992.508547][ C1] netif_receive_skb+0x55/0x280 [ 1992.508814][ C1] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1992.509155][ C1] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1992.509503][ C1] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1992.509825][ C1] tcf_action_exec.part.0+0x115/0x3d0 [ 1992.510131][ C1] fl_classify+0x4dc/0x650 [cls_flower] [ 1992.510463][ C1] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1992.510808][ C1] ? __pfx_usage_match+0x10/0x10 [ 1992.511074][ C1] ? check_irq_usage+0x27e/0x850 [ 1992.511356][ C1] ? hlock_class+0x4e/0x130 [ 1992.511598][ C1] ? __pfx_check_irq_usage+0x10/0x10 [ 1992.511900][ C1] ? __bfs+0x24a/0x650 [ 1992.512113][ C1] ? __pfx_hlock_conflict+0x10/0x10 [ 1992.512393][ C1] ? hlock_class+0x4e/0x130 [ 1992.512655][ C1] ? check_path.constprop.0+0x24/0x50 [ 1992.512943][ C1] ? check_noncircular+0x14e/0x3e0 [ 1992.513233][ C1] ? __pfx_check_noncircular+0x10/0x10 [ 1992.513516][ C1] ? hlock_class+0x4e/0x130 [ 1992.513773][ C1] ? hlock_class+0x4e/0x130 [ 1992.514039][ C1] __tcf_classify+0x32c/0x7d0 [ 1992.514304][ C1] tcf_classify+0x283/0x930 [ 1992.514548][ C1] ? __pfx_tcf_classify+0x10/0x10 [ 1992.514827][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1992.515117][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1992.515390][ C1] tc_run+0x2e4/0x5d0 [ 1992.515615][ C1] ? __pfx_tc_run+0x10/0x10 [ 1992.515871][ C1] ? lock_acquire+0x1c1/0x220 [ 1992.516132][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1992.516400][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1992.516686][ C1] __dev_queue_xmit+0x8eb/0x1ca0 [ 1992.516964][ C1] ? mark_lock+0x38/0x3e0 [ 1992.517212][ C1] ? mark_held_locks+0xa5/0xf0 [ 1992.517472][ C1] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1992.517770][ C1] ? neigh_hh_output+0x348/0x590 [ 1992.518046][ C1] ip_finish_output2+0x786/0x18e0 [ 1992.518332][ C1] ? __pfx_ip_finish_output2+0x10/0x10 [ 1992.518623][ C1] ? __ip_finish_output+0x3dd/0x770 [ 1992.518908][ C1] ip_output+0x16b/0x4f0 [ 1992.519153][ C1] ? hlock_class+0x4e/0x130 [ 1992.519389][ C1] ? __pfx_ip_output+0x10/0x10 [ 1992.519652][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1992.519966][ C1] ? ip_local_out+0x114/0x3b0 [ 1992.520230][ C1] __ip_queue_xmit+0x672/0x1910 [ 1992.520488][ C1] ? __skb_clone+0x57a/0x760 [ 1992.520746][ C1] __tcp_transmit_skb+0x22b1/0x2d20 [ 1992.521039][ C1] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1992.521357][ C1] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 1992.521673][ C1] tcp_write_xmit+0xe42/0x24c0 [ 1992.521939][ C1] ? ipv4_mtu+0x37/0x360 [ 1992.522186][ C1] ? __pfx_tcp_write_xmit+0x10/0x10 [ 1992.522460][ C1] ? __pfx_tcp_current_mss+0x10/0x10 [ 1992.522757][ C1] __tcp_push_pending_frames+0x96/0x320 [ 1992.523067][ C1] tcp_rcv_state_process+0x81e/0x1fd0 [ 1992.523367][ C1] ? tcp_v4_rcv+0x2159/0x29b0 [ 1992.523634][ C1] ? hlock_class+0x4e/0x130 [ 1992.523894][ C1] ? __lock_acquired+0x18a/0x6b0 [ 1992.524176][ C1] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1992.524480][ C1] ? __pfx___lock_acquired+0x10/0x10 [ 1992.524773][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1992.525087][ C1] tcp_v4_do_rcv+0x154/0x850 [ 1992.525335][ C1] tcp_v4_rcv+0x235a/0x29b0 [ 1992.525591][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1992.525862][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 1992.526142][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1992.526436][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 1992.526735][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 1992.527040][ C1] ip_local_deliver+0x19d/0x480 [ 1992.527313][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 1992.527596][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1992.527941][ C1] ip_rcv+0x564/0x740 [ 1992.528165][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1992.528409][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 1992.528697][ C1] ? process_backlog+0x1ed/0x5e0 [ 1992.528978][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 1992.529254][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 1992.529567][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1992.529919][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1992.530235][ C1] ? lock_acquire+0x1c1/0x220 [ 1992.530483][ C1] ? process_backlog+0x1ed/0x5e0 [ 1992.530757][ C1] process_backlog+0xd3/0x5e0 [ 1992.531025][ C1] ? __pfx___lock_release+0x10/0x10 [ 1992.531316][ C1] __napi_poll.constprop.0+0xa5/0x450 [ 1992.531601][ C1] net_rx_action+0x440/0xb40 [ 1992.531865][ C1] ? __pfx_net_rx_action+0x10/0x10 [ 1992.532150][ C1] __do_softirq+0x1bc/0x7ff [ 1992.532396][ C1] irq_exit_rcu+0x98/0xc0 [ 1992.532638][ C1] common_interrupt+0x83/0x90 [ 1992.532904][ C1] [ 1992.533062][ C1] [ 1992.533237][ C1] asm_common_interrupt+0x26/0x40 [ 1992.533523][ C1] RIP: 0010:default_idle+0xf/0x20 [ 1992.533809][ C1] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 53 c3 41 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 1992.534841][ C1] RSP: 0018:ffffc9000013fdf8 EFLAGS: 00000206 [ 1992.535167][ C1] RAX: 000000000243e555 RBX: 1ffff92000027fc1 RCX: ffffffffa5044862 [ 1992.535583][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa2a968b6 [ 1992.536015][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006afeea4 [ 1992.536435][ C1] R10: ffff8880357f7523 R11: ffff8880357fc348 R12: 0000000000000000 [ 1992.536855][ C1] R13: ffff888001d0bec0 R14: dffffc0000000000 R15: 0000000000000000 [ 1992.537293][ C1] ? ct_kernel_exit.constprop.0+0xc2/0xe0 [ 1992.537597][ C1] ? cpuidle_idle_call+0x1f6/0x280 [ 1992.537884][ C1] default_idle_call+0x69/0xa0 [ 1992.538151][ C1] cpuidle_idle_call+0x1f6/0x280 [ 1992.538414][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 1992.538717][ C1] do_idle+0xfb/0x160 [ 1992.538947][ C1] cpu_startup_entry+0x55/0x60 [ 1992.539232][ C1] start_secondary+0x21c/0x2b0 [ 1992.539489][ C1] ? __pfx_start_secondary+0x10/0x10 [ 1992.539779][ C1] secondary_startup_64_no_verify+0x16d/0x17b [ 1992.540125][ C1] [ 2006.454707][ C1] irq 4: nobody cared (try booting with the "irqpoll" option) [ 2006.455107][ C1] CPU: 1 PID: 10751 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 2006.455503][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2006.456132][ C1] Call Trace: [ 2006.456307][ C1] [ 2006.456458][ C1] dump_stack_lvl+0x64/0xb0 [ 2006.456703][ C1] __report_bad_irq+0x5f/0x180 [ 2006.456959][ C1] note_interrupt+0x6b3/0x860 [ 2006.457203][ C1] handle_irq_event+0x16d/0x1c0 [ 2006.457460][ C1] handle_edge_irq+0x1fa/0xb60 [ 2006.457713][ C1] __common_interrupt+0x7f/0x180 [ 2006.457977][ C1] common_interrupt+0x7e/0x90 [ 2006.458222][ C1] [ 2006.458376][ C1] [ 2006.458531][ C1] asm_common_interrupt+0x26/0x40 [ 2006.458795][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70 [ 2006.459139][ C1] Code: 10 e8 51 cb a6 fd 48 89 ef e8 69 53 a7 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 e5 47 18 5b <74> 0e 5b 5d c3 cc cc cc cc e8 5f 5b c9 fd eb dc 0f 1f 44 00 00 5b [ 2006.460144][ C1] RSP: 0018:ffffc9000112fa88 EFLAGS: 00000286 [ 2006.460463][ C1] RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff4d9c053 [ 2006.460883][ C1] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffffa5076ef1 [ 2006.461295][ C1] RBP: ffffffffa8e229a0 R08: 0000000000000000 R09: fffffbfff4d9be0a [ 2006.461708][ C1] R10: ffffffffa6cdf057 R11: 0000000000000000 R12: 00000000000003c7 [ 2006.462124][ C1] R13: ffffffffa8e22ab0 R14: ffffffffa8e229a0 R15: ffff888005590000 [ 2006.462544][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70 [ 2006.462851][ C1] uart_write+0x220/0x440 [ 2006.463081][ C1] process_output_block+0x141/0x790 [ 2006.463356][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 2006.463671][ C1] n_tty_write+0x414/0x7a0 [ 2006.463910][ C1] ? __pfx_n_tty_write+0x10/0x10 [ 2006.464169][ C1] ? __pfx_woken_wake_function+0x10/0x10 [ 2006.464467][ C1] ? lock_acquire+0x1c1/0x220 [ 2006.464715][ C1] ? iterate_tty_write+0x95/0x540 [ 2006.464979][ C1] iterate_tty_write+0x22c/0x540 [ 2006.465238][ C1] file_tty_write.constprop.0+0x1db/0x370 [ 2006.465541][ C1] vfs_write+0x9ec/0x10a0 [ 2006.465770][ C1] ? __run_timers.part.0+0x2b2/0x890 [ 2006.466052][ C1] ? __pfx_mix_interrupt_randomness+0x10/0x10 [ 2006.466368][ C1] ? __pfx_vfs_write+0x10/0x10 [ 2006.466618][ C1] ? __pfx___run_timers.part.0+0x10/0x10 [ 2006.466915][ C1] ? lock_acquire+0x1c1/0x220 [ 2006.467161][ C1] ? clockevents_program_event+0xf6/0x300 [ 2006.467461][ C1] ? kvm_clock_get_cycles+0x18/0x30 [ 2006.467734][ C1] ? __fget_light+0x54/0x1e0 [ 2006.467977][ C1] ksys_write+0xf5/0x1e0 [ 2006.468201][ C1] ? __pfx_ksys_write+0x10/0x10 [ 2006.468456][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 2006.468769][ C1] do_syscall_64+0xcc/0x1e0 [ 2006.469011][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2006.469333][ C1] RIP: 0033:0x7f2f4781d957 [ 2006.469565][ 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 [ 2006.470575][ C1] RSP: 002b:00007ffffabdceb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2006.471015][ C1] RAX: ffffffffffffffda RBX: 000055abb090ffe0 RCX: 00007f2f4781d957 [ 2006.471425][ C1] RDX: 0000000000000001 RSI: 000055abb090ffe0 RDI: 0000000000000001 [ 2006.471835][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 2006.472246][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 000055abb08fc510 [ 2006.472656][ C1] R13: 000055abb08dd2a0 R14: 0000000000000001 R15: 000055abb08fc510 [ 2006.473069][ C1] [ 2006.473228][ C1] handlers: [ 2006.473396][ C1] [] serial8250_interrupt [ 2006.473722][ C1] Disabling IRQ #4 [ 2011.352844][T11102] ncat (11102) used greatest stack depth: 20640 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