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.186993] 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 ] [ 1148.078632] ping (5457) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1151.655167] [ 1151.655284] ============================================ [ 1151.655586] WARNING: possible recursive locking detected [ 1151.655860] 6.8.0-rc2-virtme #1 Not tainted [ 1151.656074] -------------------------------------------- [ 1151.656377] ncat/5580 is trying to acquire lock: [ 1151.656623] ffff968d43ad00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1151.657056] [ 1151.657056] but task is already holding lock: [ 1151.657353] ffff968d43ad0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1151.657778] [ 1151.657778] other info that might help us debug this: [ 1151.658109] Possible unsafe locking scenario: [ 1151.658109] [ 1151.658409] CPU0 [ 1151.658568] ---- [ 1151.658698] lock(slock-AF_INET/1); [ 1151.658905] lock(slock-AF_INET/1); [ 1151.659096] [ 1151.659096] *** DEADLOCK *** [ 1151.659096] [ 1151.659425] May be due to missing lock nesting notation [ 1151.659425] [ 1151.659771] 8 locks held by ncat/5580: [ 1151.659967] #0: ffffffffb8b678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1151.660431] #1: ffffffffb8b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.660898] #2: ffff968d43ad0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1151.661317] #3: ffffffffb8b678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1151.661774] #4: ffffffffb8b678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1151.662213] #5: ffffffffb8b67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1151.662686] #6: ffffffffb8b678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1151.663151] #7: ffffffffb8b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.663616] [ 1151.663616] stack backtrace: [ 1151.663873] CPU: 3 PID: 5580 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 1151.664212] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1151.664812] Call Trace: [ 1151.664952] [ 1151.665066] dump_stack_lvl+0x4b/0x80 [ 1151.665278] __lock_acquire+0x1215/0x1750 [ 1151.665507] ? sk_filter_trim_cap+0x53/0x360 [ 1151.665733] lock_acquire+0xc1/0x2b0 [ 1151.665954] ? tcp_v4_rcv+0xdba/0xf00 [ 1151.666168] ? sk_filter_trim_cap+0x11a/0x360 [ 1151.666424] _raw_spin_lock_nested+0x2e/0x40 [ 1151.666688] ? tcp_v4_rcv+0xdba/0xf00 [ 1151.666931] tcp_v4_rcv+0xdba/0xf00 [ 1151.667118] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.667367] ip_local_deliver_finish+0xaf/0x180 [ 1151.667623] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.667898] netif_receive_skb+0x87/0x2c0 [ 1151.668112] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1151.668395] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1151.668673] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1151.668972] tcf_action_exec+0xac/0x230 [ 1151.669173] fl_classify+0x20e/0x260 [cls_flower] [ 1151.669433] ? tcf_mirred_act+0xee/0x560 [act_mirred] [ 1151.669718] ? __bfs+0xf3/0x240 [ 1151.669890] ? check_irq_usage+0x19c/0xc40 [ 1151.670101] ? find_held_lock+0x2b/0x80 [ 1151.670339] ? check_path.constprop.0+0x24/0x50 [ 1151.670648] ? check_noncircular+0x81/0x150 [ 1151.670868] ? __lock_acquire+0xa6e/0x1750 [ 1151.671082] tcf_classify+0x17a/0x540 [ 1151.671309] tc_run+0x9f/0x150 [ 1151.671511] __dev_queue_xmit+0x311/0x1180 [ 1151.671752] ? mark_held_locks+0x49/0x80 [ 1151.671961] ip_finish_output2+0x39f/0xa20 [ 1151.672199] ? ip_skb_dst_mtu+0x51/0x1c0 [ 1151.672407] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1151.672632] __ip_queue_xmit+0x1d5/0x6f0 [ 1151.672865] __tcp_transmit_skb+0xb65/0xd30 [ 1151.673083] ? __alloc_skb+0xdc/0x1a0 [ 1151.673276] tcp_rcv_state_process+0x4fb/0x1230 [ 1151.673545] ? lock_acquire+0xc1/0x2b0 [ 1151.673742] ? tcp_v4_rcv+0xdba/0xf00 [ 1151.674019] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1151.674341] tcp_v4_do_rcv+0x85/0x3a0 [ 1151.674623] tcp_v4_rcv+0xe54/0xf00 [ 1151.674878] ? process_backlog+0x6f/0x260 [ 1151.675183] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.675516] ip_local_deliver_finish+0xaf/0x180 [ 1151.675867] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.676264] process_backlog+0x7c/0x260 [ 1151.676557] __napi_poll.constprop.0+0x27/0x1e0 [ 1151.676930] net_rx_action+0x2be/0x340 [ 1151.677222] __do_softirq+0xc8/0x37a [ 1151.677507] ? tcp_recvmsg+0x80/0x200 [ 1151.677820] do_softirq+0x4d/0x90 [ 1151.678083] [ 1151.678278] [ 1151.678452] __local_bh_enable_ip+0xbf/0xe0 [ 1151.678785] tcp_recvmsg+0x80/0x200 [ 1151.679063] inet_recvmsg+0x70/0x260 [ 1151.679359] __sys_recvfrom+0x168/0x1a0 [ 1151.679666] ? do_pselect.constprop.0+0xde/0x170 [ 1151.680031] ? task_mm_cid_work+0x18b/0x3c0 [ 1151.680393] __x64_sys_recvfrom+0x24/0x30 [ 1151.680698] do_syscall_64+0xc9/0x1e0 [ 1151.681010] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1151.681419] RIP: 0033:0x7ff7f3b834c0 [ 1151.681701] Code: 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20 [ 1151.683127] RSP: 002b:00007ffc48fb60b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 1151.683749] RAX: ffffffffffffffda RBX: 000055b9774fda20 RCX: 00007ff7f3b834c0 [ 1151.684302] RDX: 0000000000002000 RSI: 00007ffc48fb6140 RDI: 0000000000000008 [ 1151.684873] RBP: 00007ffc48fb6140 R08: 0000000000000000 R09: 0000000000000000 [ 1151.685406] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 1151.685972] R13: 000055b9774fda20 R14: 0000000000000000 R15: 00007ffc48fb613c [ 1151.686526] [ 1198.949900] ncat (5581) 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__->