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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1135.403041] ping (19193) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1136.841980] [ 1136.842107] ============================================ [ 1136.842452] WARNING: possible recursive locking detected [ 1136.842750] 6.8.0-rc2-virtme #1 Not tainted [ 1136.842993] -------------------------------------------- [ 1136.843309] ksoftirqd/0/16 is trying to acquire lock: [ 1136.843590] ffff8d67453d00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1136.844034] [ 1136.844034] but task is already holding lock: [ 1136.844388] ffff8d67453d0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1136.844830] [ 1136.844830] other info that might help us debug this: [ 1136.845193] Possible unsafe locking scenario: [ 1136.845193] [ 1136.845513] CPU0 [ 1136.845666] ---- [ 1136.845822] lock(slock-AF_INET/1); [ 1136.846021] lock(slock-AF_INET/1); [ 1136.846227] [ 1136.846227] *** DEADLOCK *** [ 1136.846227] [ 1136.846560] May be due to missing lock nesting notation [ 1136.846560] [ 1136.846920] 8 locks held by ksoftirqd/0/16: [ 1136.847147] #0: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1136.847607] #1: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1136.848109] #2: ffff8d67453d0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1136.848556] #3: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1136.849017] #4: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1136.849495] #5: ffffffff85967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1136.849976] #6: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1136.850452] #7: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1136.850953] [ 1136.850953] stack backtrace: [ 1136.851210] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 1136.851590] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1136.852216] Call Trace: [ 1136.852433] [ 1136.852562] dump_stack_lvl+0x4b/0x80 [ 1136.852785] __lock_acquire+0x1215/0x1750 [ 1136.853021] ? sk_filter_trim_cap+0x53/0x360 [ 1136.853281] lock_acquire+0xc1/0x2b0 [ 1136.853481] ? tcp_v4_rcv+0xdb5/0xef0 [ 1136.853684] ? sk_filter_trim_cap+0x11a/0x360 [ 1136.853940] _raw_spin_lock_nested+0x2e/0x40 [ 1136.854178] ? tcp_v4_rcv+0xdb5/0xef0 [ 1136.854384] tcp_v4_rcv+0xdb5/0xef0 [ 1136.854594] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1136.854837] ip_local_deliver_finish+0xaf/0x180 [ 1136.855078] __netif_receive_skb_one_core+0x8b/0xa0 [ 1136.855351] netif_receive_skb+0x87/0x2c0 [ 1136.855591] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1136.855892] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1136.856173] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1136.856470] tcf_action_exec+0xaf/0x230 [ 1136.856701] fl_classify+0x20e/0x260 [cls_flower] [ 1136.856968] ? __pfx_usage_match+0x10/0x10 [ 1136.857231] ? __bfs+0xf6/0x240 [ 1136.857407] ? check_irq_usage+0x19c/0xc40 [ 1136.857648] ? __skb_flow_dissect+0xc9/0x2d60 [ 1136.857907] ? check_path.constprop.0+0x24/0x50 [ 1136.858155] ? check_noncircular+0x81/0x150 [ 1136.858393] ? __skb_flow_dissect+0x2fb/0x2d60 [ 1136.858670] ? __lock_acquire+0xa6e/0x1750 [ 1136.858906] ? __lock_acquire+0xa6e/0x1750 [ 1136.859144] tcf_classify+0x17d/0x540 [ 1136.859365] tc_run+0x9f/0x150 [ 1136.859566] __dev_queue_xmit+0x311/0x1180 [ 1136.859802] ? mark_held_locks+0x49/0x80 [ 1136.860030] ? eth_header+0x2a/0xc0 [ 1136.860243] ip_finish_output2+0x230/0xa20 [ 1136.860491] ? ip_skb_dst_mtu+0x51/0x1c0 [ 1136.860726] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1136.860966] __ip_queue_xmit+0x1d5/0x6f0 [ 1136.861198] __tcp_transmit_skb+0xb65/0xd30 [ 1136.861444] ? __alloc_skb+0xdc/0x1a0 [ 1136.861668] tcp_rcv_state_process+0x4f3/0x11f0 [ 1136.861941] ? tcp_v4_rcv+0xdb5/0xef0 [ 1136.862159] ? tcp_v4_do_rcv+0x64/0x360 [ 1136.862416] tcp_v4_do_rcv+0x64/0x360 [ 1136.862636] tcp_v4_rcv+0xe4f/0xef0 [ 1136.862843] ? process_backlog+0x6f/0x260 [ 1136.863081] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1136.863323] ip_local_deliver_finish+0xaf/0x180 [ 1136.863569] __netif_receive_skb_one_core+0x8b/0xa0 [ 1136.863849] process_backlog+0x7c/0x260 [ 1136.864064] __napi_poll.constprop.0+0x2a/0x1e0 [ 1136.864324] net_rx_action+0x2be/0x340 [ 1136.864545] __do_softirq+0xcb/0x37a [ 1136.864749] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1136.865028] run_ksoftirqd+0x2e/0x40 [ 1136.865233] smpboot_thread_fn+0xdc/0x1d0 [ 1136.865469] kthread+0xdd/0x110 [ 1136.865653] ? __pfx_kthread+0x10/0x10 [ 1136.865865] ret_from_fork+0x34/0x50 [ 1136.866078] ? __pfx_kthread+0x10/0x10 [ 1136.866305] ret_from_fork_asm+0x1b/0x30 [ 1136.866537] [ 1167.895261] ncat (19347) used greatest stack depth: 10672 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__->