------------[ cut here ]------------ WARNING: CPU: 1 PID: 5408 at mm/page_alloc.c:5534 __alloc_pages+0x32c/0x730 mm/page_alloc.c:5534 Modules linked in: CPU: 1 PID: 5408 Comm: syz.3.353 Not tainted 6.1.105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __alloc_pages+0x32c/0x730 mm/page_alloc.c:5534 lr : __alloc_pages+0xc8/0x730 mm/page_alloc.c:5528 sp : ffff80001fb478c0 x29: ffff80001fb479a0 x28: ffff80001fb478e0 x27: dfff800000000000 x26: ffff700003f68f1c x25: 0000000000000000 x24: ffff80001fb47900 x23: 0000000000000000 x22: 0000000000040dc0 x21: 1ffff00003f68f20 x20: ffff80001fb47920 x19: 000000000000001a x18: 1fffe00036868376 x17: ffff8000159cd000 x16: ffff8000121ddc80 x15: 0000000000000002 x14: 00000000c06855c8 x13: ffff0000cf28d340 x12: 0000000000000005 x11: 1ffff00003f68f24 x10: 0000000000000000 x9 : 0000000000000001 x8 : ffff80001833d000 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000008 x1 : 0000000000000000 x0 : ffff80001fb47920 Call trace: __alloc_pages+0x32c/0x730 mm/page_alloc.c:5534 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] __kmalloc_large_node+0xbc/0x21c mm/slab_common.c:1096 __do_kmalloc_node mm/slab_common.c:943 [inline] __kmalloc+0x130/0x1c4 mm/slab_common.c:968 kmalloc include/linux/slab.h:561 [inline] kzalloc include/linux/slab.h:692 [inline] input_mt_init_slots+0xc0/0x818 drivers/input/input-mt.c:50 uinput_create_device+0x3d0/0x528 drivers/input/misc/uinput.c:327 uinput_ioctl_handler+0x8b0/0x16c0 drivers/input/misc/uinput.c:870 uinput_ioctl+0x38/0x4c drivers/input/misc/uinput.c:1041 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 5906 hardirqs last enabled at (5905): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline] hardirqs last enabled at (5905): [] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94 hardirqs last disabled at (5906): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (5776): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (5774): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---