============================= [ BUG: Invalid wait context ] 6.13.0-syzkaller-07048-gae8b53aac327 #0 Not tainted ----------------------------- syz.2.725/7937 is trying to lock: ffff88807ffd8298 (&zone->lock){..-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline] ffff88807ffd8298 (&zone->lock){..-.}-{3:3}, at: __rmqueue_pcplist+0x6bb/0x1600 mm/page_alloc.c:3003 other info that might help us debug this: context-{2:2} 1 lock held by syz.2.725/7937: #0: ffff88806a744c18 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #0: ffff88806a744c18 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline] #0: ffff88806a744c18 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline] #0: ffff88806a744c18 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x350/0x2f80 mm/page_alloc.c:3473 stack backtrace: CPU: 1 UID: 0 PID: 7937 Comm: syz.2.725 Not tainted 6.13.0-syzkaller-07048-gae8b53aac327 #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+0x116/0x1f0 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+0x878/0x3c40 kernel/locking/lockdep.c:5178 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 rmqueue_bulk mm/page_alloc.c:2309 [inline] __rmqueue_pcplist+0x6bb/0x1600 mm/page_alloc.c:3003 rmqueue_pcplist mm/page_alloc.c:3045 [inline] rmqueue mm/page_alloc.c:3076 [inline] get_page_from_freelist+0x3d2/0x2f80 mm/page_alloc.c:3473 __alloc_pages_noprof+0x221/0x2470 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c8/0x620 mm/mempolicy.c:2269 stack_depot_save_flags+0x8aa/0x9c0 lib/stackdepot.c:627 kasan_save_stack+0x42/0x60 mm/kasan/common.c:48 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:544 task_work_add+0xc0/0x3b0 kernel/task_work.c:77 __run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1223 [inline] run_posix_cpu_timers+0x69f/0x7d0 kernel/time/posix-cpu-timers.c:1422 update_process_times+0x1a1/0x2d0 kernel/time/timer.c:2522 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x376/0x530 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1738 [inline] __hrtimer_run_queues+0x5fb/0xae0 kernel/time/hrtimer.c:1802 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1864 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 96 ba 3e f6 48 89 df e8 ee 39 3f f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 35 10 30 f6 65 8b 05 96 e2 ab 74 85 c0 74 16 5b RSP: 0018:ffffc900060f7bc8 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffff88806a72c680 RCX: 1ffffffff20c3dd1 RDX: 0000000000000000 RSI: ffffffff8b6cd840 RDI: ffffffff8bd2e7c0 RBP: 0000000000000246 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff906231d7 R11: 0000000000000001 R12: 0000000000000001 R13: ffffc900060f7d78 R14: 0000000000000000 R15: ffff88806a72c700 unlock_hrtimer_base kernel/time/hrtimer.c:1007 [inline] hrtimer_start_range_ns+0x4a7/0xc70 kernel/time/hrtimer.c:1295 hrtimer_start_expires include/linux/hrtimer.h:274 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:2000 [inline] do_nanosleep+0x1f3/0x510 kernel/time/hrtimer.c:2075 hrtimer_nanosleep+0x158/0x380 kernel/time/hrtimer.c:2125 common_nsleep+0xa1/0xd0 kernel/time/posix-timers.c:1356 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1402 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1379 [inline] __x64_sys_clock_nanosleep+0x344/0x4a0 kernel/time/posix-timers.c:1379 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbe731bf5e5 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 54 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f 55 ff ff 48 8b 04 24 48 83 c4 28 f7 d8 RSP: 002b:00007fff89b8d760 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 00007fbe733a5fa0 RCX: 00007fbe731bf5e5 RDX: 00007fff89b8d7a0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fbe733a7ba0 R08: 0000000000000000 R09: 00007fbe73f75000 R10: 0000000000000000 R11: 0000000000000293 R12: 000000000001807d R13: 00007fff89b8d8d0 R14: 0000000000000032 R15: ffffffffffffffff ---------------- Code disassembly (best guess): 0: f5 cmc 1: 53 push %rbx 2: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 7: 48 89 fb mov %rdi,%rbx a: 48 83 c7 18 add $0x18,%rdi e: e8 96 ba 3e f6 call 0xf63ebaa9 13: 48 89 df mov %rbx,%rdi 16: e8 ee 39 3f f6 call 0xf63f3a09 1b: f7 c5 00 02 00 00 test $0x200,%ebp 21: 75 23 jne 0x46 23: 9c pushf 24: 58 pop %rax 25: f6 c4 02 test $0x2,%ah 28: 75 37 jne 0x61 * 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction 2f: e8 35 10 30 f6 call 0xf6301069 34: 65 8b 05 96 e2 ab 74 mov %gs:0x74abe296(%rip),%eax # 0x74abe2d1 3b: 85 c0 test %eax,%eax 3d: 74 16 je 0x55 3f: 5b pop %rbx