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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1200.555934] ping (14091) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1202.422854] [ 1202.422984] ============================================ [ 1202.423309] WARNING: possible recursive locking detected [ 1202.423597] 6.8.0-rc2-virtme #1 Not tainted [ 1202.423827] -------------------------------------------- [ 1202.424095] swapper/3/0 is trying to acquire lock: [ 1202.424346] ffff936d026a8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1202.424784] [ 1202.424784] but task is already holding lock: [ 1202.425078] ffff936d026a80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1202.425490] [ 1202.425490] other info that might help us debug this: [ 1202.425821] Possible unsafe locking scenario: [ 1202.425821] [ 1202.426131] CPU0 [ 1202.426267] ---- [ 1202.426420] lock(slock-AF_INET/1); [ 1202.426613] lock(slock-AF_INET/1); [ 1202.426806] [ 1202.426806] *** DEADLOCK *** [ 1202.426806] [ 1202.427124] May be due to missing lock nesting notation [ 1202.427124] [ 1202.427491] 8 locks held by swapper/3/0: [ 1202.427711] #0: ffffffffba1678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1202.428153] #1: ffffffffba1678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1202.428645] #2: ffff936d026a80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1202.429076] #3: ffffffffba1678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1202.429533] #4: ffffffffba1678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1202.429986] #5: ffffffffba167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1202.430459] #6: ffffffffba1678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1202.430940] #7: ffffffffba1678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1202.431427] [ 1202.431427] stack backtrace: [ 1202.431668] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.8.0-rc2-virtme #1 [ 1202.432020] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1202.432695] Call Trace: [ 1202.432845] [ 1202.432977] dump_stack_lvl+0x4b/0x80 [ 1202.433201] __lock_acquire+0x1215/0x1750 [ 1202.433424] ? sk_filter_trim_cap+0x53/0x360 [ 1202.433667] lock_acquire+0xc1/0x2b0 [ 1202.433862] ? tcp_v4_rcv+0xdba/0xf00 [ 1202.434101] ? sk_filter_trim_cap+0x11a/0x360 [ 1202.434349] _raw_spin_lock_nested+0x2e/0x40 [ 1202.434586] ? tcp_v4_rcv+0xdba/0xf00 [ 1202.434794] tcp_v4_rcv+0xdba/0xf00 [ 1202.435001] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1202.435248] ip_local_deliver_finish+0xaf/0x180 [ 1202.435503] __netif_receive_skb_one_core+0x8b/0xa0 [ 1202.435773] netif_receive_skb+0x87/0x2c0 [ 1202.436003] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1202.436304] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1202.436567] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1202.436849] tcf_action_exec+0xac/0x230 [ 1202.437068] fl_classify+0x20e/0x260 [cls_flower] [ 1202.437322] ? __bfs+0xf3/0x240 [ 1202.437505] ? check_irq_usage+0x19c/0xc40 [ 1202.437726] ? check_path.constprop.0+0x24/0x50 [ 1202.437970] ? check_noncircular+0x81/0x150 [ 1202.438212] ? check_irq_usage+0x19c/0xc40 [ 1202.438440] ? __lock_acquire+0xa6e/0x1750 [ 1202.438664] tcf_classify+0x17a/0x540 [ 1202.438862] tc_run+0x9f/0x150 [ 1202.439049] __dev_queue_xmit+0x311/0x1180 [ 1202.439262] ? mark_held_locks+0x49/0x80 [ 1202.439471] ? eth_header+0x2a/0xc0 [ 1202.439662] ip_finish_output2+0x22d/0xa20 [ 1202.439898] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1202.440120] __ip_queue_xmit+0x1d5/0x6f0 [ 1202.440378] __tcp_transmit_skb+0xb65/0xd30 [ 1202.440609] ? mark_held_locks+0x49/0x80 [ 1202.440841] tcp_write_xmit+0x492/0x1400 [ 1202.441068] ? tcp_current_mss+0x195/0x210 [ 1202.441287] __tcp_push_pending_frames+0x36/0xc0 [ 1202.441540] tcp_rcv_state_process+0x4db/0x1230 [ 1202.441782] ? lock_acquire+0xc1/0x2b0 [ 1202.441997] ? tcp_v4_rcv+0xdba/0xf00 [ 1202.442189] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1202.442399] ? lock_is_held_type+0x9f/0x120 [ 1202.442629] tcp_v4_do_rcv+0x85/0x3a0 [ 1202.442821] tcp_v4_rcv+0xe54/0xf00 [ 1202.443005] ? process_backlog+0x6f/0x260 [ 1202.443217] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1202.443473] ip_local_deliver_finish+0xaf/0x180 [ 1202.443721] __netif_receive_skb_one_core+0x8b/0xa0 [ 1202.443984] process_backlog+0x7c/0x260 [ 1202.444198] __napi_poll.constprop.0+0x27/0x1e0 [ 1202.444471] net_rx_action+0x2be/0x340 [ 1202.444679] __do_softirq+0xc8/0x37a [ 1202.444877] irq_exit_rcu+0x7f/0xa0 [ 1202.445076] sysvec_apic_timer_interrupt+0x78/0x90 [ 1202.445334] [ 1202.445464] [ 1202.445589] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1202.445867] RIP: 0010:default_idle+0xf/0x20 [ 1202.446091] 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 d3 2d 40 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 1202.447069] RSP: 0018:ffffaf2c800b3ee8 EFLAGS: 00000246 [ 1202.447428] RAX: 00000000033694cf RBX: ffff936d0133c280 RCX: 4000000000000000 [ 1202.447876] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb87a8863 [ 1202.448338] RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000001 [ 1202.448846] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 [ 1202.449352] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 1202.449883] ? do_idle+0x1e3/0x220 [ 1202.450145] default_idle_call+0x83/0x180 [ 1202.450515] do_idle+0x1e3/0x220 [ 1202.450772] ? finish_task_switch.isra.0+0xf7/0x330 [ 1202.451141] cpu_startup_entry+0x2a/0x30 [ 1202.451437] start_secondary+0xfc/0x100 [ 1202.451745] secondary_startup_64_no_verify+0x16d/0x17b [ 1202.452147] [ 1220.689412] ncat (14220) 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__-> echo $? 0 xx__->