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 ] [ 1194.611373] 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 ] [ 1199.836717] ping (17896) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1201.742965] [ 1201.743124] ============================================ [ 1201.743533] WARNING: possible recursive locking detected [ 1201.743923] 6.8.0-rc2-virtme #1 Not tainted [ 1201.744227] -------------------------------------------- [ 1201.744640] ksoftirqd/2/27 is trying to acquire lock: [ 1201.745035] ffff8d4b42e90cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1201.745655] [ 1201.745655] but task is already holding lock: [ 1201.746099] ffff8d4b42e900b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1201.746675] [ 1201.746675] other info that might help us debug this: [ 1201.747150] Possible unsafe locking scenario: [ 1201.747150] [ 1201.747624] CPU0 [ 1201.747815] ---- [ 1201.748007] lock(slock-AF_INET/1); [ 1201.748292] lock(slock-AF_INET/1); [ 1201.748600] [ 1201.748600] *** DEADLOCK *** [ 1201.748600] [ 1201.749049] May be due to missing lock nesting notation [ 1201.749049] [ 1201.749560] 8 locks held by ksoftirqd/2/27: [ 1201.749912] #0: ffffffff871678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1201.750592] #1: ffffffff871678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1201.751534] #2: ffff8d4b42e900b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1201.752202] #3: ffffffff871678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1201.752874] #4: ffffffff871678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1201.753530] #5: ffffffff87167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1201.754201] #6: ffffffff871678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1201.754877] #7: ffffffff871678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1201.755587] [ 1201.755587] stack backtrace: [ 1201.755948] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 1201.756493] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1201.757364] Call Trace: [ 1201.757574] [ 1201.757770] dump_stack_lvl+0x4b/0x80 [ 1201.758064] __lock_acquire+0x1215/0x1750 [ 1201.758392] ? sk_filter_trim_cap+0x53/0x360 [ 1201.758731] lock_acquire+0xc1/0x2b0 [ 1201.759033] ? tcp_v4_rcv+0xdba/0xf00 [ 1201.759328] ? sk_filter_trim_cap+0x11a/0x360 [ 1201.759688] _raw_spin_lock_nested+0x2e/0x40 [ 1201.760052] ? tcp_v4_rcv+0xdba/0xf00 [ 1201.760332] tcp_v4_rcv+0xdba/0xf00 [ 1201.760621] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1201.760995] ip_local_deliver_finish+0xaf/0x180 [ 1201.761391] __netif_receive_skb_one_core+0x8b/0xa0 [ 1201.761789] netif_receive_skb+0x87/0x2c0 [ 1201.762127] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1201.762540] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1201.762929] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1201.763338] tcf_action_exec+0xac/0x230 [ 1201.763654] fl_classify+0x20e/0x260 [cls_flower] [ 1201.764052] ? __bfs+0xf3/0x240 [ 1201.764298] ? check_irq_usage+0x19c/0xc40 [ 1201.764629] ? check_path.constprop.0+0x24/0x50 [ 1201.764996] ? check_noncircular+0x81/0x150 [ 1201.765321] ? check_irq_usage+0x19c/0xc40 [ 1201.765665] ? __lock_acquire+0xa6e/0x1750 [ 1201.766011] tcf_classify+0x17a/0x540 [ 1201.766304] tc_run+0x9f/0x150 [ 1201.766559] __dev_queue_xmit+0x311/0x1180 [ 1201.766901] ? mark_held_locks+0x49/0x80 [ 1201.767221] ? eth_header+0x2a/0xc0 [ 1201.767509] ip_finish_output2+0x22d/0xa20 [ 1201.767851] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1201.768167] __ip_queue_xmit+0x1d5/0x6f0 [ 1201.768490] __tcp_transmit_skb+0xb65/0xd30 [ 1201.768845] tcp_write_xmit+0x492/0x1400 [ 1201.769144] __tcp_push_pending_frames+0x36/0xc0 [ 1201.769511] tcp_rcv_state_process+0x4db/0x1230 [ 1201.769894] ? lock_acquire+0xc1/0x2b0 [ 1201.770188] ? tcp_v4_rcv+0xdba/0xf00 [ 1201.770480] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1201.770788] tcp_v4_do_rcv+0x85/0x3a0 [ 1201.771095] tcp_v4_rcv+0xe54/0xf00 [ 1201.771402] ? process_backlog+0x6f/0x260 [ 1201.771734] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1201.772095] ip_local_deliver_finish+0xaf/0x180 [ 1201.772444] __netif_receive_skb_one_core+0x8b/0xa0 [ 1201.772830] process_backlog+0x7c/0x260 [ 1201.773133] __napi_poll.constprop.0+0x27/0x1e0 [ 1201.773499] net_rx_action+0x2be/0x340 [ 1201.773831] __do_softirq+0xc8/0x37a [ 1201.774113] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1201.774465] run_ksoftirqd+0x2e/0x40 [ 1201.774747] smpboot_thread_fn+0xd9/0x1d0 [ 1201.775059] kthread+0xda/0x110 [ 1201.775319] ? __pfx_kthread+0x10/0x10 [ 1201.775600] ret_from_fork+0x31/0x50 [ 1201.775871] ? __pfx_kthread+0x10/0x10 [ 1201.776163] ret_from_fork_asm+0x1b/0x30 [ 1201.776473] [ 1228.445460] ncat (17975) 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__->