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
[ 1151.080561] veth1: left promiscuous mode
[ 1156.307300] tc (17832) used greatest stack depth: 11696 bytes left
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 1158.634319] 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 ]
[ 1163.451885] ping (18431) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 1164.776870]
[ 1164.776985] ============================================
[ 1164.777273] WARNING: possible recursive locking detected
[ 1164.777546] 6.8.0-rc2-virtme #1 Not tainted
[ 1164.777778] --------------------------------------------
[ 1164.778078] ncat/18564 is trying to acquire lock:
[ 1164.778323] ffff9f7b44d800b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1164.778740]
[ 1164.778740] but task is already holding lock:
[ 1164.779045] ffff9f7b44d80cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1164.779466]
[ 1164.779466] other info that might help us debug this:
[ 1164.779805] Possible unsafe locking scenario:
[ 1164.779805]
[ 1164.780107] CPU0
[ 1164.780237] ----
[ 1164.780378] lock(slock-AF_INET/1);
[ 1164.780566] lock(slock-AF_INET/1);
[ 1164.780750]
[ 1164.780750] *** DEADLOCK ***
[ 1164.780750]
[ 1164.781069] May be due to missing lock nesting notation
[ 1164.781069]
[ 1164.781417] 8 locks held by ncat/18564:
[ 1164.781617] #0: ffffffffa4d678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1164.782059] #1: ffffffffa4d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1164.782547] #2: ffff9f7b44d80cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00
[ 1164.782970] #3: ffffffffa4d678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1164.783413] #4: ffffffffa4d678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1164.783877] #5: ffffffffa4d67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1164.784332] #6: ffffffffa4d678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1164.784784] #7: ffffffffa4d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1164.785243]
[ 1164.785243] stack backtrace:
[ 1164.785486] CPU: 0 PID: 18564 Comm: ncat Not tainted 6.8.0-rc2-virtme #1
[ 1164.785838] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1164.786411] Call Trace:
[ 1164.786541]
[ 1164.786652] dump_stack_lvl+0x4b/0x80
[ 1164.786844] __lock_acquire+0x1215/0x1750
[ 1164.787056] ? sk_filter_trim_cap+0x53/0x360
[ 1164.787277] lock_acquire+0xc1/0x2b0
[ 1164.787463] ? tcp_v4_rcv+0xdba/0xf00
[ 1164.787653] ? sk_filter_trim_cap+0x11a/0x360
[ 1164.787878] _raw_spin_lock_nested+0x2e/0x40
[ 1164.788109] ? tcp_v4_rcv+0xdba/0xf00
[ 1164.788298] tcp_v4_rcv+0xdba/0xf00
[ 1164.788480] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1164.788712] ip_local_deliver_finish+0xaf/0x180
[ 1164.788945] __netif_receive_skb_one_core+0x8b/0xa0
[ 1164.789194] netif_receive_skb+0x87/0x2c0
[ 1164.789401] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1164.789670] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1164.789921] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1164.790192] tcf_action_exec+0xac/0x230
[ 1164.790421] fl_classify+0x20e/0x260 [cls_flower]
[ 1164.790667] ? __bfs+0xf3/0x240
[ 1164.790834] ? check_irq_usage+0x19c/0xc40
[ 1164.791055] ? lock_acquire+0xc1/0x2b0
[ 1164.791265] ? __skb_flow_dissect+0xc9/0x2d60
[ 1164.791511] ? check_path.constprop.0+0x24/0x50
[ 1164.791742] ? check_noncircular+0x81/0x150
[ 1164.791968] ? __lock_acquire+0xa6e/0x1750
[ 1164.792184] tcf_classify+0x17a/0x540
[ 1164.792402] tc_run+0x9f/0x150
[ 1164.792566] __dev_queue_xmit+0x311/0x1180
[ 1164.792776] ? mark_held_locks+0x49/0x80
[ 1164.792979] ? eth_header+0x2a/0xc0
[ 1164.793161] ip_finish_output2+0x22d/0xa20
[ 1164.793396] ? ip_skb_dst_mtu+0x51/0x1c0
[ 1164.793599] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1164.793820] __ip_queue_xmit+0x1d5/0x6f0
[ 1164.794029] __tcp_transmit_skb+0xb65/0xd30
[ 1164.794252] ? __alloc_skb+0xdc/0x1a0
[ 1164.794457] tcp_rcv_state_process+0x4fb/0x1230
[ 1164.794708] ? lock_acquire+0xc1/0x2b0
[ 1164.794902] ? tcp_v4_rcv+0xdba/0xf00
[ 1164.795103] ? tcp_v4_do_rcv+0x85/0x3a0
[ 1164.795312] tcp_v4_do_rcv+0x85/0x3a0
[ 1164.795505] tcp_v4_rcv+0xe54/0xf00
[ 1164.795701] ? process_backlog+0x6f/0x260
[ 1164.795928] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1164.796161] ip_local_deliver_finish+0xaf/0x180
[ 1164.796406] __netif_receive_skb_one_core+0x8b/0xa0
[ 1164.796656] process_backlog+0x7c/0x260
[ 1164.796859] __napi_poll.constprop.0+0x27/0x1e0
[ 1164.797108] net_rx_action+0x2be/0x340
[ 1164.797302] __do_softirq+0xc8/0x37a
[ 1164.797506] ? inet_shutdown+0xa8/0x100
[ 1164.797712] do_softirq+0x4d/0x90
[ 1164.797890]
[ 1164.798017]
[ 1164.798134] __local_bh_enable_ip+0xbf/0xe0
[ 1164.798359] inet_shutdown+0xa8/0x100
[ 1164.798553] __sys_shutdown+0x45/0x90
[ 1164.798761] __x64_sys_shutdown+0x14/0x20
[ 1164.799005] do_syscall_64+0xc9/0x1e0
[ 1164.799198] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1164.799474] RIP: 0033:0x7ff2405babeb
[ 1164.799674] Code: 73 01 c3 48 8b 0d 15 92 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 30 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e5 91 1b 00 f7 d8 64 89 01 48
[ 1164.800622] RSP: 002b:00007fffbdaa58e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000030
[ 1164.801006] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007ff2405babeb
[ 1164.801370] RDX: 000055781c49d420 RSI: 0000000000000001 RDI: 0000000000000008
[ 1164.801751] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
[ 1164.802132] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008
[ 1164.802504] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[ 1164.802871]
# [ 1165.115012] ncat (18565) used greatest stack depth: 10664 bytes left
[ 1169.197172] irq 4: nobody cared (try booting with the "irqpoll" option)
[ 1169.197520] CPU: 1 PID: 17750 Comm: perl Not tainted 6.8.0-rc2-virtme #1
[ 1169.197865] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1169.198441] Call Trace:
[ 1169.198573]
[ 1169.198686] dump_stack_lvl+0x4b/0x80
[ 1169.198878] __report_bad_irq+0x2b/0xc0
[ 1169.199078] note_interrupt+0x2a7/0x2f0
[ 1169.199278] handle_irq_event+0x72/0x80
[ 1169.199479] handle_edge_irq+0x8b/0x230
[ 1169.199678] __common_interrupt+0x4b/0x100
[ 1169.199893] common_interrupt+0x81/0xa0
[ 1169.200096]
[ 1169.200208]
[ 1169.200321] asm_common_interrupt+0x26/0x40
[ 1169.200539] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50
[ 1169.200821] Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 81 3c 39 ff 48 89 ef e8 39 6d 39 ff 80 e7 02 74 06 e8 cf 95 46 ff fb 65 ff 0d cf e8 ff 5b <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66
[ 1169.201741] RSP: 0018:ffffad2e42a67d18 EFLAGS: 00000286
[ 1169.202006] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017
[ 1169.202365] RDX: ffffffffa3bc7f72 RSI: ffffffffa4030671 RDI: ffffffffa4030671
[ 1169.202723] RBP: ffffffffa61fff40 R08: 0000000000000000 R09: 0000000000000000
[ 1169.203079] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
[ 1169.203438] R13: 0000000000000000 R14: ffff9f7b425cc801 R15: ffff9f7b42260000
[ 1169.203798] ? rpm_suspend+0x232/0x700
[ 1169.203992] ? _raw_spin_unlock_irqrestore+0x31/0x50
[ 1169.204246] ? _raw_spin_unlock_irqrestore+0x31/0x50
[ 1169.204501] ? _raw_spin_unlock_irqrestore+0x31/0x50
[ 1169.204753] uart_write+0x103/0x1d0
[ 1169.204937] n_tty_write+0x1a6/0x530
[ 1169.205124] ? __pfx_woken_wake_function+0x10/0x10
[ 1169.205371] file_tty_write.constprop.0+0x164/0x340
[ 1169.205622] vfs_write+0x38d/0x550
[ 1169.205803] ksys_write+0x69/0xf0
[ 1169.205977] do_syscall_64+0xc9/0x1e0
[ 1169.206167] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1169.206425] RIP: 0033:0x7f1ca8571957
[ 1169.206611] 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
[ 1169.207532] RSP: 002b:00007ffc96ed5bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 1169.207909] RAX: ffffffffffffffda RBX: 000055ba12590ef0 RCX: 00007f1ca8571957
[ 1169.208271] RDX: 0000000000000001 RSI: 000055ba12590ef0 RDI: 0000000000000001
[ 1169.208629] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 1169.208985] R10: 0000000000000001 R11: 0000000000000246 R12: 000055ba1257d4e0
[ 1169.209342] R13: 000055ba1255e2a0 R14: 0000000000000001 R15: 000055ba1257d4e0
[ 1169.209698]
[ 1169.209816] handlers:
[ 1169.209937] [<00000000b8d13cc3>] serial8250_interrupt
[ 1169.210199] Disabling IRQ #4
TEST: mirred_egress_to_ingress_tcp (skip_hw) [ OK ]
# INFO: Could not test offloaded functionality
ok 1 selftests:
WAIT TIMEOUT stdout
Ctrl-C stdout
Ctrl-C stdout
WAIT TIMEOUT stdout