[ 1004.861166][ T3365] ------------[ cut here ]------------ [ 1004.861503][ T3365] [ 1004.861505][ T3365] ====================================================== [ 1004.861506][ T3365] WARNING: possible circular locking dependency detected [ 1004.861508][ T3365] 6.10.0-rc1-virtme #1 Not tainted [ 1004.861510][ T3365] ------------------------------------------------------ [ 1004.861511][ T3365] ip/3365 is trying to acquire lock: [ 1004.861512][ T3365] ffffffff89e5e3a0 (console_owner){..-.}-{0:0}, at: console_flush_all+0x3b3/0x980 [ 1004.861526][ T3365] [ 1004.861526][ T3365] but task is already holding lock: [ 1004.861527][ T3365] ffff88803ffdbb68 (&zone->lock){-.-.}-{2:2}, at: rmqueue_bulk+0xa7/0x760 [ 1004.861534][ T3365] [ 1004.861534][ T3365] which lock already depends on the new lock. [ 1004.861534][ T3365] [ 1004.861535][ T3365] [ 1004.861535][ T3365] the existing dependency chain (in reverse order) is: [ 1004.861536][ T3365] [ 1004.861536][ T3365] -> #1 (&zone->lock){-.-.}-{2:2}: [ 1004.861539][ T3365] __lock_acquire+0xaf0/0x1570 [ 1004.861544][ T3365] lock_acquire.part.0+0xeb/0x330 [ 1004.861547][ T3365] _raw_spin_lock_irqsave+0x3f/0x60 [ 1004.861552][ T3365] rmqueue_bulk+0xa7/0x760 [ 1004.861554][ T3365] __rmqueue_pcplist+0x48d/0x850 [ 1004.861557][ T3365] rmqueue+0x5a6/0x11b0 [ 1004.861559][ T3365] get_page_from_freelist+0x258/0xea0 [ 1004.861562][ T3365] __alloc_pages_noprof+0x1d2/0x370 [ 1004.861565][ T3365] alloc_pages_mpol_noprof+0xc0/0x390 [ 1004.861569][ T3365] stack_depot_save_flags+0x4c7/0x530 [ 1004.861573][ T3365] kasan_save_stack+0x34/0x50 [ 1004.861577][ T3365] kasan_save_track+0x14/0x30 [ 1004.861579][ T3365] __kasan_slab_alloc+0x59/0x70 [ 1004.861581][ T3365] kmem_cache_alloc_noprof+0xef/0x270 [ 1004.861584][ T3365] __alloc_object+0x2f/0x270 [ 1004.861587][ T3365] __create_object+0x22/0xb0 [ 1004.861589][ T3365] kmalloc_node_track_caller_noprof+0x345/0x400 [ 1004.861592][ T3365] kmemdup_noprof+0x26/0x50 [ 1004.861595][ T3365] put_chars+0x108/0x1e0 [ 1004.861598][ T3365] hvc_console_print+0x289/0x810 [ 1004.861601][ T3365] console_flush_all+0x3f8/0x980 [ 1004.861603][ T3365] console_unlock+0x90/0x1c0 [ 1004.861605][ T3365] vprintk_emit+0x162/0x180 [ 1004.861607][ T3365] _printk+0xb7/0xf0 [ 1004.861610][ T3365] sched_clock_init_late+0x112/0x190 [ 1004.861613][ T3365] do_one_initcall+0x8d/0x1e0 [ 1004.861617][ T3365] do_initcalls+0x1af/0x3e0 [ 1004.861620][ T3365] kernel_init_freeable+0x232/0x310 [ 1004.861622][ T3365] kernel_init+0x20/0x200 [ 1004.861626][ T3365] ret_from_fork+0x31/0x70 [ 1004.861629][ T3365] ret_from_fork_asm+0x1a/0x30 [ 1004.861632][ T3365] [ 1004.861632][ T3365] -> #0 (console_owner){..-.}-{0:0}: [ 1004.861635][ T3365] check_prev_add+0x182/0xce0 [ 1004.861637][ T3365] validate_chain+0x71d/0x9b0 [ 1004.861640][ T3365] __lock_acquire+0xaf0/0x1570 [ 1004.861643][ T3365] lock_acquire.part.0+0xeb/0x330 [ 1004.861645][ T3365] console_flush_all+0x3cf/0x980 [ 1004.861647][ T3365] console_unlock+0x90/0x1c0 [ 1004.861649][ T3365] vprintk_emit+0x162/0x180 [ 1004.861652][ T3365] _printk+0xb7/0xf0 [ 1004.861654][ T3365] __warn_printk+0x190/0x1e0 [ 1004.861657][ T3365] __add_to_free_list+0x38a/0x4b0 [ 1004.861660][ T3365] rmqueue_bulk+0x218/0x760 [ 1004.861662][ T3365] __rmqueue_pcplist+0x48d/0x850 [ 1004.861665][ T3365] rmqueue+0x5a6/0x11b0 [ 1004.861667][ T3365] get_page_from_freelist+0x258/0xea0 [ 1004.861670][ T3365] __alloc_pages_slowpath.constprop.0+0x7c2/0x13f0 [ 1004.861673][ T3365] __alloc_pages_noprof+0x303/0x370 [ 1004.861676][ T3365] alloc_pages_mpol_noprof+0xc0/0x390 [ 1004.861678][ T3365] vma_alloc_folio_noprof+0x9d/0x160 [ 1004.861681][ T3365] do_anonymous_page+0x3c2/0x1090 [ 1004.861684][ T3365] __handle_mm_fault+0x409/0x5f0 [ 1004.861686][ T3365] handle_mm_fault+0x1e5/0x410 [ 1004.861689][ T3365] do_user_addr_fault+0x312/0xa90 [ 1004.861693][ T3365] exc_page_fault+0x5e/0xd0 [ 1004.861695][ T3365] asm_exc_page_fault+0x26/0x30 [ 1004.861700][ T3365] [ 1004.861700][ T3365] other info that might help us debug this: [ 1004.861700][ T3365] [ 1004.861701][ T3365] Possible unsafe locking scenario: [ 1004.861701][ T3365] [ 1004.861701][ T3365] CPU0 CPU1 [ 1004.861702][ T3365] ---- ---- [ 1004.861703][ T3365] lock(&zone->lock); [ 1004.861705][ T3365] lock(console_owner); [ 1004.861706][ T3365] lock(&zone->lock); [ 1004.861708][ T3365] lock(console_owner); [ 1004.861709][ T3365] [ 1004.861709][ T3365] *** DEADLOCK *** [ 1004.861709][ T3365] [ 1004.861710][ T3365] 5 locks held by ip/3365: [ 1004.861712][ T3365] #0: ffff888005635518 (&vma->vm_lock->lock){++++}-{3:3}, at: lock_vma_under_rcu+0x1b2/0x760 [ 1004.861717][ T3365] #1: ffff888036142f98 (&pcp->lock){+.+.}-{2:2}, at: rmqueue+0x53b/0x11b0 [ 1004.861722][ T3365] #2: ffff88803ffdbb68 (&zone->lock){-.-.}-{2:2}, at: rmqueue_bulk+0xa7/0x760 [ 1004.861727][ T3365] #3: ffffffff89f3ea00 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x7a/0x180 [ 1004.861732][ T3365] #4: ffffffff89f3ea70 (console_srcu){....}-{0:0}, at: console_flush_all+0x11d/0x980 [ 1004.861737][ T3365] [ 1004.861737][ T3365] stack backtrace: [ 1004.861740][ T3365] CPU: 2 PID: 3365 Comm: ip Not tainted 6.10.0-rc1-virtme #1 [ 1004.861743][ WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr WAIT TIMEOUT stderr