vkms_vblank_simulate: vblank timer overrun ============================= [ BUG: Invalid wait context ] 6.13.0-syzkaller-07644-gc2da8b3f914f #0 Not tainted ----------------------------- syz.0.132/6442 is trying to lock: ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline] ffff88813fffc298 (&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.0.132/6442: #0: ffff8880b8744d58 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #0: ffff8880b8744d58 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline] #0: ffff8880b8744d58 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline] #0: ffff8880b8744d58 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x350/0x2f80 mm/page_alloc.c:3473 stack backtrace: CPU: 1 UID: 0 PID: 6442 Comm: syz.0.132 Not tainted 6.13.0-syzkaller-07644-gc2da8b3f914f #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+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+0x8e0/0x9e0 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 e6 ec 4d f6 48 89 df e8 2e 6c 4e f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 05 4c 3f f6 65 8b 05 06 a6 bb 74 85 c0 74 16 5b RSP: 0018:ffffc9001703fd58 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffff88802ee40210 RCX: 1ffffffff20bf4b1 RDX: 0000000000000000 RSI: ffffffff8b6cd2e0 RDI: ffffffff8bd26ce0 RBP: 0000000000000287 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff905fe917 R11: 0000000000000004 R12: ffffc9001703fe50 R13: 0000000000000000 R14: 1ffff92002e07fb1 R15: dffffc0000000000 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] unlock_timer kernel/time/posix-timers.c:128 [inline] do_timer_settime+0x31d/0x400 kernel/time/posix-timers.c:908 __do_sys_timer_settime kernel/time/posix-timers.c:928 [inline] __se_sys_timer_settime kernel/time/posix-timers.c:914 [inline] __x64_sys_timer_settime+0x26a/0x2c0 kernel/time/posix-timers.c:914 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:0x7fe38e18cd29 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:00007fe38f025038 EFLAGS: 00000246 ORIG_RAX: 00000000000000df RAX: ffffffffffffffda RBX: 00007fe38e3a6160 RCX: 00007fe38e18cd29 RDX: 00000000200000c0 RSI: 0000000000000003 RDI: 0000000000000000 RBP: 00007fe38e20e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe38e3a6160 R15: 00007ffd23c48a58 vkms_vblank_simulate: vblank timer overrun vkms_vblank_simulate: vblank timer overrun ---------------- 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 e6 ec 4d f6 call 0xf64decf9 13: 48 89 df mov %rbx,%rdi 16: e8 2e 6c 4e f6 call 0xf64e6c49 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 05 4c 3f f6 call 0xf63f4c39 34: 65 8b 05 06 a6 bb 74 mov %gs:0x74bba606(%rip),%eax # 0x74bba641 3b: 85 c0 test %eax,%eax 3d: 74 16 je 0x55 3f: 5b pop %rbx