=============================
[ BUG: Invalid wait context ]
6.12.0-rc5-next-20241031-syzkaller #0 Not tainted
-----------------------------
syz-executor/6911 is trying to lock:
ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2328 [inline]
ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: __rmqueue_pcplist+0x4c6/0x2b70 mm/page_alloc.c:3022
other info that might help us debug this:
context-{2:2}
2 locks held by syz-executor/6911:
#0: ffffffff8f012250 (tomoyo_ss){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#0: ffffffff8f012250 (tomoyo_ss){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:255 [inline]
#0: ffffffff8f012250 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_read_lock security/tomoyo/common.h:1108 [inline]
#0: ffffffff8f012250 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_path_perm+0x287/0x740 security/tomoyo/file.c:821
#1: ffff8880b8744618 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#1: ffff8880b8744618 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3051 [inline]
#1: ffff8880b8744618 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3095 [inline]
#1: ffff8880b8744618 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7e2/0x3870 mm/page_alloc.c:3492
stack backtrace:
CPU: 1 UID: 0 PID: 6911 Comm: syz-executor Not tainted 6.12.0-rc5-next-20241031-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:2328 [inline]
__rmqueue_pcplist+0x4c6/0x2b70 mm/page_alloc.c:3022
rmqueue_pcplist mm/page_alloc.c:3064 [inline]
rmqueue mm/page_alloc.c:3095 [inline]
get_page_from_freelist+0x895/0x3870 mm/page_alloc.c:3492
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4771
alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265
stack_depot_save_flags+0x666/0x830 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:1219 [inline]
run_posix_cpu_timers+0x6ac/0x810 kernel/time/posix-cpu-timers.c:1418
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:1691 [inline]
__hrtimer_run_queues+0x551/0xd50 kernel/time/hrtimer.c:1755
hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817
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:tomoyo_check_acl+0xc7/0x3f0 security/tomoyo/domain.c:173
Code: 84 eb 01 00 00 49 8d 6e 18 48 89 e8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 0f 01 00 00 0f b6 6d 00 31 ff 89 ee e8 c9 e7 2d fd <85> ed 74 0a e8 c0 e4 2d fd e9 ba 00 00 00 49 8d 6e 19 48 89 e8 48
RSP: 0018:ffffc9000c08f898 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff88807d381e00
RDX: ffff88807d381e00 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff84673de7 R09: ffffffff8467aa4b
R10: 0000000000000003 R11: ffff88807d381e00 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff888028b1a800 R15: ffff888028dad110
tomoyo_path_permission+0x1af/0x360 security/tomoyo/file.c:586
tomoyo_path_perm+0x490/0x740 security/tomoyo/file.c:838
security_inode_getattr+0x130/0x330 security/security.c:2372
vfs_getattr+0x45/0x430 fs/stat.c:246
vfs_statx_path fs/stat.c:293 [inline]
vfs_statx+0x199/0x490 fs/stat.c:357
vfs_fstatat+0x145/0x190 fs/stat.c:383
__do_sys_newfstatat fs/stat.c:547 [inline]
__se_sys_newfstatat fs/stat.c:541 [inline]
__x64_sys_newfstatat+0x11d/0x1a0 fs/stat.c:541
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:0x7fe191f7cf2a
Code: 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 0b 00 00 00 66 2e 0f 1f 84 00 00 00 00 00 90 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 c7 c2 a8 ff ff ff f7
RSP: 002b:00007ffee431a758 EFLAGS: 00000286 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007fe191ff11cc RCX: 00007fe191f7cf2a
RDX: 00007ffee431a780 RSI: 00007ffee431a810 RDI: 00000000ffffff9c
RBP: 00007ffee431a810 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000286 R12: 00007ffee431b890
R13: 00007fe191ff11cc R14: 000000000005903f R15: 00007ffee431b8d0
----------------
Code disassembly (best guess):
0: 84 eb test %ch,%bl
2: 01 00 add %eax,(%rax)
4: 00 49 8d add %cl,-0x73(%rcx)
7: 6e outsb %ds:(%rsi),(%dx)
8: 18 48 89 sbb %cl,-0x77(%rax)
b: e8 48 c1 e8 03 call 0x3e8c158
10: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax
15: 84 c0 test %al,%al
17: 0f 85 0f 01 00 00 jne 0x12c
1d: 0f b6 6d 00 movzbl 0x0(%rbp),%ebp
21: 31 ff xor %edi,%edi
23: 89 ee mov %ebp,%esi
25: e8 c9 e7 2d fd call 0xfd2de7f3
* 2a: 85 ed test %ebp,%ebp <-- trapping instruction
2c: 74 0a je 0x38
2e: e8 c0 e4 2d fd call 0xfd2de4f3
33: e9 ba 00 00 00 jmp 0xf2
38: 49 8d 6e 19 lea 0x19(%r14),%rbp
3c: 48 89 e8 mov %rbp,%rax
3f: 48 rex.W