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 ] [ 1112.126736] 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 ] [ 1116.920307] ping (6945) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1122.965101] [ 1122.965262] ============================================ [ 1122.965683] WARNING: possible recursive locking detected [ 1122.966093] 6.8.0-rc2-virtme #1 Not tainted [ 1122.966401] -------------------------------------------- [ 1122.966809] swapper/2/0 is trying to acquire lock: [ 1122.967155] ffff90b945070cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1122.967719] [ 1122.967719] but task is already holding lock: [ 1122.968134] ffff90b9450700b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1122.968716] [ 1122.968716] other info that might help us debug this: [ 1122.969182] Possible unsafe locking scenario: [ 1122.969182] [ 1122.969541] CPU0 [ 1122.969709] ---- [ 1122.969868] lock(slock-AF_INET/1); [ 1122.970070] lock(slock-AF_INET/1); [ 1122.970289] [ 1122.970289] *** DEADLOCK *** [ 1122.970289] [ 1122.970666] May be due to missing lock nesting notation [ 1122.970666] [ 1122.971061] 8 locks held by swapper/2/0: [ 1122.971279] #0: ffffffffa4b678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1122.971811] #1: ffffffffa4b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1122.972433] #2: ffff90b9450700b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1122.972930] #3: ffffffffa4b678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1122.973544] #4: ffffffffa4b678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1122.974192] #5: ffffffffa4b67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1122.974833] #6: ffffffffa4b678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1122.975495] #7: ffffffffa4b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1122.976164] [ 1122.976164] stack backtrace: [ 1122.976488] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc2-virtme #1 [ 1122.976977] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1122.977796] Call Trace: [ 1122.977994] [ 1122.978190] dump_stack_lvl+0x4b/0x80 [ 1122.978486] __lock_acquire+0x1215/0x1750 [ 1122.978764] ? sk_filter_trim_cap+0x53/0x360 [ 1122.979125] lock_acquire+0xc1/0x2b0 [ 1122.979405] ? tcp_v4_rcv+0xdb5/0xef0 [ 1122.979705] ? sk_filter_trim_cap+0x11a/0x360 [ 1122.979973] _raw_spin_lock_nested+0x2e/0x40 [ 1122.980237] ? tcp_v4_rcv+0xdb5/0xef0 [ 1122.980437] tcp_v4_rcv+0xdb5/0xef0 [ 1122.980664] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1122.980913] ip_local_deliver_finish+0xaf/0x180 [ 1122.981188] __netif_receive_skb_one_core+0x8b/0xa0 [ 1122.981453] netif_receive_skb+0x87/0x2c0 [ 1122.981703] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1122.982033] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1122.982317] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1122.982625] tcf_action_exec+0xaf/0x230 [ 1122.982839] fl_classify+0x20e/0x260 [cls_flower] [ 1122.983127] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1122.983429] ? __pfx_usage_match+0x10/0x10 [ 1122.983658] ? __bfs+0xf6/0x240 [ 1122.983860] ? check_irq_usage+0x19c/0xc40 [ 1122.984101] ? check_path.constprop.0+0x24/0x50 [ 1122.984350] ? check_noncircular+0x81/0x150 [ 1122.984604] ? lock_release+0xbe/0x270 [ 1122.984826] ? __lock_acquire+0xa6e/0x1750 [ 1122.985053] tcf_classify+0x17d/0x540 [ 1122.985271] tc_run+0x9f/0x150 [ 1122.985457] __dev_queue_xmit+0x311/0x1180 [ 1122.985689] ? mark_held_locks+0x49/0x80 [ 1122.985924] ip_finish_output2+0x39f/0xa20 [ 1122.986155] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1122.986380] __ip_queue_xmit+0x1d5/0x6f0 [ 1122.986609] __tcp_transmit_skb+0xb65/0xd30 [ 1122.986862] ? mark_held_locks+0x49/0x80 [ 1122.987085] tcp_write_xmit+0x492/0x1400 [ 1122.987321] __tcp_push_pending_frames+0x36/0xc0 [ 1122.987599] tcp_rcv_state_process+0x4d3/0x11f0 [ 1122.987848] ? tcp_v4_rcv+0xdb5/0xef0 [ 1122.988048] ? tcp_v4_do_rcv+0x64/0x360 [ 1122.988255] tcp_v4_do_rcv+0x64/0x360 [ 1122.988479] tcp_v4_rcv+0xe4f/0xef0 [ 1122.988702] ? process_backlog+0x6f/0x260 [ 1122.988961] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1122.989246] ip_local_deliver_finish+0xaf/0x180 [ 1122.989500] __netif_receive_skb_one_core+0x8b/0xa0 [ 1122.989798] process_backlog+0x7c/0x260 [ 1122.990035] __napi_poll.constprop.0+0x2a/0x1e0 [ 1122.990289] net_rx_action+0x2be/0x340 [ 1122.990525] __do_softirq+0xcb/0x37a [ 1122.990741] do_softirq+0x4d/0x90 [ 1122.990952] [ 1122.991081] [ 1122.991234] flush_smp_call_function_queue+0x75/0x80 [ 1122.991592] do_idle+0x156/0x220 [ 1122.991844] ? finish_task_switch.isra.0+0xf7/0x330 [ 1122.992140] cpu_startup_entry+0x2a/0x30 [ 1122.992423] start_secondary+0xfc/0x100 [ 1122.992708] secondary_startup_64_no_verify+0x16d/0x17b [ 1122.993073] [ 1146.213810] ncat (7084) used greatest stack depth: 10672 bytes left [ 1163.526428] irq 4: nobody cared (try booting with the "irqpoll" option) [ 1163.526787] CPU: 1 PID: 6239 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 1163.527138] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1163.527736] Call Trace: [ 1163.527876] [ 1163.527994] dump_stack_lvl+0x4b/0x80 [ 1163.528195] __report_bad_irq+0x2b/0xc0 [ 1163.528402] note_interrupt+0x2a7/0x2f0 [ 1163.528608] handle_irq_event+0x72/0x80 [ 1163.528815] handle_edge_irq+0x8b/0x230 [ 1163.529032] __common_interrupt+0x4e/0x100 [ 1163.529254] common_interrupt+0x81/0xa0 [ 1163.529462] [ 1163.529580] [ 1163.529698] asm_common_interrupt+0x26/0x40 [ 1163.529922] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 1163.530217] Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 81 4c 39 ff 48 89 ef e8 39 7d 39 ff 80 e7 02 74 06 e8 cf a5 46 ff fb 65 ff 0d cf f8 1f 5c <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 1163.531173] RSP: 0018:ffff9c3246e27d18 EFLAGS: 00000286 [ 1163.531455] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017 [ 1163.531833] RDX: ffffffffa39c7dc2 RSI: ffffffffa3e2f671 RDI: ffffffffa3e2f671 [ 1163.532205] RBP: ffffffffa5ffdf40 R08: 0000000000000000 R09: 0000000000000000 [ 1163.532575] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 1163.532947] R13: 0000000000000000 R14: ffff90b94251c401 R15: ffff90b942380000 [ 1163.533321] ? rpm_suspend+0x232/0x700 [ 1163.533522] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1163.533788] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1163.534051] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1163.534317] uart_write+0x103/0x1d0 [ 1163.534507] n_tty_write+0x1a9/0x530 [ 1163.534702] ? __pfx_woken_wake_function+0x10/0x10 [ 1163.534963] file_tty_write.constprop.0+0x167/0x340 [ 1163.535223] vfs_write+0x390/0x550 [ 1163.535409] ksys_write+0x69/0xf0 [ 1163.535591] do_syscall_64+0xcc/0x1e0 [ 1163.535793] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1163.536066] RIP: 0033:0x7f90cf597957 [ 1163.536263] 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 [ 1163.537219] RSP: 002b:00007fff8114e118 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1163.537618] RAX: ffffffffffffffda RBX: 00005635139d1db0 RCX: 00007f90cf597957 [ 1163.537987] RDX: 0000000000000001 RSI: 00005635139d1db0 RDI: 0000000000000001 [ 1163.538357] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1163.538728] R10: 0000000000000001 R11: 0000000000000246 R12: 00005635139be4e0 [ 1163.539109] R13: 000056351399f2a0 R14: 0000000000000001 R15: 00005635139be4e0 [ 1163.539485] [ 1163.539608] handlers: [ 1163.539734] [<00000000dcfe9b1a>] serial8250_interrupt [ 1163.540009] 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