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 ]
[ 2379.107108][T18922] ping (18922) used greatest stack depth: 23352 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 2382.320811][T18960] tc (18960) used greatest stack depth: 23144 bytes left
# [ 2389.179551][ C1]
[ 2389.179691][ C1] ============================================
[ 2389.179999][ C1] WARNING: possible recursive locking detected
[ 2389.180305][ C1] 6.8.0-rc2-virtme #1 Not tainted
[ 2389.180556][ C1] --------------------------------------------
[ 2389.180862][ C1] perl/18665 is trying to acquire lock:
[ 2389.181137][ C1] ffff8880097d1b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 2389.181597][ C1]
[ 2389.181597][ C1] but task is already holding lock:
[ 2389.181970][ C1] ffff8880097d0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 2389.182418][ C1]
[ 2389.182418][ C1] other info that might help us debug this:
[ 2389.182817][ C1] Possible unsafe locking scenario:
[ 2389.182817][ C1]
[ 2389.183185][ C1] CPU0
[ 2389.183351][ C1] ----
[ 2389.183518][ C1] lock(slock-AF_INET/1);
[ 2389.183743][ C1] lock(slock-AF_INET/1);
[ 2389.183968][ C1]
[ 2389.183968][ C1] *** DEADLOCK ***
[ 2389.183968][ C1]
[ 2389.184368][ C1] May be due to missing lock nesting notation
[ 2389.184368][ C1]
[ 2389.184781][ C1] 12 locks held by perl/18665:
[ 2389.185021][ C1] #0: ffff8880064688a8 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x80
[ 2389.185505][ C1] #1: ffff888006468948 (&tty->atomic_write_lock){+.+.}-{3:3}, at: iterate_tty_write+0x95/0x540
[ 2389.186026][ C1] #2: ffff888006468b30 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x18f/0x7a0
[ 2389.186509][ C1] #3: ffffc90000053398 (&ldata->output_lock){+.+.}-{3:3}, at: process_output_block+0x5e/0x790
[ 2389.187024][ C1] #4: ffffffff9a3447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 2389.187496][ C1] #5: ffffffff9a3447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 2389.188004][ C1] #6: ffff8880097d0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0
[ 2389.188473][ C1] #7: ffffffff9a3447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 2389.188944][ C1] #8: ffffffff9a3447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 2389.189429][ C1] #9: ffffffff9a344780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 2389.189923][ C1] #10: ffffffff9a3447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 2389.190441][ C1] #11: ffffffff9a3447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 2389.190952][ C1]
[ 2389.190952][ C1] stack backtrace:
[ 2389.191251][ C1] CPU: 1 PID: 18665 Comm: perl Not tainted 6.8.0-rc2-virtme #1
[ 2389.191626][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 2389.192238][ C1] Call Trace:
[ 2389.192404][ C1]
[ 2389.192558][ C1] dump_stack_lvl+0x64/0xb0
[ 2389.192789][ C1] validate_chain+0x525/0xa00
[ 2389.193030][ C1] ? __pfx_validate_chain+0x10/0x10
[ 2389.193295][ C1] ? hlock_class+0x4e/0x130
[ 2389.193526][ C1] ? mark_lock+0x38/0x3e0
[ 2389.193744][ C1] __lock_acquire+0xb67/0x1610
[ 2389.193985][ C1] ? lock_downgrade+0xa0/0x110
[ 2389.194226][ C1] ? mark_lock+0x38/0x3e0
[ 2389.194443][ C1] lock_acquire.part.0+0xe5/0x330
[ 2389.194697][ C1] ? tcp_v4_rcv+0x2161/0x29c0
[ 2389.194935][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2389.195217][ C1] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 2389.195496][ C1] ? lock_acquire+0x1c1/0x220
[ 2389.195733][ C1] ? tcp_v4_rcv+0x2161/0x29c0
[ 2389.195968][ C1] _raw_spin_lock_nested+0x33/0x80
[ 2389.196240][ C1] ? tcp_v4_rcv+0x2161/0x29c0
[ 2389.196476][ C1] tcp_v4_rcv+0x2161/0x29c0
[ 2389.196710][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2389.196959][ C1] ? __pfx_raw_v4_input+0x10/0x10
[ 2389.197213][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2389.197497][ C1] ip_protocol_deliver_rcu+0x93/0x360
[ 2389.197769][ C1] ip_local_deliver_finish+0x2ae/0x450
[ 2389.198045][ C1] ip_local_deliver+0x19d/0x480
[ 2389.198289][ C1] ? __pfx_ip_local_deliver+0x10/0x10
[ 2389.198560][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2389.198879][ C1] ip_rcv+0x564/0x740
[ 2389.199080][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 2389.199314][ C1] ? lock_acquire.part.0+0xe5/0x330
[ 2389.199579][ C1] ? netif_receive_skb_internal+0x84/0x300
[ 2389.199871][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 2389.200100][ C1] __netif_receive_skb_one_core+0x166/0x1b0
[ 2389.200397][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2389.200717][ C1] ? mark_held_locks+0xa5/0xf0
[ 2389.200958][ C1] ? lock_acquire+0x1c1/0x220
[ 2389.201193][ C1] ? netif_receive_skb_internal+0x84/0x300
[ 2389.201487][ C1] netif_receive_skb_internal+0xb0/0x300
[ 2389.201768][ C1] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 2389.202090][ C1] ? __copy_skb_header+0xaf/0x490
[ 2389.202344][ C1] ? __skb_clone+0x57a/0x760
[ 2389.202578][ C1] netif_receive_skb+0x55/0x280
[ 2389.202823][ C1] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 2389.203134][ C1] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 2389.203463][ C1] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 2389.203759][ C1] tcf_action_exec.part.0+0x112/0x3d0
[ 2389.204032][ C1] fl_classify+0x4dc/0x650 [cls_flower]
[ 2389.204322][ C1] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 2389.204630][ C1] ? __pfx_usage_match+0x10/0x10
[ 2389.204882][ C1] ? check_irq_usage+0x27e/0x850
[ 2389.205133][ C1] ? __pfx_check_irq_usage+0x10/0x10
[ 2389.205397][ C1] ? __bfs+0x247/0x650
[ 2389.205602][ C1] ? __pfx_hlock_conflict+0x10/0x10
[ 2389.205866][ C1] ? hlock_class+0x4e/0x130
[ 2389.206095][ C1] ? check_path.constprop.0+0x24/0x50
[ 2389.206363][ C1] ? check_noncircular+0x14e/0x3e0
[ 2389.206622][ C1] ? __pfx_check_noncircular+0x10/0x10
[ 2389.206898][ C1] ? __pfx_validate_chain+0x10/0x10
[ 2389.207159][ C1] ? hlock_class+0x4e/0x130
[ 2389.207390][ C1] __tcf_classify+0x329/0x7d0
[ 2389.207628][ C1] tcf_classify+0x283/0x930
[ 2389.207858][ C1] ? __pfx_tcf_classify+0x10/0x10
[ 2389.208111][ C1] ? lock_acquire.part.0+0xe5/0x330
[ 2389.208372][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 2389.208632][ C1] tc_run+0x2e4/0x5d0
[ 2389.208835][ C1] ? __pfx_tc_run+0x10/0x10
[ 2389.209066][ C1] ? lock_acquire+0x1c1/0x220
[ 2389.209303][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 2389.209561][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 2389.209819][ C1] __dev_queue_xmit+0x8eb/0x1ca0
[ 2389.210070][ C1] ? mark_lock+0x38/0x3e0
[ 2389.210288][ C1] ? mark_held_locks+0xa5/0xf0
[ 2389.210529][ C1] ? __pfx___dev_queue_xmit+0x10/0x10
[ 2389.210800][ C1] ? neigh_hh_output+0x348/0x590
[ 2389.211049][ C1] ? vrf_ip_local_out+0x781/0x860 [vrf]
[ 2389.211333][ C1] ip_finish_output2+0x786/0x18e0
[ 2389.211588][ C1] ? __pfx_ip_finish_output2+0x10/0x10
[ 2389.211871][ C1] ? __ip_finish_output+0x3dd/0x770
[ 2389.212139][ C1] ip_output+0x16b/0x4f0
[ 2389.212353][ C1] ? hlock_class+0x4e/0x130
[ 2389.212583][ C1] ? __pfx_ip_output+0x10/0x10
[ 2389.212824][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2389.213107][ C1] ? ip_local_out+0x114/0x3b0
[ 2389.213344][ C1] __ip_queue_xmit+0x672/0x1910
[ 2389.213590][ C1] ? __skb_clone+0x57a/0x760
[ 2389.213822][ C1] __tcp_transmit_skb+0x22b1/0x2d20
[ 2389.214088][ C1] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 2389.214366][ C1] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 2389.214667][ C1] tcp_write_xmit+0xe42/0x24c0
[ 2389.214910][ C1] ? ipv4_mtu+0x37/0x360
[ 2389.215126][ C1] ? __pfx_tcp_write_xmit+0x10/0x10
[ 2389.215386][ C1] ? __pfx_tcp_current_mss+0x10/0x10
[ 2389.215652][ C1] __tcp_push_pending_frames+0x96/0x320
[ 2389.215932][ C1] tcp_rcv_state_process+0x862/0x21c0
[ 2389.216202][ C1] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 2389.216494][ C1] ? find_held_lock+0x33/0x120
[ 2389.216733][ C1] ? tcp_v4_rcv+0x2161/0x29c0
[ 2389.216970][ C1] ? hlock_class+0x4e/0x130
[ 2389.217199][ C1] tcp_v4_do_rcv+0x1ac/0x8e0
[ 2389.217430][ C1] ? __pfx_tcp_v4_do_rcv+0x10/0x10
[ 2389.217689][ C1] tcp_v4_rcv+0x2362/0x29c0
[ 2389.217922][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 2389.218166][ C1] ? __pfx_raw_v4_input+0x10/0x10
[ 2389.218418][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 2389.218700][ C1] ip_protocol_deliver_rcu+0x93/0x360
[ 2389.218972][ C1] ip_local_deliver_finish+0x2ae/0x450
[ 2389.219245][ C1] ip_local_deliver+0x19d/0x480
[ 2389.219490][ C1] ? __pfx_ip_local_deliver+0x10/0x10
[ 2389.219760][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 2389.220078][ C1] ip_rcv+0x564/0x740
[ 2389.220279][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 2389.220510][ C1] ? lock_acquire.part.0+0xe5/0x330
[ 2389.220771][ C1] ? process_backlog+0x1ed/0x5e0
[ 2389.221020][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 2389.221248][ C1] __netif_receive_skb_one_core+0x166/0x1b0
[ 2389.221543][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 2389.221866][ C1] ? lock_acquire+0x1c1/0x220
[ 2389.222103][ C1] ? process_backlog+0x1ed/0x5e0
[ 2389.222352][ C1] process_backlog+0xd3/0x5e0
[ 2389.222590][ C1] __napi_poll.constprop.0+0xa2/0x450
[ 2389.222859][ C1] net_rx_action+0x440/0xb40
[ 2389.223094][ C1] ? __pfx_net_rx_action+0x10/0x10
[ 2389.223353][ C1] ? lockdep_unlock+0x220/0x230
[ 2389.223600][ C1] ? mark_held_locks+0xa5/0xf0
[ 2389.223842][ C1] __do_softirq+0x1b9/0x7ff
[ 2389.224073][ C1] irq_exit_rcu+0x98/0xc0
[ 2389.224296][ C1] sysvec_apic_timer_interrupt+0x75/0x80
[ 2389.224579][ C1]
[ 2389.224726][ C1]
[ 2389.224876][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 2389.225178][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70
[ 2389.225498][ C1] Code: 10 e8 31 9b a6 fd 48 89 ef e8 49 23 a7 fd 81 e3 00 02 00 00 75 1d 9c 58 f6 c4 02 75 29 48 85 db 74 01 fb 65 ff 0d c5 17 18 67 <74> 0e 5b 5d c3 cc cc cc cc e8 ef 2c c9 fd eb dc 0f 1f 44 00 00 5b
[ 2389.226469][ C1] RSP: 0018:ffffc9000111fa88 EFLAGS: 00000286
[ 2389.226772][ C1] RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff3891194
[ 2389.227168][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff99079f11
[ 2389.227563][ C1] RBP: ffffffff9ce239a0 R08: 0000000000000001 R09: fffffbfff388ac84
[ 2389.227957][ C1] R10: ffffffff9c456427 R11: 0000000000000000 R12: 0000000000000135
[ 2389.228350][ C1] R13: ffffffff9ce23ab0 R14: ffffffff9ce239a0 R15: ffff888002850000
[ 2389.228748][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70
[ 2389.229040][ C1] uart_write+0x220/0x440
[ 2389.229262][ C1] process_output_block+0x13e/0x790
[ 2389.229524][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 2389.229853][ C1] n_tty_write+0x414/0x7a0
[ 2389.230081][ C1] ? __pfx_n_tty_write+0x10/0x10
[ 2389.230330][ C1] ? __pfx_woken_wake_function+0x10/0x10
[ 2389.230615][ C1] ? lock_acquire+0x1c1/0x220
[ 2389.230852][ C1] ? iterate_tty_write+0x95/0x540
[ 2389.231106][ C1] iterate_tty_write+0x229/0x540
[ 2389.231357][ C1] file_tty_write.constprop.0+0x1db/0x370
[ 2389.231642][ C1] vfs_write+0x9e9/0x10a0
[ 2389.231867][ C1] ? __schedule+0x13df/0x1ac0
[ 2389.232103][ C1] ? __pfx_vfs_write+0x10/0x10
[ 2389.232347][ C1] ? __fget_light+0x54/0x1e0
[ 2389.232582][ C1] ksys_write+0xf5/0x1e0
[ 2389.232794][ C1] ? __pfx_ksys_write+0x10/0x10
[ 2389.233040][ C1] do_syscall_64+0xc9/0x1e0
[ 2389.233272][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 2389.233568][ C1] RIP: 0033:0x7f10b9a2b957
[ 2389.233793][ C1] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
[ 2389.234752][ C1] RSP: 002b:00007ffe300546d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 2389.235168][ C1] RAX: ffffffffffffffda RBX: 000055d031b6fea0 RCX: 00007f10b9a2b957
[ 2389.235563][ C1] RDX: 0000000000000001 RSI: 000055d031b6fea0 RDI: 0000000000000001
[ 2389.235957][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 2389.236351][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 000055d031b5c510
[ 2389.236747][ C1] R13: 000055d031b3d2a0 R14: 0000000000000001 R15: 000055d031b5c510
[ 2389.237145][ C1]
[ 2418.617536][T18966] ncat (18966) used greatest stack depth: 20864 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__->