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 [ 1153.444201] tc (18016) used greatest stack depth: 11696 bytes left # 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 ] [ 1160.522835] ping (18634) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 1161.905660] [ 1161.905831] ============================================ [ 1161.906242] WARNING: possible recursive locking detected [ 1161.906644] 6.8.0-rc2-virtme #1 Not tainted [ 1161.906963] -------------------------------------------- [ 1161.907366] ncat/18762 is trying to acquire lock: [ 1161.907722] ffff951e84ca00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1161.908315] [ 1161.908315] but task is already holding lock: [ 1161.908749] ffff951e84ca0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1161.909362] [ 1161.909362] other info that might help us debug this: [ 1161.909846] Possible unsafe locking scenario: [ 1161.909846] [ 1161.910278] CPU0 [ 1161.910475] ---- [ 1161.910657] lock(slock-AF_INET/1); [ 1161.910938] lock(slock-AF_INET/1); [ 1161.911219] [ 1161.911219] *** DEADLOCK *** [ 1161.911219] [ 1161.911658] May be due to missing lock nesting notation [ 1161.911658] [ 1161.912169] 8 locks held by ncat/18762: [ 1161.912472] #0: ffffffff8f3678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1161.913118] #1: ffffffff8f3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1161.913804] #2: ffff951e84ca0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1161.914428] #3: ffffffff8f3678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1161.915065] #4: ffffffff8f3678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1161.915710] #5: ffffffff8f367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1161.916396] #6: ffffffff8f3678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1161.917057] #7: ffffffff8f3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1161.917729] [ 1161.917729] stack backtrace: [ 1161.918060] CPU: 0 PID: 18762 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 1161.918533] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1161.919346] Call Trace: [ 1161.919544] [ 1161.919699] dump_stack_lvl+0x4b/0x80 [ 1161.919972] __lock_acquire+0x1215/0x1750 [ 1161.920290] ? sk_filter_trim_cap+0x53/0x360 [ 1161.920631] lock_acquire+0xc1/0x2b0 [ 1161.920916] ? tcp_v4_rcv+0xdba/0xf00 [ 1161.921202] ? sk_filter_trim_cap+0x11a/0x360 [ 1161.921520] _raw_spin_lock_nested+0x2e/0x40 [ 1161.921833] ? tcp_v4_rcv+0xdba/0xf00 [ 1161.922098] tcp_v4_rcv+0xdba/0xf00 [ 1161.922357] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1161.922685] ip_local_deliver_finish+0xaf/0x180 [ 1161.923008] __netif_receive_skb_one_core+0x8b/0xa0 [ 1161.923364] netif_receive_skb+0x87/0x2c0 [ 1161.923660] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1161.924042] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1161.924428] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1161.924837] tcf_action_exec+0xac/0x230 [ 1161.925123] fl_classify+0x20e/0x260 [cls_flower] [ 1161.925495] ? __lock_acquire+0xa6e/0x1750 [ 1161.925801] ? __bfs+0xf3/0x240 [ 1161.926051] ? check_irq_usage+0x19c/0xc40 [ 1161.926372] ? check_path.constprop.0+0x24/0x50 [ 1161.926714] ? clockevents_program_event+0x58/0x100 [ 1161.927082] ? check_noncircular+0x81/0x150 [ 1161.927404] ? __lock_acquire+0xa6e/0x1750 [ 1161.927712] tcf_classify+0x17a/0x540 [ 1161.928003] tc_run+0x9f/0x150 [ 1161.928254] __dev_queue_xmit+0x311/0x1180 [ 1161.928574] ? mark_held_locks+0x49/0x80 [ 1161.928867] ? eth_header+0x2a/0xc0 [ 1161.929144] ip_finish_output2+0x22d/0xa20 [ 1161.929453] ? ip_skb_dst_mtu+0x51/0x1c0 [ 1161.929749] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1161.930063] __ip_queue_xmit+0x1d5/0x6f0 [ 1161.930371] __tcp_transmit_skb+0xb65/0xd30 [ 1161.930690] ? __alloc_skb+0xdc/0x1a0 [ 1161.930984] tcp_rcv_state_process+0x4fb/0x1230 [ 1161.931322] ? lock_acquire+0xc1/0x2b0 [ 1161.931606] ? tcp_v4_rcv+0xdba/0xf00 [ 1161.931892] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1161.932195] tcp_v4_do_rcv+0x85/0x3a0 [ 1161.932485] tcp_v4_rcv+0xe54/0xf00 [ 1161.932750] ? process_backlog+0x6f/0x260 [ 1161.933055] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1161.933395] ip_local_deliver_finish+0xaf/0x180 [ 1161.933737] __netif_receive_skb_one_core+0x8b/0xa0 [ 1161.934118] process_backlog+0x7c/0x260 [ 1161.934416] __napi_poll.constprop.0+0x27/0x1e0 [ 1161.934757] net_rx_action+0x2be/0x340 [ 1161.935036] __do_softirq+0xc8/0x37a [ 1161.935319] ? inet_shutdown+0xa8/0x100 [ 1161.935609] do_softirq+0x4d/0x90 [ 1161.935874] [ 1161.936046] [ 1161.936219] __local_bh_enable_ip+0xbf/0xe0 [ 1161.936546] inet_shutdown+0xa8/0x100 [ 1161.936835] __sys_shutdown+0x45/0x90 [ 1161.937115] __x64_sys_shutdown+0x14/0x20 [ 1161.937426] do_syscall_64+0xc9/0x1e0 [ 1161.937700] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1161.938082] RIP: 0033:0x7fd4b8ba4beb [ 1161.938364] 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 [ 1161.939766] RSP: 002b:00007ffd50553df8 EFLAGS: 00000246 ORIG_RAX: 0000000000000030 [ 1161.940330] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007fd4b8ba4beb [ 1161.940858] RDX: 000055b14e0f3420 RSI: 0000000000000001 RDI: 0000000000000008 [ 1161.941395] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 [ 1161.941926] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 1161.942449] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 [ 1161.942984] # [ 1180.220320] ncat (18763) 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__->