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 0 # selftests: net/forwarding: tc_actions.sh [ 1092.930992] veth1: left promiscuous mode # TEST: gact drop and ok (skip_hw) [ OK ] [ 1100.427557] 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 ] [ 1105.098777] ping (4404) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1109.288065] [ 1109.288209] ============================================ [ 1109.288515] WARNING: possible recursive locking detected [ 1109.288803] 6.8.0-rc1-virtme #1 Not tainted [ 1109.289049] -------------------------------------------- [ 1109.289335] ksoftirqd/2/27 is trying to acquire lock: [ 1109.289628] ffff8da1828b8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1109.290068] [ 1109.290068] but task is already holding lock: [ 1109.290383] ffff8da1828b80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1109.290819] [ 1109.290819] other info that might help us debug this: [ 1109.291167] Possible unsafe locking scenario: [ 1109.291167] [ 1109.291483] CPU0 [ 1109.291638] ---- [ 1109.291774] lock(slock-AF_INET/1); [ 1109.291990] lock(slock-AF_INET/1); [ 1109.292188] [ 1109.292188] *** DEADLOCK *** [ 1109.292188] [ 1109.292527] May be due to missing lock nesting notation [ 1109.292527] [ 1109.292890] 8 locks held by ksoftirqd/2/27: [ 1109.293140] #0: ffffffffb4f678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1109.293619] #1: ffffffffb4f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1109.294130] #2: ffff8da1828b80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1109.294575] #3: ffffffffb4f678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1109.295047] #4: ffffffffb4f678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1109.295524] #5: ffffffffb4f67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1109.296016] #6: ffffffffb4f678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1109.296475] #7: ffffffffb4f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1109.296979] [ 1109.296979] stack backtrace: [ 1109.297217] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc1-virtme #1 [ 1109.297608] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1109.298214] Call Trace: [ 1109.298371] [ 1109.298513] dump_stack_lvl+0x4b/0x80 [ 1109.298729] __lock_acquire+0x1215/0x1750 [ 1109.298965] ? sk_filter_trim_cap+0x53/0x360 [ 1109.299199] lock_acquire+0xc1/0x2b0 [ 1109.299417] ? tcp_v4_rcv+0xdb5/0xef0 [ 1109.299635] ? sk_filter_trim_cap+0x11a/0x360 [ 1109.299869] _raw_spin_lock_nested+0x2e/0x40 [ 1109.300128] ? tcp_v4_rcv+0xdb5/0xef0 [ 1109.300332] tcp_v4_rcv+0xdb5/0xef0 [ 1109.300545] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1109.300814] ip_local_deliver_finish+0xaf/0x180 [ 1109.301082] __netif_receive_skb_one_core+0x8b/0xa0 [ 1109.301349] netif_receive_skb+0x87/0x2c0 [ 1109.301587] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1109.301883] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1109.302164] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1109.302449] ? print_irq_inversion_bug.part.0+0x175/0x280 [ 1109.302758] tcf_action_exec+0xaf/0x230 [ 1109.302991] fl_classify+0x20e/0x260 [cls_flower] [ 1109.303265] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1109.303555] ? __pfx_usage_match+0x10/0x10 [ 1109.303802] ? __bfs+0xf6/0x240 [ 1109.303975] ? check_irq_usage+0x19c/0xc40 [ 1109.304198] ? check_path.constprop.0+0x24/0x50 [ 1109.304466] ? check_noncircular+0x81/0x150 [ 1109.304694] ? __lock_acquire+0xa6e/0x1750 [ 1109.304937] tcf_classify+0x17d/0x540 [ 1109.305164] tc_run+0x9f/0x150 [ 1109.305363] __dev_queue_xmit+0x311/0x1180 [ 1109.305607] ? mark_held_locks+0x49/0x80 [ 1109.305840] ip_finish_output2+0x39f/0xa20 [ 1109.306085] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1109.306307] __ip_queue_xmit+0x1d5/0x6f0 [ 1109.306544] __tcp_transmit_skb+0xb65/0xd30 [ 1109.306791] tcp_write_xmit+0x492/0x1400 [ 1109.307024] __tcp_push_pending_frames+0x36/0xc0 [ 1109.307279] tcp_rcv_state_process+0x4d3/0x11f0 [ 1109.307543] ? tcp_v4_rcv+0xdb5/0xef0 [ 1109.307743] ? tcp_v4_do_rcv+0x64/0x360 [ 1109.307969] tcp_v4_do_rcv+0x64/0x360 [ 1109.308169] tcp_v4_rcv+0xe4f/0xef0 [ 1109.308380] ? process_backlog+0x6f/0x260 [ 1109.308615] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1109.308858] ip_local_deliver_finish+0xaf/0x180 [ 1109.309118] __netif_receive_skb_one_core+0x8b/0xa0 [ 1109.309381] process_backlog+0x7c/0x260 [ 1109.309607] __napi_poll.constprop.0+0x2a/0x1e0 [ 1109.309851] net_rx_action+0x2be/0x340 [ 1109.310073] __do_softirq+0xcb/0x37a [ 1109.310274] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1109.310540] run_ksoftirqd+0x2e/0x40 [ 1109.310758] smpboot_thread_fn+0xdc/0x1d0 [ 1109.310994] kthread+0xdd/0x110 [ 1109.311171] ? __pfx_kthread+0x10/0x10 [ 1109.311392] ret_from_fork+0x34/0x50 [ 1109.311621] ? __pfx_kthread+0x10/0x10 [ 1109.311843] ret_from_fork_asm+0x1b/0x30 [ 1109.312078] [ 1111.764868] irq 4: nobody cared (try booting with the "irqpoll" option) [ 1111.765237] CPU: 1 PID: 3648 Comm: perl Not tainted 6.8.0-rc1-virtme #1 [ 1111.765583] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1111.766176] Call Trace: [ 1111.766313] [ 1111.766430] dump_stack_lvl+0x4b/0x80 [ 1111.766639] __report_bad_irq+0x2b/0xc0 [ 1111.766850] note_interrupt+0x2a7/0x2f0 [ 1111.767058] handle_irq_event+0x72/0x80 [ 1111.767269] handle_edge_irq+0x8b/0x230 [ 1111.767482] __common_interrupt+0x4e/0x100 [ 1111.767704] common_interrupt+0x81/0xa0 [ 1111.767914] [ 1111.768031] [ 1111.768149] asm_common_interrupt+0x26/0x40 [ 1111.768376] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 1111.768672] Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 f1 49 39 ff 48 89 ef e8 a9 7a 39 ff 80 e7 02 74 06 e8 2f a3 46 ff fb 65 ff 0d 8f f4 df 4b <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 1111.769631] RSP: 0018:ffffa0c403d6fd18 EFLAGS: 00000286 [ 1111.769914] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017 [ 1111.770289] RDX: ffffffffb3dc83c2 RSI: ffffffffb422fab1 RDI: ffffffffb422fab1 [ 1111.770664] RBP: ffffffffb63fff20 R08: 0000000000000000 R09: 0000000000000000 [ 1111.771046] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 1111.771425] R13: 0000000000000000 R14: ffff8da181c80401 R15: ffff8da182370000 [ 1111.771802] ? rpm_suspend+0x232/0x700 [ 1111.772006] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1111.772270] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1111.772537] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1111.772801] uart_write+0x103/0x1d0 [ 1111.772996] n_tty_write+0x1a9/0x530 [ 1111.773195] ? __pfx_woken_wake_function+0x10/0x10 [ 1111.773454] file_tty_write.constprop.0+0x167/0x340 [ 1111.773719] vfs_write+0x390/0x550 [ 1111.773910] ksys_write+0x69/0xf0 [ 1111.774091] do_syscall_64+0xcc/0x1e0 [ 1111.774293] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1111.774562] RIP: 0033:0x7f53614f5957 [ 1111.774755] 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 [ 1111.775731] RSP: 002b:00007ffcc0586878 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1111.776133] RAX: ffffffffffffffda RBX: 0000559d118e8ef0 RCX: 00007f53614f5957 [ 1111.776505] RDX: 0000000000000001 RSI: 0000559d118e8ef0 RDI: 0000000000000001 [ 1111.776877] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1111.777251] R10: 0000000000000001 R11: 0000000000000246 R12: 0000559d118d54e0 [ 1111.777624] R13: 0000559d118b62a0 R14: 0000000000000001 R15: 0000559d118d54e0 [ 1111.777999] [ 1111.778169] handlers: [ 1111.778358] [<00000000a4ccb0bb>] serial8250_interrupt [ 1111.778763] Disabling IRQ #4 [ 1129.467890] ncat (4553) used greatest stack depth: 10672 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