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 ] [ 1215.052942] 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 ] [ 1219.929673] ping (5954) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1224.197826] [ 1224.197978] ============================================ [ 1224.198287] WARNING: possible recursive locking detected [ 1224.198572] 6.8.0-rc2-virtme #1 Not tainted [ 1224.198834] -------------------------------------------- [ 1224.199106] ksoftirqd/2/27 is trying to acquire lock: [ 1224.199411] ffff9132c2898cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1224.199846] [ 1224.199846] but task is already holding lock: [ 1224.200153] ffff9132c28980b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1224.200557] [ 1224.200557] other info that might help us debug this: [ 1224.200936] Possible unsafe locking scenario: [ 1224.200936] [ 1224.201244] CPU0 [ 1224.201376] ---- [ 1224.201549] lock(slock-AF_INET/1); [ 1224.201739] lock(slock-AF_INET/1); [ 1224.201965] [ 1224.201965] *** DEADLOCK *** [ 1224.201965] [ 1224.202276] May be due to missing lock nesting notation [ 1224.202276] [ 1224.202622] 8 locks held by ksoftirqd/2/27: [ 1224.202889] #0: ffffffff87b678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1224.203327] #1: ffffffff87b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1224.203838] #2: ffff9132c28980b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1224.204263] #3: ffffffff87b678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1224.204759] #4: ffffffff87b678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1224.205226] #5: ffffffff87b67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1224.205722] #6: ffffffff87b678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1224.206169] #7: ffffffff87b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1224.206634] [ 1224.206634] stack backtrace: [ 1224.206919] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 1224.207327] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1224.207945] Call Trace: [ 1224.208086] [ 1224.208252] dump_stack_lvl+0x4b/0x80 [ 1224.208489] __lock_acquire+0x1215/0x1750 [ 1224.208747] ? sk_filter_trim_cap+0x53/0x360 [ 1224.209011] lock_acquire+0xc1/0x2b0 [ 1224.209200] ? tcp_v4_rcv+0xdba/0xf00 [ 1224.209458] ? sk_filter_trim_cap+0x11a/0x360 [ 1224.209723] _raw_spin_lock_nested+0x2e/0x40 [ 1224.209954] ? tcp_v4_rcv+0xdba/0xf00 [ 1224.210147] tcp_v4_rcv+0xdba/0xf00 [ 1224.210379] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1224.210656] ip_local_deliver_finish+0xaf/0x180 [ 1224.210933] __netif_receive_skb_one_core+0x8b/0xa0 [ 1224.211186] netif_receive_skb+0x87/0x2c0 [ 1224.211443] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1224.211718] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1224.212008] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1224.212286] tcf_action_exec+0xac/0x230 [ 1224.212534] fl_classify+0x20e/0x260 [cls_flower] [ 1224.212827] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1224.213093] ? __bfs+0xf3/0x240 [ 1224.213309] ? check_irq_usage+0x19c/0xc40 [ 1224.213546] ? __lock_acquire+0xa6e/0x1750 [ 1224.213763] ? check_path.constprop.0+0x24/0x50 [ 1224.213997] ? find_held_lock+0x2b/0x80 [ 1224.214243] ? check_noncircular+0x81/0x150 [ 1224.214487] ? __lock_acquire+0xa6e/0x1750 [ 1224.214712] ? find_held_lock+0x2b/0x80 [ 1224.214940] tcf_classify+0x17a/0x540 [ 1224.215137] tc_run+0x9f/0x150 [ 1224.215353] __dev_queue_xmit+0x311/0x1180 [ 1224.215606] ? mark_held_locks+0x49/0x80 [ 1224.215816] ip_finish_output2+0x39f/0xa20 [ 1224.216029] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1224.216289] __ip_queue_xmit+0x1d5/0x6f0 [ 1224.216494] __tcp_transmit_skb+0xb65/0xd30 [ 1224.216756] tcp_write_xmit+0x492/0x1410 [ 1224.216964] __tcp_push_pending_frames+0x36/0xc0 [ 1224.217267] tcp_rcv_state_process+0x4db/0x1230 [ 1224.217540] ? lock_acquire+0xc1/0x2b0 [ 1224.217742] ? tcp_v4_rcv+0xdba/0xf00 [ 1224.217975] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1224.218181] tcp_v4_do_rcv+0x85/0x3a0 [ 1224.218422] tcp_v4_rcv+0xe54/0xf00 [ 1224.218652] ? process_backlog+0x6f/0x260 [ 1224.218904] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1224.219140] ip_local_deliver_finish+0xaf/0x180 [ 1224.219426] __netif_receive_skb_one_core+0x8b/0xa0 [ 1224.219679] process_backlog+0x7c/0x260 [ 1224.219919] __napi_poll.constprop.0+0x27/0x1e0 [ 1224.220158] net_rx_action+0x2be/0x340 [ 1224.220398] __do_softirq+0xc8/0x37a [ 1224.220626] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1224.220870] run_ksoftirqd+0x2e/0x40 [ 1224.221060] smpboot_thread_fn+0xd9/0x1d0 [ 1224.221308] kthread+0xda/0x110 [ 1224.221478] ? __pfx_kthread+0x10/0x10 [ 1224.221674] ret_from_fork+0x31/0x50 [ 1224.221902] ? __pfx_kthread+0x10/0x10 [ 1224.222101] ret_from_fork_asm+0x1b/0x30 [ 1224.222349] [ 1243.875539] irq 4: nobody cared (try booting with the "irqpoll" option) [ 1243.875894] CPU: 1 PID: 5263 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 1243.876228] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1243.876796] Call Trace: [ 1243.876929] [ 1243.877043] dump_stack_lvl+0x4b/0x80 [ 1243.877239] __report_bad_irq+0x2b/0xc0 [ 1243.877439] note_interrupt+0x2a7/0x2f0 [ 1243.877637] handle_irq_event+0x72/0x80 [ 1243.877836] handle_edge_irq+0x8b/0x230 [ 1243.878033] __common_interrupt+0x4b/0x100 [ 1243.878249] common_interrupt+0x81/0xa0 [ 1243.878449] [ 1243.878563] [ 1243.878677] asm_common_interrupt+0x26/0x40 [ 1243.878893] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 1243.879178] 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 1f 79 <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 1243.880094] RSP: 0018:ffff9f800064fd18 EFLAGS: 00000286 [ 1243.880365] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017 [ 1243.880723] RDX: ffffffff869c8192 RSI: ffffffff86e30671 RDI: ffffffff86e30671 [ 1243.881082] RBP: ffffffff88ffff40 R08: 0000000000000000 R09: 0000000000000000 [ 1243.881439] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 1243.881797] R13: 0000000000000000 R14: ffff9132c1c5c401 R15: ffff9132c2220000 [ 1243.882153] ? rpm_suspend+0x232/0x700 [ 1243.882350] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1243.882603] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1243.882860] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1243.883113] uart_write+0x103/0x1d0 [ 1243.883299] n_tty_write+0x1a6/0x530 [ 1243.883486] ? __pfx_woken_wake_function+0x10/0x10 [ 1243.883733] file_tty_write.constprop.0+0x164/0x340 [ 1243.883984] vfs_write+0x38d/0x550 [ 1243.884163] ksys_write+0x69/0xf0 [ 1243.884338] do_syscall_64+0xc9/0x1e0 [ 1243.884527] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1243.884792] RIP: 0033:0x7fc06779b957 [ 1243.884978] 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 [ 1243.885905] RSP: 002b:00007ffd95c924e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1243.886284] RAX: ffffffffffffffda RBX: 000056548cbe7db0 RCX: 00007fc06779b957 [ 1243.886642] RDX: 0000000000000001 RSI: 000056548cbe7db0 RDI: 0000000000000001 [ 1243.887000] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1243.887357] R10: 0000000000000001 R11: 0000000000000246 R12: 000056548cbd44e0 [ 1243.887714] R13: 000056548cbb52a0 R14: 0000000000000001 R15: 000056548cbd44e0 [ 1243.888074] [ 1243.888192] handlers: [ 1243.888314] [<000000002346786c>] serial8250_interrupt [ 1243.888575] Disabling IRQ #4 [ 1255.756887] ncat (6084) used greatest stack depth: 10664 bytes left TEST: mirred_egress_to_ingress_tcp (skip_hw) [ OK ] # INFO: Could not test offloaded functionality ok 1 selftests: net/forwarding: tc_actions.sh make[1]: Leaving directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-2/tools/testing/selftests' xx__-> WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout