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
[ 1.976500] ip (232) used greatest stack depth: 11864 bytes left
[ 7.895946] GACT probability NOT on
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 10.227095] 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 ]
[ 12.799347] tc (836) used greatest stack depth: 11592 bytes left
[ 14.990788] ping (964) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 44.602672]
[ 44.602767] ============================================
[ 44.603044] WARNING: possible recursive locking detected
[ 44.603313] 6.8.0-rc2-virtme #1 Not tainted
[ 44.603529] --------------------------------------------
[ 44.603800] ncat/1098 is trying to acquire lock:
[ 44.604038] ffff8cbb44f400b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 44.604444]
[ 44.604444] but task is already holding lock:
[ 44.604741] ffff8cbb44f40cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 44.605142]
[ 44.605142] other info that might help us debug this:
[ 44.605471] Possible unsafe locking scenario:
[ 44.605471]
[ 44.605776] CPU0
[ 44.605938] ----
[ 44.606072] lock(slock-AF_INET/1);
[ 44.606260] lock(slock-AF_INET/1);
[ 44.606448]
[ 44.606448] *** DEADLOCK ***
[ 44.606448]
[ 44.606750] May be due to missing lock nesting notation
[ 44.606750]
[ 44.607096] 8 locks held by ncat/1098:
[ 44.607291] #0: ffffffff8fd678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 44.607725] #1: ffffffff8fd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 44.608191] #2: ffff8cbb44f40cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 44.608613] #3: ffffffff8fd678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 44.609043] #4: ffffffff8fd678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 44.609484] #5: ffffffff8fd67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 44.609938] #6: ffffffff8fd678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 44.610376] #7: ffffffff8fd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 44.610850]
[ 44.610850] stack backtrace:
[ 44.611075] CPU: 1 PID: 1098 Comm: ncat Not tainted 6.8.0-rc2-virtme #1
[ 44.611415] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 44.611990] Call Trace:
[ 44.612123]
[ 44.612237] dump_stack_lvl+0x4b/0x80
[ 44.612431] __lock_acquire+0x1215/0x1750
[ 44.612641] ? sk_filter_trim_cap+0x53/0x360
[ 44.612866] lock_acquire+0xc1/0x2b0
[ 44.613054] ? tcp_v4_rcv+0xdba/0xf00
[ 44.613251] ? sk_filter_trim_cap+0x11a/0x360
[ 44.613475] _raw_spin_lock_nested+0x2e/0x40
[ 44.613704] ? tcp_v4_rcv+0xdba/0xf00
[ 44.613897] tcp_v4_rcv+0xdba/0xf00
[ 44.614083] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 44.614320] ip_local_deliver_finish+0xaf/0x180
[ 44.614553] __netif_receive_skb_one_core+0x8b/0xa0
[ 44.614807] netif_receive_skb+0x87/0x2c0
[ 44.615020] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 44.615291] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 44.615547] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 44.615821] tcf_action_exec+0xac/0x230
[ 44.616025] fl_classify+0x20e/0x260 [cls_flower]
[ 44.616280] ? notifier_call_chain+0x41/0xe0
[ 44.616503] ? __bfs+0xf3/0x240
[ 44.616672] ? check_irq_usage+0x19c/0xc40
[ 44.616885] ? check_path.constprop.0+0x24/0x50
[ 44.617124] ? check_noncircular+0x81/0x150
[ 44.617340] ? __lock_acquire+0xa6e/0x1750
[ 44.617557] ? ktime_get+0x7b/0x130
[ 44.617746] tcf_classify+0x17a/0x540
[ 44.617941] tc_run+0x9f/0x150
[ 44.618106] __dev_queue_xmit+0x311/0x1180
[ 44.618322] ? mark_held_locks+0x49/0x80
[ 44.618529] ip_finish_output2+0x39f/0xa20
[ 44.618742] ? ip_skb_dst_mtu+0x51/0x1c0
[ 44.618950] ? __ip_queue_xmit+0x1d5/0x6f0
[ 44.619164] __ip_queue_xmit+0x1d5/0x6f0
[ 44.619369] __tcp_transmit_skb+0xb65/0xd30
[ 44.619590] ? __alloc_skb+0xdc/0x1a0
[ 44.619786] tcp_rcv_state_process+0x4fb/0x1230
[ 44.620021] ? lock_acquire+0xc1/0x2b0
[ 44.620219] ? tcp_v4_rcv+0xdba/0xf00
[ 44.620414] ? tcp_v4_do_rcv+0x85/0x3a0
[ 44.620620] tcp_v4_do_rcv+0x85/0x3a0
[ 44.620813] tcp_v4_rcv+0xe54/0xf00
[ 44.621000] ? process_backlog+0x6f/0x260
[ 44.621207] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 44.621443] ip_local_deliver_finish+0xaf/0x180
[ 44.621678] __netif_receive_skb_one_core+0x8b/0xa0
[ 44.621933] process_backlog+0x7c/0x260
[ 44.622135] __napi_poll.constprop.0+0x27/0x1e0
[ 44.622370] net_rx_action+0x2be/0x340
[ 44.622568] __do_softirq+0xc8/0x37a
[ 44.622758] ? tcp_recvmsg+0x80/0x200
[ 44.622950] do_softirq+0x4d/0x90
[ 44.623127]
[ 44.623242]
[ 44.623360] __local_bh_enable_ip+0xbf/0xe0
[ 44.623579] tcp_recvmsg+0x80/0x200
[ 44.623765] inet_recvmsg+0x70/0x260
[ 44.623956] __sys_recvfrom+0x168/0x1a0
[ 44.624160] ? do_pselect.constprop.0+0xde/0x170
[ 44.624403] ? task_mm_cid_work+0x18b/0x3c0
[ 44.624620] ? restore_fpregs_from_fpstate+0x47/0xd0
[ 44.624878] __x64_sys_recvfrom+0x24/0x30
[ 44.625088] do_syscall_64+0xc9/0x1e0
[ 44.625283] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 44.625546] RIP: 0033:0x7fa8cb59f4c0
[ 44.625736] 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
[ 44.626664] RSP: 002b:00007ffc5536d548 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 44.627055] RAX: ffffffffffffffda RBX: 00005646fbf96a20 RCX: 00007fa8cb59f4c0
[ 44.627424] RDX: 0000000000002000 RSI: 00007ffc5536d5d0 RDI: 0000000000000008
[ 44.627791] RBP: 00007ffc5536d5d0 R08: 0000000000000000 R09: 0000000000000000
[ 44.628159] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 44.628523] R13: 00005646fbf96a20 R14: 0000000000000000 R15: 00007ffc5536d5cc
[ 44.628891]
[ 47.717070] ncat (1099) 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__->