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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 881.405396] ping (2903) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 886.066886] [ 886.067029] ============================================ [ 886.067346] WARNING: possible recursive locking detected [ 886.067650] 6.8.0-rc3-virtme #1 Not tainted [ 886.067887] -------------------------------------------- [ 886.068188] ksoftirqd/0/16 is trying to acquire lock: [ 886.068461] ffff91bb83f80cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 886.068899] [ 886.068899] but task is already holding lock: [ 886.069218] ffff91bb83f800b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 886.069631] [ 886.069631] other info that might help us debug this: [ 886.069996] Possible unsafe locking scenario: [ 886.069996] [ 886.070309] CPU0 [ 886.070441] ---- [ 886.070573] lock(slock-AF_INET/1); [ 886.070769] lock(slock-AF_INET/1); [ 886.071019] [ 886.071019] *** DEADLOCK *** [ 886.071019] [ 886.071343] May be due to missing lock nesting notation [ 886.071343] [ 886.071707] 8 locks held by ksoftirqd/0/16: [ 886.071941] #0: ffffffff8e9678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 886.072392] #1: ffffffff8e9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 886.072867] #2: ffff91bb83f800b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 886.073304] #3: ffffffff8e9678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 886.073747] #4: ffffffff8e9678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 886.074240] #5: ffffffff8e967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 886.074711] #6: ffffffff8e9678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 886.075204] #7: ffffffff8e9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 886.075673] [ 886.075673] stack backtrace: [ 886.075924] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc3-virtme #1 [ 886.076299] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 886.076921] Call Trace: [ 886.077066] [ 886.077212] dump_stack_lvl+0x4b/0x80 [ 886.077445] __lock_acquire+0x1215/0x1750 [ 886.077665] ? sk_filter_trim_cap+0x53/0x360 [ 886.077919] lock_acquire+0xc1/0x2b0 [ 886.078145] ? tcp_v4_rcv+0xdb5/0xef0 [ 886.078367] ? sk_filter_trim_cap+0x11a/0x360 [ 886.078603] _raw_spin_lock_nested+0x2e/0x40 [ 886.078863] ? tcp_v4_rcv+0xdb5/0xef0 [ 886.079098] tcp_v4_rcv+0xdb5/0xef0 [ 886.079297] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 886.079554] ip_local_deliver_finish+0xaf/0x180 [ 886.079826] __netif_receive_skb_one_core+0x8b/0xa0 [ 886.080112] netif_receive_skb+0x87/0x2c0 [ 886.080343] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 886.080623] tcf_mirred_act+0xee/0x560 [act_mirred] [ 886.080905] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 886.081217] tcf_action_exec+0xac/0x230 [ 886.081445] fl_classify+0x20e/0x260 [cls_flower] [ 886.081699] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ DETECTED CRASH, lowering timeout 886.082001] ? __bfs+0xf3/0x240 [ 886.082197] ? check_irq_usage+0x19c/0xc40 [ 886.082411] ? __lock_acquire+0xa6e/0x1750 [ 886.082631] ? check_path.constprop.0+0x24/0x50 [ 886.082875] ? check_noncircular+0x81/0x150 [ 886.083146] ? __lock_acquire+0xa6e/0x1750 [ 886.083370] tcf_classify+0x17a/0x540 [ 886.083566] tc_run+0x9f/0x150 [ 886.083789] __dev_queue_xmit+0x311/0x1180 [ 886.084041] ? mark_held_locks+0x49/0x80 [ 886.084259] ip_finish_output2+0x39f/0xa20 [ 886.084479] ? __ip_queue_xmit+0x1d5/0x6f0 [ 886.084718] __ip_queue_xmit+0x1d5/0x6f0 [ 886.084967] __tcp_transmit_skb+0xb65/0xd30 [ 886.085219] tcp_write_xmit+0x492/0x1400 [ 886.085432] __tcp_push_pending_frames+0x36/0xc0 [ 886.085727] tcp_rcv_state_process+0x4d3/0x11f0 [ 886.086007] ? tcp_v4_rcv+0xdb5/0xef0 [ 886.086221] ? tcp_v4_do_rcv+0x64/0x360 [ 886.086426] tcp_v4_do_rcv+0x64/0x360 [ 886.086644] tcp_v4_rcv+0xe4f/0xef0 [ 886.086850] ? process_backlog+0x6f/0x260 [ 886.087087] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 886.087336] ip_local_deliver_finish+0xaf/0x180 [ 886.087611] __netif_receive_skb_one_core+0x8b/0xa0 [ 886.087871] process_backlog+0x7c/0x260 [ 886.088105] __napi_poll.constprop.0+0x27/0x1e0 [ 886.088364] net_rx_action+0x2be/0x340 [ 886.088589] __do_softirq+0xc8/0x37a [ 886.088814] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 886.089098] run_ksoftirqd+0x2e/0x40 [ 886.089292] smpboot_thread_fn+0xd9/0x1d0 [ 886.089558] kthread+0xda/0x110 [ 886.089731] ? __pfx_kthread+0x10/0x10 [ 886.089936] ret_from_fork+0x31/0x50 [ 886.090145] ? __pfx_kthread+0x10/0x10 [ 886.090349] ret_from_fork_asm+0x1b/0x30 [ 886.090564] [ 900.121839] ncat (3030) 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__->