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 ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 874.035705] tc (3113) used greatest stack depth: 10920 bytes left # [ 876.266171] [ 876.266296] ============================================ [ 876.266607] WARNING: possible recursive locking detected [ 876.266892] 6.8.0-rc1-virtme #1 Not tainted [ 876.267134] -------------------------------------------- [ 876.267415] ksoftirqd/2/27 is trying to acquire lock: [ 876.267689] ffff994245b50cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 876.268175] [ 876.268175] but task is already holding lock: [ 876.268484] ffff994245b500b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 876.268919] [ 876.268919] other info that might help us debug this: [ 876.269263] Possible unsafe locking scenario: [ 876.269263] [ 876.269580] CPU0 [ 876.269721] ---- [ 876.269862] lock(slock-AF_INET/1); [ 876.270064] lock(slock-AF_INET/1); [ 876.270264] [ 876.270264] *** DEADLOCK *** [ 876.270264] [ 876.270596] May be due to missing lock nesting notation [ 876.270596] [ 876.271004] 8 locks held by ksoftirqd/2/27: [ 876.271257] #0: ffffffffbb9678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 876.271718] #1: ffffffffbb9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 876.272224] #2: ffff994245b500b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 876.272679] #3: ffffffffbb9678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 876.273197] #4: ffffffffbb9678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 876.273672] #5: ffffffffbb967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 876.274173] #6: ffffffffbb9678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 876.274644] #7: ffffffffbb9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 876.275137] [ 876.275137] stack backtrace: [ 876.275387] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc1-virtme #1 [ 876.275778] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 876.276411] Call Trace: [ 876.276545] [ 876.276680] dump_stack_lvl+0x4b/0x80 [ 876.276890] __lock_acquire+0x1215/0x1750 [ 876.277126] ? sk_filter_trim_cap+0x53/0x360 [ 876.277369] lock_acquire+0xc1/0x2b0 [ 876.277570] ? tcp_v4_rcv+0xdb5/0xef0 [ 876.277794] ? sk_filter_trim_cap+0x11a/0x360 [ 876.278052] _raw_spin_lock_nested+0x2e/0x40 [ 876.278304] ? tcp_v4_rcv+0xdb5/0xef0 [ 876.278515] tcp_v4_rcv+0xdb5/0xef0 [ 876.278711] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 876.278962] ip_local_deliver_finish+0xaf/0x180 [ 876.279233] __netif_receive_skb_one_core+0x8b/0xa0 [ 876.279514] netif_receive_skb+0x87/0x2c0 [ 876.279737] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 876.280034] tcf_mirred_act+0xee/0x560 [act_mirred] [ 876.280310] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 876.280614] tcf_action_exec+0xaf/0x230 [ 876.280848] fl_classify+0x20e/0x260 [cls_flower] [ 876.281118] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 876.281396] ? __pfx_usage_match+0x10/0x10 [ 876.281641] ? __bfs+0xf6/0x240 [ 876.281835] ? check_irq_usage+0x19c/0xc40 [ 876.282085] ? __lock_acquire+0xa6e/0x1750 [ 876.282308] ? check_path.constprop.0+0x24/0x50 [ 876.282571] ? check_noncircular+0x81/0x150 [ 876.282806] ? lock_release+0xbe/0x270 [ 876.283045] ? __lock_acquire+0xa6e/0x1750 [ 876.283297] tcf_classify+0x17d/0x540 [ 876.283505] tc_run+0x9f/0x150 [ 876.283695] __dev_queue_xmit+0x311/0x1180 [ 876.283942] ? mark_held_locks+0x49/0x80 [ 876.284179] ip_finish_output2+0x39f/0xa20 [ 876.284402] ? __ip_queue_xmit+0x1d5/0x6f0 [ 876.284636] __ip_queue_xmit+0x1d5/0x6f0 [ 876.284851] __tcp_transmit_skb+0xb65/0xd30 [ 876.285085] tcp_write_xmit+0x492/0x1400 [ 876.285335] __tcp_push_pending_frames+0x36/0xc0 [ 876.285602] tcp_rcv_state_process+0x4d3/0x11f0 [ 876.285859] ? tcp_v4_rcv+0xdb5/0xef0 [ 876.286082] ? tcp_v4_do_rcv+0x64/0x360 [ 876.286297] tcp_v4_do_rcv+0x64/0x360 [ 876.286509] tcp_v4_rcv+0xe4f/0xef0 [ 876.286709] ? process_backlog+0x6f/0x260 [ 876.286948] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 876.287209] ip_local_deliver_finish+0xaf/0x180 [ 876.287462] __netif_receive_skb_one_core+0x8b/0xa0 [ 876.287747] process_backlog+0x7c/0x260 [ 876.287977] __napi_poll.constprop.0+0x2a/0x1e0 [ 876.288265] net_rx_action+0x2be/0x340 [ 876.288489] __do_softirq+0xcb/0x37a [ 876.288684] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 876.288943] run_ksoftirqd+0x2e/0x40 [ 876.289138] smpboot_thread_fn+0xdc/0x1d0 [ 876.289385] kthread+0xdd/0x110 [ 876.289582] ? __pfx_kthread+0x10/0x10 [ 876.289799] ret_from_fork+0x34/0x50 [ 876.290000] ? __pfx_kthread+0x10/0x10 [ 876.290227] ret_from_fork_asm+0x1b/0x30 [ 876.290459] [ 905.433463] ncat (3115) 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__->