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
# 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 ]
[ 1189.199241] ping (11043) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1194.998839]
[ 1194.998937] ============================================
[ 1194.999210] WARNING: possible recursive locking detected
[ 1194.999480] 6.8.0-rc2-virtme #1 Not tainted
[ 1194.999701] --------------------------------------------
[ 1194.999973] perl/10388 is trying to acquire lock:
[ 1195.000216] ffff9c0702ac8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1195.000626]
[ 1195.000626] but task is already holding lock:
[ 1195.000929] ffff9c0702ac80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1195.001333]
[ 1195.001333] other info that might help us debug this:
[ 1195.001671] Possible unsafe locking scenario:
[ 1195.001671]
[ 1195.001975] CPU0
[ 1195.002107] ----
[ 1195.002239] lock(slock-AF_INET/1);
[ 1195.002429] lock(slock-AF_INET/1);
[ 1195.002618]
[ 1195.002618] *** DEADLOCK ***
[ 1195.002618]
[ 1195.002923] May be due to missing lock nesting notation
[ 1195.002923]
[ 1195.003268] 12 locks held by perl/10388:
[ 1195.003472] #0: ffff9c07024708a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x60
[ 1195.003928] #1: ffff9c0702470930 (&tty->atomic_write_lock){+.+.}-{3:3}, at: file_tty_write.constprop.0+0xa5/0x340
[ 1195.004457] #2: ffff9c0702470ae8 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0xa4/0x530
[ 1195.004900] #3: ffffa90a8026f380 (&ldata->output_lock){+.+.}-{3:3}, at: n_tty_write+0x236/0x530
[ 1195.005349] #4: ffffffff84b678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1195.005786] #5: ffffffff84b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1195.006265] #6: ffff9c0702ac80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1195.006689] #7: ffffffff84b678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1195.007128] #8: ffffffff84b678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1195.007573] #9: ffffffff84b67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1195.008030] #10: ffffffff84b678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1195.008477] #11: ffffffff84b678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1195.008950]
[ 1195.008950] stack backtrace:
[ 1195.009182] CPU: 1 PID: 10388 Comm: perl Not tainted 6.8.0-rc2-virtme #1
[ 1195.009527] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1195.010106] Call Trace:
[ 1195.010239]
[ 1195.010352] dump_stack_lvl+0x4b/0x80
[ 1195.010548] __lock_acquire+0x1215/0x1750
[ 1195.010761] ? sk_filter_trim_cap+0x53/0x360
[ 1195.010988] lock_acquire+0xc1/0x2b0
[ 1195.011178] ? tcp_v4_rcv+0xdb5/0xef0
[ 1195.011377] ? sk_filter_trim_cap+0x11a/0x360
[ 1195.011602] _raw_spin_lock_nested+0x2e/0x40
[ 1195.011829] ? tcp_v4_rcv+0xdb5/0xef0
[ 1195.012021] tcp_v4_rcv+0xdb5/0xef0
[ 1195.012208] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1195.012445] ip_local_deliver_finish+0xaf/0x180
[ 1195.012678] __netif_receive_skb_one_core+0x8b/0xa0
[ 1195.012933] netif_receive_skb+0x87/0x2c0
[ 1195.013146] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1195.013421] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1195.013675] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1195.013947] tcf_action_exec+0xac/0x230
[ 1195.014150] fl_classify+0x20e/0x260 [cls_flower]
[ 1195.014396] ? fl_mask_lookup+0x179/0x5a0 [cls_flower]
[ 1195.014665] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower]
[ 1195.014930] ? __bfs+0xf3/0x240
[ 1195.015097] ? check_irq_usage+0x19c/0xc40
[ 1195.015311] ? check_path.constprop.0+0x24/0x50
[ 1195.015545] ? check_noncircular+0x81/0x150
[ 1195.015761] ? __lock_acquire+0xa6e/0x1750
[ 1195.015972] tcf_classify+0x17a/0x540
[ 1195.016176] tc_run+0x9f/0x150
[ 1195.016347] __dev_queue_xmit+0x311/0x1180
[ 1195.016560] ? mark_held_locks+0x49/0x80
[ 1195.016765] ip_finish_output2+0x39f/0xa20
[ 1195.016977] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1195.017189] __ip_queue_xmit+0x1d5/0x6f0
[ 1195.017395] __tcp_transmit_skb+0xb65/0xd30
[ 1195.017612] ? mark_held_locks+0x49/0x80
[ 1195.017814] tcp_write_xmit+0x492/0x1400
[ 1195.018021] __tcp_push_pending_frames+0x36/0xc0
[ 1195.018259] tcp_rcv_state_process+0x4d3/0x11f0
[ 1195.018493] ? tcp_v4_rcv+0xdb5/0xef0
[ 1195.018684] ? tcp_v4_do_rcv+0x64/0x360
[ 1195.018883] tcp_v4_do_rcv+0x64/0x360
[ 1195.019074] tcp_v4_rcv+0xe4f/0xef0
[ 1195.019258] ? process_backlog+0x6f/0x260
[ 1195.019466] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1195.019699] ip_local_deliver_finish+0xaf/0x180
[ 1195.019933] __netif_receive_skb_one_core+0x8b/0xa0
[ 1195.020184] process_backlog+0x7c/0x260
[ 1195.020384] __napi_poll.constprop.0+0x27/0x1e0
[ 1195.020618] net_rx_action+0x2be/0x340
[ 1195.020814] __do_softirq+0xc8/0x37a
[ 1195.021002] irq_exit_rcu+0x7f/0xa0
[ 1195.021188] sysvec_apic_timer_interrupt+0x78/0x90
[ 1195.021435]
[ 1195.021549]
[ 1195.021667] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1195.021937] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50
[ 1195.022223] Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 81 4c 39 ff 48 89 ef e8 39 7d 39 ff 80 e7 02 74 06 e8 4f a6 46 ff fb 65 ff 0d cf f8 1f 7c <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66
[ 1195.023145] RSP: 0018:ffffa90a80617d18 EFLAGS: 00000286
[ 1195.023420] RAX: 00000000003a19a5 RBX: 0000000000000282 RCX: 0000000000000040
[ 1195.023779] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83e2f671
[ 1195.024138] RBP: ffffffff85ffff40 R08: 0000000000000001 R09: 0000000000000001
[ 1195.024496] R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000001
[ 1195.024855] R13: 0000000000000000 R14: ffff9c0702680001 R15: ffff9c0702340000
[ 1195.025218] ? _raw_spin_unlock_irqrestore+0x31/0x50
[ 1195.025474] ? _raw_spin_unlock_irqrestore+0x31/0x50
[ 1195.025728] uart_write+0x103/0x1d0
[ 1195.025913] n_tty_write+0x1a6/0x530
[ 1195.026108] ? __pfx_woken_wake_function+0x10/0x10
[ 1195.026358] file_tty_write.constprop.0+0x164/0x340
[ 1195.026612] vfs_write+0x38d/0x550
[ 1195.026796] ksys_write+0x69/0xf0
[ 1195.026972] do_syscall_64+0xc9/0x1e0
[ 1195.027166] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1195.027429] RIP: 0033:0x7f82c92a2957
[ 1195.027616] 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
[ 1195.028542] RSP: 002b:00007ffccc4f12c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 1195.028921] RAX: ffffffffffffffda RBX: 0000555d299d7ec0 RCX: 00007f82c92a2957
[ 1195.029281] RDX: 0000000000000001 RSI: 0000555d299d7ec0 RDI: 0000000000000001
[ 1195.029638] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 1195.029996] R10: 0000000000000001 R11: 0000000000000246 R12: 0000555d299c4500
[ 1195.030355] R13: 0000555d299a52a0 R14: 0000000000000001 R15: 0000555d299c4500
[ 1195.030714]
[ 1215.975148] ncat (11167) used greatest stack depth: 10680 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__->