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 [ 1.777931] ip (233) used greatest stack depth: 12056 bytes left [ 1.822424] ip (241) used greatest stack depth: 11672 bytes left [ 7.554880] GACT probability NOT on # TEST: gact drop and ok (skip_hw) [ OK ] [ 9.854096] 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 ] [ 12.418640] tc (859) used greatest stack depth: 11576 bytes left [ 14.597512] ping (993) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 16.064568] [ 16.064677] ============================================ [ 16.064971] WARNING: possible recursive locking detected [ 16.065247] 6.8.0-rc2-virtme #1 Not tainted [ 16.065486] -------------------------------------------- [ 16.065763] swapper/1/0 is trying to acquire lock: [ 16.066032] ffff944c44c10cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 16.066462] [ 16.066462] but task is already holding lock: [ 16.066768] ffff944c44c100b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 16.067193] [ 16.067193] other info that might help us debug this: [ 16.067537] Possible unsafe locking scenario: [ 16.067537] [ 16.067861] CPU0 [ 16.067997] ---- [ 16.068149] lock(slock-AF_INET/1); [ 16.068342] lock(slock-AF_INET/1); [ 16.068549] [ 16.068549] *** DEADLOCK *** [ 16.068549] [ 16.068858] May be due to missing lock nesting notation [ 16.068858] [ 16.069210] 8 locks held by swapper/1/0: [ 16.069432] #0: ffffffffb67678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 16.069954] #1: ffffffffb67678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 16.070447] #2: ffff944c44c100b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 16.070893] #3: ffffffffb67678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 16.071333] #4: ffffffffb67678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 16.071806] #5: ffffffffb6767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 16.072288] #6: ffffffffb67678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 16.072756] #7: ffffffffb67678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 16.073236] [ 16.073236] stack backtrace: [ 16.073472] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc2-virtme #1 [ 16.073835] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 16.074418] Call Trace: [ 16.074575] [ 16.074688] dump_stack_lvl+0x4b/0x80 [ 16.074895] __lock_acquire+0x1215/0x1750 [ 16.075113] ? sk_filter_trim_cap+0x53/0x360 [ 16.075350] lock_acquire+0xc1/0x2b0 [ 16.075548] ? tcp_v4_rcv+0xdb5/0xef0 [ 16.075761] ? sk_filter_trim_cap+0x11a/0x360 [ 16.075995] _raw_spin_lock_nested+0x2e/0x40 [ 16.076236] ? tcp_v4_rcv+0xdb5/0xef0 [ 16.076431] tcp_v4_rcv+0xdb5/0xef0 [ 16.076637] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 16.076891] ip_local_deliver_finish+0xaf/0x180 [ 16.077130] __netif_receive_skb_one_core+0x8b/0xa0 [ 16.077398] netif_receive_skb+0x87/0x2c0 [ 16.077617] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 16.077900] tcf_mirred_act+0xee/0x560 [act_mirred] [ 16.078157] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 16.078447] tcf_action_exec+0xac/0x230 [ 16.078657] fl_classify+0x20e/0x260 [cls_flower] [ 16.078915] ? __lock_acquire+0xa6e/0x1750 [ 16.079131] ? __lock_acquire+0xa6e/0x1750 [ 16.079363] ? lock_acquire+0xc1/0x2b0 [ 16.079569] ? find_held_lock+0x2b/0x80 [ 16.079784] ? find_held_lock+0x2b/0x80 [ 16.079986] ? __lock_acquire+0xa6e/0x1750 [ 16.080219] tcf_classify+0x17a/0x540 [ 16.080433] tc_run+0x9f/0x150 [ 16.080613] __dev_queue_xmit+0x311/0x1180 [ 16.080846] ? mark_held_locks+0x49/0x80 [ 16.081053] ? eth_header+0x2a/0xc0 [ 16.081255] ip_finish_output2+0x22d/0xa20 [ 16.081486] ? __ip_queue_xmit+0x1d5/0x6f0 [ 16.081717] __ip_queue_xmit+0x1d5/0x6f0 [ 16.081924] __tcp_transmit_skb+0xb65/0xd30 [ 16.082175] tcp_write_xmit+0x492/0x1400 [ 16.082403] __tcp_push_pending_frames+0x36/0xc0 [ 16.082661] tcp_rcv_state_process+0x4d3/0x11f0 [ 16.082900] ? tcp_v4_rcv+0xdb5/0xef0 [ 16.083094] ? tcp_v4_do_rcv+0x64/0x360 [ 16.083308] tcp_v4_do_rcv+0x64/0x360 [ 16.083502] tcp_v4_rcv+0xe4f/0xef0 [ 16.083701] ? process_backlog+0x6f/0x260 [ 16.083912] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 16.084148] ip_local_deliver_finish+0xaf/0x180 [ 16.084400] __netif_receive_skb_one_core+0x8b/0xa0 [ 16.084655] process_backlog+0x7c/0x260 [ 16.084871] __napi_poll.constprop.0+0x27/0x1e0 [ 16.085109] net_rx_action+0x2be/0x340 [ 16.085321] __do_softirq+0xc8/0x37a [ 16.085529] irq_exit_rcu+0x7f/0xa0 [ 16.085715] sysvec_apic_timer_interrupt+0x78/0x90 [ 16.085978] [ 16.086094] [ 16.086227] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.086495] RIP: 0010:default_idle+0xf/0x20 [ 16.086728] 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 [ 16.087673] RSP: 0018:ffffa365400a3ee8 EFLAGS: 00000242 [ 16.087962] RAX: 0000000000083231 RBX: ffff944c41338000 RCX: 4000000000000000 [ 16.088331] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb4da8863 [ 16.088714] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001 [ 16.089082] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 [ 16.089450] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 16.089832] ? do_idle+0x1e3/0x220 [ 16.090015] default_idle_call+0x83/0x180 [ 16.090243] do_idle+0x1e3/0x220 [ 16.090417] ? finish_task_switch.isra.0+0xf7/0x330 [ 16.090687] cpu_startup_entry+0x2a/0x30 [ 16.090897] start_secondary+0xfc/0x100 [ 16.091123] secondary_startup_64_no_verify+0x16d/0x17b [ 16.091398] [ 41.858459] ncat (1142) 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__->