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 ] [ 1074.954628] 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 ] [ 1079.666381] ping (11505) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1085.767860] [ 1085.767984] ============================================ [ 1085.768347] WARNING: possible recursive locking detected [ 1085.768712] 6.8.0-rc2-virtme #1 Not tainted [ 1085.768992] -------------------------------------------- [ 1085.769357] perl/10788 is trying to acquire lock: [ 1085.769674] ffff8ab4c58c8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1085.770213] [ 1085.770213] but task is already holding lock: [ 1085.770606] ffff8ab4c58c80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1085.771135] [ 1085.771135] other info that might help us debug this: [ 1085.771544] Possible unsafe locking scenario: [ 1085.771544] [ 1085.771944] CPU0 [ 1085.772110] ---- [ 1085.772274] lock(slock-AF_INET/1); [ 1085.772520] lock(slock-AF_INET/1); [ 1085.772779] [ 1085.772779] *** DEADLOCK *** [ 1085.772779] [ 1085.773152] May be due to missing lock nesting notation [ 1085.773152] [ 1085.773584] 9 locks held by perl/10788: [ 1085.773838] #0: ffff8ab4c21e80a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x60 [ 1085.774421] #1: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1085.774973] #2: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1085.775553] #3: ffff8ab4c58c80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1085.776086] #4: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1085.776538] #5: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1085.777015] #6: ffffffff9c967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1085.777504] #7: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1085.777959] #8: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1085.778435] [ 1085.778435] stack backtrace: [ 1085.778669] CPU: 1 PID: 10788 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 1085.779022] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1085.779618] Call Trace: [ 1085.779756] [ 1085.779873] dump_stack_lvl+0x4b/0x80 [ 1085.780076] __lock_acquire+0x1215/0x1750 [ 1085.780295] ? sk_filter_trim_cap+0x53/0x360 [ 1085.780529] lock_acquire+0xc1/0x2b0 [ 1085.780722] ? tcp_v4_rcv+0xdb5/0xef0 [ 1085.780923] ? sk_filter_trim_cap+0x11a/0x360 [ 1085.781159] _raw_spin_lock_nested+0x2e/0x40 [ 1085.781394] ? tcp_v4_rcv+0xdb5/0xef0 [ 1085.781590] tcp_v4_rcv+0xdb5/0xef0 [ 1085.781780] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1085.782023] ip_local_deliver_finish+0xaf/0x180 [ 1085.782266] __netif_receive_skb_one_core+0x8b/0xa0 [ 1085.782526] netif_receive_skb+0x87/0x2c0 [ 1085.782742] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1085.783023] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1085.783284] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1085.783566] tcf_action_exec+0xaf/0x230 [ 1085.783784] fl_classify+0x20e/0x260 [cls_flower] [ 1085.784043] ? fl_mask_lookup+0x179/0x5a0 [cls_flower] [ 1085.784326] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1085.784603] ? __pfx_usage_match+0x10/0x10 [ 1085.784823] ? __bfs+0xf6/0x240 [ 1085.784995] ? check_irq_usage+0x19c/0xc40 [ 1085.785215] ? check_path.constprop.0+0x24/0x50 [ 1085.785458] ? check_noncircular+0x81/0x150 [ 1085.785686] ? __lock_acquire+0xa6e/0x1750 [ 1085.785907] tcf_classify+0x17d/0x540 [ 1085.786119] tc_run+0x9f/0x150 [ 1085.786296] __dev_queue_xmit+0x311/0x1180 [ 1085.786516] ? mark_held_locks+0x49/0x80 [ 1085.786730] ip_finish_output2+0x39f/0xa20 [ 1085.786952] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1085.787175] __ip_queue_xmit+0x1d5/0x6f0 [ 1085.787384] __tcp_transmit_skb+0xb65/0xd30 [ 1085.787612] ? mark_held_locks+0x49/0x80 [ 1085.787827] tcp_write_xmit+0x492/0x1410 [ 1085.788039] __tcp_push_pending_frames+0x36/0xc0 [ 1085.788291] tcp_rcv_state_process+0x4d3/0x11f0 [ 1085.788535] ? tcp_v4_rcv+0xdb5/0xef0 [ 1085.788732] ? tcp_v4_do_rcv+0x64/0x360 [ 1085.788940] tcp_v4_do_rcv+0x64/0x360 [ 1085.789138] tcp_v4_rcv+0xe4f/0xef0 [ 1085.789328] ? process_backlog+0x6f/0x260 [ 1085.789543] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1085.789782] ip_local_deliver_finish+0xaf/0x180 [ 1085.790021] __netif_receive_skb_one_core+0x8b/0xa0 [ 1085.790298] process_backlog+0x7c/0x260 [ 1085.790542] __napi_poll.constprop.0+0x2a/0x1e0 [ 1085.790820] net_rx_action+0x2be/0x340 [ 1085.791071] __do_softirq+0xcb/0x37a [ 1085.791322] irq_exit_rcu+0x7f/0xa0 [ 1085.791536] sysvec_apic_timer_interrupt+0x78/0x90 [ 1085.791793] [ 1085.791926] [ 1085.792077] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1085.792414] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 1085.792748] 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 3f 64 <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 1085.793942] RSP: 0018:ffffa08f873ffdc0 EFLAGS: 00000286 [ 1085.794296] RAX: 000000000037e9bf RBX: 0000000000000292 RCX: 0000000000000080 [ 1085.794765] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9bc2f671 [ 1085.795239] RBP: ffff8ab4c21e8508 R08: 0000000000000001 R09: 0000000000000001 [ 1085.795712] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 [ 1085.796193] R13: 0000000000000292 R14: 0000000000000004 R15: ffffa08f873ffe68 [ 1085.796668] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1085.797007] __wake_up+0x44/0x60 [ 1085.797235] file_tty_write.constprop.0+0x1cc/0x340 [ 1085.797576] vfs_write+0x390/0x550 [ 1085.797819] ksys_write+0x69/0xf0 [ 1085.798044] do_syscall_64+0xcc/0x1e0 [ 1085.798273] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1085.798614] RIP: 0033:0x7f1c9122a957 [ 1085.798861] 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 [ 1085.800017] RSP: 002b:00007ffed4324508 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1085.800509] RAX: ffffffffffffffda RBX: 00005651736e9db0 RCX: 00007f1c9122a957 [ 1085.800941] RDX: 0000000000000001 RSI: 00005651736e9db0 RDI: 0000000000000001 [ 1085.801313] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1085.801691] R10: 0000000000000001 R11: 0000000000000246 R12: 00005651736d64e0 [ 1085.802070] R13: 00005651736b72a0 R14: 0000000000000001 R15: 00005651736d64e0 [ 1085.802455] [ 1116.266440] ncat (11639) 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: 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__-> echo $? 0 xx__->