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 0 # 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 ] [ 872.240586] tc (2835) used greatest stack depth: 11528 bytes left [ 874.395234] ping (2970) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 879.478019] [ 879.478156] ============================================ [ 879.478451] WARNING: possible recursive locking detected [ 879.478786] 6.8.0-rc1-virtme #1 Not tainted [ 879.479022] -------------------------------------------- [ 879.479321] ksoftirqd/2/27 is trying to acquire lock: [ 879.479618] ffff9f4743c20cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 879.480061] [ 879.480061] but task is already holding lock: [ 879.480411] ffff9f4743c200b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 879.480844] [ 879.480844] other info that might help us debug this: [ 879.481188] Possible unsafe locking scenario: [ 879.481188] [ 879.481503] CPU0 [ 879.481650] ---- [ 879.481790] lock(slock-AF_INET/1); [ 879.482000] lock(slock-AF_INET/1); [ 879.482230] [ 879.482230] *** DEADLOCK *** [ 879.482230] [ 879.482552] May be due to missing lock nesting notation [ 879.482552] [ 879.482910] 8 locks held by ksoftirqd/2/27: [ 879.483136] #0: ffffffff82f678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 879.483615] #1: ffffffff82f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 879.484146] #2: ffff9f4743c200b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 879.484592] #3: ffffffff82f678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 879.485060] #4: ffffffff82f678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 879.485549] #5: ffffffff82f67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 879.486030] #6: ffffffff82f678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 879.486496] #7: ffffffff82f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 879.487003] [ 879.487003] stack backtrace: [ 879.487254] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc1-virtme #1 [ 879.487668] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 879.488277] Call Trace: [ 879.488417] [ 879.488547] dump_stack_lvl+0x4b/0x80 [ 879.488767] __lock_acquire+0x1215/0x1750 [ 879.489054] ? sk_filter_trim_cap+0x53/0x360 [ 879.489302] lock_acquire+0xc1/0x2b0 [ 879.489504] ? tcp_v4_rcv+0xdb5/0xef0 [ 879.489706] ? sk_filter_trim_cap+0x11a/0x360 [ 879.489945] _raw_spin_lock_nested+0x2e/0x40 [ 879.490179] ? tcp_v4_rcv+0xdb5/0xef0 [ 879.490384] tcp_v4_rcv+0xdb5/0xef0 [ 879.490583] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 879.490845] ip_local_deliver_finish+0xaf/0x180 [ 879.491193] __netif_receive_skb_one_core+0x8b/0xa0 [ 879.491471] netif_receive_skb+0x87/0x2c0 [ 879.491699] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 879.491993] tcf_mirred_act+0xee/0x560 [act_mirred] [ 879.492320] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 879.492610] tcf_action_exec+0xaf/0x230 [ 879.492829] fl_classify+0x20e/0x260 [cls_flower] [ 879.493093] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 879.493457] ? __pfx_usage_match+0x10/0x10 [ 879.493696] ? __bfs+0xf6/0x240 [ 879.493871] ? check_irq_usage+0x19c/0xc40 [ 879.494100] ? check_path.constprop.0+0x24/0x50 [ 879.494353] ? check_noncircular+0x81/0x150 [ 879.494586] ? __lock_acquire+0xa6e/0x1750 [ 879.494814] tcf_classify+0x17d/0x540 [ 879.495022] tc_run+0x9f/0x150 [ 879.495203] __dev_queue_xmit+0x311/0x1180 [ 879.495430] ? mark_held_locks+0x49/0x80 [ 879.495650] ip_finish_output2+0x39f/0xa20 [ 879.495879] ? __ip_queue_xmit+0x1d5/0x6f0 [ 879.496106] __ip_queue_xmit+0x1d5/0x6f0 [ 879.496327] __tcp_transmit_skb+0xb65/0xd30 [ 879.496561] tcp_write_xmit+0x492/0x1400 [ 879.496794] __tcp_push_pending_frames+0x36/0xc0 [ 879.497175] tcp_rcv_state_process+0x4d3/0x11f0 [ 879.497515] ? tcp_v4_rcv+0xdb5/0xef0 [ 879.497716] ? tcp_v4_do_rcv+0x64/0x360 [ 879.497944] tcp_v4_do_rcv+0x64/0x360 [ 879.498152] tcp_v4_rcv+0xe4f/0xef0 [ 879.498349] ? process_backlog+0x6f/0x260 [ 879.498569] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 879.498813] ip_local_deliver_finish+0xaf/0x180 [ 879.499057] __netif_receive_skb_one_core+0x8b/0xa0 [ 879.499320] process_backlog+0x7c/0x260 [ 879.499541] __napi_poll.constprop.0+0x2a/0x1e0 [ 879.499850] net_rx_action+0x2be/0x340 [ 879.500069] __do_softirq+0xcb/0x37a [ 879.500279] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 879.500549] run_ksoftirqd+0x2e/0x40 [ 879.500753] smpboot_thread_fn+0xdc/0x1d0 [ 879.500981] kthread+0xdd/0x110 [ 879.501183] ? __pfx_kthread+0x10/0x10 [ 879.501397] ret_from_fork+0x34/0x50 [ 879.501607] ? __pfx_kthread+0x10/0x10 [ 879.501843] ret_from_fork_asm+0x1b/0x30 [ 879.502067] [ 895.700621] ncat (3112) 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__->