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 ] [ 1143.700573] 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 ] [ 1148.490236] ping (5524) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1150.028902] [ 1150.029039] ============================================ [ 1150.029359] WARNING: possible recursive locking detected [ 1150.029654] 6.8.0-rc2-virtme #1 Not tainted [ 1150.029900] -------------------------------------------- [ 1150.030187] swapper/3/0 is trying to acquire lock: [ 1150.030495] ffff8f4a86968cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1150.030958] [ 1150.030958] but task is already holding lock: [ 1150.031318] ffff8f4a869680b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1150.031784] [ 1150.031784] other info that might help us debug this: [ 1150.032159] Possible unsafe locking scenario: [ 1150.032159] [ 1150.032514] CPU0 [ 1150.032681] ---- [ 1150.032850] lock(slock-AF_INET/1); [ 1150.033044] lock(slock-AF_INET/1); [ 1150.033289] [ 1150.033289] *** DEADLOCK *** [ 1150.033289] [ 1150.033626] May be due to missing lock nesting notation [ 1150.033626] [ 1150.034041] 8 locks held by swapper/3/0: [ 1150.034267] #0: ffffffff87f678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1150.034770] #1: ffffffff87f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1150.035281] #2: ffff8f4a869680b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1150.035772] #3: ffffffff87f678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1150.036252] #4: ffffffff87f678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1150.036772] #5: ffffffff87f67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1150.037263] #6: ffffffff87f678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1150.037761] #7: ffffffff87f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1150.038258] [ 1150.038258] stack backtrace: [ 1150.038502] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.8.0-rc2-virtme #1 [ 1150.038910] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1150.039529] Call Trace: [ 1150.039678] [ 1150.039822] dump_stack_lvl+0x4b/0x80 [ 1150.040034] __lock_acquire+0x1215/0x1750 [ 1150.040279] ? sk_filter_trim_cap+0x53/0x360 [ 1150.040545] lock_acquire+0xc1/0x2b0 [ 1150.040795] ? tcp_v4_rcv+0xdba/0xf00 [ 1150.041010] ? sk_filter_trim_cap+0x11a/0x360 [ 1150.041281] _raw_spin_lock_nested+0x2e/0x40 [ 1150.041563] ? tcp_v4_rcv+0xdba/0xf00 [ 1150.041822] tcp_v4_rcv+0xdba/0xf00 [ 1150.042040] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1150.042301] ip_local_deliver_finish+0xaf/0x180 [ 1150.042582] __netif_receive_skb_one_core+0x8b/0xa0 [ 1150.042862] netif_receive_skb+0x87/0x2c0 [ 1150.043085] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1150.043438] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1150.043739] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1150.044021] tcf_action_exec+0xac/0x230 [ 1150.044274] fl_classify+0x20e/0x260 [cls_flower] [ 1150.044591] ? __bfs+0xf3/0x240 [ 1150.044798] ? check_irq_usage+0x19c/0xc40 [ 1150.045045] ? __bfs+0xdf/0x240 [ 1150.045270] ? check_path.constprop.0+0x24/0x50 [ 1150.045558] ? check_noncircular+0x81/0x150 [ 1150.045826] ? __bfs+0xf3/0x240 [ 1150.046030] ? __lock_acquire+0xa6e/0x1750 [ 1150.046282] tcf_classify+0x17a/0x540 [ 1150.046509] tc_run+0x9f/0x150 [ 1150.046719] __dev_queue_xmit+0x311/0x1180 [ 1150.046999] ? mark_held_locks+0x49/0x80 [ 1150.047217] ? eth_header+0x2a/0xc0 [ 1150.047451] ip_finish_output2+0x22d/0xa20 [ 1150.047690] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1150.047949] __ip_queue_xmit+0x1d5/0x6f0 [ 1150.048177] __tcp_transmit_skb+0xb65/0xd30 [ 1150.048429] ? mark_held_locks+0x49/0x80 [ 1150.048661] tcp_write_xmit+0x492/0x1400 [ 1150.048915] ? tcp_current_mss+0x195/0x210 [ 1150.049149] __tcp_push_pending_frames+0x36/0xc0 [ 1150.049410] tcp_rcv_state_process+0x4db/0x1230 [ 1150.049695] ? lock_acquire+0xc1/0x2b0 [ 1150.049903] ? tcp_v4_rcv+0xdba/0xf00 [ 1150.050138] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1150.050361] ? lock_is_held_type+0x9f/0x120 [ 1150.050582] tcp_v4_do_rcv+0x85/0x3a0 [ 1150.050813] tcp_v4_rcv+0xe54/0xf00 [ 1150.051021] ? process_backlog+0x6f/0x260 [ 1150.051254] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1150.051510] ip_local_deliver_finish+0xaf/0x180 [ 1150.051791] __netif_receive_skb_one_core+0x8b/0xa0 [ 1150.052066] process_backlog+0x7c/0x260 [ 1150.052281] __napi_poll.constprop.0+0x27/0x1e0 [ 1150.052552] net_rx_action+0x2be/0x340 [ 1150.052769] __do_softirq+0xc8/0x37a [ 1150.052966] irq_exit_rcu+0x7f/0xa0 [ 1150.053188] sysvec_apic_timer_interrupt+0x78/0x90 [ 1150.053488] [ 1150.053632] [ 1150.053791] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1150.054072] RIP: 0010:default_idle+0xf/0x20 [ 1150.054317] 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 [ 1150.055297] RSP: 0018:ffffa8fb400b3ee8 EFLAGS: 00000242 [ 1150.055608] RAX: 0000000000470bad RBX: ffff8f4a8133c280 RCX: 4000000000000000 [ 1150.055994] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff865a8863 [ 1150.056382] RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000001 [ 1150.056812] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 [ 1150.057227] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 1150.057680] ? do_idle+0x1e3/0x220 [ 1150.057901] default_idle_call+0x83/0x180 [ 1150.058174] do_idle+0x1e3/0x220 [ 1150.058357] ? do_idle+0x7/0x220 [ 1150.058581] cpu_startup_entry+0x2a/0x30 [ 1150.058793] start_secondary+0xfc/0x100 [ 1150.059035] secondary_startup_64_no_verify+0x16d/0x17b [ 1150.059337] [ 1150.063079] ncat (5653) 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__->