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 ] [ 1174.043123] Mirror/redirect action on # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] [ 1175.412559] tc (20826) used greatest stack depth: 11576 bytes left # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1178.939017] ping (21057) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1183.543942] [ 1183.544062] ============================================ [ 1183.544345] WARNING: possible recursive locking detected [ 1183.544643] 6.8.0-rc2-virtme #1 Not tainted [ 1183.544870] -------------------------------------------- [ 1183.545140] ksoftirqd/3/32 is trying to acquire lock: [ 1183.545402] ffff8e61829d8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1183.545847] [ 1183.545847] but task is already holding lock: [ 1183.546141] ffff8e61829d80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1183.546560] [ 1183.546560] other info that might help us debug this: [ 1183.546903] Possible unsafe locking scenario: [ 1183.546903] [ 1183.547227] CPU0 [ 1183.547365] ---- [ 1183.547496] lock(slock-AF_INET/1); [ 1183.547689] lock(slock-AF_INET/1); [ 1183.547899] [ 1183.547899] *** DEADLOCK *** [ 1183.547899] [ 1183.548202] May be due to missing lock nesting notation [ 1183.548202] [ 1183.548546] 8 locks held by ksoftirqd/3/32: [ 1183.548761] #0: ffffffffae1678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1183.549217] #1: ffffffffae1678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1183.549685] #2: ffff8e61829d80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1183.550111] #3: ffffffffae1678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1183.550570] #4: ffffffffae1678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1183.551010] #5: ffffffffae167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1183.551463] #6: ffffffffae1678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1183.551917] #7: ffffffffae1678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1183.552380] [ 1183.552380] stack backtrace: [ 1183.552609] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1183.552968] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1183.553577] Call Trace: [ 1183.553717] [ 1183.553842] dump_stack_lvl+0x4b/0x80 [ 1183.554064] __lock_acquire+0x1215/0x1750 [ 1183.554281] ? sk_filter_trim_cap+0x53/0x360 [ 1183.554507] lock_acquire+0xc1/0x2b0 [ 1183.554696] ? tcp_v4_rcv+0xdba/0xf00 [ 1183.554914] ? sk_filter_trim_cap+0x11a/0x360 [ 1183.555143] _raw_spin_lock_nested+0x2e/0x40 [ 1183.555367] ? tcp_v4_rcv+0xdba/0xf00 [ 1183.555580] tcp_v4_rcv+0xdba/0xf00 [ 1183.555775] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1183.556027] ip_local_deliver_finish+0xaf/0x180 [ 1183.556280] __netif_receive_skb_one_core+0x8b/0xa0 [ 1183.556532] netif_receive_skb+0x87/0x2c0 [ 1183.556746] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1183.557026] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1183.557279] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1183.557583] tcf_action_exec+0xac/0x230 [ 1183.557798] fl_classify+0x20e/0x260 [cls_flower] [ 1183.558051] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1183.558368] ? __bfs+0xf3/0x240 [ 1183.558601] ? check_irq_usage+0x19c/0xc40 [ 1183.558879] ? lock_release+0xbe/0x270 [ 1183.559175] ? check_path.constprop.0+0x24/0x50 [ 1183.559503] ? find_held_lock+0x2b/0x80 [ 1183.559797] ? check_noncircular+0x81/0x150 [ 1183.560106] ? __lock_acquire+0xa6e/0x1750 [ 1183.560451] tcf_classify+0x17a/0x540 [ 1183.560743] tc_run+0x9f/0x150 [ 1183.560988] __dev_queue_xmit+0x311/0x1180 [ 1183.561330] ? mark_held_locks+0x49/0x80 [ 1183.561643] ip_finish_output2+0x39f/0xa20 [ 1183.561966] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1183.562286] __ip_queue_xmit+0x1d5/0x6f0 [ 1183.562599] __tcp_transmit_skb+0xb65/0xd30 [ 1183.562929] tcp_write_xmit+0x492/0x1410 [ 1183.563238] __tcp_push_pending_frames+0x36/0xc0 [ 1183.563589] tcp_rcv_state_process+0x4db/0x1230 [ 1183.563942] ? lock_acquire+0xc1/0x2b0 [ 1183.564228] ? tcp_v4_rcv+0xdba/0xf00 [ 1183.564517] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1183.564819] tcp_v4_do_rcv+0x85/0x3a0 [ 1183.565104] tcp_v4_rcv+0xe54/0xf00 [ 1183.565378] ? process_backlog+0x6f/0x260 [ 1183.565711] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1183.566087] ip_local_deliver_finish+0xaf/0x180 [ 1183.566442] __netif_receive_skb_one_core+0x8b/0xa0 [ 1183.566819] process_backlog+0x7c/0x260 [ 1183.567138] __napi_poll.constprop.0+0x27/0x1e0 [ 1183.567494] net_rx_action+0x2be/0x340 [ 1183.567794] __do_softirq+0xc8/0x37a [ 1183.568080] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1183.568443] run_ksoftirqd+0x2e/0x40 [ 1183.568730] smpboot_thread_fn+0xd9/0x1d0 [ 1183.569047] kthread+0xda/0x110 [ 1183.569304] ? __pfx_kthread+0x10/0x10 [ 1183.569592] ret_from_fork+0x31/0x50 [ 1183.569908] ? __pfx_kthread+0x10/0x10 [ 1183.570204] ret_from_fork_asm+0x1b/0x30 [ 1183.570513] [ 1206.323588] ncat (21187) 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__->