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 ] [ 1140.675518] 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 ] [ 1145.479231] ping (5488) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1151.519790] [ 1151.519890] ============================================ [ 1151.520170] WARNING: possible recursive locking detected [ 1151.520470] 6.8.0-rc2-virtme #1 Not tainted [ 1151.520702] -------------------------------------------- [ 1151.520980] ksoftirqd/2/27 is trying to acquire lock: [ 1151.521249] ffff91a0c58c8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1151.521678] [ 1151.521678] but task is already holding lock: [ 1151.521989] ffff91a0c58c80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1151.522403] [ 1151.522403] other info that might help us debug this: [ 1151.522746] Possible unsafe locking scenario: [ 1151.522746] [ 1151.523050] CPU0 [ 1151.523190] ---- [ 1151.523323] lock(slock-AF_INET/1); [ 1151.523514] lock(slock-AF_INET/1); [ 1151.523710] [ 1151.523710] *** DEADLOCK *** [ 1151.523710] [ 1151.524013] May be due to missing lock nesting notation [ 1151.524013] [ 1151.524390] 8 locks held by ksoftirqd/2/27: [ 1151.524615] #0: ffffffff95d678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1151.525068] #1: ffffffff95d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.525547] #2: ffff91a0c58c80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1151.525984] #3: ffffffff95d678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1151.526433] #4: ffffffff95d678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1151.526882] #5: ffffffff95d67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1151.527351] #6: ffffffff95d678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1151.527811] #7: ffffffff95d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.528294] [ 1151.528294] stack backtrace: [ 1151.528553] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 1151.528920] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1151.529518] Call Trace: [ 1151.529666] [ 1151.529785] dump_stack_lvl+0x4b/0x80 [ 1151.529986] __lock_acquire+0x1215/0x1750 [ 1151.530206] ? sk_filter_trim_cap+0x53/0x360 [ 1151.530437] lock_acquire+0xc1/0x2b0 [ 1151.530633] ? tcp_v4_rcv+0xdba/0xf00 [ 1151.530835] ? sk_filter_trim_cap+0x11a/0x360 [ 1151.531073] _raw_spin_lock_nested+0x2e/0x40 [ 1151.531296] ? tcp_v4_rcv+0xdba/0xf00 [ 1151.531485] tcp_v4_rcv+0xdba/0xf00 [ 1151.531691] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.531921] ip_local_deliver_finish+0xaf/0x180 [ 1151.532150] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.532434] netif_receive_skb+0x87/0x2c0 [ 1151.532642] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1151.532910] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1151.533188] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1151.533487] tcf_action_exec+0xac/0x230 [ 1151.533689] fl_classify+0x20e/0x260 [cls_flower] [ 1151.533965] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1151.534253] ? __bfs+0xf3/0x240 [ 1151.534423] ? check_irq_usage+0x19c/0xc40 [ 1151.534666] ? check_path.constprop.0+0x24/0x50 [ 1151.534895] ? check_noncircular+0x81/0x150 [ 1151.535136] ? __lock_acquire+0xa6e/0x1750 [ 1151.535375] ? find_held_lock+0x2b/0x80 [ 1151.535578] tcf_classify+0x17a/0x540 [ 1151.535795] tc_run+0x9f/0x150 [ 1151.535960] __dev_queue_xmit+0x311/0x1180 [ 1151.536169] ? mark_held_locks+0x49/0x80 [ 1151.536424] ip_finish_output2+0x39f/0xa20 [ 1151.536645] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1151.536877] __ip_queue_xmit+0x1d5/0x6f0 [ 1151.537084] __tcp_transmit_skb+0xb65/0xd30 [ 1151.537318] ? mark_held_locks+0x49/0x80 [ 1151.537521] tcp_write_xmit+0x492/0x1410 [ 1151.537747] __tcp_push_pending_frames+0x36/0xc0 [ 1151.537984] tcp_rcv_state_process+0x4db/0x1230 [ 1151.538240] ? lock_acquire+0xc1/0x2b0 [ 1151.538464] ? tcp_v4_rcv+0xdba/0xf00 [ 1151.538667] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1151.538893] tcp_v4_do_rcv+0x85/0x3a0 [ 1151.539102] tcp_v4_rcv+0xe54/0xf00 [ 1151.539288] ? process_backlog+0x6f/0x260 [ 1151.539513] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.539755] ip_local_deliver_finish+0xaf/0x180 [ 1151.539988] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.540257] process_backlog+0x7c/0x260 [ 1151.540497] __napi_poll.constprop.0+0x27/0x1e0 [ 1151.540764] net_rx_action+0x2be/0x340 [ 1151.540967] __do_softirq+0xc8/0x37a [ 1151.541187] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1151.541426] run_ksoftirqd+0x2e/0x40 [ 1151.541655] smpboot_thread_fn+0xd9/0x1d0 [ 1151.541868] kthread+0xda/0x110 [ 1151.542054] ? __pfx_kthread+0x10/0x10 [ 1151.542265] ret_from_fork+0x31/0x50 [ 1151.542488] ? __pfx_kthread+0x10/0x10 [ 1151.542686] ret_from_fork_asm+0x1b/0x30 [ 1151.542905] [ 1180.208949] ncat (5612) used greatest stack depth: 10664 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__->