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 ] [ 1110.027167] 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 ] [ 1112.549482] tc (5568) used greatest stack depth: 11552 bytes left [ 1114.704136] ping (5711) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1119.098008] [ 1119.098138] ============================================ [ 1119.098434] WARNING: possible recursive locking detected [ 1119.098741] 6.8.0-rc2-virtme #1 Not tainted [ 1119.098972] -------------------------------------------- [ 1119.099265] ksoftirqd/0/16 is trying to acquire lock: [ 1119.099543] ffff9c5485118cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1119.099979] [ 1119.099979] but task is already holding lock: [ 1119.100297] ffff9c54851180b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1119.100725] [ 1119.100725] other info that might help us debug this: [ 1119.101099] Possible unsafe locking scenario: [ 1119.101099] [ 1119.101418] CPU0 [ 1119.101561] ---- [ 1119.101718] lock(slock-AF_INET/1); [ 1119.101919] lock(slock-AF_INET/1); [ 1119.102115] [ 1119.102115] *** DEADLOCK *** [ 1119.102115] [ 1119.102449] May be due to missing lock nesting notation [ 1119.102449] [ 1119.102828] 8 locks held by ksoftirqd/0/16: [ 1119.103062] #0: ffffffffa83678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1119.103531] #1: ffffffffa83678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1119.104033] #2: ffff9c54851180b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1119.104484] #3: ffffffffa83678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1119.104956] #4: ffffffffa83678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1119.105443] #5: ffffffffa8367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1119.105930] #6: ffffffffa83678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1119.106415] #7: ffffffffa83678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1119.106919] [ 1119.106919] stack backtrace: [ 1119.107177] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 1119.107566] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1119.108205] Call Trace: [ 1119.108345] [ 1119.108470] dump_stack_lvl+0x4b/0x80 [ 1119.108691] __lock_acquire+0x1215/0x1750 [ 1119.108915] ? sk_filter_trim_cap+0x53/0x360 [ 1119.109176] lock_acquire+0xc1/0x2b0 [ 1119.109384] ? tcp_v4_rcv+0xdb5/0xef0 [ 1119.109600] ? sk_filter_trim_cap+0x11a/0x360 [ 1119.109846] _raw_spin_lock_nested+0x2e/0x40 [ 1119.110102] ? tcp_v4_rcv+0xdb5/0xef0 [ 1119.110306] tcp_v4_rcv+0xdb5/0xef0 [ 1119.110506] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1119.110773] ip_local_deliver_finish+0xaf/0x180 [ 1119.111030] __netif_receive_skb_one_core+0x8b/0xa0 [ 1119.111310] netif_receive_skb+0x87/0x2c0 [ 1119.111539] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1119.111844] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1119.112120] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1119.112420] tcf_action_exec+0xaf/0x230 [ 1119.112640] fl_classify+0x20e/0x260 [cls_flower] [ 1119.112911] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1119.113203] ? __pfx_usage_match+0x10/0x10 [ 1119.113444] ? __bfs+0xf6/0x240 [ 1119.113623] ? check_irq_usage+0x19c/0xc40 [ 1119.113852] ? check_path.constprop.0+0x24/0x50 [ 1119.114115] ? check_noncircular+0x81/0x150 [ 1119.114349] ? lock_release+0xbe/0x270 [ 1119.114562] ? __lock_acquire+0xa6e/0x1750 [ 1119.114802] tcf_classify+0x17d/0x540 [ 1119.115014] tc_run+0x9f/0x150 [ 1119.115201] __dev_queue_xmit+0x311/0x1180 [ 1119.115433] ? mark_held_locks+0x49/0x80 [ 1119.115664] ip_finish_output2+0x39f/0xa20 [ 1119.115901] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1119.116138] __ip_queue_xmit+0x1d5/0x6f0 [ 1119.116357] __tcp_transmit_skb+0xb65/0xd30 [ 1119.116592] ? mark_held_locks+0x49/0x80 [ 1119.116825] tcp_write_xmit+0x492/0x1410 [ 1119.117045] __tcp_push_pending_frames+0x36/0xc0 [ 1119.117312] tcp_rcv_state_process+0x4d3/0x11f0 [ 1119.117565] ? tcp_v4_rcv+0xdb5/0xef0 [ 1119.117782] ? tcp_v4_do_rcv+0x64/0x360 [ 1119.117999] tcp_v4_do_rcv+0x64/0x360 [ 1119.118219] tcp_v4_rcv+0xe4f/0xef0 [ 1119.118418] ? process_backlog+0x6f/0x260 [ 1119.118642] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1119.118906] ip_local_deliver_finish+0xaf/0x180 [ 1119.119169] __netif_receive_skb_one_core+0x8b/0xa0 [ 1119.119447] process_backlog+0x7c/0x260 [ 1119.119675] __napi_poll.constprop.0+0x2a/0x1e0 [ 1119.119925] net_rx_action+0x2be/0x340 [ 1119.120135] __do_softirq+0xcb/0x37a [ 1119.120339] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1119.120606] run_ksoftirqd+0x2e/0x40 [ 1119.120812] smpboot_thread_fn+0xdc/0x1d0 [ 1119.121051] kthread+0xdd/0x110 [ 1119.121230] ? __pfx_kthread+0x10/0x10 [ 1119.121443] ret_from_fork+0x34/0x50 [ 1119.121659] ? __pfx_kthread+0x10/0x10 [ 1119.121865] ret_from_fork_asm+0x1b/0x30 [ 1119.122088] [ 1158.796299] ncat (5870) 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__->