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 ] [ 652.741835] Mirror/redirect action on [ 652.744345] tc (950) used greatest stack depth: 11904 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 ] [ 655.440055] tc (1181) used greatest stack depth: 11592 bytes left [ 657.694921] ping (1289) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 661.764891] [ 661.765007] ============================================ [ 661.765292] WARNING: possible recursive locking detected [ 661.765580] 6.8.0-rc3-virtme #1 Not tainted [ 661.765813] -------------------------------------------- [ 661.766087] ksoftirqd/3/32 is trying to acquire lock: [ 661.766359] ffff976f837c0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 661.766777] [ 661.766777] but task is already holding lock: [ 661.767102] ffff976f837c00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 661.767542] [ 661.767542] other info that might help us debug this: [ 661.767888] Possible unsafe locking scenario: [ 661.767888] [ 661.768209] CPU0 [ 661.768379] ---- [ 661.768527] lock(slock-AF_INET/1); [ 661.768731] lock(slock-AF_INET/1); [ 661.768954] [ 661.768954] *** DEADLOCK *** [ 661.768954] [ 661.769289] May be due to missing lock nesting notation [ 661.769289] [ 661.769660] 8 locks held by ksoftirqd/3/32: [ 661.769903] #0: ffffffff9e3678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 661.770391] #1: ffffffff9e3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 661.770895] #2: ffff976f837c00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 661.771386] #3: ffffffff9e3678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 661.771850] #4: ffffffff9e3678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 661.772333] #5: ffffffff9e367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 661.772845] #6: ffffffff9e3678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 661.773326] #7: ffffffff9e3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 661.773833] [ 661.773833] stack backtrace: [ 661.774127] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc3-virtme #1 [ 661.774514] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 661.775172] Call Trace: [ 661.775329] [ 661.775459] dump_stack_lvl+0x4b/0x80 [ 661.775703] __lock_acquire+0x1215/0x1750 [ 661.775932] ? sk_filter_trim_cap+0x53/0x360 [ 661.776190] lock_acquire+0xc1/0x2b0 [ 661.776407] ? tcp_v4_rcv+0xdb5/0xef0 [ 661.776619] ? sk_filter_trim_cap+0x11a/0x360 [ 661.776866] _raw_spin_lock_nested+0x2e/0x40 [ 6 DETECTED CRASH, lowering timeout 61.777121] ? tcp_v4_rcv+0xdb5/0xef0 [ 661.777331] tcp_v4_rcv+0xdb5/0xef0 [ 661.777542] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 661.777796] ip_local_deliver_finish+0xaf/0x180 [ 661.778073] __netif_receive_skb_one_core+0x8b/0xa0 [ 661.778365] netif_receive_skb+0x87/0x2c0 [ 661.778594] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 661.778905] tcf_mirred_act+0xee/0x560 [act_mirred] [ 661.779166] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 661.779448] tcf_action_exec+0xac/0x230 [ 661.779695] fl_classify+0x20e/0x260 [cls_flower] [ 661.779964] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 661.780266] ? __bfs+0xf3/0x240 [ 661.780463] ? check_irq_usage+0x19c/0xc40 [ 661.780682] ? check_irq_usage+0x19c/0xc40 [ 661.780902] ? check_path.constprop.0+0x24/0x50 [ 661.781175] ? check_noncircular+0x81/0x150 [ 661.781409] ? __lock_acquire+0xa6e/0x1750 [ 661.781655] tcf_classify+0x17a/0x540 [ 661.781872] tc_run+0x9f/0x150 [ 661.782050] __dev_queue_xmit+0x311/0x1180 [ 661.782294] ? mark_held_locks+0x49/0x80 [ 661.782532] ip_finish_output2+0x39f/0xa20 [ 661.782772] ? __ip_queue_xmit+0x1d5/0x6f0 [ 661.783017] __ip_queue_xmit+0x1d5/0x6f0 [ 661.783235] __tcp_transmit_skb+0xb65/0xd30 [ 661.783479] ? mark_held_locks+0x49/0x80 [ 661.783706] tcp_write_xmit+0x492/0x1400 [ 661.783971] __tcp_push_pending_frames+0x36/0xc0 [ 661.784228] tcp_rcv_state_process+0x4d3/0x11f0 [ 661.784493] ? tcp_v4_rcv+0xdb5/0xef0 [ 661.784744] ? tcp_v4_do_rcv+0x64/0x360 [ 661.784982] tcp_v4_do_rcv+0x64/0x360 [ 661.785190] tcp_v4_rcv+0xe4f/0xef0 [ 661.785399] ? process_backlog+0x6f/0x260 [ 661.785638] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 661.785937] ip_local_deliver_finish+0xaf/0x180 [ 661.786183] __netif_receive_skb_one_core+0x8b/0xa0 [ 661.786467] process_backlog+0x7c/0x260 [ 661.786690] __napi_poll.constprop.0+0x27/0x1e0 [ 661.787000] net_rx_action+0x2be/0x340 [ 661.787235] __do_softirq+0xc8/0x37a [ 661.787439] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 661.787708] run_ksoftirqd+0x2e/0x40 [ 661.787957] smpboot_thread_fn+0xd9/0x1d0 [ 661.788188] kthread+0xda/0x110 [ 661.788375] ? __pfx_kthread+0x10/0x10 [ 661.788608] ret_from_fork+0x31/0x50 [ 661.788816] ? __pfx_kthread+0x10/0x10 [ 661.789033] ret_from_fork_asm+0x1b/0x30 [ 661.789278] [ 685.306003] ncat (1418) 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__->