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 ] [ 1142.249493] 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 ] [ 1144.877459] tc (5389) used greatest stack depth: 11552 bytes left [ 1147.094187] ping (5512) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1150.960757] [ 1150.960882] ============================================ [ 1150.961183] WARNING: possible recursive locking detected [ 1150.961476] 6.8.0-rc2-virtme #1 Not tainted [ 1150.961735] -------------------------------------------- [ 1150.962025] ksoftirqd/3/32 is trying to acquire lock: [ 1150.962306] ffff8f0d06d90cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1150.962740] [ 1150.962740] but task is already holding lock: [ 1150.963049] ffff8f0d06d900b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1150.963475] [ 1150.963475] other info that might help us debug this: [ 1150.963814] Possible unsafe locking scenario: [ 1150.963814] [ 1150.964118] CPU0 [ 1150.964278] ---- [ 1150.964411] lock(slock-AF_INET/1); [ 1150.964629] lock(slock-AF_INET/1); [ 1150.964824] [ 1150.964824] *** DEADLOCK *** [ 1150.964824] [ 1150.965126] May be due to missing lock nesting notation [ 1150.965126] [ 1150.965493] 8 locks held by ksoftirqd/3/32: [ 1150.965708] #0: ffffffff8ad678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1150.966173] #1: ffffffff8ad678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1150.966666] #2: ffff8f0d06d900b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1150.967103] #3: ffffffff8ad678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1150.967561] #4: ffffffff8ad678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1150.968030] #5: ffffffff8ad67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1150.968488] #6: ffffffff8ad678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1150.968954] #7: ffffffff8ad678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1150.969432] [ 1150.969432] stack backtrace: [ 1150.969694] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1150.970099] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1150.970702] Call Trace: [ 1150.970853] [ 1150.970992] dump_stack_lvl+0x4b/0x80 [ 1150.971241] __lock_acquire+0x1215/0x1750 [ 1150.971494] ? sk_filter_trim_cap+0x53/0x360 [ 1150.971738] lock_acquire+0xc1/0x2b0 [ 1150.971940] ? tcp_v4_rcv+0xdb5/0xef0 [ 1150.972168] ? sk_filter_trim_cap+0x11a/0x360 [ 1150.972421] _raw_spin_lock_nested+0x2e/0x40 [ 1150.972676] ? tcp_v4_rcv+0xdb5/0xef0 [ 1150.972877] tcp_v4_rcv+0xdb5/0xef0 [ 1150.973090] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1150.973350] ip_local_deliver_finish+0xaf/0x180 [ 1150.973605] __netif_receive_skb_one_core+0x8b/0xa0 [ 1150.973890] netif_receive_skb+0x87/0x2c0 [ 1150.974106] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1150.974400] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1150.974691] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1150.974985] tcf_action_exec+0xac/0x230 [ 1150.975211] fl_classify+0x20e/0x260 [cls_flower] [ 1150.975476] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1150.975770] ? __bfs+0xf3/0x240 [ 1150.975938] ? check_irq_usage+0x19c/0xc40 [ 1150.976183] ? check_path.constprop.0+0x24/0x50 [ 1150.976456] ? check_noncircular+0x81/0x150 [ 1150.976696] ? __lock_acquire+0xa6e/0x1750 [ 1150.976912] tcf_classify+0x17a/0x540 [ 1150.977125] tc_run+0x9f/0x150 [ 1150.977310] __dev_queue_xmit+0x311/0x1180 [ 1150.977550] ? mark_held_locks+0x49/0x80 [ 1150.977777] ip_finish_output2+0x39f/0xa20 [ 1150.977995] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1150.978225] __ip_queue_xmit+0x1d5/0x6f0 [ 1150.978454] __tcp_transmit_skb+0xb65/0xd30 [ 1150.978692] ? mark_held_locks+0x49/0x80 [ 1150.978898] tcp_write_xmit+0x492/0x1400 [ 1150.979123] __tcp_push_pending_frames+0x36/0xc0 [ 1150.979390] tcp_rcv_state_process+0x4d3/0x11f0 [ 1150.979648] ? tcp_v4_rcv+0xdb5/0xef0 [ 1150.979842] ? tcp_v4_do_rcv+0x64/0x360 [ 1150.980062] tcp_v4_do_rcv+0x64/0x360 [ 1150.980277] tcp_v4_rcv+0xe4f/0xef0 [ 1150.980483] ? process_backlog+0x6f/0x260 [ 1150.980710] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1150.980946] ip_local_deliver_finish+0xaf/0x180 [ 1150.981205] __netif_receive_skb_one_core+0x8b/0xa0 [ 1150.981488] process_backlog+0x7c/0x260 [ 1150.981709] __napi_poll.constprop.0+0x27/0x1e0 [ 1150.981957] net_rx_action+0x2be/0x340 [ 1150.982198] __do_softirq+0xc8/0x37a [ 1150.982408] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1150.982672] run_ksoftirqd+0x2e/0x40 [ 1150.982862] smpboot_thread_fn+0xd9/0x1d0 [ 1150.983100] kthread+0xda/0x110 [ 1150.983294] ? __pfx_kthread+0x10/0x10 [ 1150.983525] ret_from_fork+0x31/0x50 [ 1150.983735] ? __pfx_kthread+0x10/0x10 [ 1150.983932] ret_from_fork_asm+0x1b/0x30 [ 1150.984157] [ 1152.377352] irq 4: nobody cared (try booting with the "irqpoll" option) [ 1152.377704] CPU: 1 PID: 4831 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 1152.378146] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1152.378730] Call Trace: [ 1152.378865] [ 1152.378987] dump_stack_lvl+0x4b/0x80 [ 1152.379206] __report_bad_irq+0x2b/0xc0 [ 1152.379485] note_interrupt+0x2a7/0x2f0 [ 1152.379686] handle_irq_event+0x72/0x80 [ 1152.379888] handle_edge_irq+0x8b/0x230 [ 1152.380106] __common_interrupt+0x4b/0x100 [ 1152.380322] common_interrupt+0x81/0xa0 [ 1152.380560] [ 1152.380732] [ 1152.380849] asm_common_interrupt+0x26/0x40 [ 1152.381084] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 1152.381375] Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 81 3c 39 ff 48 89 ef e8 39 6d 39 ff 80 e7 02 74 06 e8 4f 96 46 ff fb 65 ff 0d cf e8 ff 75 <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 1152.382410] RSP: 0018:ffff9b53026bfd18 EFLAGS: 00000286 [ 1152.382687] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017 [ 1152.383067] RDX: ffffffff89bc7da2 RSI: ffffffff8a030671 RDI: ffffffff8a030671 [ 1152.383534] RBP: ffffffff8c1fff40 R08: 0000000000000000 R09: 0000000000000000 [ 1152.383898] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 1152.384302] R13: 0000000000000000 R14: ffff8f0d026c0401 R15: ffff8f0d020b0000 [ 1152.384772] ? rpm_suspend+0x232/0x700 [ 1152.384986] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1152.385246] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1152.385506] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1152.385779] uart_write+0x103/0x1d0 [ 1152.386056] n_tty_write+0x1a6/0x530 [ 1152.386247] ? __pfx_woken_wake_function+0x10/0x10 [ 1152.386497] file_tty_write.constprop.0+0x164/0x340 [ 1152.386753] vfs_write+0x38d/0x550 [ 1152.386948] ksys_write+0x69/0xf0 [ 1152.387147] do_syscall_64+0xc9/0x1e0 [ 1152.387415] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1152.387677] RIP: 0033:0x7fadf3ac5957 [ 1152.387866] 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 [ 1152.388904] RSP: 002b:00007ffebebd0ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1152.389307] RAX: ffffffffffffffda RBX: 00005589748ccd80 RCX: 00007fadf3ac5957 [ 1152.389670] RDX: 0000000000000001 RSI: 00005589748ccd80 RDI: 0000000000000001 [ 1152.390136] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1152.390501] R10: 0000000000000001 R11: 0000000000000246 R12: 00005589748b9500 [ 1152.390865] R13: 000055897489a2a0 R14: 0000000000000001 R15: 00005589748b9500 [ 1152.391343] [ 1152.391463] handlers: [ 1152.391586] [<000000000e018cc0>] serial8250_interrupt [ 1152.391856] Disabling IRQ #4 [ 1167.370831] ncat (5646) 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