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 ] [ 1033.886683] Mirror/redirect action on # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1038.532874] ping (5283) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1042.329790] [ 1042.329919] ============================================ [ 1042.330218] WARNING: possible recursive locking detected [ 1042.330528] 6.8.0-rc1-virtme #1 Not tainted [ 1042.330753] -------------------------------------------- [ 1042.331035] ksoftirqd/3/32 is trying to acquire lock: [ 1042.331315] ffff8f14460d8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1042.331759] [ 1042.331759] but task is already holding lock: [ 1042.332069] ffff8f14460d80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1042.332497] [ 1042.332497] other info that might help us debug this: [ 1042.332860] Possible unsafe locking scenario: [ 1042.332860] [ 1042.333177] CPU0 [ 1042.333325] ---- [ 1042.333465] lock(slock-AF_INET/1); [ 1042.333673] lock(slock-AF_INET/1); [ 1042.333905] [ 1042.333905] *** DEADLOCK *** [ 1042.333905] [ 1042.334216] May be due to missing lock nesting notation [ 1042.334216] [ 1042.334595] 8 locks held by ksoftirqd/3/32: [ 1042.334850] #0: ffffffff853678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1042.335316] #1: ffffffff853678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1042.335819] #2: ffff8f14460d80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1042.336274] #3: ffffffff853678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1042.336742] #4: ffffffff853678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1042.337199] #5: ffffffff85367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1042.337683] #6: ffffffff853678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1042.338162] #7: ffffffff853678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1042.338663] [ 1042.338663] stack backtrace: [ 1042.338924] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc1-virtme #1 [ 1042.339310] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1042.339917] Call Trace: [ 1042.340082] <TASK> [ 1042.340207] dump_stack_lvl+0x4b/0x80 [ 1042.340418] __lock_acquire+0x1215/0x1750 [ 1042.340657] ? sk_filter_trim_cap+0x53/0x360 [ 1042.340907] lock_acquire+0xc1/0x2b0 [ 1042.341132] ? tcp_v4_rcv+0xdb5/0xef0 [ 1042.341345] ? sk_filter_trim_cap+0x11a/0x360 [ 1042.341601] _raw_spin_lock_nested+0x2e/0x40 [ 1042.341849] ? tcp_v4_rcv+0xdb5/0xef0 [ 1042.342069] tcp_v4_rcv+0xdb5/0xef0 [ 1042.342276] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1042.342537] ip_local_deliver_finish+0xaf/0x180 [ 1042.342790] __netif_receive_skb_one_core+0x8b/0xa0 [ 1042.343057] netif_receive_skb+0x87/0x2c0 [ 1042.343300] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1042.343589] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1042.343871] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1042.344164] ? print_irq_inversion_bug.part.0+0x175/0x280 [ 1042.344474] tcf_action_exec+0xaf/0x230 [ 1042.344702] fl_classify+0x20e/0x260 [cls_flower] [ 1042.344974] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1042.345274] ? __pfx_usage_match+0x10/0x10 [ 1042.345516] ? __bfs+0xf6/0x240 [ 1042.345686] ? check_irq_usage+0x19c/0xc40 [ 1042.345922] ? check_path.constprop.0+0x24/0x50 [ 1042.346185] ? check_noncircular+0x81/0x150 [ 1042.346428] ? lock_release+0xbe/0x270 [ 1042.346651] ? __lock_acquire+0xa6e/0x1750 [ 1042.346880] tcf_classify+0x17d/0x540 [ 1042.347088] tc_run+0x9f/0x150 [ 1042.347281] __dev_queue_xmit+0x311/0x1180 [ 1042.347520] ? mark_held_locks+0x49/0x80 [ 1042.347753] ip_finish_output2+0x39f/0xa20 [ 1042.347972] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1042.348206] __ip_queue_xmit+0x1d5/0x6f0 [ 1042.348441] __tcp_transmit_skb+0xb65/0xd30 [ 1042.348683] tcp_write_xmit+0x492/0x1400 [ 1042.348922] __tcp_push_pending_frames+0x36/0xc0 [ 1042.349171] tcp_rcv_state_process+0x4d3/0x11f0 [ 1042.349430] ? tcp_v4_rcv+0xdb5/0xef0 [ 1042.349652] ? tcp_v4_do_rcv+0x64/0x360 [ 1042.349874] tcp_v4_do_rcv+0x64/0x360 [ 1042.350110] tcp_v4_rcv+0xe4f/0xef0 [ 1042.350313] ? process_backlog+0x6f/0x260 [ 1042.350550] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1042.350807] ip_local_deliver_finish+0xaf/0x180 [ 1042.351074] __netif_receive_skb_one_core+0x8b/0xa0 [ 1042.351352] process_backlog+0x7c/0x260 [ 1042.351577] __napi_poll.constprop.0+0x2a/0x1e0 [ 1042.351842] net_rx_action+0x2be/0x340 [ 1042.352066] __do_softirq+0xcb/0x37a [ 1042.352272] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1042.352529] run_ksoftirqd+0x2e/0x40 [ 1042.352750] smpboot_thread_fn+0xdc/0x1d0 [ 1042.352972] kthread+0xdd/0x110 [ 1042.353160] ? __pfx_kthread+0x10/0x10 [ 1042.353388] ret_from_fork+0x34/0x50 [ 1042.353597] ? __pfx_kthread+0x10/0x10 [ 1042.353821] ret_from_fork_asm+0x1b/0x30 [ 1042.354034] </TASK> [ 1059.663889] ncat (5428) 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__->