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 ] # [ 2344.040767][ C3] [ 2344.040942][ C3] ============================================ [ 2344.041260][ C3] WARNING: possible recursive locking detected [ 2344.041565][ C3] 6.8.0-rc2-virtme #1 Not tainted [ 2344.041824][ C3] -------------------------------------------- [ 2344.042140][ C3] ncat/6819 is trying to acquire lock: [ 2344.042434][ C3] ffff88800cce8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2344.042895][ C3] [ 2344.042895][ C3] but task is already holding lock: [ 2344.043257][ C3] ffff88800cce9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2344.043713][ C3] [ 2344.043713][ C3] other info that might help us debug this: [ 2344.044148][ C3] Possible unsafe locking scenario: [ 2344.044148][ C3] [ 2344.044531][ C3] CPU0 [ 2344.044695][ C3] ---- [ 2344.044878][ C3] lock(slock-AF_INET/1); [ 2344.045116][ C3] lock(slock-AF_INET/1); [ 2344.045351][ C3] [ 2344.045351][ C3] *** DEADLOCK *** [ 2344.045351][ C3] [ 2344.045750][ C3] May be due to missing lock nesting notation [ 2344.045750][ C3] [ 2344.046170][ C3] 8 locks held by ncat/6819: [ 2344.046402][ C3] #0: ffffffff995447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2344.046880][ C3] #1: ffffffff995447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2344.047402][ C3] #2: ffff88800cce9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2344.047878][ C3] #3: ffffffff995447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2344.048401][ C3] #4: ffffffff995447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2344.048891][ C3] #5: ffffffff99544780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 2344.049403][ C3] #6: ffffffff995447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2344.049927][ C3] #7: ffffffff995447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2344.050450][ C3] [ 2344.050450][ C3] stack backtrace: [ 2344.050753][ C3] CPU: 3 PID: 6819 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 2344.051132][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2344.051735][ C3] Call Trace: [ 2344.051916][ C3] [ 2344.052088][ C3] dump_stack_lvl+0x64/0xb0 [ 2344.052340][ C3] validate_chain+0x525/0xa00 [ 2344.052597][ C3] ? __pfx_validate_chain+0x10/0x10 [ 2344.052871][ C3] ? hlock_class+0x4e/0x130 [ 2344.053099][ C3] ? mark_lock+0x38/0x3e0 [ 2344.053333][ C3] __lock_acquire+0xb67/0x1610 [ 2344.053590][ C3] ? lock_downgrade+0xa0/0x110 [ 2344.053845][ C3] ? mark_lock+0x38/0x3e0 [ 2344.054064][ C3] lock_acquire.part.0+0xe5/0x330 [ 2344.054330][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 2344.054585][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2344.054880][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2344.055162][ C3] ? lock_acquire+0x1c1/0x220 [ 2344.055411][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 2344.055665][ C3] _raw_spin_lock_nested+0x33/0x80 [ 2344.055945][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 2344.056201][ C3] tcp_v4_rcv+0x2161/0x29c0 [ 2344.056445][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2344.056699][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2344.056966][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2344.057251][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2344.057535][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 2344.057820][ C3] ip_local_deliver+0x19d/0x480 [ 2344.058065][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2344.058350][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2344.058681][ C3] ip_rcv+0x564/0x740 [ 2344.058900][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2344.059128][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2344.059406][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2344.059714][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2344.059983][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2344.060283][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2344.060619][ C3] ? mark_held_locks+0xa5/0xf0 [ 2344.060881][ C3] ? lock_acquire+0x1c1/0x220 [ 2344.061118][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2344.061424][ C3] netif_receive_skb_internal+0xb0/0x300 [ 2344.061721][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2344.062050][ C3] ? __copy_skb_header+0xaf/0x490 [ 2344.062318][ C3] ? __skb_clone+0x57a/0x760 [ 2344.062565][ C3] netif_receive_skb+0x55/0x280 [ 2344.062826][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2344.063154][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2344.063494][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2344.063801][ C3] tcf_action_exec.part.0+0x112/0x3d0 [ 2344.064103][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 2344.064395][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2344.064723][ C3] ? __pfx_usage_match+0x10/0x10 [ 2344.064987][ C3] ? check_irq_usage+0x27e/0x850 [ 2344.065235][ C3] ? __pfx___lock_release+0x10/0x10 [ 2344.065510][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 2344.065790][ C3] ? __bfs+0x247/0x650 [ 2344.065995][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 2344.066267][ C3] ? hlock_class+0x4e/0x130 [ 2344.066514][ C3] ? check_path.constprop.0+0x24/0x50 [ 2344.066795][ C3] ? check_noncircular+0x14e/0x3e0 [ 2344.067051][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 2344.067341][ C3] __tcf_classify+0x329/0x7d0 [ 2344.067591][ C3] tcf_classify+0x283/0x930 [ 2344.067833][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 2344.068115][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2344.068384][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2344.068659][ C3] tc_run+0x2e4/0x5d0 [ 2344.068874][ C3] ? __pfx_tc_run+0x10/0x10 [ 2344.069104][ C3] ? lock_acquire+0x1c1/0x220 [ 2344.069352][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2344.069627][ C3] __dev_queue_xmit+0x8eb/0x1ca0 [ 2344.069896][ C3] ? hlock_class+0x4e/0x130 [ 2344.070122][ C3] ? mark_lock+0x38/0x3e0 [ 2344.070355][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2344.070638][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2344.070980][ C3] ? neigh_hh_output+0x348/0x590 [ 2344.071233][ C3] ip_finish_output2+0x786/0x18e0 [ 2344.071497][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 2344.071783][ C3] ? __ip_finish_output+0x10f/0x770 [ 2344.072072][ C3] ip_output+0x16b/0x4f0 [ 2344.072306][ C3] ? __pfx_ip_output+0x10/0x10 [ 2344.072563][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2344.072859][ C3] ? ip_local_out+0x114/0x3b0 [ 2344.073097][ C3] __ip_queue_xmit+0x672/0x1910 [ 2344.073352][ C3] ? __create_object+0x5e/0xb0 [ 2344.073611][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 2344.073889][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2344.074166][ C3] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 2344.074447][ C3] tcp_rcv_state_process+0x8a7/0x21c0 [ 2344.074733][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2344.075036][ C3] ? find_held_lock+0x33/0x120 [ 2344.075277][ C3] ? tcp_v4_rcv+0x2161/0x29c0 [ 2344.075527][ C3] ? hlock_class+0x4e/0x130 [ 2344.075770][ C3] tcp_v4_do_rcv+0x1ac/0x8e0 [ 2344.076043][ C3] ? __pfx_tcp_v4_do_rcv+0x10/0x10 [ 2344.076317][ C3] tcp_v4_rcv+0x2362/0x29c0 [ 2344.076564][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2344.076821][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2344.077074][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2344.077371][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2344.077657][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 2344.077945][ C3] ip_local_deliver+0x19d/0x480 [ 2344.078189][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2344.078473][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2344.078804][ C3] ip_rcv+0x564/0x740 [ 2344.079005][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2344.079249][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2344.079524][ C3] ? process_backlog+0x1ed/0x5e0 [ 2344.079788][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2344.080052][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2344.080362][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2344.080698][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2344.080997][ C3] ? lock_acquire+0x1c1/0x220 [ 2344.081232][ C3] ? process_backlog+0x1ed/0x5e0 [ 2344.081497][ C3] process_backlog+0xd3/0x5e0 [ 2344.081752][ C3] __napi_poll.constprop.0+0xa2/0x450 [ 2344.082036][ C3] net_rx_action+0x440/0xb40 [ 2344.082281][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 2344.082548][ C3] ? kvm_clock_get_cycles+0x18/0x30 [ 2344.082825][ C3] ? ktime_get+0xb3/0x190 [ 2344.083050][ C3] ? hrtimer_interrupt+0x30e/0x770 [ 2344.083319][ C3] ? hrtimer_interrupt+0x31a/0x770 [ 2344.083594][ C3] __do_softirq+0x1b9/0x7ff [ 2344.083836][ C3] ? tcp_recvmsg+0xf8/0x4f0 [ 2344.084097][ C3] do_softirq+0x4d/0xa0 [ 2344.084319][ C3] [ 2344.084486][ C3] [ 2344.084634][ C3] __local_bh_enable_ip+0xf6/0x120 [ 2344.084902][ C3] tcp_recvmsg+0xf8/0x4f0 [ 2344.085121][ C3] ? __pfx_tcp_recvmsg+0x10/0x10 [ 2344.085383][ C3] ? core_sys_select+0x620/0x710 [ 2344.085648][ C3] ? __pfx_core_sys_select+0x10/0x10 [ 2344.085938][ C3] inet_recvmsg+0xf9/0x2c0 [ 2344.086164][ C3] ? __pfx_inet_recvmsg+0x10/0x10 [ 2344.086433][ C3] ? __fget_light+0x54/0x1e0 [ 2344.086682][ C3] ? sockfd_lookup_light+0x1a/0x160 [ 2344.086957][ C3] __sys_recvfrom+0x2fb/0x3b0 [ 2344.087195][ C3] ? __pfx___sys_recvfrom+0x10/0x10 [ 2344.087468][ C3] ? __pfx___lock_release+0x10/0x10 [ 2344.087747][ C3] ? do_pselect.constprop.0+0x12b/0x1e0 [ 2344.088063][ C3] ? __pfx_do_pselect.constprop.0+0x10/0x10 [ 2344.088359][ C3] ? __pfx_task_work_run+0x10/0x10 [ 2344.088630][ C3] __x64_sys_recvfrom+0xe0/0x1c0 [ 2344.088894][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 2344.089224][ C3] do_syscall_64+0xc9/0x1e0 [ 2344.089468][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2344.089778][ C3] RIP: 0033:0x7f8538cce4c0 [ 2344.090017][ C3] Code: 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20 [ 2344.090989][ C3] RSP: 002b:00007fff42ee1298 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 2344.091407][ C3] RAX: ffffffffffffffda RBX: 00005620d22a6a20 RCX: 00007f8538cce4c0 [ 2344.091812][ C3] RDX: 0000000000002000 RSI: 00007fff42ee1320 RDI: 0000000000000008 [ 2344.092230][ C3] RBP: 00007fff42ee1320 R08: 0000000000000000 R09: 0000000000000000 [ 2344.092644][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 2344.093036][ C3] R13: 00005620d22a6a20 R14: 0000000000000000 R15: 00007fff42ee131c [ 2344.093432][ C3] [ 2348.639872][ C1] irq 4: nobody cared (try booting with the "irqpoll" option) [ 2348.640254][ C1] CPU: 1 PID: 6518 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 2348.640621][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2348.641217][ C1] Call Trace: [ 2348.641386][ C1] [ 2348.641530][ C1] dump_stack_lvl+0x64/0xb0 [ 2348.641765][ C1] __report_bad_irq+0x5f/0x180 [ 2348.642008][ C1] note_interrupt+0x6b3/0x860 [ 2348.642248][ C1] handle_irq_event+0x16d/0x1c0 [ 2348.642492][ C1] handle_edge_irq+0x1fa/0xb60 [ 2348.642733][ C1] __common_interrupt+0x7c/0x180 [ 2348.642983][ C1] common_interrupt+0x7e/0x90 [ 2348.643219][ C1] [ 2348.643365][ C1] [ 2348.643514][ C1] asm_common_interrupt+0x26/0x40 [ 2348.643769][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70 [ 2348.644089][ C1] Code: 10 e8 71 8a a6 fd 48 89 ef e8 89 12 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 05 07 f8 67 <74> 0e 5b 5d c3 cc cc cc cc e8 7f 1a c9 fd eb dc 0f 1f 44 00 00 5b [ 2348.645035][ C1] RSP: 0018:ffffc900010cfa88 EFLAGS: 00000286 [ 2348.645337][ C1] RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff33dc29b [ 2348.645726][ C1] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9827afd1 [ 2348.646113][ C1] RBP: ffffffff9c0259a0 R08: 0000000000000000 R09: fffffbfff33dc052 [ 2348.646501][ C1] R10: ffffffff99ee0297 R11: 0000000000000000 R12: 00000000000005d1 [ 2348.646893][ C1] R13: ffffffff9c025ab0 R14: ffffffff9c0259a0 R15: ffff888005440000 [ 2348.647286][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70 [ 2348.647580][ C1] uart_write+0x220/0x440 [ 2348.647799][ C1] process_output_block+0x13e/0x790 [ 2348.648060][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 2348.648360][ C1] n_tty_write+0x414/0x7a0 [ 2348.648583][ C1] ? __pfx_n_tty_write+0x10/0x10 [ 2348.648830][ C1] ? __pfx_woken_wake_function+0x10/0x10 [ 2348.649113][ C1] ? lock_acquire+0x1c1/0x220 [ 2348.649347][ C1] ? iterate_tty_write+0x95/0x540 [ 2348.649598][ C1] iterate_tty_write+0x229/0x540 [ 2348.649846][ C1] file_tty_write.constprop.0+0x1db/0x370 [ 2348.650130][ C1] vfs_write+0x9e9/0x10a0 [ 2348.650346][ C1] ? __run_hrtimer+0x5df/0x710 [ 2348.650586][ C1] ? __pfx_vfs_write+0x10/0x10 [ 2348.650824][ C1] ? lock_acquire+0x1c1/0x220 [ 2348.651058][ C1] ? clockevents_program_event+0xf6/0x300 [ 2348.651342][ C1] ? kvm_clock_get_cycles+0x18/0x30 [ 2348.651602][ C1] ? __fget_light+0x54/0x1e0 [ 2348.651837][ C1] ksys_write+0xf5/0x1e0 [ 2348.652049][ C1] ? __pfx_ksys_write+0x10/0x10 [ 2348.652297][ C1] ? trace_irq_enable.constprop.0+0xd4/0x100 [ 2348.652594][ C1] do_syscall_64+0xc9/0x1e0 [ 2348.652824][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2348.653116][ C1] RIP: 0033:0x7f4766667957 [ 2348.653340][ 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 [ 2348.654285][ C1] RSP: 002b:00007fffdf3efee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2348.654698][ C1] RAX: ffffffffffffffda RBX: 000056263701cea0 RCX: 00007f4766667957 [ 2348.655085][ C1] RDX: 0000000000000001 RSI: 000056263701cea0 RDI: 0000000000000001 [ 2348.655472][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 2348.655861][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 0000562637009510 [ 2348.656252][ C1] R13: 0000562636fea2a0 R14: 0000000000000001 R15: 0000562637009510 [ 2348.656644][ C1] [ 2348.656796][ C1] handlers: [ 2348.656954][ C1] [] serial8250_interrupt [ 2348.657259][ C1] Disabling IRQ #4 [ 2361.855948][ T6820] ncat (6820) used greatest stack depth: 21240 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