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 ] # [ 1244.445025][ C2] [ 1244.445202][ C2] ============================================ [ 1244.445528][ C2] WARNING: possible recursive locking detected [ 1244.445880][ C2] 6.8.0-rc1-virtme #1 Not tainted [ 1244.446149][ C2] -------------------------------------------- [ 1244.446478][ C2] swapper/2/0 is trying to acquire lock: [ 1244.446808][ C2] ffff888007f59b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1244.447315][ C2] [ 1244.447315][ C2] but task is already holding lock: [ 1244.447700][ C2] ffff888007f58e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1244.448184][ C2] [ 1244.448184][ C2] other info that might help us debug this: [ 1244.448605][ C2] Possible unsafe locking scenario: [ 1244.448605][ C2] [ 1244.449023][ C2] CPU0 [ 1244.449216][ C2] ---- [ 1244.449399][ C2] lock(slock-AF_INET/1); [ 1244.449654][ C2] lock(slock-AF_INET/1); [ 1244.449897][ C2] [ 1244.449897][ C2] *** DEADLOCK *** [ 1244.449897][ C2] [ 1244.450349][ C2] May be due to missing lock nesting notation [ 1244.450349][ C2] [ 1244.450787][ C2] 8 locks held by swapper/2/0: [ 1244.451079][ C2] #0: ffffffff993447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1244.451598][ C2] #1: ffffffff993447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1244.452157][ C2] #2: ffff888007f58e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1244.452658][ C2] #3: ffffffff993447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1244.453175][ C2] #4: ffffffff993447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1244.453687][ C2] #5: ffffffff99344780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1244.454232][ C2] #6: ffffffff993447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1244.454816][ C2] #7: ffffffff993447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1244.455387][ C2] [ 1244.455387][ C2] stack backtrace: [ 1244.455698][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc1-virtme #1 [ 1244.456118][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1244.456763][ C2] Call Trace: [ 1244.456957][ C2] [ 1244.457112][ C2] dump_stack_lvl+0x64/0xb0 [ 1244.457360][ C2] validate_chain+0x525/0xa00 [ 1244.457632][ C2] ? __pfx_validate_chain+0x10/0x10 [ 1244.457912][ C2] ? hlock_class+0x4e/0x130 [ 1244.458172][ C2] ? mark_lock+0x38/0x3e0 [ 1244.458406][ C2] __lock_acquire+0xb67/0x1610 [ 1244.458674][ C2] ? lock_downgrade+0x90/0x110 [ 1244.458957][ C2] ? mark_lock+0x38/0x3e0 [ 1244.459200][ C2] lock_acquire.part.0+0xe5/0x330 [ 1244.459465][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1244.459733][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1244.460029][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1244.460341][ C2] ? lock_acquire+0x1c1/0x220 [ 1244.460591][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1244.460860][ C2] _raw_spin_lock_nested+0x33/0x80 [ 1244.461134][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1244.461403][ C2] tcp_v4_rcv+0x2159/0x29b0 [ 1244.461651][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1244.461928][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1244.462198][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1244.462498][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1244.462809][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 1244.463127][ C2] ip_local_deliver+0x19d/0x480 [ 1244.463388][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1244.463696][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1244.464036][ C2] ip_rcv+0x564/0x740 [ 1244.464270][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1244.464520][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1244.464819][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1244.465130][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1244.465369][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1244.465699][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1244.466037][ C2] ? mark_held_locks+0xa5/0xf0 [ 1244.466308][ C2] ? lock_acquire+0x1c1/0x220 [ 1244.466559][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1244.466911][ C2] netif_receive_skb_internal+0xb0/0x300 [ 1244.467212][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1244.467560][ C2] ? __copy_skb_header+0xaf/0x490 [ 1244.467827][ C2] ? __skb_clone+0x57a/0x760 [ 1244.468099][ C2] netif_receive_skb+0x55/0x280 [ 1244.468356][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1244.468700][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1244.469083][ C2] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1244.469405][ C2] tcf_action_exec.part.0+0x115/0x3d0 [ 1244.469693][ C2] fl_classify+0x4dc/0x650 [cls_flower] [ 1244.470002][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1244.470366][ C2] ? __pfx_usage_match+0x10/0x10 [ 1244.470632][ C2] ? check_irq_usage+0x27e/0x850 [ 1244.470947][ C2] ? __pfx_check_irq_usage+0x10/0x10 [ 1244.471230][ C2] ? __bfs+0x24a/0x650 [ 1244.471447][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 1244.471745][ C2] ? __bfs+0x24a/0x650 [ 1244.471987][ C2] ? __pfx_usage_match+0x10/0x10 [ 1244.472268][ C2] ? check_path.constprop.0+0x24/0x50 [ 1244.472553][ C2] ? check_noncircular+0x14e/0x3e0 [ 1244.472840][ C2] ? __pfx_check_noncircular+0x10/0x10 [ 1244.473160][ C2] __tcf_classify+0x32c/0x7d0 [ 1244.473441][ C2] tcf_classify+0x283/0x930 [ 1244.473682][ C2] ? __pfx_tcf_classify+0x10/0x10 [ 1244.473965][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1244.474242][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1244.474562][ C2] tc_run+0x2e4/0x5d0 [ 1244.474795][ C2] ? __pfx_tc_run+0x10/0x10 [ 1244.475174][ C2] ? lock_acquire+0x1c1/0x220 [ 1244.475561][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1244.475984][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1244.476414][ C2] __dev_queue_xmit+0x8eb/0x1ca0 [ 1244.476813][ C2] ? mark_lock+0x38/0x3e0 [ 1244.477168][ C2] ? mark_held_locks+0xa5/0xf0 [ 1244.477572][ C2] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1244.478021][ C2] ? neigh_hh_output+0x348/0x590 [ 1244.478438][ C2] ? vrf_ip_local_out+0x781/0x860 [vrf] [ 1244.478919][ C2] ip_finish_output2+0x786/0x18e0 [ 1244.479341][ C2] ? __pfx_ip_finish_output2+0x10/0x10 [ 1244.479801][ C2] ? __ip_finish_output+0x3dd/0x770 [ 1244.480244][ C2] ip_output+0x16b/0x4f0 [ 1244.480588][ C2] ? hlock_class+0x4e/0x130 [ 1244.480923][ C2] ? __pfx_ip_output+0x10/0x10 [ 1244.481197][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1244.481495][ C2] ? ip_local_out+0x114/0x3b0 [ 1244.481765][ C2] __ip_queue_xmit+0x672/0x1910 [ 1244.482053][ C2] ? __skb_clone+0x57a/0x760 [ 1244.482320][ C2] __tcp_transmit_skb+0x22b1/0x2d20 [ 1244.482619][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1244.482916][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 1244.483241][ C2] tcp_write_xmit+0xe42/0x24c0 [ 1244.483498][ C2] ? ipv4_mtu+0x37/0x360 [ 1244.483745][ C2] ? __pfx_tcp_write_xmit+0x10/0x10 [ 1244.484050][ C2] ? __pfx_tcp_current_mss+0x10/0x10 [ 1244.484350][ C2] __tcp_push_pending_frames+0x96/0x320 [ 1244.484680][ C2] tcp_rcv_state_process+0x81e/0x1fd0 [ 1244.484985][ C2] ? tcp_v4_rcv+0x2159/0x29b0 [ 1244.485235][ C2] ? hlock_class+0x4e/0x130 [ 1244.485475][ C2] ? __lock_acquired+0x18a/0x6b0 [ 1244.485761][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1244.486074][ C2] ? __pfx___lock_acquired+0x10/0x10 [ 1244.486375][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1244.486674][ C2] tcp_v4_do_rcv+0x154/0x850 [ 1244.486965][ C2] tcp_v4_rcv+0x235a/0x29b0 [ 1244.487211][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1244.487491][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1244.487783][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1244.488102][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1244.488389][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 1244.488695][ C2] ip_local_deliver+0x19d/0x480 [ 1244.489039][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1244.489378][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1244.489733][ C2] ip_rcv+0x564/0x740 [ 1244.489953][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1244.490214][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1244.490495][ C2] ? process_backlog+0x1ed/0x5e0 [ 1244.490779][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1244.491026][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1244.491366][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1244.491707][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1244.492037][ C2] ? lock_acquire+0x1c1/0x220 [ 1244.492284][ C2] ? process_backlog+0x1ed/0x5e0 [ 1244.492546][ C2] process_backlog+0xd3/0x5e0 [ 1244.492831][ C2] __napi_poll.constprop.0+0xa5/0x450 [ 1244.493135][ C2] net_rx_action+0x440/0xb40 [ 1244.493411][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 1244.493697][ C2] ? ktime_get+0x70/0x190 [ 1244.493935][ C2] ? hrtimer_interrupt+0x270/0x770 [ 1244.494222][ C2] ? __pfx_rebalance_domains+0x10/0x10 [ 1244.494525][ C2] ? clockevents_program_event+0x1ed/0x300 [ 1244.494858][ C2] __do_softirq+0x1bc/0x7ff [ 1244.495104][ C2] irq_exit_rcu+0x98/0xc0 [ 1244.495354][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 1244.495656][ C2] [ 1244.495846][ C2] [ 1244.496004][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1244.496344][ C2] RIP: 0010:default_idle+0xf/0x20 [ 1244.496639][ C2] 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 33 b2 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 [ 1244.497667][ C2] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000206 [ 1244.497995][ C2] RAX: 00000000025a496f RBX: 1ffff92000029fc1 RCX: ffffffff980458c2 [ 1244.498439][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff95a969c6 [ 1244.498866][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006b7eea4 [ 1244.499308][ C2] R10: ffff888035bf7523 R11: 1ffff110003da40c R12: 0000000000000000 [ 1244.499721][ C2] R13: ffff888001d0de00 R14: dffffc0000000000 R15: 0000000000000000 [ 1244.500167][ C2] ? ct_kernel_exit.constprop.0+0xc2/0xe0 [ 1244.500470][ C2] ? cpuidle_idle_call+0x1f6/0x280 [ 1244.500765][ C2] default_idle_call+0x69/0xa0 [ 1244.501072][ C2] cpuidle_idle_call+0x1f6/0x280 [ 1244.501350][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 1244.501644][ C2] do_idle+0xfb/0x160 [ 1244.501884][ C2] cpu_startup_entry+0x55/0x60 [ 1244.502134][ C2] start_secondary+0x21c/0x2b0 [ 1244.502416][ C2] ? __pfx_start_secondary+0x10/0x10 [ 1244.502697][ C2] secondary_startup_64_no_verify+0x16d/0x17b [ 1244.503061][ C2] [ 1272.663220][ T3785] ncat (3785) used greatest stack depth: 20976 bytes left [ 1294.612416][ C1] irq 4: nobody cared (try booting with the "irqpoll" option) [ 1294.612819][ C1] CPU: 1 PID: 3434 Comm: perl Not tainted 6.8.0-rc1-virtme #1 [ 1294.613217][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1294.613857][ C1] Call Trace: [ 1294.614040][ C1] [ 1294.614199][ C1] dump_stack_lvl+0x64/0xb0 [ 1294.614446][ C1] __report_bad_irq+0x5f/0x180 [ 1294.614702][ C1] note_interrupt+0x6b3/0x860 [ 1294.614949][ C1] handle_irq_event+0x16d/0x1c0 [ 1294.615208][ C1] handle_edge_irq+0x1fa/0xb60 [ 1294.615464][ C1] __common_interrupt+0x7f/0x180 [ 1294.615732][ C1] common_interrupt+0x7e/0x90 [ 1294.615982][ C1] [ 1294.616137][ C1] [ 1294.616293][ C1] asm_common_interrupt+0x26/0x40 [ 1294.616561][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70 [ 1294.616899][ C1] Code: 10 e8 01 bc a6 fd 48 89 ef e8 19 44 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 85 37 18 68 <74> 0e 5b 5d c3 cc cc cc cc e8 1f 4b c9 fd eb dc 0f 1f 44 00 00 5b [ 1294.617907][ C1] RSP: 0018:ffffc90000dafa88 EFLAGS: 00000286 [ 1294.618226][ C1] RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff339bf1b [ 1294.618641][ C1] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff98077f51 [ 1294.619057][ C1] RBP: ffffffff9be23940 R08: 0000000000000000 R09: fffffbfff339bcd2 [ 1294.619473][ C1] R10: ffffffff99cde697 R11: 0000000000000000 R12: 0000000000000682 [ 1294.619887][ C1] R13: ffffffff9be23a50 R14: ffffffff9be23940 R15: ffff888005540000 [ 1294.620304][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70 [ 1294.620611][ C1] uart_write+0x220/0x440 [ 1294.620847][ C1] process_output_block+0x141/0x790 [ 1294.621128][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 1294.621447][ C1] n_tty_write+0x414/0x7a0 [ 1294.621683][ C1] ? __pfx_n_tty_write+0x10/0x10 [ 1294.621947][ C1] ? __pfx_woken_wake_function+0x10/0x10 [ 1294.622245][ C1] ? lock_acquire+0x1c1/0x220 [ 1294.622498][ C1] ? iterate_tty_write+0x95/0x540 [ 1294.622768][ C1] iterate_tty_write+0x22c/0x540 [ 1294.623034][ C1] file_tty_write.constprop.0+0x1db/0x370 [ 1294.623334][ C1] vfs_write+0x9ec/0x10a0 [ 1294.623565][ C1] ? lock_acquire+0x1c1/0x220 [ 1294.623813][ C1] ? __might_fault+0xc6/0x180 [ 1294.624064][ C1] ? __pfx_vfs_write+0x10/0x10 [ 1294.624327][ C1] ? __might_fault+0xc6/0x180 [ 1294.624577][ C1] ? lock_release+0x1d5/0x250 [ 1294.624826][ C1] ? __fget_light+0x54/0x1e0 [ 1294.625075][ C1] ksys_write+0xf5/0x1e0 [ 1294.625301][ C1] ? __pfx_ksys_write+0x10/0x10 [ 1294.625558][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 1294.625872][ C1] do_syscall_64+0xcc/0x1e0 [ 1294.626117][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1294.626436][ C1] RIP: 0033:0x7f241f77e957 [ 1294.626674][ 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 [ 1294.627682][ C1] RSP: 002b:00007fffe5987678 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1294.628119][ C1] RAX: ffffffffffffffda RBX: 000056059b7a6fe0 RCX: 00007f241f77e957 [ 1294.628538][ C1] RDX: 0000000000000001 RSI: 000056059b7a6fe0 RDI: 0000000000000001 [ 1294.628959][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1294.629383][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 000056059b793510 [ 1294.629798][ C1] R13: 000056059b7742a0 R14: 0000000000000001 R15: 000056059b793510 [ 1294.630219][ C1] [ 1294.630383][ C1] handlers: [ 1294.630548][ C1] [] serial8250_interrupt [ 1294.630866][ C1] Disabling IRQ #4 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