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 ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2368.620990][ C3] [ 2368.621148][ C3] ============================================ [ 2368.621466][ C3] WARNING: possible recursive locking detected [ 2368.621792][ C3] 6.8.0-rc2-virtme #1 Not tainted [ 2368.622083][ C3] -------------------------------------------- [ 2368.622413][ C3] perl/7804 is trying to acquire lock: [ 2368.622692][ C3] ffff88800c5f1b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2368.623197][ C3] [ 2368.623197][ C3] but task is already holding lock: [ 2368.623569][ C3] ffff88800c5f0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2368.624025][ C3] [ 2368.624025][ C3] other info that might help us debug this: [ 2368.624445][ C3] Possible unsafe locking scenario: [ 2368.624445][ C3] [ 2368.624843][ C3] CPU0 [ 2368.625013][ C3] ---- [ 2368.625193][ C3] lock(slock-AF_INET/1); [ 2368.625424][ C3] lock(slock-AF_INET/1); [ 2368.625652][ C3] [ 2368.625652][ C3] *** DEADLOCK *** [ 2368.625652][ C3] [ 2368.626062][ C3] May be due to missing lock nesting notation [ 2368.626062][ C3] [ 2368.626481][ C3] 12 locks held by perl/7804: [ 2368.626736][ C3] #0: ffff8880063f88a8 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x80 [ 2368.627278][ C3] #1: ffff8880063f8948 (&tty->atomic_write_lock){+.+.}-{3:3}, at: iterate_tty_write+0x95/0x540 [ 2368.627814][ C3] #2: ffff8880063f8b30 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x18f/0x7a0 [ 2368.628331][ C3] #3: ffffc90000053398 (&ldata->output_lock){+.+.}-{3:3}, at: process_output_block+0x5e/0x790 [ 2368.628854][ C3] #4: ffffffffbcf447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2368.629339][ C3] #5: ffffffffbcf447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2368.629855][ C3] #6: ffff88800c5f0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2368.630331][ C3] #7: ffffffffbcf447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2368.630811][ C3] #8: ffffffffbcf447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2368.631304][ C3] #9: ffffffffbcf44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2368.631805][ C3] #10: ffffffffbcf447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2368.632341][ C3] #11: ffffffffbcf447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2368.632862][ C3] [ 2368.632862][ C3] stack backtrace: [ 2368.633165][ C3] CPU: 3 PID: 7804 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 2368.633543][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2368.634165][ C3] Call Trace: [ 2368.634337][ C3] <IRQ> [ 2368.634487][ C3] dump_stack_lvl+0x64/0xb0 [ 2368.634727][ C3] validate_chain+0x525/0xa00 [ 2368.634970][ C3] ? __pfx_validate_chain+0x10/0x10 [ 2368.635237][ C3] ? hlock_class+0x4e/0x130 [ 2368.635491][ C3] ? mark_lock+0x38/0x3e0 [ 2368.635716][ C3] __lock_acquire+0xb67/0x1610 [ 2368.635981][ C3] ? lock_downgrade+0xa0/0x110 [ 2368.636230][ C3] ? mark_lock+0x38/0x3e0 [ 2368.636461][ C3] lock_acquire.part.0+0xe5/0x330 [ 2368.636724][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2368.636977][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2368.637279][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2368.637562][ C3] ? lock_acquire+0x1c1/0x220 [ 2368.637801][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2368.638042][ C3] _raw_spin_lock_nested+0x33/0x80 [ 2368.638352][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2368.638591][ C3] tcp_v4_rcv+0x221e/0x2ac0 [ 2368.638837][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2368.639095][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2368.639352][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2368.639659][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2368.639939][ C3] ip_local_deliver_finish+0x2ae/0x480 [ 2368.640216][ C3] ip_local_deliver+0x19d/0x480 [ 2368.640478][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2368.640767][ C3] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2368.641030][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2368.641364][ C3] ip_rcv+0x564/0x740 [ 2368.641575][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2368.641808][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2368.642085][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2368.642405][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2368.642662][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2368.642974][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2368.643309][ C3] ? mark_held_locks+0xa5/0xf0 [ 2368.643574][ C3] ? lock_acquire+0x1c1/0x220 [ 2368.643814][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2368.644109][ C3] netif_receive_skb_internal+0xb0/0x300 [ 2368.644396][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2368.644728][ C3] ? __copy_skb_header+0xaf/0x490 [ 2368.645004][ C3] ? __skb_clone+0x57a/0x760 [ 2368.645240][ C3] netif_receive_skb+0x55/0x280 [ 2368.645500][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2368.645816][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2368.646156][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2368.646471][ C3] tcf_action_exec.part.0+0x112/0x3d0 [ 2368.646779][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 2368.647082][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2368.647407][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 2368.647680][ C3] ? __bfs+0x247/0x650 [ 2368.647899][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 2368.648177][ C3] ? check_path.constprop.0+0x24/0x50 [ 2368.648469][ C3] ? check_noncircular+0x14e/0x3e0 [ 2368.648728][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 2368.649016][ C3] ? __pfx_validate_chain+0x10/0x10 [ 2368.649282][ C3] ? hlock_class+0x4e/0x130 [ 2368.649515][ C3] ? hlock_class+0x4e/0x130 [ 2368.649749][ C3] ? check_prev_add+0x773/0xce0 [ 2368.649998][ C3] __tcf_classify+0x329/0x7d0 [ 2368.650241][ C3] tcf_classify+0x283/0x930 [ 2368.650473][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 2368.650745][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2368.651020][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2368.651280][ C3] tc_run+0x2e4/0x5d0 [ 2368.651498][ C3] ? __pfx_tc_run+0x10/0x10 [ 2368.651736][ C3] ? lock_acquire+0x1c1/0x220 [ 2368.651977][ C3] ? __dev_queue_xmit+0x1da/0x17e0 [ 2368.652260][ C3] __dev_queue_xmit+0x686/0x17e0 [ 2368.652528][ C3] ? mark_held_locks+0xa5/0xf0 [ 2368.652800][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2368.653149][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2368.653431][ C3] ? neigh_hh_output+0x348/0x590 [ 2368.653684][ C3] ip_finish_output2+0x786/0x18e0 [ 2368.653940][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 2368.654219][ C3] ? __ip_finish_output+0x3dd/0x770 [ 2368.654483][ C3] ip_output+0x16b/0x4f0 [ 2368.654700][ C3] ? mark_held_locks+0xa5/0xf0 [ 2368.654942][ C3] ? __pfx_ip_output+0x10/0x10 [ 2368.655183][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2368.655466][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2368.655798][ C3] ? ip_local_out+0x114/0x3b0 [ 2368.656038][ C3] __ip_queue_xmit+0x672/0x1910 [ 2368.656286][ C3] ? __skb_clone+0x57a/0x760 [ 2368.656518][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 2368.656788][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2368.657069][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 2368.657372][ C3] tcp_write_xmit+0x94f/0x1cb0 [ 2368.657619][ C3] ? ipv4_mtu+0x37/0x360 [ 2368.657838][ C3] ? __pfx_tcp_write_xmit+0x10/0x10 [ 2368.658101][ C3] ? __pfx_tcp_current_mss+0x10/0x10 [ 2368.658369][ C3] __tcp_push_pending_frames+0x96/0x320 [ 2368.658649][ C3] tcp_rcv_state_process+0x786/0x1fe0 [ 2368.658924][ C3] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2368.659160][ C3] ? hlock_class+0x4e/0x130 [ 2368.659389][ C3] ? __lock_acquired+0x18a/0x6b0 [ 2368.659664][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2368.659961][ C3] ? __pfx___lock_acquired+0x10/0x10 [ 2368.660228][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2368.660541][ C3] tcp_v4_do_rcv+0x154/0x860 [ 2368.660791][ C3] tcp_v4_rcv+0x2449/0x2ac0 [ 2368.661040][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2368.661298][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2368.661554][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2368.661842][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2368.662127][ C3] ip_local_deliver_finish+0x2ae/0x480 [ 2368.662420][ C3] ip_local_deliver+0x19d/0x480 [ 2368.662680][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2368.662987][ C3] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2368.663263][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2368.663596][ C3] ip_rcv+0x564/0x740 [ 2368.663799][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2368.664051][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2368.664318][ C3] ? process_backlog+0x1ed/0x5e0 [ 2368.664571][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2368.664801][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2368.665103][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2368.665429][ C3] ? lock_acquire+0x1c1/0x220 [ 2368.665669][ C3] ? process_backlog+0x1ed/0x5e0 [ 2368.665923][ C3] process_backlog+0xd3/0x5e0 [ 2368.666164][ C3] __napi_poll.constprop.0+0xa2/0x460 [ 2368.666440][ C3] net_rx_action+0x440/0xb40 [ 2368.666694][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 2368.666962][ C3] ? lockdep_unlock+0x220/0x230 [ 2368.667210][ C3] ? mark_held_locks+0xa5/0xf0 [ 2368.667455][ C3] __do_softirq+0x1b9/0x7ff [ 2368.667692][ C3] irq_exit_rcu+0x98/0xc0 [ 2368.667912][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 2368.668201][ C3] </IRQ> [ 2368.668352][ C3] <TASK> [ 2368.668502][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 2368.668825][ C3] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70 [ 2368.669153][ C3] Code: 10 e8 f1 28 a6 fd 48 89 ef e8 09 b1 a6 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 85 a5 57 44 <74> 0e 5b 5d c3 cc cc cc cc e8 8f 71 c8 fd eb dc 0f 1f 44 00 00 5b [ 2368.670143][ C3] RSP: 0018:ffffc900011afab8 EFLAGS: 00000286 [ 2368.670454][ C3] RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff7e119d6 [ 2368.670854][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffbbc81151 [ 2368.671257][ C3] RBP: ffffffffbfa27860 R08: 0000000000000001 R09: fffffbfff7e0b484 [ 2368.671657][ C3] R10: ffffffffbf05a427 R11: ffffffffbc2ae168 R12: 00000000ffffffff [ 2368.672062][ C3] R13: ffffffffbfa27970 R14: ffffc90000053328 R15: ffff8880063f8800 [ 2368.672487][ C3] ? _raw_spin_unlock_irqrestore+0x51/0x70 [ 2368.672819][ C3] uart_write_room+0x14d/0x2f0 [ 2368.673068][ C3] process_output_block+0x66/0x790 [ 2368.673332][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 2368.673675][ C3] n_tty_write+0x414/0x7a0 [ 2368.673907][ C3] ? __pfx_n_tty_write+0x10/0x10 [ 2368.674160][ C3] ? __pfx_woken_wake_function+0x10/0x10 [ 2368.674459][ C3] ? lock_acquire+0x1c1/0x220 [ 2368.674702][ C3] ? iterate_tty_write+0x95/0x540 [ 2368.674967][ C3] iterate_tty_write+0x229/0x540 [ 2368.675237][ C3] file_tty_write.constprop.0+0x1db/0x370 [ 2368.675540][ C3] vfs_write+0x9e9/0x10a0 [ 2368.675767][ C3] ? __pfx___lock_release+0x10/0x10 [ 2368.676041][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2368.676330][ C3] ? __pfx_vfs_write+0x10/0x10 [ 2368.676588][ C3] ? clockevents_program_event+0xf6/0x300 [ 2368.676919][ C3] ? kvm_clock_get_cycles+0x18/0x30 [ 2368.677200][ C3] ? __fget_light+0x54/0x1e0 [ 2368.677438][ C3] ksys_write+0xf5/0x1e0 [ 2368.677657][ C3] ? __pfx_ksys_write+0x10/0x10 [ 2368.677919][ C3] do_syscall_64+0xc9/0x1e0 [ 2368.678155][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2368.678459][ C3] RIP: 0033:0x7fe544103957 [ 2368.678687][ 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 [ 2368.679660][ C3] RSP: 002b:00007fff7fe83888 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2368.680082][ C3] RAX: ffffffffffffffda RBX: 000055affa2fefb0 RCX: 00007fe544103957 [ 2368.680480][ C3] RDX: 0000000000000001 RSI: 000055affa2fefb0 RDI: 0000000000000001 [ 2368.680882][ C3] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 2368.681281][ C3] R10: 0000000000000001 R11: 0000000000000246 R12: 000055affa2eb530 [ 2368.681679][ C3] R13: 000055affa2cc2a0 R14: 0000000000000001 R15: 000055affa2eb530 [ 2368.682081][ C3] </TASK> [ 2388.686087][ T8105] ncat (8105) used greatest stack depth: 21312 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__->