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 ] [ 1143.282926] 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.860416] tc (5379) used greatest stack depth: 11648 bytes left [ 1148.047173] ping (5507) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 1149.294296] tc (5630) used greatest stack depth: 11432 bytes left # [ 1152.613829] [ 1152.614011] ============================================ [ 1152.614429] WARNING: possible recursive locking detected [ 1152.614804] 6.8.0-rc3-virtme #1 Not tainted [ 1152.615120] -------------------------------------------- [ 1152.615546] ksoftirqd/0/16 is trying to acquire lock: [ 1152.615954] ffff8ac9c3b58cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1152.616598] [ 1152.616598] but task is already holding lock: [ 1152.617062] ffff8ac9c3b580b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1152.617683] [ 1152.617683] other info that might help us debug this: [ 1152.618185] Possible unsafe locking scenario: [ 1152.618185] [ 1152.618652] CPU0 [ 1152.618876] ---- [ 1152.619071] lock(slock-AF_INET/1); [ 1152.619372] lock(slock-AF_INET/1); [ 1152.619670] [ 1152.619670] *** DEADLOCK *** [ 1152.619670] [ 1152.620120] May be due to missing lock nesting notation [ 1152.620120] [ 1152.620629] 8 locks held by ksoftirqd/0/16: [ 1152.620962] #0: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1152.621623] #1: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1152.622355] #2: ffff8ac9c3b580b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1152.622991] #3: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1152.623647] #4: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1152.624344] #5: ffffffff85967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1152.625033] #6: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1152.625695] #7: ffffffff859678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1152.626423] [ 1152.626423] stack backtrace: [ 1152.626768] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc3-virtme #1 [ 1152.627326] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1152.628188] Call Trace: [ 1152.628378] [ 1152.628560] dump_stack_lvl+0x4b/0x80 [ 1152.628852] __lock_acquire+0x1215/0x1750 [ 1152.629169] ? sk_filter_trim_cap+0x53/0x360 [ 1152.629425] lock_acquire+0xc1/0x2b0 [ 1152.629636] ? tcp_v4_rcv+0xdb5/0xef0 [ 1152.629841] ? sk_filter_trim_cap+0x11a/0x360 [ 1152.630105] _raw_spin_lock_nested+0x2e/0x40 [ 1152.630352] ? tcp_v4_rcv+0xdb5/0xef0 [ 1152.630567] tcp_v4_rcv+0xdb5/0xef0 [ 1152.630770] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1152.631036] ip_local_deliver_finish+0xaf/0x180 [ 1152.631285] __netif_receive_skb_one_core+0x8b/0xa0 [ 1152.631562] netif_receive_skb+0x87/0x2c0 [ 1152.631802] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1152.632095] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1152.632374] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1152.632669] tcf_action_exec+0xac/0x230 [ 1152.632896] f DETECTED CRASH, lowering timeout l_classify+0x20e/0x260 [cls_flower] [ 1152.633168] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1152.633453] ? __bfs+0xf3/0x240 [ 1152.633645] ? check_irq_usage+0x19c/0xc40 [ 1152.633881] ? check_path.constprop.0+0x24/0x50 [ 1152.634161] ? check_noncircular+0x81/0x150 [ 1152.634398] ? lock_release+0xbe/0x270 [ 1152.634596] ? __lock_acquire+0xa6e/0x1750 [ 1152.634811] tcf_classify+0x17a/0x540 [ 1152.635034] tc_run+0x9f/0x150 [ 1152.635208] __dev_queue_xmit+0x311/0x1180 [ 1152.635461] ? mark_held_locks+0x49/0x80 [ 1152.635688] ip_finish_output2+0x39f/0xa20 [ 1152.635923] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1152.636152] __ip_queue_xmit+0x1d5/0x6f0 [ 1152.636381] __tcp_transmit_skb+0xb65/0xd30 [ 1152.636622] tcp_write_xmit+0x492/0x1400 [ 1152.636831] __tcp_push_pending_frames+0x36/0xc0 [ 1152.637144] tcp_rcv_state_process+0x4d3/0x11f0 [ 1152.637458] ? tcp_v4_rcv+0xdb5/0xef0 [ 1152.637743] ? tcp_v4_do_rcv+0x64/0x360 [ 1152.638042] tcp_v4_do_rcv+0x64/0x360 [ 1152.638344] tcp_v4_rcv+0xe4f/0xef0 [ 1152.638626] ? process_backlog+0x6f/0x260 [ 1152.638951] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1152.639301] ip_local_deliver_finish+0xaf/0x180 [ 1152.639667] __netif_receive_skb_one_core+0x8b/0xa0 [ 1152.640061] process_backlog+0x7c/0x260 [ 1152.640381] __napi_poll.constprop.0+0x27/0x1e0 [ 1152.640755] net_rx_action+0x2be/0x340 [ 1152.641051] __do_softirq+0xc8/0x37a [ 1152.641343] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1152.641728] run_ksoftirqd+0x2e/0x40 [ 1152.642033] smpboot_thread_fn+0xd9/0x1d0 [ 1152.642365] kthread+0xda/0x110 [ 1152.642631] ? __pfx_kthread+0x10/0x10 [ 1152.642947] ret_from_fork+0x31/0x50 [ 1152.643232] ? __pfx_kthread+0x10/0x10 [ 1152.643542] ret_from_fork_asm+0x1b/0x30 [ 1152.643869] [ 1172.496820] ncat (5636) 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__->