BUG: scheduling while atomic: syz-executor.0/20675/0x00000002 Modules linked in: Preemption disabled at: [] kmap_atomic include/linux/highmem-internal.h:196 [inline] [] clear_highpage include/linux/highmem.h:180 [inline] [] kernel_init_free_pages+0x47/0xf0 mm/page_alloc.c:1407 CPU: 1 PID: 20675 Comm: syz-executor.0 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x17 lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707 schedule_debug kernel/sched/core.c:5734 [inline] __schedule+0xd19/0x1590 kernel/sched/core.c:6402 schedule+0x11f/0x1e0 kernel/sched/core.c:6595 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6654 mutex_optimistic_spin kernel/locking/mutex.c:521 [inline] __mutex_lock_common kernel/locking/mutex.c:620 [inline] __mutex_lock+0x5b5/0x1870 kernel/locking/mutex.c:755 __mutex_lock_killable_slowpath+0xe/0x10 kernel/locking/mutex.c:1012 mutex_lock_killable+0x137/0x1e0 kernel/locking/mutex.c:979 pcpu_alloc+0x2a8/0x13e0 mm/percpu.c:1774 __alloc_percpu+0x24/0x30 mm/percpu.c:1950 __percpu_init_rwsem+0x27/0xe0 kernel/locking/percpu-rwsem.c:32 mmu_notifier_subscriptions_init include/linux/mmu_notifier.h:519 [inline] mm_init+0x3d9/0x970 kernel/fork.c:1122 dup_mm kernel/fork.c:1518 [inline] copy_mm+0x1e3/0x13e0 kernel/fork.c:1573 copy_process+0x1149/0x3290 kernel/fork.c:2264 kernel_clone+0x21e/0x9e0 kernel/fork.c:2662 __do_sys_clone kernel/fork.c:2788 [inline] __se_sys_clone kernel/fork.c:2772 [inline] __x64_sys_clone+0x23f/0x290 kernel/fork.c:2772 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fdee6dc8dd3 Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffc8b01d0b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdee6dc8dd3 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000555556e26750 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000