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 0
# 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 ]
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 1247.369307][ T6978] tc (6978) used greatest stack depth: 22808 bytes left
[ 1248.183360][ C3]
[ 1248.183531][ C3] ============================================
[ 1248.183850][ C3] WARNING: possible recursive locking detected
[ 1248.184182][ C3] 6.8.0-rc1-virtme #1 Not tainted
[ 1248.184445][ C3] --------------------------------------------
[ 1248.184768][ C3] ncat/6983 is trying to acquire lock:
[ 1248.185056][ C3] ffff888009748e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1248.185546][ C3]
[ 1248.185546][ C3] but task is already holding lock:
[ 1248.185943][ C3] ffff888009749b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1248.186418][ C3]
[ 1248.186418][ C3] other info that might help us debug this:
[ 1248.186835][ C3] Possible unsafe locking scenario:
[ 1248.186835][ C3]
[ 1248.187231][ C3] CPU0
[ 1248.187406][ C3] ----
[ 1248.187585][ C3] lock(slock-AF_INET/1);
[ 1248.187826][ C3] lock(slock-AF_INET/1);
[ 1248.188062][ C3]
[ 1248.188062][ C3] *** DEADLOCK ***
[ 1248.188062][ C3]
[ 1248.188484][ C3] May be due to missing lock nesting notation
[ 1248.188484][ C3]
[ 1248.188920][ C3] 8 locks held by ncat/6983:
[ 1248.189167][ C3] #0: ffffffff963447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1248.189664][ C3] #1: ffffffff963447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1248.190206][ C3] #2: ffff888009749b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1248.190697][ C3] #3: ffffffff963447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1248.191193][ C3] #4: ffffffff963447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1248.191708][ C3] #5: ffffffff96344780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 1248.192235][ C3] #6: ffffffff963447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1248.192779][ C3] #7: ffffffff963447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1248.193309][ C3]
[ 1248.193309][ C3] stack backtrace:
[ 1248.193627][ C3] CPU: 3 PID: 6983 Comm: ncat Not tainted 6.8.0-rc1-virtme #1
[ 1248.194016][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1248.194654][ C3] Call Trace:
[ 1248.194831][ C3]
[ 1248.194987][ C3] dump_stack_lvl+0x64/0xb0
[ 1248.195233][ C3] validate_chain+0x525/0xa00
[ 1248.195487][ C3] ? __pfx_validate_chain+0x10/0x10
[ 1248.195768][ C3] ? hlock_class+0x4e/0x130
[ 1248.196015][ C3] ? mark_lock+0x38/0x3e0
[ 1248.196250][ C3] __lock_acquire+0xb67/0x1610
[ 1248.196506][ C3] ? lock_downgrade+0x90/0x110
[ 1248.196759][ C3] ? mark_lock+0x38/0x3e0
[ 1248.196992][ C3] lock_acquire.part.0+0xe5/0x330
[ 1248.197261][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1248.197512][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1248.197815][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1248.198113][ C3] ? lock_acquire+0x1c1/0x220
[ 1248.198363][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1248.198613][ C3] _raw_spin_lock_nested+0x33/0x80
[ 1248.198886][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1248.199138][ C3] tcp_v4_rcv+0x2159/0x29b0
[ 1248.199385][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1248.199647][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 1248.199919][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1248.200219][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 1248.200504][ C3] ip_local_deliver_finish+0x2ae/0x450
[ 1248.200792][ C3] ip_local_deliver+0x19d/0x480
[ 1248.201055][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 1248.201345][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1248.201682][ C3] ip_rcv+0x564/0x740
[ 1248.201892][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1248.202133][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1248.202409][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 1248.202714][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1248.202958][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 1248.203273][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1248.203615][ C3] ? mark_held_locks+0xa5/0xf0
[ 1248.203873][ C3] ? lock_acquire+0x1c1/0x220
[ 1248.204122][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 1248.204429][ C3] netif_receive_skb_internal+0xb0/0x300
[ 1248.204726][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1248.205055][ C3] ? __copy_skb_header+0xaf/0x490
[ 1248.205324][ C3] ? __skb_clone+0x57a/0x760
[ 1248.205573][ C3] netif_receive_skb+0x55/0x280
[ 1248.205839][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1248.206165][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1248.206511][ C3] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1248.206826][ C3] tcf_action_exec.part.0+0x115/0x3d0
[ 1248.207114][ C3] fl_classify+0x4dc/0x650 [cls_flower]
[ 1248.207422][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1248.207745][ C3] ? __pfx_usage_match+0x10/0x10
[ 1248.208007][ C3] ? check_irq_usage+0x27e/0x850
[ 1248.208273][ C3] ? __pfx_check_irq_usage+0x10/0x10
[ 1248.208555][ C3] ? __bfs+0x24a/0x650
[ 1248.208774][ C3] ? __pfx_check_irq_usage+0x10/0x10
[ 1248.209051][ C3] ? __bfs+0x24a/0x650
[ 1248.209268][ C3] ? __pfx_hlock_conflict+0x10/0x10
[ 1248.209544][ C3] ? hlock_class+0x4e/0x130
[ 1248.209783][ C3] ? check_path.constprop.0+0x24/0x50
[ 1248.210067][ C3] ? check_noncircular+0x14e/0x3e0
[ 1248.210338][ C3] ? __pfx_check_noncircular+0x10/0x10
[ 1248.210634][ C3] __tcf_classify+0x32c/0x7d0
[ 1248.210884][ C3] tcf_classify+0x283/0x930
[ 1248.211123][ C3] ? __pfx_tcf_classify+0x10/0x10
[ 1248.211389][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1248.211663][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1248.211933][ C3] tc_run+0x2e4/0x5d0
[ 1248.212153][ C3] ? __pfx_tc_run+0x10/0x10
[ 1248.212397][ C3] ? lock_acquire+0x1c1/0x220
[ 1248.212646][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1248.212920][ C3] __dev_queue_xmit+0x8eb/0x1ca0
[ 1248.213182][ C3] ? hlock_class+0x4e/0x130
[ 1248.213424][ C3] ? mark_lock+0x38/0x3e0
[ 1248.213656][ C3] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1248.213945][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1248.214293][ C3] ? neigh_hh_output+0x348/0x590
[ 1248.214561][ C3] ip_finish_output2+0x786/0x18e0
[ 1248.214829][ C3] ? __pfx_ip_finish_output2+0x10/0x10
[ 1248.215115][ C3] ? __ip_finish_output+0x10f/0x770
[ 1248.215394][ C3] ip_output+0x16b/0x4f0
[ 1248.215621][ C3] ? __pfx_ip_output+0x10/0x10
[ 1248.215878][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1248.216177][ C3] ? ip_local_out+0x114/0x3b0
[ 1248.216429][ C3] __ip_queue_xmit+0x672/0x1910
[ 1248.216688][ C3] ? __create_object+0x5e/0xb0
[ 1248.216945][ C3] __tcp_transmit_skb+0x22b1/0x2d20
[ 1248.217226][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1248.217516][ C3] ? __tcp_send_ack.part.0+0x66/0x6e0
[ 1248.217799][ C3] tcp_rcv_state_process+0x862/0x1fd0
[ 1248.218081][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1248.218327][ C3] ? hlock_class+0x4e/0x130
[ 1248.218565][ C3] ? __lock_acquired+0x18a/0x6b0
[ 1248.218824][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1248.219133][ C3] ? __pfx___lock_acquired+0x10/0x10
[ 1248.219414][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1248.219715][ C3] tcp_v4_do_rcv+0x154/0x850
[ 1248.219959][ C3] tcp_v4_rcv+0x235a/0x29b0
[ 1248.220208][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1248.220467][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 1248.220737][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1248.221038][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 1248.221324][ C3] ip_local_deliver_finish+0x2ae/0x450
[ 1248.221612][ C3] ip_local_deliver+0x19d/0x480
[ 1248.221870][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 1248.222158][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1248.222496][ C3] ip_rcv+0x564/0x740
[ 1248.222708][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1248.222947][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1248.223221][ C3] ? process_backlog+0x1ed/0x5e0
[ 1248.223480][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1248.223723][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 1248.224042][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1248.224384][ C3] ? lock_acquire+0x1c1/0x220
[ 1248.224634][ C3] ? process_backlog+0x1ed/0x5e0
[ 1248.224898][ C3] process_backlog+0xd3/0x5e0
[ 1248.225144][ C3] ? mark_lock+0x38/0x3e0
[ 1248.225372][ C3] ? __kasan_slab_free+0x107/0x1c0
[ 1248.225647][ C3] __napi_poll.constprop.0+0xa5/0x450
[ 1248.225941][ C3] net_rx_action+0x440/0xb40
[ 1248.226187][ C3] ? __pfx_net_rx_action+0x10/0x10
[ 1248.226461][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 1248.226810][ C3] __do_softirq+0x1bc/0x7ff
[ 1248.227050][ C3] ? tcp_recvmsg+0xf8/0x4f0
[ 1248.227290][ C3] do_softirq+0x4d/0xa0
[ 1248.227515][ C3]
[ 1248.227671][ C3]
[ 1248.227826][ C3] __local_bh_enable_ip+0xf6/0x120
[ 1248.228097][ C3] tcp_recvmsg+0xf8/0x4f0
[ 1248.228332][ C3] ? __lock_release+0x40f/0x880
[ 1248.228591][ C3] ? __pfx_tcp_recvmsg+0x10/0x10
[ 1248.228856][ C3] ? __pfx___lock_release+0x10/0x10
[ 1248.229131][ C3] ? __pfx_validate_chain+0x10/0x10
[ 1248.229405][ C3] inet_recvmsg+0xf9/0x2c0
[ 1248.229643][ C3] ? __pfx_inet_recvmsg+0x10/0x10
[ 1248.229911][ C3] ? __fget_light+0x54/0x1e0
[ 1248.230163][ C3] ? sockfd_lookup_light+0x1a/0x160
[ 1248.230439][ C3] __sys_recvfrom+0x2fb/0x3b0
[ 1248.230690][ C3] ? __pfx___sys_recvfrom+0x10/0x10
[ 1248.230964][ C3] ? reacquire_held_locks+0x242/0x500
[ 1248.231248][ C3] ? do_user_addr_fault+0x3fa/0xba0
[ 1248.231527][ C3] ? hlock_class+0x4e/0x130
[ 1248.231765][ C3] ? __lock_release+0x40f/0x880
[ 1248.232021][ C3] ? __pfx___lock_release+0x10/0x10
[ 1248.232294][ C3] ? __up_read+0x1a8/0x790
[ 1248.232530][ C3] ? __pfx___up_read+0x10/0x10
[ 1248.232787][ C3] ? do_user_addr_fault+0x469/0xba0
[ 1248.233064][ C3] __x64_sys_recvfrom+0xe0/0x1c0
[ 1248.233327][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 1248.233677][ C3] do_syscall_64+0xcc/0x1e0
[ 1248.233924][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1248.234245][ C3] RIP: 0033:0x7f73b2b1e4c0
[ 1248.234485][ C3] 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
[ 1248.235494][ C3] RSP: 002b:00007ffe6ed22178 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
[ 1248.235941][ C3] RAX: ffffffffffffffda RBX: 000055d00e2e0a20 RCX: 00007f73b2b1e4c0
[ 1248.236355][ C3] RDX: 0000000000002000 RSI: 00007ffe6ed22200 RDI: 0000000000000008
[ 1248.236775][ C3] RBP: 00007ffe6ed22200 R08: 0000000000000000 R09: 0000000000000000
[ 1248.237191][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1248.237604][ C3] R13: 000055d00e2e0a20 R14: 0000000000000000 R15: 00007ffe6ed221fc
[ 1248.238021][ C3]
# [ 1264.226115][ T6984] ncat (6984) used greatest stack depth: 21352 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__->