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 ]
[ 1049.134988] ping (4271) used greatest stack depth: 11512 bytes left
# TEST: mirred_egress_to_ingress (skip_hw)                            [ OK ]
# [ 1050.496350] 
[ 1050.496458] ============================================
[ 1050.496759] WARNING: possible recursive locking detected
[ 1050.497049] 6.8.0-rc2-virtme #1 Not tainted
[ 1050.497297] --------------------------------------------
[ 1050.497582] swapper/1/0 is trying to acquire lock:
[ 1050.497838] ffff8dfd857800b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1050.498285] 
[ 1050.498285] but task is already holding lock:
[ 1050.498594] ffff8dfd85780cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1050.499039] 
[ 1050.499039] other info that might help us debug this:
[ 1050.499409]  Possible unsafe locking scenario:
[ 1050.499409] 
[ 1050.499729]        CPU0
[ 1050.499882]        ----
[ 1050.500027]   lock(slock-AF_INET/1);
[ 1050.500236]   lock(slock-AF_INET/1);
[ 1050.500434] 
[ 1050.500434]  *** DEADLOCK ***
[ 1050.500434] 
[ 1050.500748]  May be due to missing lock nesting notation
[ 1050.500748] 
[ 1050.501118] 8 locks held by swapper/1/0:
[ 1050.501330]  #0: ffffffffb87678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260
[ 1050.501800]  #1: ffffffffb87678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1050.502314]  #2: ffff8dfd85780cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0
[ 1050.502767]  #3: ffffffffb87678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0
[ 1050.503249]  #4: ffffffffb87678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20
[ 1050.503724]  #5: ffffffffb8767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180
[ 1050.504199]  #6: ffffffffb87678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0
[ 1050.504677]  #7: ffffffffb87678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180
[ 1050.505172] 
[ 1050.505172] stack backtrace:
[ 1050.505434] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc2-virtme #1
[ 1050.505819] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1050.506434] Call Trace:
[ 1050.506586]  <IRQ>
[ 1050.506702]  dump_stack_lvl+0x4b/0x80
[ 1050.506918]  __lock_acquire+0x1215/0x1750
[ 1050.507161]  ? sk_filter_trim_cap+0x53/0x360
[ 1050.507438]  lock_acquire+0xc1/0x2b0
[ 1050.507636]  ? tcp_v4_rcv+0xdb5/0xef0
[ 1050.507862]  ? sk_filter_trim_cap+0x11a/0x360
[ 1050.508114]  _raw_spin_lock_nested+0x2e/0x40
[ 1050.508372]  ? tcp_v4_rcv+0xdb5/0xef0
[ 1050.508573]  tcp_v4_rcv+0xdb5/0xef0
[ 1050.508783]  ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1050.509050]  ip_local_deliver_finish+0xaf/0x180
[ 1050.509311]  __netif_receive_skb_one_core+0x8b/0xa0
[ 1050.509594]  netif_receive_skb+0x87/0x2c0
[ 1050.509827]  tcf_mirred_to_dev+0x1f6/0x410 [act_mirred]
[ 1050.510128]  tcf_mirred_act+0xee/0x560 [act_mirred]
[ 1050.510407]  ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit]
[ 1050.510696]  tcf_action_exec+0xaf/0x230
[ 1050.510925]  fl_classify+0x20e/0x260 [cls_flower]
[ 1050.511202]  ? __lock_acquire+0xa6e/0x1750
[ 1050.511441]  ? __lock_acquire+0xa6e/0x1750
[ 1050.511663]  ? __lock_acquire+0xa6e/0x1750
[ 1050.511902]  ? __lock_acquire+0xa6e/0x1750
[ 1050.512158]  ? bit_waitqueue+0x2b/0x40
[ 1050.512380]  ? irq_exit_rcu+0x86/0xa0
[ 1050.512604]  ? lock_release+0xbe/0x270
[ 1050.512829]  tcf_classify+0x17d/0x540
[ 1050.513045]  tc_run+0x9f/0x150
[ 1050.513232]  __dev_queue_xmit+0x311/0x1180
[ 1050.513475]  ? eth_header+0x2a/0xc0
[ 1050.513668]  ip_finish_output2+0x230/0xa20
[ 1050.513907]  ? ip_skb_dst_mtu+0x51/0x1c0
[ 1050.514140]  ? __ip_queue_xmit+0x1d5/0x6f0
[ 1050.514381]  __ip_queue_xmit+0x1d5/0x6f0
[ 1050.514600]  __tcp_transmit_skb+0xb65/0xd30
[ 1050.514842]  ? __alloc_skb+0xdc/0x1a0
[ 1050.515059]  tcp_rcv_state_process+0x4f3/0x11f0
[ 1050.515317]  ? tcp_v4_rcv+0xdb5/0xef0
[ 1050.515533]  ? tcp_v4_do_rcv+0x64/0x360
[ 1050.515758]  tcp_v4_do_rcv+0x64/0x360
[ 1050.515960]  tcp_v4_rcv+0xe4f/0xef0
[ 1050.516167]  ? process_backlog+0x6f/0x260
[ 1050.516401]  ip_protocol_deliver_rcu+0x4b/0x1e0
[ 1050.516648]  ip_local_deliver_finish+0xaf/0x180
[ 1050.516908]  __netif_receive_skb_one_core+0x8b/0xa0
[ 1050.517186]  process_backlog+0x7c/0x260
[ 1050.517422]  __napi_poll.constprop.0+0x2a/0x1e0
[ 1050.517669]  net_rx_action+0x2be/0x340
[ 1050.517892]  __do_softirq+0xcb/0x37a
[ 1050.518117]  irq_exit_rcu+0x7f/0xa0
[ 1050.518328]  sysvec_apic_timer_interrupt+0x78/0x90
[ 1050.518590]  </IRQ>
[ 1050.518729]  <TASK>
[ 1050.518851]  asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1050.519145] RIP: 0010:default_idle+0xf/0x20
[ 1050.519399] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d d3 3d 40 00 fb f4 <fa> c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90
[ 1050.520381] RSP: 0018:ffff9f92000a3ee8 EFLAGS: 00000206
[ 1050.520681] RAX: 000000000036cc33 RBX: ffff8dfd81373480 RCX: 4000000000000000
[ 1050.521078] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb6da8863
[ 1050.521465] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001
[ 1050.521842] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[ 1050.522246] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 1050.522643]  ? do_idle+0x1e3/0x220
[ 1050.522836]  default_idle_call+0x83/0x180
[ 1050.523066]  do_idle+0x1e3/0x220
[ 1050.523264]  ? finish_task_switch.isra.0+0xf7/0x330
[ 1050.523549]  cpu_startup_entry+0x2a/0x30
[ 1050.523776]  start_secondary+0xfc/0x100
[ 1050.524006]  secondary_startup_64_no_verify+0x16d/0x17b
[ 1050.524318]  </TASK>
[ 1076.365360] ncat (4425) 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__->