make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests
make: Entering directory '/home/virtme/testing-4/tools/testing/selftests'
make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding'
make[1]: Entering directory '/home/virtme/testing-4/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 ]
# TEST: mirred egress flower redirect (skip_hw) [ OK ]
# TEST: mirred egress flower mirror (skip_hw) [ OK ]
# TEST: mirred egress matchall mirror (skip_hw) [ OK ]
[ 1447.196120][ T7306] ping (7306) used greatest stack depth: 23352 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1451.601113][ C0]
[ 1451.601282][ C0] ============================================
[ 1451.601617][ C0] WARNING: possible recursive locking detected
[ 1451.601959][ C0] 6.8.0-rc2-virtme #1 Not tainted
[ 1451.602258][ C0] --------------------------------------------
[ 1451.602607][ C0] ncat/7349 is trying to acquire lock:
[ 1451.602912][ C0] ffff888007400e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 1451.603435][ C0]
[ 1451.603435][ C0] but task is already holding lock:
[ 1451.603845][ C0] ffff888007401b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 1451.604360][ C0]
[ 1451.604360][ C0] other info that might help us debug this:
[ 1451.604807][ C0] Possible unsafe locking scenario:
[ 1451.604807][ C0]
[ 1451.605218][ C0] CPU0
[ 1451.605427][ C0] ----
[ 1451.605608][ C0] lock(slock-AF_INET/1);
[ 1451.605877][ C0] lock(slock-AF_INET/1);
[ 1451.606120][ C0]
[ 1451.606120][ C0] *** DEADLOCK ***
[ 1451.606120][ C0]
[ 1451.606554][ C0] May be due to missing lock nesting notation
[ 1451.606554][ C0]
[ 1451.606993][ C0] 8 locks held by ncat/7349:
[ 1451.607242][ C0] #0: ffffffffaa9447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1451.607742][ C0] #1: ffffffffaa9447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1451.608296][ C0] #2: ffff888007401b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 1451.608790][ C0] #3: ffffffffaa9447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1451.609282][ C0] #4: ffffffffaa9447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1451.609786][ C0] #5: ffffffffaa944780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 1451.610299][ C0] #6: ffffffffaa9447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1451.610834][ C0] #7: ffffffffaa9447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1451.611369][ C0]
[ 1451.611369][ C0] stack backtrace:
[ 1451.611692][ C0] CPU: 0 PID: 7349 Comm: ncat Not tainted 6.8.0-rc2-virtme #1
[ 1451.612076][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1451.612715][ C0] Call Trace:
[ 1451.612894][ C0]
[ 1451.613047][ C0] dump_stack_lvl+0x64/0xb0
[ 1451.613314][ C0] validate_chain+0x525/0xa00
[ 1451.613571][ C0] ? __pfx_validate_chain+0x10/0x10
[ 1451.613849][ C0] ? hlock_class+0x4e/0x130
[ 1451.614094][ C0] ? mark_lock+0x38/0x3e0
[ 1451.614334][ C0] __lock_acquire+0xb67/0x1610
[ 1451.614587][ C0] ? lock_downgrade+0xa0/0x110
[ 1451.614837][ C0] ? mark_lock+0x38/0x3e0
[ 1451.615079][ C0] lock_acquire.part.0+0xe5/0x330
[ 1451.615343][ C0] ? tcp_v4_rcv+0x2161/0x29c0
[ 1451.615602][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1451.615903][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1451.616202][ C0] ? lock_acquire+0x1c1/0x220
[ 1451.616449][ C0] ? tcp_v4_rcv+0x2161/0x29c0
[ 1451.616694][ C0] _raw_spin_lock_nested+0x33/0x80
[ 1451.616986][ C0] ? tcp_v4_rcv+0x2161/0x29c0
[ 1451.617236][ C0] tcp_v4_rcv+0x2161/0x29c0
[ 1451.617490][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1451.617756][ C0] ? __pfx_raw_v4_input+0x10/0x10
[ 1451.618031][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1451.618329][ C0] ip_protocol_deliver_rcu+0x93/0x360
[ 1451.618630][ C0] ip_local_deliver_finish+0x2ae/0x450
[ 1451.618918][ C0] ip_local_deliver+0x19d/0x480
[ 1451.619181][ C0] ? __pfx_ip_local_deliver+0x10/0x10
[ 1451.619469][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1451.619806][ C0] ip_rcv+0x564/0x740
[ 1451.620020][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1451.620268][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 1451.620543][ C0] ? netif_receive_skb_internal+0x84/0x300
[ 1451.620846][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1451.621097][ C0] __netif_receive_skb_one_core+0x166/0x1b0
[ 1451.621416][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1451.621749][ C0] ? mark_held_locks+0xa5/0xf0
[ 1451.622017][ C0] ? lock_acquire+0x1c1/0x220
[ 1451.622266][ C0] ? netif_receive_skb_internal+0x84/0x300
[ 1451.622585][ C0] netif_receive_skb_internal+0xb0/0x300
[ 1451.622879][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1451.623204][ C0] ? __copy_skb_header+0xaf/0x490
[ 1451.623494][ C0] ? __skb_clone+0x57a/0x760
[ 1451.623741][ C0] netif_receive_skb+0x55/0x280
[ 1451.624016][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1451.624361][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1451.624719][ C0] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1451.625034][ C0] tcf_action_exec.part.0+0x112/0x3d0
[ 1451.625325][ C0] fl_classify+0x4dc/0x650 [cls_flower]
[ 1451.625632][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1451.625974][ C0] ? __pfx_usage_match+0x10/0x10
[ 1451.626242][ C0] ? check_irq_usage+0x27e/0x850
[ 1451.626519][ C0] ? __pfx_check_irq_usage+0x10/0x10
[ 1451.626794][ C0] ? __bfs+0x247/0x650
[ 1451.627027][ C0] ? __pfx_hlock_conflict+0x10/0x10
[ 1451.627302][ C0] ? hlock_class+0x4e/0x130
[ 1451.627557][ C0] ? check_path.constprop.0+0x24/0x50
[ 1451.627837][ C0] ? check_noncircular+0x14e/0x3e0
[ 1451.628117][ C0] ? __pfx_check_noncircular+0x10/0x10
[ 1451.628407][ C0] __tcf_classify+0x329/0x7d0
[ 1451.628660][ C0] tcf_classify+0x283/0x930
[ 1451.628898][ C0] ? __pfx_tcf_classify+0x10/0x10
[ 1451.629170][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 1451.629451][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1451.629731][ C0] tc_run+0x2e4/0x5d0
[ 1451.629943][ C0] ? __pfx_tc_run+0x10/0x10
[ 1451.630196][ C0] ? lock_acquire+0x1c1/0x220
[ 1451.630458][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1451.630731][ C0] __dev_queue_xmit+0x8eb/0x1ca0
[ 1451.630991][ C0] ? hlock_class+0x4e/0x130
[ 1451.631255][ C0] ? mark_lock+0x38/0x3e0
[ 1451.631491][ C0] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1451.631791][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1451.632148][ C0] ? neigh_hh_output+0x348/0x590
[ 1451.632419][ C0] ip_finish_output2+0x786/0x18e0
[ 1451.632697][ C0] ? __pfx_ip_finish_output2+0x10/0x10
[ 1451.632994][ C0] ? __ip_finish_output+0x10f/0x770
[ 1451.633277][ C0] ip_output+0x16b/0x4f0
[ 1451.633511][ C0] ? __pfx_ip_output+0x10/0x10
[ 1451.633771][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1451.634075][ C0] ? ip_local_out+0x114/0x3b0
[ 1451.634324][ C0] __ip_queue_xmit+0x672/0x1910
[ 1451.634597][ C0] ? __create_object+0x5e/0xb0
[ 1451.634850][ C0] __tcp_transmit_skb+0x22b1/0x2d20
[ 1451.635135][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1451.635428][ C0] ? __tcp_send_ack.part.0+0x66/0x6e0
[ 1451.635719][ C0] tcp_rcv_state_process+0x8a7/0x21c0
[ 1451.636005][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1451.636322][ C0] ? find_held_lock+0x33/0x120
[ 1451.636577][ C0] ? tcp_v4_rcv+0x2161/0x29c0
[ 1451.636834][ C0] ? hlock_class+0x4e/0x130
[ 1451.637087][ C0] tcp_v4_do_rcv+0x1ac/0x8e0
[ 1451.637337][ C0] ? __pfx_tcp_v4_do_rcv+0x10/0x10
[ 1451.637603][ C0] tcp_v4_rcv+0x2362/0x29c0
[ 1451.637847][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1451.638108][ C0] ? __pfx_raw_v4_input+0x10/0x10
[ 1451.638377][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1451.638698][ C0] ip_protocol_deliver_rcu+0x93/0x360
[ 1451.638983][ C0] ip_local_deliver_finish+0x2ae/0x450
[ 1451.639273][ C0] ip_local_deliver+0x19d/0x480
[ 1451.639536][ C0] ? __pfx_ip_local_deliver+0x10/0x10
[ 1451.639820][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1451.640161][ C0] ip_rcv+0x564/0x740
[ 1451.640371][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1451.640621][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 1451.640903][ C0] ? process_backlog+0x1ed/0x5e0
[ 1451.641178][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 1451.641419][ C0] __netif_receive_skb_one_core+0x166/0x1b0
[ 1451.641735][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1451.642069][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1451.642374][ C0] ? lock_acquire+0x1c1/0x220
[ 1451.642624][ C0] ? process_backlog+0x1ed/0x5e0
[ 1451.642883][ C0] process_backlog+0xd3/0x5e0
[ 1451.643147][ C0] __napi_poll.constprop.0+0xa2/0x450
[ 1451.643446][ C0] net_rx_action+0x440/0xb40
[ 1451.643700][ C0] ? __pfx_net_rx_action+0x10/0x10
[ 1451.643965][ C0] ? kvm_clock_get_cycles+0x18/0x30
[ 1451.644251][ C0] ? ktime_get+0xb3/0x190
[ 1451.644489][ C0] ? hrtimer_interrupt+0x30e/0x770
[ 1451.644755][ C0] ? hrtimer_interrupt+0x31a/0x770
[ 1451.645026][ C0] __do_softirq+0x1b9/0x7ff
[ 1451.645274][ C0] ? tcp_recvmsg+0xf8/0x4f0
[ 1451.645517][ C0] do_softirq+0x4d/0xa0
[ 1451.645754][ C0]
[ 1451.645916][ C0]
[ 1451.646083][ C0] __local_bh_enable_ip+0xf6/0x120
[ 1451.646359][ C0] tcp_recvmsg+0xf8/0x4f0
[ 1451.646597][ C0] ? __pfx_tcp_recvmsg+0x10/0x10
[ 1451.646855][ C0] ? core_sys_select+0x620/0x710
[ 1451.647114][ C0] ? __pfx_core_sys_select+0x10/0x10
[ 1451.647406][ C0] inet_recvmsg+0xf9/0x2c0
[ 1451.647647][ C0] ? __pfx_inet_recvmsg+0x10/0x10
[ 1451.647920][ C0] ? __fget_light+0x54/0x1e0
[ 1451.648174][ C0] ? sockfd_lookup_light+0x1a/0x160
[ 1451.648456][ C0] __sys_recvfrom+0x2fb/0x3b0
[ 1451.648714][ C0] ? __pfx___sys_recvfrom+0x10/0x10
[ 1451.648997][ C0] ? __pfx___lock_release+0x10/0x10
[ 1451.649273][ C0] ? do_pselect.constprop.0+0x12b/0x1e0
[ 1451.649562][ C0] ? __pfx_do_pselect.constprop.0+0x10/0x10
[ 1451.649883][ C0] ? __pfx_task_work_run+0x10/0x10
[ 1451.650157][ C0] __x64_sys_recvfrom+0xe0/0x1c0
[ 1451.650426][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 1451.650768][ C0] do_syscall_64+0xc9/0x1e0
[ 1451.651028][ C0] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1451.651339][ C0] RIP: 0033:0x7fd1c7cb84c0
[ 1451.651588][ C0] 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
[ 1451.652588][ C0] RSP: 002b:00007fff400b85c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 1451.653027][ C0] RAX: ffffffffffffffda RBX: 000055a81c4dba20 RCX: 00007fd1c7cb84c0
[ 1451.653448][ C0] RDX: 0000000000002000 RSI: 00007fff400b8650 RDI: 0000000000000008
[ 1451.653873][ C0] RBP: 00007fff400b8650 R08: 0000000000000000 R09: 0000000000000000
[ 1451.654287][ C0] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1451.654713][ C0] R13: 000055a81c4dba20 R14: 0000000000000000 R15: 00007fff400b864c
[ 1451.655127][ C0]
[ 1451.880936][ T7350] ncat (7350) used greatest stack depth: 21248 bytes left
[ 1507.226400][ T7349] ncat (7349) used greatest stack depth: 20952 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-4/tools/testing/selftests/net/forwarding'
make: Leaving directory '/home/virtme/testing-4/tools/testing/selftests'
xx__-> echo $?
0
xx__->