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 ] [ 1123.051522] 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 ] [ 1125.646921] tc (19102) used greatest stack depth: 11552 bytes left [ 1127.859566] ping (19235) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 1129.119809] tc (19363) used greatest stack depth: 11432 bytes left # [ 1133.663745] [ 1133.663884] ============================================ [ 1133.664191] WARNING: possible recursive locking detected [ 1133.664503] 6.8.0-rc2-virtme #1 Not tainted [ 1133.664751] -------------------------------------------- [ 1133.665054] ksoftirqd/2/27 is trying to acquire lock: [ 1133.665332] ffff9bd405a60cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1133.665769] [ 1133.665769] but task is already holding lock: [ 1133.666110] ffff9bd405a600b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1133.666549] [ 1133.666549] other info that might help us debug this: [ 1133.666917] Possible unsafe locking scenario: [ 1133.666917] [ 1133.667242] CPU0 [ 1133.667385] ---- [ 1133.667528] lock(slock-AF_INET/1); [ 1133.667743] lock(slock-AF_INET/1); [ 1133.667931] [ 1133.667931] *** DEADLOCK *** [ 1133.667931] [ 1133.668244] May be due to missing lock nesting notation [ 1133.668244] [ 1133.668592] 8 locks held by ksoftirqd/2/27: [ 1133.668832] #0: ffffffff961678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1133.669276] #1: ffffffff961678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1133.669786] #2: ffff9bd405a600b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1133.670246] #3: ffffffff961678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1133.670696] #4: ffffffff961678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1133.671148] #5: ffffffff96167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1133.671611] #6: ffffffff961678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1133.672100] #7: ffffffff961678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1133.672589] [ 1133.672589] stack backtrace: [ 1133.672833] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 1133.673235] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1133.673837] Call Trace: [ 1133.673982] [ 1133.674104] dump_stack_lvl+0x4b/0x80 [ 1133.674326] __lock_acquire+0x1215/0x1750 [ 1133.674546] ? sk_filter_trim_cap+0x53/0x360 [ 1133.674775] lock_acquire+0xc1/0x2b0 [ 1133.675007] ? tcp_v4_rcv+0xdb5/0xef0 [ 1133.675234] ? sk_filter_trim_cap+0x11a/0x360 [ 1133.675488] _raw_spin_lock_nested+0x2e/0x40 [ 1133.675725] ? tcp_v4_rcv+0xdb5/0xef0 [ 1133.675924] tcp_v4_rcv+0xdb5/0xef0 [ 1133.676136] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1133.676383] ip_local_deliver_finish+0xaf/0x180 [ 1133.676620] __netif_receive_skb_one_core+0x8b/0xa0 [ 1133.676911] netif_receive_skb+0x87/0x2c0 [ 1133.677153] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1133.677450] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1133.677719] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1133.678004] tcf_action_exec+0xac/0x230 [ 1133.678210] fl_classify+0x20e/0x260 [cls_flower] [ 1133.678463] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1133.678802] ? __bfs+0xf3/0x240 [ 1133.678984] ? check_irq_usage+0x19c/0xc40 [ 1133.679211] ? check_path.constprop.0+0x24/0x50 [ 1133.679452] ? check_noncircular+0x81/0x150 [ 1133.679705] ? __lock_acquire+0xa6e/0x1750 [ 1133.679949] tcf_classify+0x17a/0x540 [ 1133.680157] tc_run+0x9f/0x150 [ 1133.680333] __dev_queue_xmit+0x311/0x1180 [ 1133.680552] ? mark_held_locks+0x49/0x80 [ 1133.680786] ip_finish_output2+0x39f/0xa20 [ 1133.681019] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1133.681267] __ip_queue_xmit+0x1d5/0x6f0 [ 1133.681509] __tcp_transmit_skb+0xb65/0xd30 [ 1133.681761] ? mark_held_locks+0x49/0x80 [ 1133.681983] tcp_write_xmit+0x492/0x1400 [ 1133.682202] __tcp_push_pending_frames+0x36/0xc0 [ 1133.682448] tcp_rcv_state_process+0x4d3/0x11f0 [ 1133.682716] ? tcp_v4_rcv+0xdb5/0xef0 [ 1133.682925] ? tcp_v4_do_rcv+0x64/0x360 [ 1133.683130] tcp_v4_do_rcv+0x64/0x360 [ 1133.683346] tcp_v4_rcv+0xe4f/0xef0 [ 1133.683550] ? process_backlog+0x6f/0x260 [ 1133.683785] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1133.684020] ip_local_deliver_finish+0xaf/0x180 [ 1133.684269] __netif_receive_skb_one_core+0x8b/0xa0 [ 1133.684529] process_backlog+0x7c/0x260 [ 1133.684781] __napi_poll.constprop.0+0x27/0x1e0 [ 1133.685041] net_rx_action+0x2be/0x340 [ 1133.685250] __do_softirq+0xc8/0x37a [ 1133.685453] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1133.685754] run_ksoftirqd+0x2e/0x40 [ 1133.685979] smpboot_thread_fn+0xd9/0x1d0 [ 1133.686205] kthread+0xda/0x110 [ 1133.686385] ? __pfx_kthread+0x10/0x10 [ 1133.686588] ret_from_fork+0x31/0x50 [ 1133.686810] ? __pfx_kthread+0x10/0x10 [ 1133.687008] ret_from_fork_asm+0x1b/0x30 [ 1133.687229] [ 1154.036912] ncat (19369) 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__->