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 [ 2.254039] ip (231) used greatest stack depth: 12056 bytes left [ 8.211994] GACT probability NOT on [ 8.214269] tc (315) used greatest stack depth: 11920 bytes left # TEST: gact drop and ok (skip_hw) [ OK ] [ 10.548011] Mirror/redirect action on [ 10.550034] tc (573) used greatest stack depth: 11904 bytes left # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 13.120382] tc (819) used greatest stack depth: 11720 bytes left [ 15.309033] ping (948) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 21.394916] [ 21.395065] ============================================ [ 21.395374] WARNING: possible recursive locking detected [ 21.395685] 6.8.0-rc2-virtme #1 Not tainted [ 21.395934] -------------------------------------------- [ 21.396213] ksoftirqd/3/32 is trying to acquire lock: [ 21.396503] ffff8b2f43dd8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 21.396952] [ 21.396952] but task is already holding lock: [ 21.397263] ffff8b2f43dd80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 21.397717] [ 21.397717] other info that might help us debug this: [ 21.398096] Possible unsafe locking scenario: [ 21.398096] [ 21.398407] CPU0 [ 21.398575] ---- [ 21.398717] lock(slock-AF_INET/1); [ 21.398910] lock(slock-AF_INET/1); [ 21.399116] [ 21.399116] *** DEADLOCK *** [ 21.399116] [ 21.399459] May be due to missing lock nesting notation [ 21.399459] [ 21.399817] 8 locks held by ksoftirqd/3/32: [ 21.400037] #0: ffffffffbb7678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 21.400482] #1: ffffffffbb7678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 21.400983] #2: ffff8b2f43dd80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 21.401427] #3: ffffffffbb7678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 21.401893] #4: ffffffffbb7678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 21.402351] #5: ffffffffbb767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 21.402842] #6: ffffffffbb7678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 21.403295] #7: ffffffffbb7678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 21.403799] [ 21.403799] stack backtrace: [ 21.404031] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 21.404447] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 21.405043] Call Trace: [ 21.405181] [ 21.405325] dump_stack_lvl+0x4b/0x80 [ 21.405550] __lock_acquire+0x1215/0x1750 [ 21.405799] ? sk_filter_trim_cap+0x53/0x360 [ 21.406035] lock_acquire+0xc1/0x2b0 [ 21.406231] ? tcp_v4_rcv+0xdb5/0xef0 [ 21.406454] ? sk_filter_trim_cap+0x11a/0x360 [ 21.406690] _raw_spin_lock_nested+0x2e/0x40 [ 21.406943] ? tcp_v4_rcv+0xdb5/0xef0 [ 21.407148] tcp_v4_rcv+0xdb5/0xef0 [ 21.407341] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 21.407616] ip_local_deliver_finish+0xaf/0x180 [ 21.407867] __netif_receive_skb_one_core+0x8b/0xa0 [ 21.408139] netif_receive_skb+0x87/0x2c0 [ 21.408392] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 21.408707] tcf_mirred_act+0xee/0x560 [act_mirred] [ 21.409012] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 21.409297] tcf_action_exec+0xac/0x230 [ 21.409530] fl_classify+0x20e/0x260 [cls_flower] [ 21.409807] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 21.410101] ? __bfs+0xf3/0x240 [ 21.410276] ? check_irq_usage+0x19c/0xc40 [ 21.410519] ? check_path.constprop.0+0x24/0x50 [ 21.410800] ? check_noncircular+0x81/0x150 [ 21.411025] ? __lock_acquire+0xa6e/0x1750 [ 21.411245] tcf_classify+0x17a/0x540 [ 21.411472] tc_run+0x9f/0x150 [ 21.411646] __dev_queue_xmit+0x311/0x1180 [ 21.411892] ? mark_held_locks+0x49/0x80 [ 21.412102] ip_finish_output2+0x39f/0xa20 [ 21.412344] ? __ip_queue_xmit+0x1d5/0x6f0 [ 21.412586] __ip_queue_xmit+0x1d5/0x6f0 [ 21.412835] __tcp_transmit_skb+0xb65/0xd30 [ 21.413065] tcp_write_xmit+0x492/0x1400 [ 21.413274] __tcp_push_pending_frames+0x36/0xc0 [ 21.413549] tcp_rcv_state_process+0x4d3/0x11f0 [ 21.413815] ? tcp_v4_rcv+0xdb5/0xef0 [ 21.414020] ? tcp_v4_do_rcv+0x64/0x360 [ 21.414226] tcp_v4_do_rcv+0x64/0x360 [ 21.414447] tcp_v4_rcv+0xe4f/0xef0 [ 21.414638] ? process_backlog+0x6f/0x260 [ 21.414873] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 21.415116] ip_local_deliver_finish+0xaf/0x180 [ 21.415381] __netif_receive_skb_one_core+0x8b/0xa0 [ 21.415665] process_backlog+0x7c/0x260 [ 21.415871] __napi_poll.constprop.0+0x27/0x1e0 [ 21.416139] net_rx_action+0x2be/0x340 [ 21.416341] __do_softirq+0xc8/0x37a [ 21.416555] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 21.416838] run_ksoftirqd+0x2e/0x40 [ 21.417034] smpboot_thread_fn+0xd9/0x1d0 [ 21.417290] kthread+0xda/0x110 [ 21.417498] ? __pfx_kthread+0x10/0x10 [ 21.417700] ret_from_fork+0x31/0x50 [ 21.417917] ? __pfx_kthread+0x10/0x10 [ 21.418118] ret_from_fork_asm+0x1b/0x30 [ 21.418368] [ 41.242319] ncat (1087) 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__->