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
[ 39.827427][ T329] GACT probability NOT on
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 44.895766][ T391] 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 ]
[ 51.777904][ T467] tc (467) used greatest stack depth: 23080 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 64.220203][ C1]
[ 64.220348][ C1] ============================================
[ 64.220665][ C1] WARNING: possible recursive locking detected
[ 64.220979][ C1] 6.8.0-rc2-virtme #1 Not tainted
[ 64.221238][ C1] --------------------------------------------
[ 64.221553][ C1] perl/222 is trying to acquire lock:
[ 64.221826][ C1] ffff888006fd9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x21ff/0x2aa0
[ 64.222293][ C1]
[ 64.222293][ C1] but task is already holding lock:
[ 64.222668][ C1] ffff888006fd8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x21ff/0x2aa0
[ 64.223129][ C1]
[ 64.223129][ C1] other info that might help us debug this:
[ 64.223536][ C1] Possible unsafe locking scenario:
[ 64.223536][ C1]
[ 64.223915][ C1] CPU0
[ 64.224087][ C1] ----
[ 64.224256][ C1] lock(slock-AF_INET/1);
[ 64.224488][ C1] lock(slock-AF_INET/1);
[ 64.224719][ C1]
[ 64.224719][ C1] *** DEADLOCK ***
[ 64.224719][ C1]
[ 64.225129][ C1] May be due to missing lock nesting notation
[ 64.225129][ C1]
[ 64.225549][ C1] 12 locks held by perl/222:
[ 64.225785][ C1] #0: ffff8880065b08a8 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x80
[ 64.226286][ C1] #1: ffff8880065b0948 (&tty->atomic_write_lock){+.+.}-{3:3}, at: iterate_tty_write+0x95/0x540
[ 64.226825][ C1] #2: ffff8880065b0b30 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x18f/0x7a0
[ 64.227329][ C1] #3: ffffc90000053398 (&ldata->output_lock){+.+.}-{3:3}, at: process_output_block+0x5e/0x790
[ 64.227866][ C1] #4: ffffffff84d447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 64.228352][ C1] #5: ffffffff84d447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 64.228871][ C1] #6: ffff888006fd8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x21ff/0x2aa0
[ 64.229350][ C1] #7: ffffffff84d447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 64.229832][ C1] #8: ffffffff84d447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 64.230329][ C1] #9: ffffffff84d44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 64.230834][ C1] #10: ffffffff84d447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 64.231378][ C1] #11: ffffffff84d447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 64.231901][ C1]
[ 64.231901][ C1] stack backtrace:
[ 64.232209][ C1] CPU: 1 PID: 222 Comm: perl Not tainted 6.8.0-rc2-virtme #1
[ 64.232582][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 64.233203][ C1] Call Trace:
[ 64.233374][ C1]
[ 64.233524][ C1] dump_stack_lvl+0x64/0xb0
[ 64.233765][ C1] validate_chain+0x525/0xa00
[ 64.234010][ C1] ? __pfx_validate_chain+0x10/0x10
[ 64.234275][ C1] ? hlock_class+0x4e/0x130
[ 64.234513][ C1] ? mark_lock+0x38/0x3e0
[ 64.234739][ C1] __lock_acquire+0xb67/0x1610
[ 64.234988][ C1] ? lock_downgrade+0xa0/0x110
[ 64.235234][ C1] ? mark_lock+0x38/0x3e0
[ 64.235457][ C1] lock_acquire.part.0+0xe5/0x330
[ 64.235715][ C1] ? tcp_v4_rcv+0x21ff/0x2aa0
[ 64.235957][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 64.236245][ C1] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 64.236529][ C1] ? lock_acquire+0x1c1/0x220
[ 64.236771][ C1] ? tcp_v4_rcv+0x21ff/0x2aa0
[ 64.237025][ C1] _raw_spin_lock_nested+0x33/0x80
[ 64.237289][ C1] ? tcp_v4_rcv+0x21ff/0x2aa0
[ 64.237533][ C1] tcp_v4_rcv+0x21ff/0x2aa0
[ 64.237770][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 64.238021][ C1] ? __pfx_raw_v4_input+0x10/0x10
[ 64.238280][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 64.238568][ C1] ip_protocol_deliver_rcu+0x93/0x360
[ 64.238850][ C1] ip_local_deliver_finish+0x2ae/0x480
[ 64.239135][ C1] ip_local_deliver+0x19d/0x480
[ 64.239385][ C1] ? __pfx_ip_local_deliver+0x10/0x10
[ 64.239658][ C1] ? tcp_v4_early_demux+0x59a/0x9d0
[ 64.239925][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 64.240249][ C1] ip_rcv+0x564/0x740
[ 64.240454][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 64.240689][ C1] ? lock_acquire.part.0+0xe5/0x330
[ 64.240954][ C1] ? netif_receive_skb_internal+0x84/0x300
[ 64.241263][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 64.241494][ C1] __netif_receive_skb_one_core+0x166/0x1b0
[ 64.241796][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 64.242131][ C1] ? mark_held_locks+0xa5/0xf0
[ 64.242377][ C1] ? lock_acquire+0x1c1/0x220
[ 64.242618][ C1] ? netif_receive_skb_internal+0x84/0x300
[ 64.242915][ C1] netif_receive_skb_internal+0xb0/0x300
[ 64.243203][ C1] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 64.243522][ C1] ? __copy_skb_header+0xaf/0x490
[ 64.243781][ C1] ? __skb_clone+0x57a/0x760
[ 64.244015][ C1] netif_receive_skb+0x55/0x280
[ 64.244265][ C1] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 64.244584][ C1] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 64.244919][ C1] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 64.245222][ C1] tcf_action_exec.part.0+0x112/0x3d0
[ 64.245499][ C1] fl_classify+0x4dc/0x650 [cls_flower]
[ 64.245802][ C1] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 64.246119][ C1] ? __pfx_check_irq_usage+0x10/0x10
[ 64.246389][ C1] ? __bfs+0x247/0x650
[ 64.246601][ C1] ? __pfx_hlock_conflict+0x10/0x10
[ 64.246868][ C1] ? check_path.constprop.0+0x24/0x50
[ 64.247156][ C1] ? check_noncircular+0x14e/0x3e0
[ 64.247418][ C1] ? mark_lock+0x38/0x3e0
[ 64.247641][ C1] ? __pfx_check_noncircular+0x10/0x10
[ 64.247919][ C1] ? __lock_acquire+0xb67/0x1610
[ 64.248175][ C1] ? hlock_class+0x4e/0x130
[ 64.248407][ C1] ? check_prev_add+0x773/0xce0
[ 64.248657][ C1] __tcf_classify+0x329/0x7d0
[ 64.248900][ C1] tcf_classify+0x283/0x930
[ 64.249135][ C1] ? __pfx_tcf_classify+0x10/0x10
[ 64.249393][ C1] ? __dev_queue_xmit+0x1da/0x17e0
[ 64.249655][ C1] ? __dev_queue_xmit+0x1da/0x17e0
[ 64.249930][ C1] tc_run+0x2e4/0x5d0
[ 64.250137][ C1] ? __pfx_tc_run+0x10/0x10
[ 64.250374][ C1] ? lock_acquire+0x1c1/0x220
[ 64.250613][ C1] ? __dev_queue_xmit+0x1da/0x17e0
[ 64.250881][ C1] __dev_queue_xmit+0x686/0x17e0
[ 64.251134][ C1] ? mark_held_locks+0xa5/0xf0
[ 64.251380][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 64.251713][ C1] ? __pfx___dev_queue_xmit+0x10/0x10
[ 64.251989][ C1] ? neigh_hh_output+0x348/0x590
[ 64.252245][ C1] ip_finish_output2+0x786/0x18e0
[ 64.252503][ C1] ? __pfx_ip_finish_output2+0x10/0x10
[ 64.252781][ C1] ? __ip_finish_output+0x3dd/0x770
[ 64.253048][ C1] ip_output+0x16b/0x4f0
[ 64.253264][ C1] ? tcp_clean_rtx_queue.constprop.0+0x9ae/0x2bf0
[ 64.253592][ C1] ? __pfx_ip_output+0x10/0x10
[ 64.253836][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 64.254135][ C1] ? ip_local_out+0x114/0x3b0
[ 64.254381][ C1] __ip_queue_xmit+0x672/0x1910
[ 64.254636][ C1] ? __skb_clone+0x57a/0x760
[ 64.254873][ C1] __tcp_transmit_skb+0x22b1/0x2d20
[ 64.255142][ C1] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 64.255425][ C1] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 64.255731][ C1] tcp_write_xmit+0x94f/0x1cb0
[ 64.255977][ C1] ? ipv4_mtu+0x37/0x360
[ 64.256198][ C1] ? __pfx_tcp_write_xmit+0x10/0x10
[ 64.256464][ C1] ? __pfx_tcp_current_mss+0x10/0x10
[ 64.256736][ C1] __tcp_push_pending_frames+0x96/0x320
[ 64.257028][ C1] tcp_rcv_state_process+0x7ca/0x21d0
[ 64.257304][ C1] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 64.257607][ C1] ? find_held_lock+0x33/0x120
[ 64.257853][ C1] ? tcp_v4_rcv+0x21ff/0x2aa0
[ 64.258093][ C1] ? hlock_class+0x4e/0x130
[ 64.258325][ C1] tcp_v4_do_rcv+0x1ac/0x8f0
[ 64.258566][ C1] ? __pfx_tcp_v4_do_rcv+0x10/0x10
[ 64.258829][ C1] tcp_v4_rcv+0x242a/0x2aa0
[ 64.259065][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 64.259312][ C1] ? __pfx_raw_v4_input+0x10/0x10
[ 64.259572][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 64.259860][ C1] ip_protocol_deliver_rcu+0x93/0x360
[ 64.260134][ C1] ip_local_deliver_finish+0x2ae/0x480
[ 64.260413][ C1] ip_local_deliver+0x19d/0x480
[ 64.260660][ C1] ? __pfx_ip_local_deliver+0x10/0x10
[ 64.260934][ C1] ? tcp_v4_early_demux+0x59a/0x9d0
[ 64.261201][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 64.261525][ C1] ip_rcv+0x564/0x740
[ 64.261729][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 64.261963][ C1] ? lock_acquire.part.0+0xe5/0x330
[ 64.262230][ C1] ? process_backlog+0x1ed/0x5e0
[ 64.262498][ C1] ? __pfx_ip_rcv+0x10/0x10
[ 64.262729][ C1] __netif_receive_skb_one_core+0x166/0x1b0
[ 64.263032][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 64.263360][ C1] ? lock_acquire+0x1c1/0x220
[ 64.263603][ C1] ? process_backlog+0x1ed/0x5e0
[ 64.263858][ C1] process_backlog+0xd3/0x5e0
[ 64.264099][ C1] __napi_poll.constprop.0+0xa2/0x460
[ 64.264378][ C1] net_rx_action+0x440/0xb40
[ 64.264616][ C1] ? __pfx_net_rx_action+0x10/0x10
[ 64.264880][ C1] ? lockdep_unlock+0x220/0x230
[ 64.265132][ C1] ? mark_held_locks+0xa5/0xf0
[ 64.265379][ C1] __do_softirq+0x1b9/0x7ff
[ 64.265615][ C1] irq_exit_rcu+0x98/0xc0
[ 64.265838][ C1] sysvec_apic_timer_interrupt+0x75/0x80
[ 64.266127][ C1]
[ 64.266277][ C1]
[ 64.266428][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 64.266738][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70
[ 64.267078][ C1] Code: 10 e8 91 49 a6 fd 48 89 ef e8 a9 d1 a6 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 25 c6 77 7c <74> 0e 5b 5d c3 cc cc cc cc e8 2f 92 c8 fd eb dc 0f 1f 44 00 00 5b
[ 64.268057][ C1] RSP: 0018:ffffc90000adfa88 EFLAGS: 00000286
[ 64.268369][ C1] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff0dd1552
[ 64.268771][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83a7f0b1
[ 64.269176][ C1] RBP: ffffffff87825860 R08: 0000000000000001 R09: fffffbfff0dcb084
[ 64.269578][ C1] R10: ffffffff86e58427 R11: 0000000000000000 R12: 00000000000000f0
[ 64.269989][ C1] R13: ffffffff87825970 R14: ffffffff87825860 R15: ffff888004730000
[ 64.270400][ C1] ? _raw_spin_unlock_irqrestore+0x51/0x70
[ 64.270701][ C1] uart_write+0x220/0x440
[ 64.270924][ C1] process_output_block+0x13e/0x790
[ 64.271194][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 64.271530][ C1] n_tty_write+0x414/0x7a0
[ 64.271760][ C1] ? __pfx_n_tty_write+0x10/0x10
[ 64.272014][ C1] ? __pfx_woken_wake_function+0x10/0x10
[ 64.272305][ C1] ? lock_acquire+0x1c1/0x220
[ 64.272550][ C1] ? iterate_tty_write+0x95/0x540
[ 64.272810][ C1] iterate_tty_write+0x229/0x540
[ 64.273067][ C1] file_tty_write.constprop.0+0x1db/0x370
[ 64.273361][ C1] vfs_write+0x9e9/0x10a0
[ 64.273588][ C1] ? __schedule+0x13df/0x1ac0
[ 64.273831][ C1] ? __pfx_vfs_write+0x10/0x10
[ 64.274080][ C1] ? __fget_light+0x54/0x1e0
[ 64.274319][ C1] ksys_write+0xf5/0x1e0
[ 64.274539][ C1] ? __pfx_ksys_write+0x10/0x10
[ 64.274792][ C1] do_syscall_64+0xc9/0x1e0
[ 64.275026][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 64.275330][ C1] RIP: 0033:0x7f48e38f6957
[ 64.275561][ 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
[ 64.276551][ C1] RSP: 002b:00007ffdd39ab938 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 64.276977][ C1] RAX: ffffffffffffffda RBX: 0000555b4d356e70 RCX: 00007f48e38f6957
[ 64.277399][ C1] RDX: 0000000000000001 RSI: 0000555b4d356e70 RDI: 0000000000000001
[ 64.277802][ C1] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 64.278206][ C1] R10: 0000000000000001 R11: 0000000000000246 R12: 0000555b4d343530
[ 64.278608][ C1] R13: 0000555b4d3242a0 R14: 0000000000000001 R15: 0000555b4d343530
[ 64.279017][ C1]
[ 87.617303][ T550] ncat (550) used greatest stack depth: 21008 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__->