============================= [ BUG: Invalid wait context ] 6.12.0-syzkaller-03657-g43fb83c17ba2 #0 Not tainted ----------------------------- sshd/5306 is trying to lock: ffff88805ffd7298 (&zone->lock){..-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2307 [inline] ffff88805ffd7298 (&zone->lock){..-.}-{3:3}, at: __rmqueue_pcplist+0x4a2/0x2a80 mm/page_alloc.c:3001 other info that might help us debug this: context-{2:2} 5 locks held by sshd/5306: #0: ffff888035bc0808 (&vma->vm_lock->lock){++++}-{4:4}, at: vma_start_read include/linux/mm.h:716 [inline] #0: ffff888035bc0808 (&vma->vm_lock->lock){++++}-{4:4}, at: lock_vma_under_rcu+0x34b/0x790 mm/memory.c:6243 #1: ffffffff8e93c820 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #1: ffffffff8e93c820 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8e93c820 (rcu_read_lock){....}-{1:3}, at: __pte_offset_map+0x82/0x380 mm/pgtable-generic.c:287 #2: ffff88803f310798 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff88803f310798 (ptlock_ptr(ptdesc)#2){+.+.}-{3:3}, at: __pte_offset_map_lock+0x1ba/0x300 mm/pgtable-generic.c:375 #3: ffff88801fc3ea98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598 #4: ffff88801fc44c98 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #4: ffff88801fc44c98 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3030 [inline] #4: ffff88801fc44c98 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3074 [inline] #4: ffff88801fc44c98 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7d3/0x3790 mm/page_alloc.c:3471 stack backtrace: CPU: 0 UID: 0 PID: 5306 Comm: sshd Not tainted 6.12.0-syzkaller-03657-g43fb83c17ba2 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x15a8/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 rmqueue_bulk mm/page_alloc.c:2307 [inline] __rmqueue_pcplist+0x4a2/0x2a80 mm/page_alloc.c:3001 rmqueue_pcplist mm/page_alloc.c:3043 [inline] rmqueue mm/page_alloc.c:3074 [inline] get_page_from_freelist+0x886/0x3790 mm/page_alloc.c:3471 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 stack_depot_save_flags+0x666/0x830 lib/stackdepot.c:627 kasan_save_stack+0x4f/0x60 mm/kasan/common.c:48 __kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:541 task_work_add+0xd9/0x490 kernel/task_work.c:77 task_tick_numa kernel/sched/fair.c:3607 [inline] task_tick_fair+0x58c/0x7b0 kernel/sched/fair.c:13054 sched_tick+0x21e/0x660 kernel/sched/core.c:5652 update_process_times+0x276/0x2f0 kernel/time/timer.c:2524 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x37c/0x500 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1739 [inline] __hrtimer_run_queues+0x551/0xd50 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1865 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__page_table_check_ptes_set+0x32a/0x410 mm/page_table_check.c:226 Code: 01 0f b6 d0 48 89 df 4c 89 e6 e8 11 01 00 00 48 c7 44 24 20 0e 36 e0 45 48 b8 00 00 00 00 00 fc ff df 4a c7 04 30 00 00 00 00 <65> 48 8b 04 25 28 00 00 00 48 3b 44 24 60 0f 85 93 00 00 00 48 8d RSP: 0000:ffffc9000ceaf8c0 EFLAGS: 00000283 RAX: dffffc0000000000 RBX: 000000000004439e RCX: ffffc9000ceaf703 RDX: 0000000000000003 RSI: ffffffff8c0ae480 RDI: ffffffff8c612b60 RBP: ffffc9000ceaf970 R08: ffffffff901de177 R09: 1ffffffff203bc2e R10: dffffc0000000000 R11: fffffbfff203bc2f R12: 0000000000000001 R13: 800000004439e867 R14: 1ffff920019d5f1c R15: 1ffff920019d5f20 page_table_check_ptes_set include/linux/page_table_check.h:74 [inline] set_ptes include/linux/pgtable.h:267 [inline] do_anonymous_page mm/memory.c:4835 [inline] do_pte_missing mm/memory.c:3963 [inline] handle_pte_fault+0x6359/0x6820 mm/memory.c:5766 __handle_mm_fault mm/memory.c:5909 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6077 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x459/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x559f34a91823 Code: 4c 89 ed 4c 89 e7 f3 aa eb 48 4c 89 e7 e8 95 48 f7 ff 48 89 c5 48 85 c0 74 38 48 89 c7 4c 89 ee 4d 39 f4 76 11 4c 89 f1 31 c0 a4 4c 89 e1 4c 29 f1 f3 aa eb 05 4c 89 e1 f3 a4 4c 89 ef 48 83 RSP: 002b:00007ffe0a221de0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000290000 RCX: 0000000000210010 RDX: 0000000000000003 RSI: 00007f690963e000 RDI: 00007f69093ad000 RBP: 00007f6909335010 R08: 00007f6909335010 R09: 0000000000000000 R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000290000 R13: 00007f69095c6010 R14: 0000000000288000 R15: 00007ffe0a221f98 ---------------- Code disassembly (best guess): 0: 01 0f add %ecx,(%rdi) 2: b6 d0 mov $0xd0,%dh 4: 48 89 df mov %rbx,%rdi 7: 4c 89 e6 mov %r12,%rsi a: e8 11 01 00 00 call 0x120 f: 48 c7 44 24 20 0e 36 movq $0x45e0360e,0x20(%rsp) 16: e0 45 18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1f: fc ff df 22: 4a c7 04 30 00 00 00 movq $0x0,(%rax,%r14,1) 29: 00 * 2a: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax <-- trapping instruction 31: 00 00 33: 48 3b 44 24 60 cmp 0x60(%rsp),%rax 38: 0f 85 93 00 00 00 jne 0xd1 3e: 48 rex.W 3f: 8d .byte 0x8d