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.209390] 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.839087] tc (5382) used greatest stack depth: 11552 bytes left [ 1147.040333] ping (5500) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1151.365138] [ 1151.365265] ============================================ [ 1151.365568] WARNING: possible recursive locking detected [ 1151.365855] 6.8.0-rc3-virtme #1 Not tainted [ 1151.366099] -------------------------------------------- [ 1151.366387] ksoftirqd/3/32 is trying to acquire lock: [ 1151.366674] ffffa006c37a0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.367110] [ 1151.367110] but task is already holding lock: [ 1151.367444] ffffa006c37a00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.367880] [ 1151.367880] other info that might help us debug this: [ 1151.368227] Possible unsafe locking scenario: [ 1151.368227] [ 1151.368561] CPU0 [ 1151.368701] ---- [ 1151.368866] lock(slock-AF_INET/1); [ 1151.369066] lock(slock-AF_INET/1); [ 1151.369283] [ 1151.369283] *** DEADLOCK *** [ 1151.369283] [ 1151.369595] May be due to missing lock nesting notation [ 1151.369595] [ 1151.369975] 8 locks held by ksoftirqd/3/32: [ 1151.370201] #0: ffffffff9cd678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1151.370681] #1: ffffffff9cd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.371183] #2: ffffa006c37a00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.371621] #3: ffffffff9cd678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x700 [ 1151.372090] #4: ffffffff9cd678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1151.372545] #5: ffffffff9cd67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1151.373012] #6: ffffffff9cd678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1151.373491] #7: ffffffff9cd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.373989] [ 1151.373989] stack backtrace: [ 1151.374254] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc3-virtme #1 [ 1151.374650] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1151.375249] Call Trace: [ 1151.375408] [ 1151.375557] dump_stack_lvl+0x4b/0x80 [ 1151.375783] __lock_acquire+0x1215/0x1750 [ 1151.376004] ? sk_filter_trim_cap+0x53/0x360 [ 1151.376259] lock_acquire+0xc1/0x2b0 [ 1151.376456] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.376680] ? sk_filter_trim_cap+0x11a/0x360 [ 1151.376930] _raw_spin_lock_nested+0x2e/0x40 [ 1151.377187] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.377388] tcp_v4_rcv+0xdb5/0xef0 [ 1151.377579] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.377845] ip_local_deliver_finish+0xaf/0x180 [ 1151.378091] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.378349] netif_receive_skb+0x87/0x2c0 [ 1151.378590] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1151.378891] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1151.379155] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1151.379464] tcf_action_exec+0xac/0x230 [ 1151.379680 DETECTED CRASH, lowering timeout ] fl_classify+0x20e/0x260 [cls_flower] [ 1151.379956] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1151.380231] ? __bfs+0xf3/0x240 [ 1151.380402] ? check_irq_usage+0x19c/0xc40 [ 1151.380643] ? lock_is_held_type+0x9f/0x120 [ 1151.380895] ? check_path.constprop.0+0x24/0x50 [ 1151.381139] ? check_noncircular+0x81/0x150 [ 1151.381360] ? __lock_acquire+0xa6e/0x1750 [ 1151.381605] tcf_classify+0x17a/0x540 [ 1151.381807] tc_run+0x9f/0x150 [ 1151.381997] __dev_queue_xmit+0x311/0x1180 [ 1151.382224] ? mark_held_locks+0x49/0x80 [ 1151.382433] ip_finish_output2+0x39f/0xa20 [ 1151.382679] ? __ip_queue_xmit+0x1d5/0x700 [ 1151.382905] __ip_queue_xmit+0x1d5/0x700 [ 1151.383142] __tcp_transmit_skb+0xb65/0xd30 [ 1151.383369] ? mark_held_locks+0x49/0x80 [ 1151.383579] tcp_write_xmit+0x492/0x1400 [ 1151.383814] __tcp_push_pending_frames+0x36/0xc0 [ 1151.384073] tcp_rcv_state_process+0x4c9/0x11f0 [ 1151.384343] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.384546] ? tcp_v4_do_rcv+0x64/0x360 [ 1151.384751] tcp_v4_do_rcv+0x64/0x360 [ 1151.384979] tcp_v4_rcv+0xe4f/0xef0 [ 1151.385174] ? process_backlog+0x6f/0x260 [ 1151.385385] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.385656] ip_local_deliver_finish+0xaf/0x180 [ 1151.385896] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.386182] process_backlog+0x7c/0x260 [ 1151.386393] __napi_poll.constprop.0+0x27/0x1e0 [ 1151.386633] net_rx_action+0x2be/0x340 [ 1151.386863] __do_softirq+0xc8/0x37a [ 1151.387061] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1151.387331] run_ksoftirqd+0x2e/0x40 [ 1151.387530] smpboot_thread_fn+0xd9/0x1d0 [ 1151.387772] kthread+0xda/0x110 [ 1151.387953] ? __pfx_kthread+0x10/0x10 [ 1151.388181] ret_from_fork+0x31/0x50 [ 1151.388386] ? __pfx_kthread+0x10/0x10 [ 1151.388613] ret_from_fork_asm+0x1b/0x30 [ 1151.388832] [ 1187.819870] ncat (5629) used greatest stack depth: 10680 bytes left [ 1200.883944] irq 4: nobody cared (try booting with the "irqpoll" option) [ 1200.884419] CPU: 1 PID: 4824 Comm: perl Not tainted 6.8.0-rc3-virtme #1 [ 1200.884879] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1200.885658] Call Trace: [ 1200.885840] [ 1200.885995] dump_stack_lvl+0x4b/0x80 [ 1200.886266] __report_bad_irq+0x2b/0xc0 [ 1200.886521] note_interrupt+0x2a7/0x2f0 [ 1200.886789] handle_irq_event+0x72/0x80 [ 1200.887064] handle_edge_irq+0x8b/0x230 [ 1200.887333] __common_interrupt+0x4b/0x100 [ 1200.887622] common_interrupt+0x81/0xa0 [ 1200.887902] [ 1200.888058] [ 1200.888208] asm_common_interrupt+0x26/0x40 [ 1200.888500] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 1200.888895] 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 ff 63 <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 1200.890151] RSP: 0018:ffffbb42c2667d18 EFLAGS: 00000286 [ 1200.890517] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017 [ 1200.890978] RDX: ffffffff9bbc7832 RSI: ffffffff9c039671 RDI: ffffffff9c039671 [ 1200.891462] RBP: ffffffff9e202f20 R08: 0000000000000000 R09: 0000000000000000 [ 1200.891936] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 1200.892410] R13: 0000000000000000 R14: ffffa006c2608c01 R15: ffffa006c1f30000 [ 1200.892897] ? rpm_suspend+0x232/0x700 [ 1200.893157] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1200.893509] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1200.893794] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1200.894121] uart_write+0x103/0x1d0 [ 1200.894384] n_tty_write+0x1a6/0x530 [ 1200.894624] ? __pfx_woken_wake_function+0x10/0x10 [ 1200.894964] file_tty_write.constprop.0+0x164/0x340 [ 1200.895250] vfs_write+0x38d/0x550 [ 1200.895437] ksys_write+0x69/0xf0 [ 1200.895632] do_syscall_64+0xc9/0x1e0 [ 1200.895828] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1200.896110] RIP: 0033:0x7f7639b42957 [ 1200.896303] 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 [ 1200.897251] RSP: 002b:00007ffef63651d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1200.897641] RAX: ffffffffffffffda RBX: 000055635a524ec0 RCX: 00007f7639b42957 [ 1200.898009] RDX: 0000000000000001 RSI: 000055635a524ec0 RDI: 0000000000000001 [ 1200.898376] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1200.898745] R10: 0000000000000001 R11: 0000000000000246 R12: 000055635a511500 [ 1200.899113] R13: 000055635a4f22a0 R14: 0000000000000001 R15: 000055635a511500 [ 1200.899483] [ 1200.899603] handlers: [ 1200.899727] [<00000000eea095b8>] serial8250_interrupt [ 1200.899998] 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