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 [ 1128.724481] veth1: left promiscuous mode # TEST: gact drop and ok (skip_hw) [ OK ] [ 1136.312280] Mirror/redirect action on [ 1136.314575] tc (18070) used greatest stack depth: 11792 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 ] [ 1138.912981] tc (18326) used greatest stack depth: 11736 bytes left [ 1141.153993] ping (18449) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1146.800020] [ 1146.800145] ============================================ [ 1146.800450] WARNING: possible recursive locking detected [ 1146.800731] 6.8.0-rc2-virtme #1 Not tainted [ 1146.800956] -------------------------------------------- [ 1146.801232] ksoftirqd/3/32 is trying to acquire lock: [ 1146.801537] ffff9287c4ea0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1146.801985] [ 1146.801985] but task is already holding lock: [ 1146.802287] ffff9287c4ea00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1146.802724] [ 1146.802724] other info that might help us debug this: [ 1146.803065] Possible unsafe locking scenario: [ 1146.803065] [ 1146.803372] CPU0 [ 1146.803540] ---- [ 1146.803673] lock(slock-AF_INET/1); [ 1146.803895] lock(slock-AF_INET/1); [ 1146.804110] [ 1146.804110] *** DEADLOCK *** [ 1146.804110] [ 1146.804425] May be due to missing lock nesting notation [ 1146.804425] [ 1146.804800] 8 locks held by ksoftirqd/3/32: [ 1146.805025] #0: ffffffff8e3678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1146.805469] #1: ffffffff8e3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1146.805985] #2: ffff9287c4ea00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1146.806417] #3: ffffffff8e3678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1146.806900] #4: ffffffff8e3678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1146.807374] #5: ffffffff8e367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1146.807838] #6: ffffffff8e3678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1146.808317] #7: ffffffff8e3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1146.808794] [ 1146.808794] stack backtrace: [ 1146.809073] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1146.809470] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1146.810060] Call Trace: [ 1146.810197] [ 1146.810343] dump_stack_lvl+0x4b/0x80 [ 1146.810544] __lock_acquire+0x1215/0x1750 [ 1146.810785] ? sk_filter_trim_cap+0x53/0x360 [ 1146.811016] lock_acquire+0xc1/0x2b0 [ 1146.811209] ? tcp_v4_rcv+0xdb5/0xef0 [ 1146.811432] ? sk_filter_trim_cap+0x11a/0x360 [ 1146.811674] _raw_spin_lock_nested+0x2e/0x40 [ 1146.811903] ? tcp_v4_rcv+0xdb5/0xef0 [ 1146.812125] tcp_v4_rcv+0xdb5/0xef0 [ 1146.812318] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1146.812580] ip_local_deliver_finish+0xaf/0x180 [ 1146.812824] __netif_receive_skb_one_core+0x8b/0xa0 [ 1146.813109] netif_receive_skb+0x87/0x2c0 [ 1146.813324] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1146.813622] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1146.813908] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1146.814210] ? print_shortest_lock_dependencies_backwards+0x9c/0xd0 [ 1146.814539] tcf_action_exec+0xac/0x230 [ 1146.814770] fl_classify+0x20e/0x260 [cls_flower] [ 1146.815044] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1146.815319] ? __bfs+0xf3/0x240 [ 1146.815520] ? check_irq_usage+0x19c/0xc40 [ 1146.815767] ? check_path.constprop.0+0x24/0x50 [ 1146.816026] ? check_noncircular+0x81/0x150 [ 1146.816251] ? lock_release+0xbe/0x270 [ 1146.816478] ? __lock_acquire+0xa6e/0x1750 [ 1146.816723] tcf_classify+0x17a/0x540 [ 1146.816946] tc_run+0x9f/0x150 [ 1146.817143] __dev_queue_xmit+0x311/0x1180 [ 1146.817380] ? mark_held_locks+0x49/0x80 [ 1146.817611] ip_finish_output2+0x39f/0xa20 [ 1146.817833] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1146.818073] __ip_queue_xmit+0x1d5/0x6f0 [ 1146.818282] __tcp_transmit_skb+0xb65/0xd30 [ 1146.818532] tcp_write_xmit+0x492/0x1400 [ 1146.818759] __tcp_push_pending_frames+0x36/0xc0 [ 1146.819008] tcp_rcv_state_process+0x4d3/0x11f0 [ 1146.819248] ? tcp_v4_rcv+0xdb5/0xef0 [ 1146.819465] ? tcp_v4_do_rcv+0x64/0x360 [ 1146.819695] tcp_v4_do_rcv+0x64/0x360 [ 1146.819897] tcp_v4_rcv+0xe4f/0xef0 [ 1146.820105] ? process_backlog+0x6f/0x260 [ 1146.820319] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1146.820580] ip_local_deliver_finish+0xaf/0x180 [ 1146.820823] __netif_receive_skb_one_core+0x8b/0xa0 [ 1146.821109] process_backlog+0x7c/0x260 [ 1146.821318] __napi_poll.constprop.0+0x27/0x1e0 [ 1146.821585] net_rx_action+0x2be/0x340 [ 1146.821791] __do_softirq+0xc8/0x37a [ 1146.822010] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1146.822278] run_ksoftirqd+0x2e/0x40 [ 1146.822475] smpboot_thread_fn+0xd9/0x1d0 [ 1146.822714] kthread+0xda/0x110 [ 1146.822902] ? __pfx_kthread+0x10/0x10 [ 1146.823111] ret_from_fork+0x31/0x50 [ 1146.823306] ? __pfx_kthread+0x10/0x10 [ 1146.823527] ret_from_fork_asm+0x1b/0x30 [ 1146.823742] [ 1168.881732] ncat (18583) 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__->