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 ] [ 877.853203] tc (3790) used greatest stack depth: 11576 bytes left # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 883.597514] ping (4311) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 884.883154] [ 884.883281] ============================================ [ 884.883573] WARNING: possible recursive locking detected [ 884.883862] 6.8.0-rc2-virtme #1 Not tainted [ 884.884090] -------------------------------------------- [ 884.884420] ncat/4452 is trying to acquire lock: [ 884.884672] ffff9d54c57000b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 884.885112] [ 884.885112] but task is already holding lock: [ 884.885460] ffff9d54c5700cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 884.885880] [ 884.885880] other info that might help us debug this: [ 884.886230] Possible unsafe locking scenario: [ 884.886230] [ 884.886573] CPU0 [ 884.886710] ---- [ 884.886847] lock(slock-AF_INET/1); [ 884.887042] lock(slock-AF_INET/1); [ 884.887239] [ 884.887239] *** DEADLOCK *** [ 884.887239] [ 884.887553] May be due to missing lock nesting notation [ 884.887553] [ 884.887946] 8 locks held by ncat/4452: [ 884.888148] #0: ffffffff995678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 884.888608] #1: ffffffff995678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 884.889133] #2: ffff9d54c5700cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 884.889581] #3: ffffffff995678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 884.890071] #4: ffffffff995678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 884.890538] #5: ffffffff99567880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 884.891022] #6: ffffffff995678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 884.891510] #7: ffffffff995678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 884.891998] [ 884.891998] stack backtrace: [ 884.892265] CPU: 1 PID: 4452 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 884.892626] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 884.893236] Call Trace: [ 884.893408] [ 884.893527] dump_stack_lvl+0x4b/0x80 [ 884.893732] __lock_acquire+0x1215/0x1750 [ 884.893954] ? sk_filter_trim_cap+0x53/0x360 [ 884.894193] lock_acquire+0xc1/0x2b0 [ 884.894395] ? tcp_v4_rcv+0xdba/0xf00 [ 884.894624] ? sk_filter_trim_cap+0x11a/0x360 [ 884.895020] _raw_spin_lock_nested+0x2e/0x40 [ 884.895255] ? tcp_v4_rcv+0xdba/0xf00 [ 884.895459] tcp_v4_rcv+0xdba/0xf00 [ 884.895689] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 884.895942] ip_local_deliver_finish+0xaf/0x180 [ 884.896194] __netif_receive_skb_one_core+0x8b/0xa0 [ 884.896466] netif_receive_skb+0x87/0x2c0 [ 884.896722] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 884.897014] tcf_mirred_act+0xee/0x560 [act_mirred] [ 884.897285] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 884.897575] tcf_action_exec+0xaf/0x230 [ 884.897797] fl_classify+0x20e/0x260 [cls_flower] [ 884.898080] ? __pfx_usage_match+0x10/0x10 [ 884.898304] ? __bfs+0xf6/0x240 [ 884.898481] ? check_irq_usage+0x19c/0xc40 [ 884.898705] ? lock_acquire+0xc1/0x2b0 [ 884.898921] ? __skb_flow_dissect+0xc9/0x2d60 [ 884.899180] ? check_path.constprop.0+0x24/0x50 [ 884.899426] ? check_noncircular+0x81/0x150 [ 884.899652] ? __lock_acquire+0xa6e/0x1750 [ 884.899876] tcf_classify+0x17d/0x540 [ 884.900110] tc_run+0x9f/0x150 [ 884.900286] __dev_queue_xmit+0x311/0x1180 [ 884.900508] ? mark_held_locks+0x49/0x80 [ 884.900722] ? eth_header+0x2a/0xc0 [ 884.900915] ip_finish_output2+0x230/0xa20 [ 884.901138] ? ip_skb_dst_mtu+0x51/0x1c0 [ 884.901383] ? __ip_queue_xmit+0x1d5/0x6f0 [ 884.901606] __ip_queue_xmit+0x1d5/0x6f0 [ 884.901821] __tcp_transmit_skb+0xb65/0xd30 [ 884.902051] ? __alloc_skb+0xdc/0x1a0 [ 884.902251] tcp_rcv_state_process+0x4fb/0x1230 [ 884.902527] ? lock_acquire+0xc1/0x2b0 [ 884.902734] ? tcp_v4_rcv+0xdba/0xf00 [ 884.902938] ? tcp_v4_do_rcv+0x85/0x3a0 [ 884.903147] tcp_v4_do_rcv+0x85/0x3a0 [ 884.903351] tcp_v4_rcv+0xe54/0xf00 [ 884.903576] ? process_backlog+0x6f/0x260 [ 884.903794] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 884.904042] ip_local_deliver_finish+0xaf/0x180 [ 884.904291] __netif_receive_skb_one_core+0x8b/0xa0 [ 884.904578] process_backlog+0x7c/0x260 [ 884.904807] __napi_poll.constprop.0+0x2a/0x1e0 [ 884.905051] net_rx_action+0x2be/0x340 [ 884.905255] __do_softirq+0xcb/0x37a [ 884.905457] ? inet_shutdown+0xa8/0x100 [ 884.905678] do_softirq+0x4d/0x90 [ 884.905885] [ 884.906005] [ 884.906124] __local_bh_enable_ip+0xbf/0xe0 [ 884.906351] inet_shutdown+0xa8/0x100 [ 884.906552] __sys_shutdown+0x48/0x90 [ 884.906757] __x64_sys_shutdown+0x14/0x20 [ 884.907008] do_syscall_64+0xcc/0x1e0 [ 884.907210] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 884.907482] RIP: 0033:0x7f8ee1638beb [ 884.907682] Code: 73 01 c3 48 8b 0d 15 92 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 30 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e5 91 1b 00 f7 d8 64 89 01 48 [ 884.908694] RSP: 002b:00007ffeb382cdb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000030 [ 884.909129] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f8ee1638beb [ 884.909514] RDX: 000055fbec27e420 RSI: 0000000000000001 RDI: 0000000000000008 [ 884.909894] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 [ 884.910302] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 884.910690] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 [ 884.911076] # [ 925.579444] ncat (4453) used greatest stack depth: 10656 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__->