=============================
[ BUG: Invalid wait context ]
6.13.0-syzkaller-07078-gb46c89c08f41 #0 Not tainted
-----------------------------
syz.0.74/6062 is trying to lock:
ffff88813fffc298
(&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline]
(&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}
1 lock held by syz.0.74/6062:
#0: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#0: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline]
#0: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline]
#0: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7d3/0x37a0 mm/page_alloc.c:3473
stack backtrace:
CPU: 0 UID: 0 PID: 6062 Comm: syz.0.74 Not tainted 6.13.0-syzkaller-07078-gb46c89c08f41 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
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:put_unaligned_le32 include/linux/unaligned.h:38 [inline]
RIP: 0010:chacha_block_generic+0x446/0x1340 lib/crypto/chacha.c:86
Code: b6 04 38 84 c0 0f 85 f0 08 00 00 44 03 33 49 8d 5d 20 4d 8d 65 23 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 fc 08 00 00 <4c> 89 e0 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 14 09 00 00 44 89
RSP: 0018:ffffc9000cfd7b60 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc9000cfd7d40 RCX: 000000007d195b5a
RDX: ffffc9000cfd7cc0 RSI: ffffc9000cfd7ba0 RDI: ffffc9000cfd7bc0
RBP: ffffc9000cfd7c50 R08: 000000002f982241 R09: ffffc9000cfd7bdc
R10: 000000002dd88974 R11: 000000005748d72e R12: ffffc9000cfd7d43
R13: ffffc9000cfd7d20 R14: 0000000073ac9243 R15: dffffc0000000000
chacha20_block include/crypto/chacha.h:36 [inline]
get_random_bytes_user+0x19a/0x420 drivers/char/random.c:468
__do_sys_getrandom drivers/char/random.c:1414 [inline]
__se_sys_getrandom drivers/char/random.c:1388 [inline]
__ia32_sys_getrandom+0x151/0x250 drivers/char/random.c:1388
do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
__do_fast_syscall_32+0xb4/0x110 arch/x86/entry/common.c:386
do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411
entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf7f56579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000f507655c EFLAGS: 00000206 ORIG_RAX: 0000000000000163
RAX: ffffffffffffffda RBX: 0000000020000240 RCX: 00000000ffffff9a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
----------------
Code disassembly (best guess):
0: b6 04 mov $0x4,%dh
2: 38 84 c0 0f 85 f0 08 cmp %al,0x8f0850f(%rax,%rax,8)
9: 00 00 add %al,(%rax)
b: 44 03 33 add (%rbx),%r14d
e: 49 8d 5d 20 lea 0x20(%r13),%rbx
12: 4d 8d 65 23 lea 0x23(%r13),%r12
16: 48 89 d8 mov %rbx,%rax
19: 48 c1 e8 03 shr $0x3,%rax
1d: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax
22: 84 c0 test %al,%al
24: 0f 85 fc 08 00 00 jne 0x926
* 2a: 4c 89 e0 mov %r12,%rax <-- trapping instruction
2d: 48 c1 e8 03 shr $0x3,%rax
31: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax
36: 84 c0 test %al,%al
38: 0f 85 14 09 00 00 jne 0x952
3e: 44 rex.R
3f: 89 .byte 0x89