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
# 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 ]
[ 1187.852419][ T3600] ping (3600) used greatest stack depth: 23352 bytes left
# TEST: mirred_egress_to_ingress (skip_hw) [ OK ]
[ 1190.258738][ T3648] tc (3648) used greatest stack depth: 23032 bytes left
# [ 1197.143738][ C3]
[ 1197.143889][ C3] ============================================
[ 1197.144216][ C3] WARNING: possible recursive locking detected
[ 1197.144542][ C3] 6.8.0-rc2-virtme #1 Not tainted
[ 1197.144805][ C3] --------------------------------------------
[ 1197.145123][ C3] perl/3298 is trying to acquire lock:
[ 1197.145410][ C3] ffff888005ef9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1197.145892][ C3]
[ 1197.145892][ C3] but task is already holding lock:
[ 1197.146279][ C3] ffff888005ef8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1197.146748][ C3]
[ 1197.146748][ C3] other info that might help us debug this:
[ 1197.147177][ C3] Possible unsafe locking scenario:
[ 1197.147177][ C3]
[ 1197.147570][ C3] CPU0
[ 1197.147744][ C3] ----
[ 1197.147921][ C3] lock(slock-AF_INET/1);
[ 1197.148159][ C3] lock(slock-AF_INET/1);
[ 1197.148394][ C3]
[ 1197.148394][ C3] *** DEADLOCK ***
[ 1197.148394][ C3]
[ 1197.148815][ C3] May be due to missing lock nesting notation
[ 1197.148815][ C3]
[ 1197.149251][ C3] 12 locks held by perl/3298:
[ 1197.149498][ C3] #0: ffff8880062cd0a8 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x80
[ 1197.150010][ C3] #1: ffff8880062cd148 (&tty->atomic_write_lock){+.+.}-{3:3}, at: iterate_tty_write+0x95/0x540
[ 1197.150561][ C3] #2: ffff8880062cd330 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x18f/0x7a0
[ 1197.151067][ C3] #3: ffffc90000053398 (&ldata->output_lock){+.+.}-{3:3}, at: process_output_block+0x5e/0x790
[ 1197.151603][ C3] #4: ffffffff897447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0
[ 1197.152106][ C3] #5: ffffffff897447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1197.152634][ C3] #6: ffff888005ef8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0
[ 1197.153128][ C3] #7: ffffffff897447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910
[ 1197.153626][ C3] #8: ffffffff897447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0
[ 1197.154131][ C3] #9: ffffffff89744780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0
[ 1197.154646][ C3] #10: ffffffff897447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300
[ 1197.155188][ C3] #11: ffffffff897447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450
[ 1197.155723][ C3]
[ 1197.155723][ C3] stack backtrace:
[ 1197.156033][ C3] CPU: 3 PID: 3298 Comm: perl Not tainted 6.8.0-rc2-virtme #1
[ 1197.156423][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1197.157061][ C3] Call Trace:
[ 1197.157237][ C3]
[ 1197.157387][ C3] dump_stack_lvl+0x64/0xb0
[ 1197.157629][ C3] validate_chain+0x525/0xa00
[ 1197.157882][ C3] ? __pfx_validate_chain+0x10/0x10
[ 1197.158158][ C3] ? hlock_class+0x4e/0x130
[ 1197.158400][ C3] ? mark_lock+0x38/0x3e0
[ 1197.158632][ C3] __lock_acquire+0xb67/0x1610
[ 1197.158884][ C3] ? lock_downgrade+0xa0/0x110
[ 1197.159134][ C3] ? mark_lock+0x38/0x3e0
[ 1197.159365][ C3] lock_acquire.part.0+0xe5/0x330
[ 1197.159633][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1197.159885][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1197.160181][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10
[ 1197.160470][ C3] ? lock_acquire+0x1c1/0x220
[ 1197.160716][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1197.160961][ C3] _raw_spin_lock_nested+0x33/0x80
[ 1197.161231][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1197.161481][ C3] tcp_v4_rcv+0x2159/0x29b0
[ 1197.161727][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1197.161987][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 1197.162254][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1197.162555][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 1197.162840][ C3] ip_local_deliver_finish+0x2ae/0x450
[ 1197.163132][ C3] ip_local_deliver+0x19d/0x480
[ 1197.163389][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 1197.163673][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1197.164009][ C3] ip_rcv+0x564/0x740
[ 1197.164219][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1197.164457][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1197.164728][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 1197.165034][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1197.165274][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 1197.165590][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1197.165926][ C3] ? mark_held_locks+0xa5/0xf0
[ 1197.166179][ C3] ? lock_acquire+0x1c1/0x220
[ 1197.166424][ C3] ? netif_receive_skb_internal+0x84/0x300
[ 1197.166730][ C3] netif_receive_skb_internal+0xb0/0x300
[ 1197.167037][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10
[ 1197.167367][ C3] ? __copy_skb_header+0xaf/0x490
[ 1197.167636][ C3] ? __skb_clone+0x57a/0x760
[ 1197.167880][ C3] netif_receive_skb+0x55/0x280
[ 1197.168133][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred]
[ 1197.168454][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit]
[ 1197.168798][ C3] tcf_mirred_act+0x338/0x780 [act_mirred]
[ 1197.169110][ C3] tcf_action_exec.part.0+0x115/0x3d0
[ 1197.169395][ C3] fl_classify+0x4dc/0x650 [cls_flower]
[ 1197.169699][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower]
[ 1197.170021][ C3] ? __pfx_usage_match+0x10/0x10
[ 1197.170282][ C3] ? check_irq_usage+0x27e/0x850
[ 1197.170544][ C3] ? __pfx_check_irq_usage+0x10/0x10
[ 1197.170818][ C3] ? __bfs+0x24a/0x650
[ 1197.171036][ C3] ? __pfx_hlock_conflict+0x10/0x10
[ 1197.171308][ C3] ? hlock_class+0x4e/0x130
[ 1197.171544][ C3] ? check_path.constprop.0+0x24/0x50
[ 1197.171825][ C3] ? check_noncircular+0x14e/0x3e0
[ 1197.172094][ C3] ? __pfx_check_noncircular+0x10/0x10
[ 1197.172387][ C3] __tcf_classify+0x32c/0x7d0
[ 1197.172635][ C3] tcf_classify+0x283/0x930
[ 1197.172875][ C3] ? __pfx_tcf_classify+0x10/0x10
[ 1197.173138][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1197.173409][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1197.173678][ C3] tc_run+0x2e4/0x5d0
[ 1197.173896][ C3] ? __pfx_tc_run+0x10/0x10
[ 1197.174139][ C3] ? lock_acquire+0x1c1/0x220
[ 1197.174388][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1197.174661][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0
[ 1197.174930][ C3] __dev_queue_xmit+0x8eb/0x1ca0
[ 1197.175194][ C3] ? mark_lock+0x38/0x3e0
[ 1197.175423][ C3] ? mark_held_locks+0xa5/0xf0
[ 1197.175674][ C3] ? __pfx___dev_queue_xmit+0x10/0x10
[ 1197.175958][ C3] ? neigh_hh_output+0x348/0x590
[ 1197.176220][ C3] ? vrf_ip_local_out+0x781/0x860 [vrf]
[ 1197.176521][ C3] ip_finish_output2+0x786/0x18e0
[ 1197.176785][ C3] ? __pfx_ip_finish_output2+0x10/0x10
[ 1197.177081][ C3] ? __ip_finish_output+0x3dd/0x770
[ 1197.177355][ C3] ip_output+0x16b/0x4f0
[ 1197.177580][ C3] ? hlock_class+0x4e/0x130
[ 1197.177821][ C3] ? __pfx_ip_output+0x10/0x10
[ 1197.178075][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1197.178368][ C3] ? ip_local_out+0x114/0x3b0
[ 1197.178619][ C3] __ip_queue_xmit+0x672/0x1910
[ 1197.178879][ C3] ? __skb_clone+0x57a/0x760
[ 1197.179124][ C3] __tcp_transmit_skb+0x22b1/0x2d20
[ 1197.179397][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10
[ 1197.179686][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380
[ 1197.179996][ C3] tcp_write_xmit+0xe42/0x24c0
[ 1197.180253][ C3] ? ipv4_mtu+0x37/0x360
[ 1197.180477][ C3] ? __pfx_tcp_write_xmit+0x10/0x10
[ 1197.180751][ C3] ? __pfx_tcp_current_mss+0x10/0x10
[ 1197.181032][ C3] __tcp_push_pending_frames+0x96/0x320
[ 1197.181322][ C3] tcp_rcv_state_process+0x81e/0x1fd0
[ 1197.181603][ C3] ? tcp_v4_rcv+0x2159/0x29b0
[ 1197.181848][ C3] ? hlock_class+0x4e/0x130
[ 1197.182086][ C3] ? __lock_acquired+0x18a/0x6b0
[ 1197.182345][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10
[ 1197.182651][ C3] ? __pfx___lock_acquired+0x10/0x10
[ 1197.182925][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10
[ 1197.183223][ C3] tcp_v4_do_rcv+0x154/0x850
[ 1197.183465][ C3] tcp_v4_rcv+0x235a/0x29b0
[ 1197.183709][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10
[ 1197.183967][ C3] ? __pfx_raw_v4_input+0x10/0x10
[ 1197.184233][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 1197.184529][ C3] ip_protocol_deliver_rcu+0x93/0x360
[ 1197.184807][ C3] ip_local_deliver_finish+0x2ae/0x450
[ 1197.185091][ C3] ip_local_deliver+0x19d/0x480
[ 1197.185351][ C3] ? __pfx_ip_local_deliver+0x10/0x10
[ 1197.185636][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300
[ 1197.185969][ C3] ip_rcv+0x564/0x740
[ 1197.186177][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1197.186415][ C3] ? lock_acquire.part.0+0xe5/0x330
[ 1197.186687][ C3] ? process_backlog+0x1ed/0x5e0
[ 1197.186959][ C3] ? __pfx_ip_rcv+0x10/0x10
[ 1197.187199][ C3] __netif_receive_skb_one_core+0x166/0x1b0
[ 1197.187505][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10
[ 1197.187839][ C3] ? lock_acquire+0x1c1/0x220
[ 1197.188082][ C3] ? process_backlog+0x1ed/0x5e0
[ 1197.188341][ C3] process_backlog+0xd3/0x5e0
[ 1197.188594][ C3] __napi_poll.constprop.0+0xa5/0x450
[ 1197.188880][ C3] net_rx_action+0x440/0xb40
[ 1197.189129][ C3] ? __pfx_net_rx_action+0x10/0x10
[ 1197.189395][ C3] ? lockdep_unlock+0x220/0x230
[ 1197.189654][ C3] ? mark_held_locks+0xa5/0xf0
[ 1197.189910][ C3] __do_softirq+0x1bc/0x7ff
[ 1197.190149][ C3] irq_exit_rcu+0x98/0xc0
[ 1197.190376][ C3] sysvec_apic_timer_interrupt+0x75/0x80
[ 1197.190670][ C3]
[ 1197.190829][ C3]
[ 1197.190987][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 1197.191306][ C3] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70
[ 1197.191640][ C3] Code: 10 e8 51 cb a6 fd 48 89 ef e8 69 53 a7 fd 81 e3 00 02 00 00 75 1d 9c 58 f6 c4 02 75 29 48 85 db 74 01 fb 65 ff 0d e5 47 d8 77 <74> 0e 5b 5d c3 cc cc cc cc e8 5f 5b c9 fd eb dc 0f 1f 44 00 00 5b
[ 1197.192641][ C3] RSP: 0018:ffffc90000e2fa88 EFLAGS: 00000286
[ 1197.192957][ C3] RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff1710f31
[ 1197.193370][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88476ef1
[ 1197.193783][ C3] RBP: ffffffff8c2229a0 R08: 0000000000000001 R09: fffffbfff170aa84
[ 1197.194197][ C3] R10: ffffffff8b855427 R11: 0000000000000000 R12: 00000000000008d1
[ 1197.194612][ C3] R13: ffffffff8c222ab0 R14: ffffffff8c2229a0 R15: ffff8880044d0000
[ 1197.195026][ C3] ? _raw_spin_unlock_irqrestore+0x51/0x70
[ 1197.195330][ C3] uart_write+0x220/0x440
[ 1197.195562][ C3] process_output_block+0x141/0x790
[ 1197.195839][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370
[ 1197.196188][ C3] n_tty_write+0x414/0x7a0
[ 1197.196428][ C3] ? __pfx_n_tty_write+0x10/0x10
[ 1197.196688][ C3] ? __pfx_woken_wake_function+0x10/0x10
[ 1197.196991][ C3] ? lock_acquire+0x1c1/0x220
[ 1197.197239][ C3] ? iterate_tty_write+0x95/0x540
[ 1197.197506][ C3] iterate_tty_write+0x22c/0x540
[ 1197.197772][ C3] file_tty_write.constprop.0+0x1db/0x370
[ 1197.198069][ C3] vfs_write+0x9ec/0x10a0
[ 1197.198296][ C3] ? lock_acquire+0x1c1/0x220
[ 1197.198540][ C3] ? __pfx_vfs_write+0x10/0x10
[ 1197.198787][ C3] ? __might_fault+0xc6/0x180
[ 1197.199039][ C3] ? kvm_clock_get_cycles+0x18/0x30
[ 1197.199316][ C3] ? __fget_light+0x54/0x1e0
[ 1197.199564][ C3] ksys_write+0xf5/0x1e0
[ 1197.199786][ C3] ? __pfx_ksys_write+0x10/0x10
[ 1197.200048][ C3] do_syscall_64+0xcc/0x1e0
[ 1197.200291][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77
[ 1197.200603][ C3] RIP: 0033:0x7fbb534bd957
[ 1197.200841][ C3] 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
[ 1197.201841][ C3] RSP: 002b:00007ffc9fe9d1d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 1197.202275][ C3] RAX: ffffffffffffffda RBX: 000055673c192ea0 RCX: 00007fbb534bd957
[ 1197.202694][ C3] RDX: 0000000000000001 RSI: 000055673c192ea0 RDI: 0000000000000001
[ 1197.203109][ C3] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 1197.203523][ C3] R10: 0000000000000001 R11: 0000000000000246 R12: 000055673c17f510
[ 1197.203941][ C3] R13: 000055673c1602a0 R14: 0000000000000001 R15: 000055673c17f510
[ 1197.204362][ C3]
[ 1211.819268][ T3654] ncat (3654) used greatest stack depth: 21168 bytes left
[ 1230.156130][ C1] clocksource: Long readout interval, skipping watchdog check: cs_nsec: 1290012058 wd_nsec: 1290011650
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__->