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 ] [ 1045.610526] ping (4246) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1065.498495] ncat (4395) used greatest stack depth: 10672 bytes left [ 1087.535864] [ 1087.535966] ============================================ [ 1087.536263] WARNING: possible recursive locking detected [ 1087.536547] 6.8.0-rc1-virtme #1 Not tainted [ 1087.536776] -------------------------------------------- [ 1087.537062] ksoftirqd/0/16 is trying to acquire lock: [ 1087.537332] ffff92c3039900b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1087.537756] [ 1087.537756] but task is already holding lock: [ 1087.538072] ffff92c303990cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1087.538490] [ 1087.538490] other info that might help us debug this: [ 1087.538914] Possible unsafe locking scenario: [ 1087.538914] [ 1087.539331] CPU0 [ 1087.539524] ---- [ 1087.539720] lock(slock-AF_INET/1); [ 1087.539999] lock(slock-AF_INET/1); [ 1087.540290] [ 1087.540290] *** DEADLOCK *** [ 1087.540290] [ 1087.540749] May be due to missing lock nesting notation [ 1087.540749] [ 1087.541276] 8 locks held by ksoftirqd/0/16: [ 1087.541611] #0: ffffffffa3d678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1087.542287] #1: ffffffffa3d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1087.543022] #2: ffff92c303990cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1087.543672] #3: ffffffffa3d678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1087.544340] #4: ffffffffa3d678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1087.545023] #5: ffffffffa3d67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1087.545722] #6: ffffffffa3d678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1087.546400] #7: ffffffffa3d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1087.547112] [ 1087.547112] stack backtrace: [ 1087.547468] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc1-virtme #1 [ 1087.548015] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1087.548907] Call Trace: [ 1087.549118] <TASK> [ 1087.549301] dump_stack_lvl+0x4b/0x80 [ 1087.549601] __lock_acquire+0x1215/0x1750 [ 1087.549924] ? sk_filter_trim_cap+0x53/0x360 [ 1087.550254] lock_acquire+0xc1/0x2b0 [ 1087.550528] ? tcp_v4_rcv+0xdb5/0xef0 [ 1087.550808] ? sk_filter_trim_cap+0x11a/0x360 [ 1087.551149] _raw_spin_lock_nested+0x2e/0x40 [ 1087.551487] ? tcp_v4_rcv+0xdb5/0xef0 [ 1087.551779] tcp_v4_rcv+0xdb5/0xef0 [ 1087.552060] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1087.552414] ip_local_deliver_finish+0xaf/0x180 [ 1087.552771] __netif_receive_skb_one_core+0x8b/0xa0 [ 1087.553163] netif_receive_skb+0x87/0x2c0 [ 1087.553476] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1087.553883] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1087.554264] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1087.554682] tcf_action_exec+0xaf/0x230 [ 1087.554992] fl_classify+0x20e/0x260 [cls_flower] [ 1087.555378] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1087.555767] ? __pfx_usage_match+0x10/0x10 [ 1087.556084] ? __bfs+0xf6/0x240 [ 1087.556337] ? check_irq_usage+0x19c/0xc40 [ 1087.556665] ? check_path.constprop.0+0x24/0x50 [ 1087.557028] ? find_held_lock+0x2b/0x80 [ 1087.557334] ? check_noncircular+0x81/0x150 [ 1087.557667] ? __lock_acquire+0xa6e/0x1750 [ 1087.557996] tcf_classify+0x17d/0x540 [ 1087.558293] tc_run+0x9f/0x150 [ 1087.558544] __dev_queue_xmit+0x311/0x1180 [ 1087.558872] ? mark_held_locks+0x49/0x80 [ 1087.559190] ip_finish_output2+0x39f/0xa20 [ 1087.559518] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1087.559848] __ip_queue_xmit+0x1d5/0x6f0 [ 1087.560163] __tcp_transmit_skb+0xb65/0xd30 [ 1087.560499] ? __alloc_skb+0xdc/0x1a0 [ 1087.560796] tcp_fin+0x116/0x380 [ 1087.561063] tcp_data_queue+0x9d0/0xf60 [ 1087.561371] tcp_rcv_state_process+0x489/0x11f0 [ 1087.561731] ? tcp_v4_rcv+0xdb5/0xef0 [ 1087.562025] ? tcp_v4_do_rcv+0x64/0x360 [ 1087.562327] tcp_v4_do_rcv+0x64/0x360 [ 1087.562622] tcp_v4_rcv+0xe4f/0xef0 [ 1087.562912] ? process_backlog+0x6f/0x260 [ 1087.563231] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1087.563592] ip_local_deliver_finish+0xaf/0x180 [ 1087.563958] __netif_receive_skb_one_core+0x8b/0xa0 [ 1087.564338] process_backlog+0x7c/0x260 [ 1087.564657] __napi_poll.constprop.0+0x2a/0x1e0 [ 1087.564966] net_rx_action+0x2be/0x340 [ 1087.565214] __do_softirq+0xcb/0x37a [ 1087.565450] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1087.565752] run_ksoftirqd+0x2e/0x40 [ 1087.565987] smpboot_thread_fn+0xdc/0x1d0 [ 1087.566254] kthread+0xdd/0x110 [ 1087.566468] ? __pfx_kthread+0x10/0x10 [ 1087.566713] ret_from_fork+0x34/0x50 [ 1087.566949] ? __pfx_kthread+0x10/0x10 [ 1087.567214] ret_from_fork_asm+0x1b/0x30 [ 1087.567523] </TASK> 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__->