make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-2/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-2/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 ] [ 422.909682] Mirror/redirect action on # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 427.798502] ping (8013) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 431.924702] [ 431.924829] ============================================ [ 431.925200] WARNING: possible recursive locking detected [ 431.925499] 6.8.0-rc3-virtme #1 Not tainted [ 431.925814] -------------------------------------------- [ 431.926173] ksoftirqd/0/16 is trying to acquire lock: [ 431.926458] ffff99c143930cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 431.926918] [ 431.926918] but task is already holding lock: [ 431.927295] ffff99c1439300b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 431.927854] [ 431.927854] other info that might help us debug this: [ 431.928233] Possible unsafe locking scenario: [ 431.928233] [ 431.928586] CPU0 [ 431.928749] ---- [ 431.928901] lock(slock-AF_INET/1); [ 431.929087] lock(slock-AF_INET/1); [ 431.929333] [ 431.929333] *** DEADLOCK *** [ 431.929333] [ 431.929686] May be due to missing lock nesting notation [ 431.929686] [ 431.930085] 8 locks held by ksoftirqd/0/16: [ 431.930329] #0: ffffffffa41678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 431.930917] #1: ffffffffa41678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 431.931468] #2: ffff99c1439300b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 431.931972] #3: ffffffffa41678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x700 [ 431.932437] #4: ffffffffa41678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 431.933057] #5: ffffffffa4167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 431.933604] #6: ffffffffa41678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 431.934115] #7: ffffffffa41678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 431.934796] [ 431.934796] stack backtrace: [ 431.935123] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc3-virtme #1 [ 431.935660] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 431.936450] Call Trace: [ 431.936626] [ 431.936797] dump_stack_lvl+0x4b/0x80 [ 431.937078] __lock_acquire+0x1215/0x1750 [ 431.937392] ? sk_filter_trim_cap+0x53/0x360 [ 431.937693] lock_acquire+0xc1/0x2b0 [ 431.937955] ? tcp_v4_rcv+0xdb5/0xef0 [ 431.938232] ? sk_filter_trim_cap+0x11a/0x360 [ 431.938561] _raw_spin_lock_nested+0x2e/0x40 [ 431.938854] ? tcp_v4_rcv+0xdb5/0xef0 [ 431.939128] tcp_v4_rcv+0xdb5/0xef0 [ 431.939383] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 431.939733] ip_local_deliver_finish+0xaf/0x180 [ 431.940017] __netif_receive_skb_one_core+0x8b/0xa0 [ 431.940310] netif_receive_skb+0x87/0x2c0 DETECTED CRASH, lowering timeout [ 431.940584] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 431.940946] tcf_mirred_act+0xee/0x560 [act_mirred] [ 431.941243] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 431.941586] ? mce_wrmsrl+0x4c/0x50 [ 431.941876] tcf_action_exec+0xac/0x230 [ 431.942137] fl_classify+0x20e/0x260 [cls_flower] [ 431.942492] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 431.942841] ? __bfs+0xf3/0x240 [ 431.943058] ? check_irq_usage+0x19c/0xc40 [ 431.943382] ? lock_release+0xbe/0x270 [ 431.943604] ? check_path.constprop.0+0x24/0x50 [ 431.943864] ? check_noncircular+0x81/0x150 [ 431.944091] ? __lock_acquire+0xa6e/0x1750 [ 431.944341] tcf_classify+0x17a/0x540 [ 431.944593] tc_run+0x9f/0x150 [ 431.944813] __dev_queue_xmit+0x311/0x1180 [ 431.945075] ? mark_held_locks+0x49/0x80 [ 431.945388] ip_finish_output2+0x39f/0xa20 [ 431.945636] ? __ip_queue_xmit+0x1d5/0x700 [ 431.945853] __ip_queue_xmit+0x1d5/0x700 [ 431.946145] __tcp_transmit_skb+0xb65/0xd30 [ 431.946451] ? mark_held_locks+0x49/0x80 [ 431.946777] tcp_write_xmit+0x492/0x1400 [ 431.947003] __tcp_push_pending_frames+0x36/0xc0 [ 431.947327] tcp_rcv_state_process+0x4c9/0x11f0 [ 431.947660] ? tcp_v4_rcv+0xdb5/0xef0 [ 431.947945] ? tcp_v4_do_rcv+0x64/0x360 [ 431.948244] tcp_v4_do_rcv+0x64/0x360 [ 431.948541] tcp_v4_rcv+0xe4f/0xef0 [ 431.948824] ? process_backlog+0x6f/0x260 [ 431.949127] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 431.949473] ip_local_deliver_finish+0xaf/0x180 [ 431.949825] __netif_receive_skb_one_core+0x8b/0xa0 [ 431.950187] process_backlog+0x7c/0x260 [ 431.950486] __napi_poll.constprop.0+0x27/0x1e0 [ 431.950834] net_rx_action+0x2be/0x340 [ 431.951120] __do_softirq+0xc8/0x37a [ 431.951382] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 431.951727] run_ksoftirqd+0x2e/0x40 [ 431.952000] smpboot_thread_fn+0xd9/0x1d0 [ 431.952270] kthread+0xda/0x110 [ 431.952450] ? __pfx_kthread+0x10/0x10 [ 431.952689] ret_from_fork+0x31/0x50 [ 431.952900] ? __pfx_kthread+0x10/0x10 [ 431.953116] ret_from_fork_asm+0x1b/0x30 [ 431.953363] [ 434.127286] irq 4: nobody cared (try booting with the "irqpoll" option) [ 434.127635] CPU: 1 PID: 7372 Comm: perl Not tainted 6.8.0-rc3-virtme #1 [ 434.127969] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 434.128539] Call Trace: [ 434.128670] [ 434.128784] dump_stack_lvl+0x4b/0x80 [ 434.128980] __report_bad_irq+0x2b/0xc0 [ 434.129180] note_interrupt+0x2a7/0x2f0 [ 434.129378] handle_irq_event+0x72/0x80 [ 434.129579] handle_edge_irq+0x8b/0x230 [ 434.129778] __common_interrupt+0x4b/0x100 [ 434.129992] common_interrupt+0x81/0xa0 [ 434.130193] [ 434.130307] [ 434.130421] asm_common_interrupt+0x26/0x40 [ 434.130636] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 434.130923] Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 81 ac 38 ff 48 89 ef e8 39 dd 38 ff 80 e7 02 74 06 e8 cf 05 46 ff fb 65 ff 0d cf 58 bf 5c <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 434.131841] RSP: 0018:ffffaaaf8796fd18 EFLAGS: 00000286 [ 434.132111] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017 [ 434.132473] RDX: ffffffffa2fc7832 RSI: ffffffffa3439671 RDI: ffffffffa3439671 [ 434.132829] RBP: ffffffffa5602f20 R08: 0000000000000000 R09: 0000000000000000 [ 434.133188] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 434.133546] R13: 0000000000000000 R14: ffff99c142590801 R15: ffff99c142230000 [ 434.133911] ? rpm_suspend+0x232/0x700 [ 434.134108] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 434.134362] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 434.134620] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 434.134873] uart_write+0x103/0x1d0 [ 434.135058] n_tty_write+0x1a6/0x530 [ 434.135246] ? __pfx_woken_wake_function+0x10/0x10 [ 434.135503] file_tty_write.constprop.0+0x164/0x340 [ 434.135755] vfs_write+0x38d/0x550 [ 434.135938] ksys_write+0x69/0xf0 [ 434.136112] do_syscall_64+0xc9/0x1e0 [ 434.136303] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 434.136562] RIP: 0033:0x7f6ba317a957 [ 434.136748] 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 [ 434.137663] RSP: 002b:00007ffc48063d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 434.138041] RAX: ffffffffffffffda RBX: 000055d2eb076d80 RCX: 00007f6ba317a957 [ 434.138400] RDX: 0000000000000001 RSI: 000055d2eb076d80 RDI: 0000000000000001 [ 434.138759] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 434.139119] R10: 0000000000000001 R11: 0000000000000246 R12: 000055d2eb063500 [ 434.139475] R13: 000055d2eb0442a0 R14: 0000000000000001 R15: 000055d2eb063500 [ 434.139836] [ 434.139954] handlers: [ 434.140076] [<00000000b1a98e4e>] serial8250_interrupt [ 434.140339] Disabling IRQ #4 [ 449.997071] ncat (8132) used greatest stack depth: 10680 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