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 ] [ 1150.856642] 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 ] [ 1155.769070] ping (5517) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1162.191289] [ 1162.191430] ============================================ [ 1162.191779] WARNING: possible recursive locking detected [ 1162.192081] 6.8.0-rc3-virtme #1 Not tainted [ 1162.192348] -------------------------------------------- [ 1162.192671] swapper/2/0 is trying to acquire lock: [ 1162.192974] ffff9def01258cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1162.193417] [ 1162.193417] but task is already holding lock: [ 1162.193754] ffff9def012580b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1162.194206] [ 1162.194206] other info that might help us debug this: [ 1162.194595] Possible unsafe locking scenario: [ 1162.194595] [ 1162.194918] CPU0 [ 1162.195058] ---- [ 1162.195222] lock(slock-AF_INET/1); [ 1162.195409] lock(slock-AF_INET/1); [ 1162.195635] [ 1162.195635] *** DEADLOCK *** [ 1162.195635] [ 1162.195963] May be due to missing lock nesting notation [ 1162.195963] [ 1162.196314] 8 locks held by swapper/2/0: [ 1162.196542] #0: ffffffff943678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1162.197004] #1: ffffffff943678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1162.197495] #2: ffff9def012580b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1162.197969] #3: ffffffff943678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x700 [ 1162.198410] #4: ffffffff943678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1162.198894] #5: ffffffff94367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1162.199384] #6: ffffffff943678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1162.199840] #7: ffffffff943678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1162.200324] [ 1162.200324] stack backtrace: [ 1162.200552] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc3-virtme #1 [ 1162.200914] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1162.201507] Call Trace: [ 1162.201654] [ 1162.201788] dump_stack_lvl+0x4b/0x80 [ 1162.201989] __lock_acquire+0x1215/0x1750 [ 1162.202216] ? sk_filter_trim_cap+0x53/0x360 [ 1162.202463] lock_acquire+0xc1/0x2b0 [ 1162.202656] ? tcp_v4_rcv+0xdb5/0xef0 [ 1162.202868] ? sk_filter_trim_cap+0x11a/0x360 [ 1162.203139] _raw_spin_lock_nested+0x2e/0x40 [ 1162.203370] ? tcp_v4_rcv+0xdb5/0xef0 [ 1162.203601] tcp_v4_rcv+0xdb5/0xef0 [ 1162.203787] ip_protocol_deliver_rcu+0x4b/0x1e0 DETECTED CRASH, lowering timeout [ 1162.204121] ip_local_deliver_finish+0xaf/0x180 [ 1162.204488] __netif_receive_skb_one_core+0x8b/0xa0 [ 1162.204868] netif_receive_skb+0x87/0x2c0 [ 1162.205183] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1162.205563] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1162.205910] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1162.206330] tcf_action_exec+0xac/0x230 [ 1162.206653] fl_classify+0x20e/0x260 [cls_flower] [ 1162.207030] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1162.207453] ? __bfs+0xf3/0x240 [ 1162.207706] ? check_irq_usage+0x19c/0xc40 [ 1162.208035] ? check_path.constprop.0+0x24/0x50 [ 1162.208405] ? check_noncircular+0x81/0x150 [ 1162.208734] ? __lock_acquire+0xa6e/0x1750 [ 1162.209062] tcf_classify+0x17a/0x540 [ 1162.209362] tc_run+0x9f/0x150 [ 1162.209615] __dev_queue_xmit+0x311/0x1180 [ 1162.209945] ? mark_held_locks+0x49/0x80 [ 1162.210274] ip_finish_output2+0x39f/0xa20 [ 1162.210598] ? __ip_queue_xmit+0x1d5/0x700 [ 1162.210875] __ip_queue_xmit+0x1d5/0x700 [ 1162.211117] __tcp_transmit_skb+0xb65/0xd30 [ 1162.211334] tcp_write_xmit+0x492/0x1400 [ 1162.211544] __tcp_push_pending_frames+0x36/0xc0 [ 1162.211800] tcp_rcv_state_process+0x4c9/0x11f0 [ 1162.212083] ? tcp_v4_rcv+0xdb5/0xef0 [ 1162.212293] ? tcp_v4_do_rcv+0x64/0x360 [ 1162.212491] tcp_v4_do_rcv+0x64/0x360 [ 1162.212699] tcp_v4_rcv+0xe4f/0xef0 [ 1162.212900] ? process_backlog+0x6f/0x260 [ 1162.213130] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1162.213382] ip_local_deliver_finish+0xaf/0x180 [ 1162.213619] __netif_receive_skb_one_core+0x8b/0xa0 [ 1162.213889] process_backlog+0x7c/0x260 [ 1162.214127] __napi_poll.constprop.0+0x27/0x1e0 [ 1162.214363] net_rx_action+0x2be/0x340 [ 1162.214567] __do_softirq+0xc8/0x37a [ 1162.214800] irq_exit_rcu+0x7f/0xa0 [ 1162.215091] sysvec_apic_timer_interrupt+0x78/0x90 [ 1162.215483] [ 1162.215658] [ 1162.215847] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1162.216258] RIP: 0010:default_idle+0xf/0x20 [ 1162.216584] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 13 ae 3f 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 1162.218016] RSP: 0018:ffffb2b0400abee8 EFLAGS: 00000246 [ 1162.218436] RAX: 00000000005c9e9f RBX: ffff9def0133a140 RCX: 4000000000000000 [ 1162.218992] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff929a8863 [ 1162.219546] RBP: 0000000000000002 R08: 0000000000000001 R09: 0000000000000001 [ 1162.219937] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 [ 1162.220303] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 1162.220689] ? do_idle+0x1e3/0x220 [ 1162.220895] default_idle_call+0x83/0x180 [ 1162.221129] do_idle+0x1e3/0x220 [ 1162.221319] cpu_startup_entry+0x2a/0x30 [ 1162.221523] start_secondary+0xfc/0x100 [ 1162.221731] secondary_startup_64_no_verify+0x16d/0x17b [ 1162.222030] [ 1184.406648] ncat (5636) used greatest stack depth: 10680 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__->