------------[ cut here ]------------
WARNING: CPU: 1 PID: 4805 at mm/page_alloc.c:5398 __alloc_pages+0x33c/0x674 mm/page_alloc.c:5398
Modules linked in:
CPU: 1 PID: 4805 Comm: syz.1.226 Not tainted 5.15.165-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+0x33c/0x674 mm/page_alloc.c:5398
lr : __alloc_pages+0xc8/0x674 mm/page_alloc.c:5391
sp : ffff80001d2277c0
x29: ffff80001d2278a0 x28: ffff80001d2277e0 x27: dfff800000000000
x26: ffff700003a44efc x25: 0000000000000000 x24: ffff80001d227800
x23: ffff80001864d604 x22: 0000000000040dc0 x21: 0000000000000000
x20: ffff80001d227820 x19: 000000000000001a x18: 0000000000000000
x17: 0000000000000002 x16: ffff8000088a72d0 x15: 0000000000000005
x14: ffff0000d2cdd1c0 x13: 0000000000ff0100 x12: 0000000000000005
x11: 1ffff00003a44f04 x10: 0000000000000000 x9 : 0000000000000000
x8 : ffff80001d227848 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020
x2 : 0000000000000008 x1 : 0000000000000000 x0 : ffff80001d227820
Call trace:
 __alloc_pages+0x33c/0x674 mm/page_alloc.c:5398
 alloc_pages+0x368/0x5d4
 kmalloc_order+0x40/0x154 mm/slab_common.c:966
 kmalloc_order_trace+0x30/0x21c mm/slab_common.c:982
 kmalloc_large include/linux/slab.h:520 [inline]
 __kmalloc+0x35c/0x4c8 mm/slub.c:4396
 kmalloc include/linux/slab.h:596 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 input_mt_init_slots+0xc0/0x818 drivers/input/input-mt.c:49
 uinput_create_device+0x3d0/0x528 drivers/input/misc/uinput.c:327
 uinput_ioctl_handler+0x700/0x14b0 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:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 410
hardirqs last  enabled at (409): [<ffff8000088d52d4>] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231
hardirqs last disabled at (410): [<ffff800011aab4b8>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (392): [<ffff8000080308b0>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (390): [<ffff80000803087c>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace c4970e0156940c43 ]---