=============================
[ BUG: Invalid wait context ]
6.13.0-syzkaller-07644-gc2da8b3f914f #0 Not tainted
-----------------------------
syz.0.0/5322 is trying to lock:
ffff88805ffd7298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline]
ffff88805ffd7298 (&zone->lock){-.-.}-{3:3}, at: __rmqueue_pcplist+0x4a2/0x2a90 mm/page_alloc.c:3003
other info that might help us debug this:
context-{2:2}
4 locks held by syz.0.0/5322:
#0: ffffffff8e9ef2d0 (dup_mmap_sem){.+.+}-{0:0}, at: dup_mm kernel/fork.c:1687 [inline]
#0: ffffffff8e9ef2d0 (dup_mmap_sem){.+.+}-{0:0}, at: copy_mm+0x1db/0x2110 kernel/fork.c:1740
#1: ffff888040be9fe0 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:152 [inline]
#1: ffff888040be9fe0 (&mm->mmap_lock){++++}-{4:4}, at: dup_mmap kernel/fork.c:642 [inline]
#1: ffff888040be9fe0 (&mm->mmap_lock){++++}-{4:4}, at: dup_mm kernel/fork.c:1688 [inline]
#1: ffff888040be9fe0 (&mm->mmap_lock){++++}-{4:4}, at: copy_mm+0x2b4/0x2110 kernel/fork.c:1740
#2: ffff888040be81e0 (&mm->mmap_lock/1){+.+.}-{4:4}, at: mmap_write_lock_nested include/linux/mmap_lock.h:142 [inline]
#2: ffff888040be81e0 (&mm->mmap_lock/1){+.+.}-{4:4}, at: dup_mmap kernel/fork.c:649 [inline]
#2: ffff888040be81e0 (&mm->mmap_lock/1){+.+.}-{4:4}, at: dup_mm kernel/fork.c:1688 [inline]
#2: ffff888040be81e0 (&mm->mmap_lock/1){+.+.}-{4:4}, at: copy_mm+0x455/0x2110 kernel/fork.c:1740
#3: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#3: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline]
#3: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline]
#3: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7d3/0x37a0 mm/page_alloc.c:3473
stack backtrace:
CPU: 0 UID: 0 PID: 5322 Comm: syz.0.0 Not tainted 6.13.0-syzkaller-07644-gc2da8b3f914f #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:4828 [inline]
check_wait_context kernel/locking/lockdep.c:4900 [inline]
__lock_acquire+0x15a8/0x2100 kernel/locking/lockdep.c:5178
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5851
__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:2309 [inline]
__rmqueue_pcplist+0x4a2/0x2a90 mm/page_alloc.c:3003
rmqueue_pcplist mm/page_alloc.c:3045 [inline]
rmqueue mm/page_alloc.c:3076 [inline]
get_page_from_freelist+0x886/0x37a0 mm/page_alloc.c:3473
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_mpol_noprof+0x3e1/0x780 mm/mempolicy.c:2269
stack_depot_save_flags+0x72d/0x940 lib/stackdepot.c:627
kasan_save_stack+0x4f/0x60 mm/kasan/common.c:48
__kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:544
task_work_add+0xd9/0x490 kernel/task_work.c:77
__run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1223 [inline]
run_posix_cpu_timers+0x6ac/0x810 kernel/time/posix-cpu-timers.c:1422
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:1738 [inline]
__hrtimer_run_queues+0x551/0xd30 kernel/time/hrtimer.c:1802
hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1864
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:pte_alloc_one+0x2bd/0x510 arch/x86/mm/pgtable.c:33
Code: 83 c6 40 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 55 ea b8 00 45 0f b6 36 4c 89 e7 44 89 f6 e8 26 51 ab 00 45 31 e4 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 2b 00 00 00 00 66 42 c7 44 2b
RSP: 0018:ffffc9000d42f120 EFLAGS: 00000283
RAX: ffffffff816d389e RBX: dffffc0000000000 RCX: 0000000000100000
RDX: ffffc9000e6da000 RSI: 0000000000000b42 RDI: 0000000000000b43
RBP: ffffc9000d42f1f0 R08: ffffffff816d3876 R09: 1ffffffff285f31f
R10: dffffc0000000000 R11: fffffbfff285f320 R12: ffffea0001027b80
R13: 1ffff92001a85e28 R14: 0000000000000200 R15: 0000000000000046
__pte_alloc+0x79/0x3c0 mm/memory.c:447
copy_pte_range mm/memory.c:1107 [inline]
copy_pmd_range+0x6fb4/0x77a0 mm/memory.c:1262
copy_pud_range mm/memory.c:1299 [inline]
copy_p4d_range mm/memory.c:1323 [inline]
copy_page_range+0x99f/0xe90 mm/memory.c:1421
dup_mmap kernel/fork.c:748 [inline]
dup_mm kernel/fork.c:1688 [inline]
copy_mm+0x1279/0x2110 kernel/fork.c:1740
copy_process+0x1845/0x3d50 kernel/fork.c:2391
kernel_clone+0x226/0x8e0 kernel/fork.c:2803
__do_sys_clone kernel/fork.c:2946 [inline]
__se_sys_clone kernel/fork.c:2930 [inline]
__x64_sys_clone+0x258/0x2a0 kernel/fork.c:2930
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ffb1818cd29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffb18fe3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007ffb183a5fa0 RCX: 00007ffb1818cd29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffb1820e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ffb183a5fa0 R15: 00007ffc82a0aee8
----------------
Code disassembly (best guess):
0: 83 c6 40 add $0x40,%esi
3: 4c 89 f0 mov %r14,%rax
6: 48 c1 e8 03 shr $0x3,%rax
a: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1)
e: 74 08 je 0x18
10: 4c 89 f7 mov %r14,%rdi
13: e8 55 ea b8 00 call 0xb8ea6d
18: 45 0f b6 36 movzbl (%r14),%r14d
1c: 4c 89 e7 mov %r12,%rdi
1f: 44 89 f6 mov %r14d,%esi
22: e8 26 51 ab 00 call 0xab514d
27: 45 31 e4 xor %r12d,%r12d
* 2a: 48 c7 44 24 20 0e 36 movq $0x45e0360e,0x20(%rsp) <-- trapping instruction
31: e0 45
33: 4a c7 04 2b 00 00 00 movq $0x0,(%rbx,%r13,1)
3a: 00
3b: 66 data16
3c: 42 rex.X
3d: c7 .byte 0xc7
3e: 44 rex.R
3f: 2b .byte 0x2b