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 ] [ 1168.206645] 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 ] [ 1173.054129] ping (9482) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1177.256811] [ 1177.256933] ============================================ [ 1177.257326] WARNING: possible recursive locking detected [ 1177.257716] 6.8.0-rc4-virtme #1 Not tainted [ 1177.257939] -------------------------------------------- [ 1177.258245] ksoftirqd/3/32 is trying to acquire lock: [ 1177.258512] ffff8d5846068dd8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1177.258952] [ 1177.258952] but task is already holding lock: [ 1177.259264] ffff8d58460681d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1177.259708] [ 1177.259708] other info that might help us debug this: [ 1177.260062] Possible unsafe locking scenario: [ 1177.260062] [ 1177.260377] CPU0 [ 1177.260539] ---- [ 1177.260676] lock(slock-AF_INET/1); [ 1177.260906] lock(slock-AF_INET/1); [ 1177.261119] [ 1177.261119] *** DEADLOCK *** [ 1177.261119] [ 1177.261476] May be due to missing lock nesting notation [ 1177.261476] [ 1177.261840] 8 locks held by ksoftirqd/3/32: [ 1177.262087] #0: ffffffffadf678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x76/0x260 [ 1177.262570] #1: ffffffffadf678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1177.263045] #2: ffff8d58460681d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1177.263484] #3: ffffffffadf678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1177.263992] #4: ffffffffadf678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1177.264493] #5: ffffffffadf67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1177.264975] #6: ffffffffadf678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1177.265468] #7: ffffffffadf678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1177.265993] [ 1177.265993] stack backtrace: [ 1177.266293] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc4-virtme #1 [ 1177.266695] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1177.267317] Call Trace: [ 1177.267452] [ 1177.267609] dump_stack_lvl+0x4b/0x80 [ 1177.267823] __lock_acquire+0x1215/0x1750 [ 1177.268057] ? sk_filter_trim_cap+0x53/0x360 [ 1177.268336] lock_acquire+0xc1/0x2b0 [ 1177.268530] ? tcp_v4_rcv+0xdb5/0xef0 [ 1177.268769] ? sk_filter_trim_cap+0x11a/0x360 [ 1177.26 DETECTED CRASH, lowering timeout 9022] _raw_spin_lock_nested+0x2e/0x40 [ 1177.269286] ? tcp_v4_rcv+0xdb5/0xef0 [ 1177.269515] tcp_v4_rcv+0xdb5/0xef0 [ 1177.269738] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1177.269996] ip_local_deliver_finish+0xaf/0x180 [ 1177.270324] __netif_receive_skb_one_core+0x8b/0xa0 [ 1177.270610] netif_receive_skb+0x87/0x2c0 [ 1177.270844] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1177.271172] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1177.271473] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1177.271783] tcf_action_exec+0xac/0x230 [ 1177.272004] fl_classify+0x20e/0x260 [cls_flower] [ 1177.272301] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1177.272589] ? __bfs+0xf3/0x240 [ 1177.272782] ? check_irq_usage+0x19c/0xc40 [ 1177.273004] ? check_path.constprop.0+0x24/0x50 [ 1177.273280] ? check_noncircular+0x81/0x150 [ 1177.273518] ? lock_release+0xbe/0x270 [ 1177.273723] ? __lock_acquire+0xa6e/0x1750 [ 1177.273942] tcf_classify+0x17a/0x540 [ 1177.274205] tc_run+0x9f/0x150 [ 1177.274405] __dev_queue_xmit+0x311/0x1180 [ 1177.274651] ? mark_held_locks+0x49/0x80 [ 1177.274859] ip_finish_output2+0x39f/0xa20 [ 1177.275105] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1177.275326] __ip_queue_xmit+0x1d5/0x6f0 [ 1177.275534] __tcp_transmit_skb+0xb66/0xd30 [ 1177.275787] tcp_write_xmit+0x492/0x1410 [ 1177.275995] __tcp_push_pending_frames+0x36/0xc0 [ 1177.276273] tcp_rcv_state_process+0x4c9/0x11f0 [ 1177.276514] ? tcp_v4_rcv+0xdb5/0xef0 [ 1177.276712] ? tcp_v4_do_rcv+0x64/0x360 [ 1177.276918] tcp_v4_do_rcv+0x64/0x360 [ 1177.277146] tcp_v4_rcv+0xe4f/0xef0 [ 1177.277337] ? process_backlog+0x76/0x260 [ 1177.277582] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1177.277841] ip_local_deliver_finish+0xaf/0x180 [ 1177.278112] __netif_receive_skb_one_core+0x8b/0xa0 [ 1177.278418] process_backlog+0x83/0x260 [ 1177.278623] __napi_poll.constprop.0+0x27/0x1e0 [ 1177.278910] net_rx_action+0x2c8/0x350 [ 1177.279136] __do_softirq+0xc8/0x37a [ 1177.279353] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1177.279616] run_ksoftirqd+0x2e/0x40 [ 1177.279855] smpboot_thread_fn+0xd9/0x1d0 [ 1177.280080] kthread+0xda/0x110 [ 1177.280275] ? __pfx_kthread+0x10/0x10 [ 1177.280497] ret_from_fork+0x31/0x50 [ 1177.280708] ? __pfx_kthread+0x10/0x10 [ 1177.280931] ret_from_fork_asm+0x1b/0x30 [ 1177.281171] [ 1206.179795] ncat (9606) 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__->