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 0
# selftests: net/forwarding: tc_actions.sh
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 1144.662831] 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 ]
[ 1147.275204] tc (18880) used greatest stack depth: 11648 bytes left
[ 1149.460046] ping (19008) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 1156.098916]
[ 1156.099018] ============================================
[ 1156.099304] WARNING: possible recursive locking detected
[ 1156.099590] 6.8.0-rc1-virtme #1 Not tainted
[ 1156.099816] --------------------------------------------
[ 1156.100102] ncat/19146 is trying to acquire lock:
[ 1156.100378] ffff9baa467b0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1156.100806]
[ 1156.100806] but task is already holding lock:
[ 1156.101119] ffff9baa467b00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1156.101544]
[ 1156.101544] other info that might help us debug this:
[ 1156.101887] Possible unsafe locking scenario:
[ 1156.101887]
[ 1156.102201] CPU0
[ 1156.102342] ----
[ 1156.102477] lock(slock-AF_INET/1);
[ 1156.102676] lock(slock-AF_INET/1);
[ 1156.102870]
[ 1156.102870] *** DEADLOCK ***
[ 1156.102870]
[ 1156.103189] May be due to missing lock nesting notation
[ 1156.103189]
[ 1156.103554] 8 locks held by ncat/19146:
[ 1156.103764] #0: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1156.104223] #1: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1156.104716] #2: ffff9baa467b00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1156.105154] #3: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1156.105604] #4: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1156.106059] #5: ffffffff9c967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1156.106532] #6: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1156.106988] #7: ffffffff9c9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1156.107465]
[ 1156.107465] stack backtrace:
[ 1156.107701] CPU: 1 PID: 19146 Comm: ncat Not tainted 6.8.0-rc1-virtme #1
[ 1156.108055] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1156.108649] Call Trace:
[ 1156.108793]
[ 1156.108913] dump_stack_lvl+0x4b/0x80
[ 1156.109120] __lock_acquire+0x1215/0x1750
[ 1156.109345] ? sk_filter_trim_cap+0x53/0x360
[ 1156.109581] lock_acquire+0xc1/0x2b0
[ 1156.109776] ? tcp_v4_rcv+0xdb5/0xef0
[ 1156.109979] ? sk_filter_trim_cap+0x11a/0x360
[ 1156.110229] _raw_spin_lock_nested+0x2e/0x40
[ 1156.110465] ? tcp_v4_rcv+0xdb5/0xef0
[ 1156.110663] tcp_v4_rcv+0xdb5/0xef0
[ 1156.110854] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1156.111098] ip_local_deliver_finish+0xaf/0x180
[ 1156.111342] __netif_receive_skb_one_core+0x8b/0xa0
[ 1156.111614] netif_receive_skb+0x87/0x2c0
[ 1156.111834] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1156.112118] tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1156.112379] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1156.112664] tcf_action_exec+0xaf/0x230
[ 1156.112875] fl_classify+0x20e/0x260 [cls_flower]
[ 1156.113133] ? fl_mask_lookup+0x179/0x5a0 [cls_flower]
[ 1156.113411] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower]
[ 1156.113684] ? __pfx_usage_match+0x10/0x10
[ 1156.113909] ? __bfs+0xf6/0x240
[ 1156.114081] ? check_irq_usage+0x19c/0xc40
[ 1156.114302] ? check_path.constprop.0+0x24/0x50
[ 1156.114550] ? check_noncircular+0x81/0x150
[ 1156.114776] ? __lock_acquire+0xa6e/0x1750
[ 1156.115002] tcf_classify+0x17d/0x540
[ 1156.115202] tc_run+0x9f/0x150
[ 1156.115372] __dev_queue_xmit+0x311/0x1180
[ 1156.115597] ? mark_held_locks+0x49/0x80
[ 1156.115808] ip_finish_output2+0x39f/0xa20
[ 1156.116093] ? __ip_queue_xmit+0x1d5/0x6f0
[ 1156.116312] __ip_queue_xmit+0x1d5/0x6f0
[ 1156.116528] __tcp_transmit_skb+0xb65/0xd30
[ 1156.116755] tcp_write_xmit+0x492/0x1400
[ 1156.116968] __tcp_push_pending_frames+0x36/0xc0
[ 1156.117218] tcp_rcv_state_process+0x4d3/0x11f0
[ 1156.117463] ? tcp_v4_rcv+0xdb5/0xef0
[ 1156.117662] ? tcp_v4_do_rcv+0x64/0x360
[ 1156.117866] tcp_v4_do_rcv+0x64/0x360
[ 1156.118062] tcp_v4_rcv+0xe4f/0xef0
[ 1156.118252] ? process_backlog+0x6f/0x260
[ 1156.118467] ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1156.118709] ip_local_deliver_finish+0xaf/0x180
[ 1156.118952] __netif_receive_skb_one_core+0x8b/0xa0
[ 1156.119212] process_backlog+0x7c/0x260
[ 1156.119418] __napi_poll.constprop.0+0x2a/0x1e0
[ 1156.119659] net_rx_action+0x2be/0x340
[ 1156.119863] __do_softirq+0xcb/0x37a
[ 1156.120063] irq_exit_rcu+0x7f/0xa0
[ 1156.120254] sysvec_apic_timer_interrupt+0x78/0x90
[ 1156.120510]
[ 1156.120631]
[ 1156.120753] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1156.121030] RIP: 0010:finish_task_switch.isra.0+0x101/0x330
[ 1156.121324] Code: 89 ff 48 c7 02 00 00 00 00 e8 3b 66 ca 00 48 85 db 75 e2 4c 89 ff e8 0e 53 ca 00 e8 69 e7 10 00 fb 65 48 8b 04 25 40 ef 02 00 <66> 90 4d 85 ed 74 21 65 48 8b 04 25 40 ef 02 00 4c 3b a8 e8 04 00
[ 1156.122288] RSP: 0018:ffffb8ba40133d08 EFLAGS: 00000202
[ 1156.122570] RAX: ffff9baa42459a40 RBX: 0000000000000000 RCX: 0000000000000000
[ 1156.122951] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9af8b677
[ 1156.123329] RBP: ffffb8ba40133d38 R08: 0000000000000001 R09: 0000000000000001
[ 1156.123703] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9baa436f8000
[ 1156.124081] R13: 0000000000000000 R14: ffff9baa7ecaf998 R15: ffff9baa7ecaf980
[ 1156.124460] ? finish_task_switch.isra.0+0xf7/0x330
[ 1156.124724] ? finish_task_switch.isra.0+0xf7/0x330
[ 1156.124992] __schedule+0x346/0xc70
[ 1156.125187] schedule+0x49/0x110
[ 1156.125368] pipe_write+0x3c5/0x7f0
[ 1156.125559] ? find_held_lock+0x2b/0x80
[ 1156.125766] ? __pfx_autoremove_wake_function+0x10/0x10
[ 1156.126046] vfs_write+0x41d/0x550
[ 1156.126233] ksys_write+0xb8/0xf0
[ 1156.126420] ? lockdep_hardirqs_on_prepare+0xdc/0x1a0
[ 1156.126692] do_syscall_64+0xcc/0x1e0
[ 1156.126897] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1156.127173] RIP: 0033:0x7f5be8361957
[ 1156.127372] 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
[ 1156.128328] RSP: 002b:00007ffd139758e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 1156.128730] RAX: ffffffffffffffda RBX: 000055adf394ba20 RCX: 00007f5be8361957
[ 1156.129101] RDX: 0000000000002000 RSI: 00007ffd13975900 RDI: 0000000000000001
[ 1156.129473] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
[ 1156.129848] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000002000
[ 1156.130220] R13: 00007ffd13975900 R14: 0000000000000000 R15: 00007ffd139758fc
[ 1156.130594]
[ 1171.661630] ncat (19147) used greatest stack depth: 10672 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__->