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
[ 20.725794][ T234] ip (234) used greatest stack depth: 23600 bytes left
[ 35.140077][ T329] GACT probability NOT on
# TEST: gact drop and ok (skip_hw) [ OK ]
[ 40.008411][ 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 ]
[ 46.642498][ T468] tc (468) used greatest stack depth: 23120 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
# [ 54.681110][ C0]
[ 54.681265][ C0] ============================================
[ 54.681587][ C0] WARNING: possible recursive locking detected
[ 54.681898][ C0] 6.8.0-rc2-virtme #1 Not tainted
[ 54.682157][ C0] --------------------------------------------
[ 54.682483][ C0] swapper/0/0 is trying to acquire lock:
[ 54.682768][ C0] ffff888007569b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 54.683238][ C0]
[ 54.683238][ C0] but task is already holding lock:
[ 54.683609][ C0] ffff888007568e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 54.684076][ C0]
[ 54.684076][ C0] other info that might help us debug this:
[ 54.684479][ C0] Possible unsafe locking scenario:
[ 54.684479][ C0]
[ 54.684856][ C0] CPU0
[ 54.685039][ C0] ----
[ 54.685206][ C0] lock(slock-AF_INET/1);
[ 54.685437][ C0] lock(slock-AF_INET/1);
[ 54.685675][ C0]
[ 54.685675][ C0] *** DEADLOCK ***
[ 54.685675][ C0]
[ 54.686083][ C0] May be due to missing lock nesting notation
[ 54.686083][ C0]
[ 54.686505][ C0] 8 locks held by swapper/0/0:
[ 54.686750][ C0] #0: ffffffffbb7447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 54.687238][ C0] #1: ffffffffbb7447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 54.687753][ C0] #2: ffff888007568e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0
[ 54.688243][ C0] #3: ffffffffbb7447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 54.688723][ C0] #4: ffffffffbb7447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 54.689229][ C0] #5: ffffffffbb744780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0
[ 54.689731][ C0] #6: ffffffffbb7447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 54.690255][ C0] #7: ffffffffbb7447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480
[ 54.690773][ C0]
[ 54.690773][ C0] stack backtrace:
[ 54.691070][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.8.0-rc2-virtme #1
[ 54.691458][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 54.692082][ C0] Call Trace:
[ 54.692250][ C0]
[ 54.692408][ C0] dump_stack_lvl+0x64/0xb0
[ 54.692647][ C0] validate_chain+0x525/0xa00
[ 54.692891][ C0] ? __pfx_validate_chain+0x10/0x10
[ 54.693158][ C0] ? hlock_class+0x4e/0x130
[ 54.693400][ C0] ? mark_lock+0x38/0x3e0
[ 54.693623][ C0] __lock_acquire+0xb67/0x1610
[ 54.693872][ C0] ? lock_downgrade+0xa0/0x110
[ 54.694129][ C0] ? mark_lock+0x38/0x3e0
[ 54.694349][ C0] lock_acquire.part.0+0xe5/0x330
[ 54.694603][ C0] ? tcp_v4_rcv+0x221e/0x2ac0
[ 54.694854][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 54.695140][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 54.695429][ C0] ? lock_acquire+0x1c1/0x220
[ 54.695678][ C0] ? tcp_v4_rcv+0x221e/0x2ac0
[ 54.695917][ C0] _raw_spin_lock_nested+0x33/0x80
[ 54.696192][ C0] ? tcp_v4_rcv+0x221e/0x2ac0
[ 54.696443][ C0] tcp_v4_rcv+0x221e/0x2ac0
[ 54.696679][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 54.696927][ C0] ? __pfx_raw_v4_input+0x10/0x10
[ 54.697193][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 54.697479][ C0] ip_protocol_deliver_rcu+0x93/0x360
[ 54.697753][ C0] ip_local_deliver_finish+0x2ae/0x480
[ 54.698038][ C0] ip_local_deliver+0x19d/0x480
[ 54.698289][ C0] ? __pfx_ip_local_deliver+0x10/0x10
[ 54.698562][ C0] ? tcp_v4_early_demux+0x59a/0x9d0
[ 54.698838][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 54.699163][ C0] ip_rcv+0x564/0x740
[ 54.699375][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 54.699617][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 54.699881][ C0] ? netif_receive_skb_internal+0x84/0x300
[ 54.700179][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 54.700420][ C0] __netif_receive_skb_one_core+0x166/0x1b0
[ 54.700721][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 54.701047][ C0] ? mark_held_locks+0xa5/0xf0
[ 54.701308][ C0] ? lock_acquire+0x1c1/0x220
[ 54.701547][ C0] ? netif_receive_skb_internal+0x84/0x300
[ 54.701846][ C0] netif_receive_skb_internal+0xb0/0x300
[ 54.702140][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 54.702458][ C0] ? __copy_skb_header+0xaf/0x490
[ 54.702720][ C0] ? __skb_clone+0x57a/0x760
[ 54.702968][ C0] netif_receive_skb+0x55/0x280
[ 54.703218][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 54.703550][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 54.703890][ C0] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 54.704198][ C0] tcf_action_exec.part.0+0x112/0x3d0
[ 54.704475][ C0] fl_classify+0x4dc/0x650 [cls_flower]
[ 54.704776][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 54.705095][ C0] ? __pfx_check_irq_usage+0x10/0x10
[ 54.705369][ C0] ? __bfs+0x247/0x650
[ 54.705580][ C0] ? __pfx_hlock_conflict+0x10/0x10
[ 54.705848][ C0] ? check_path.constprop.0+0x24/0x50
[ 54.706130][ C0] ? check_noncircular+0x14e/0x3e0
[ 54.706400][ C0] ? __pfx_check_noncircular+0x10/0x10
[ 54.706684][ C0] ? __pfx_validate_chain+0x10/0x10
[ 54.706959][ C0] ? hlock_class+0x4e/0x130
[ 54.707194][ C0] ? hlock_class+0x4e/0x130
[ 54.707428][ C0] ? check_prev_add+0x773/0xce0
[ 54.707687][ C0] __tcf_classify+0x329/0x7d0
[ 54.707928][ C0] tcf_classify+0x283/0x930
[ 54.708172][ C0] ? register_ftrace_graph+0xa1/0x280
[ 54.708453][ C0] ? __pfx_tcf_classify+0x10/0x10
[ 54.708710][ C0] ? __dev_queue_xmit+0x1da/0x17e0
[ 54.708971][ C0] ? __dev_queue_xmit+0x1da/0x17e0
[ 54.709242][ C0] tc_run+0x2e4/0x5d0
[ 54.709451][ C0] ? __pfx_tc_run+0x10/0x10
[ 54.709682][ C0] ? lock_acquire+0x1c1/0x220
[ 54.709931][ C0] ? __dev_queue_xmit+0x1da/0x17e0
[ 54.710193][ C0] __dev_queue_xmit+0x686/0x17e0
[ 54.710448][ C0] ? mark_held_locks+0xa5/0xf0
[ 54.710703][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 54.711035][ C0] ? __pfx___dev_queue_xmit+0x10/0x10
[ 54.711306][ C0] ? neigh_hh_output+0x348/0x590
[ 54.711566][ C0] ip_finish_output2+0x786/0x18e0
[ 54.711833][ C0] ? __pfx_ip_finish_output2+0x10/0x10
[ 54.712111][ C0] ? __ip_finish_output+0x3dd/0x770
[ 54.712376][ C0] ip_output+0x16b/0x4f0
[ 54.712593][ C0] ? mark_held_locks+0xa5/0xf0
[ 54.712847][ C0] ? __pfx_ip_output+0x10/0x10
[ 54.713093][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 54.713378][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370
[ 54.713714][ C0] ? ip_local_out+0x114/0x3b0
[ 54.713963][ C0] __ip_queue_xmit+0x672/0x1910
[ 54.714212][ C0] ? __skb_clone+0x57a/0x760
[ 54.714448][ C0] __tcp_transmit_skb+0x22b1/0x2d20
[ 54.714726][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 54.715007][ C0] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 54.715319][ C0] tcp_write_xmit+0x94f/0x1cb0
[ 54.715574][ C0] ? ipv4_mtu+0x37/0x360
[ 54.715793][ C0] ? __pfx_tcp_write_xmit+0x10/0x10
[ 54.716057][ C0] ? __pfx_tcp_current_mss+0x10/0x10
[ 54.716343][ C0] __tcp_push_pending_frames+0x96/0x320
[ 54.716627][ C0] tcp_rcv_state_process+0x786/0x1fe0
[ 54.716901][ C0] ? tcp_v4_rcv+0x221e/0x2ac0
[ 54.717152][ C0] ? hlock_class+0x4e/0x130
[ 54.717383][ C0] ? __lock_acquired+0x18a/0x6b0
[ 54.717636][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 54.717942][ C0] ? __pfx___lock_acquired+0x10/0x10
[ 54.718211][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 54.718498][ C0] tcp_v4_do_rcv+0x154/0x860
[ 54.718742][ C0] tcp_v4_rcv+0x2449/0x2ac0
[ 54.718990][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 54.719241][ C0] ? __pfx_raw_v4_input+0x10/0x10
[ 54.719507][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 54.719793][ C0] ip_protocol_deliver_rcu+0x93/0x360
[ 54.720068][ C0] ip_local_deliver_finish+0x2ae/0x480
[ 54.720356][ C0] ip_local_deliver+0x19d/0x480
[ 54.720604][ C0] ? __pfx_ip_local_deliver+0x10/0x10
[ 54.720878][ C0] ? tcp_v4_early_demux+0x59a/0x9d0
[ 54.721154][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 54.721475][ C0] ip_rcv+0x564/0x740
[ 54.721681][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 54.721928][ C0] ? lock_acquire.part.0+0xe5/0x330
[ 54.722194][ C0] ? process_backlog+0x1ed/0x5e0
[ 54.722448][ C0] ? __pfx_ip_rcv+0x10/0x10
[ 54.722688][ C0] __netif_receive_skb_one_core+0x166/0x1b0
[ 54.722992][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 54.723322][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 54.723620][ C0] ? lock_acquire+0x1c1/0x220
[ 54.723859][ C0] ? process_backlog+0x1ed/0x5e0
[ 54.724113][ C0] process_backlog+0xd3/0x5e0
[ 54.724365][ C0] __napi_poll.constprop.0+0xa2/0x460
[ 54.724639][ C0] net_rx_action+0x440/0xb40
[ 54.724886][ C0] ? __pfx_net_rx_action+0x10/0x10
[ 54.725155][ C0] ? ktime_get+0x30/0x190
[ 54.725377][ C0] ? hrtimer_interrupt+0x230/0x770
[ 54.725640][ C0] ? __pfx_rebalance_domains+0x10/0x10
[ 54.725929][ C0] ? clockevents_program_event+0x1ea/0x300
[ 54.726235][ C0] __do_softirq+0x1b9/0x7ff
[ 54.726475][ C0] irq_exit_rcu+0x98/0xc0
[ 54.726705][ C0] sysvec_apic_timer_interrupt+0x75/0x80
[ 54.726994][ C0]
[ 54.727143][ C0]
[ 54.727299][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 54.727612][ C0] RIP: 0010:default_idle+0xf/0x20
[ 54.727872][ C0] 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 66 90 0f 00 2d 93 42 41 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90
[ 54.728846][ C0] RSP: 0018:ffffffffbb407df8 EFLAGS: 00000246
[ 54.729162][ C0] RAX: 000000000019b4a5 RBX: 1ffffffff7680fc1 RCX: ffffffffba44c922
[ 54.729564][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb7e968b6
[ 54.729966][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006a7eea4
[ 54.730376][ C0] R10: ffff8880353f7523 R11: 1ffff110003e328c R12: 0000000000000000
[ 54.730775][ C0] R13: ffffffffbb41ce00 R14: dffffc0000000000 R15: 0000000000013d50
[ 54.731186][ C0] ? ct_kernel_exit.constprop.0+0xc2/0xe0
[ 54.731485][ C0] ? cpuidle_idle_call+0x1f6/0x280
[ 54.731745][ C0] default_idle_call+0x69/0xa0
[ 54.731994][ C0] cpuidle_idle_call+0x1f6/0x280
[ 54.732258][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10
[ 54.732536][ C0] ? tsc_verify_tsc_adjust+0x65/0x2b0
[ 54.732817][ C0] do_idle+0xfb/0x160
[ 54.733033][ C0] cpu_startup_entry+0x55/0x60
[ 54.733278][ C0] rest_init+0x153/0x260
[ 54.733499][ C0] ? acpi_enable_subsystem+0xac/0x150
[ 54.733785][ C0] arch_call_rest_init+0x13/0x40
[ 54.734041][ C0] start_kernel+0x314/0x3d0
[ 54.734282][ C0] x86_64_start_reservations+0x18/0x30
[ 54.734561][ C0] x86_64_start_kernel+0xba/0x110
[ 54.734829][ C0] secondary_startup_64_no_verify+0x16d/0x17b
[ 54.735142][ C0]
[ 74.555474][ T551] ncat (551) used greatest stack depth: 21120 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__->