=============================
[ BUG: Invalid wait context ]
6.13.0-rc7-syzkaller-00019-gc45323b7560e #0 Not tainted
-----------------------------
syz.0.30/6018 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+0x4a2/0x2a90 mm/page_alloc.c:3003
other info that might help us debug this:
context-{2:2}
3 locks held by syz.0.30/6018:
 #0: ffff88802a1b2e60 (&sig->exec_update_lock){++++}-{4:4}, at: __do_sys_perf_event_open kernel/events/core.c:12861 [inline]
 #0: ffff88802a1b2e60 (&sig->exec_update_lock){++++}-{4:4}, at: __se_sys_perf_event_open+0xdc6/0x34b0 kernel/events/core.c:12721
 #1: ffff88807a154ca8 (&ctx->mutex){+.+.}-{4:4}, at: __do_sys_perf_event_open kernel/events/core.c:12885 [inline]
 #1: ffff88807a154ca8 (&ctx->mutex){+.+.}-{4:4}, at: __se_sys_perf_event_open+0x12cc/0x34b0 kernel/events/core.c:12721
 #2: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
 #2: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline]
 #2: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline]
 #2: ffff8880b8644958 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7d3/0x37a0 mm/page_alloc.c:3473
stack backtrace:
CPU: 0 UID: 0 PID: 6018 Comm: syz.0.30 Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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: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: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
 __perf_event_overflow+0x78d/0xdc0 kernel/events/core.c:9901
 perf_swevent_hrtimer+0x3b3/0x560 kernel/events/core.c:11276
 __run_hrtimer kernel/time/hrtimer.c:1739 [inline]
 __hrtimer_run_queues+0x551/0xd30 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:generic_exec_single+0x50a/0x980 kernel/smp.c:447
Code: e8 fb 05 0c 00 90 0f 0b 90 e9 6d fe ff ff e8 ed 05 0c 00 e8 68 7e 35 0a 4d 85 e4 0f 84 52 ff ff ff e8 da 05 0c 00 fb 45 31 f6 <48> c7 44 24 20 0e 36 e0 45 4b c7 04 2f 00 00 00 00 66 43 c7 44 2f
RSP: 0018:ffffc9000468f900 EFLAGS: 00000246
RAX: ffffffff81937c96 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9001017e000 RSI: 00000000000002be RDI: 00000000000002bf
RBP: ffffc9000468f9d0 R08: ffffffff81937bcc R09: 1ffffffff2854b31
R10: dffffc0000000000 R11: fffffbfff2854b32 R12: 0000000000000200
R13: 1ffff920008d1f24 R14: 0000000000000000 R15: dffffc0000000000
 smp_call_function_single+0x3fa/0x1990 kernel/smp.c:676
 task_function_call kernel/events/core.c:120 [inline]
 perf_install_in_context+0x71a/0xb20 kernel/events/core.c:2985
 __do_sys_perf_event_open kernel/events/core.c:13070 [inline]
 __se_sys_perf_event_open+0x2e04/0x34b0 kernel/events/core.c:12721
 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:0x7f47ba58cda9
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:00007f47b83f6038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f47ba7a6160 RCX: 00007f47ba58cda9
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000000020000240
RBP: 00007f47ba60e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f47ba7a6160 R15: 00007fff05089548
 
----------------
Code disassembly (best guess):
   0:	e8 fb 05 0c 00       	call   0xc0600
   5:	90                   	nop
   6:	0f 0b                	ud2
   8:	90                   	nop
   9:	e9 6d fe ff ff       	jmp    0xfffffe7b
   e:	e8 ed 05 0c 00       	call   0xc0600
  13:	e8 68 7e 35 0a       	call   0xa357e80
  18:	4d 85 e4             	test   %r12,%r12
  1b:	0f 84 52 ff ff ff    	je     0xffffff73
  21:	e8 da 05 0c 00       	call   0xc0600
  26:	fb                   	sti
  27:	45 31 f6             	xor    %r14d,%r14d
* 2a:	48 c7 44 24 20 0e 36 	movq   $0x45e0360e,0x20(%rsp) <-- trapping instruction
  31:	e0 45
  33:	4b c7 04 2f 00 00 00 	movq   $0x0,(%r15,%r13,1)
  3a:	00
  3b:	66                   	data16
  3c:	43                   	rex.XB
  3d:	c7                   	.byte 0xc7
  3e:	44 2f                	rex.R (bad)