------------[ cut here ]------------ WARNING: CPU: 0 PID: 3751 at mm/page_alloc.c:5398 __alloc_pages+0x5cf/0x700 Modules linked in: CPU: 0 PID: 3751 Comm: syz.0.16 Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:__alloc_pages+0x5cf/0x700 mm/page_alloc.c:5398 Code: 00 48 ba 00 00 00 00 00 fc ff df e9 1d fd ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 2e fd ff ff e8 f6 40 0a 00 e9 24 fd ff ff <0f> 0b 45 31 e4 e9 70 fd ff ff 48 8d 4c 24 50 80 e1 07 80 c1 03 38 RSP: 0018:ffffc900030c7ac0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 000000000000001a RCX: 0000000000000000 RDX: 0000000000000028 RSI: 0000000000000000 RDI: ffffc900030c7b48 RBP: ffffc900030c7bd0 R08: dffffc0000000000 R09: ffffc900030c7b20 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000040dc0 R13: 1ffff92000618f60 R14: ffffc900030c7b20 R15: 1ffff92000618f5c FS: 00007fa0c100c6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6b938d6ab8 CR3: 000000001ccf7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kmalloc_order+0x41/0x150 mm/slab_common.c:966 kmalloc_order_trace+0x15/0xe0 mm/slab_common.c:982 kmalloc_large include/linux/slab.h:520 [inline] __kmalloc+0x214/0x300 mm/slub.c:4396 kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] input_mt_init_slots+0xc6/0x9c0 drivers/input/input-mt.c:49 uinput_create_device+0x512/0x620 drivers/input/misc/uinput.c:327 uinput_ioctl_handler+0xa83/0x16d0 drivers/input/misc/uinput.c:870 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fa0c2b8fef9 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:00007fa0c100c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa0c2d2bf80 RCX: 00007fa0c2b8fef9 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007fa0c2bfd93e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa0c2d2bf80 R15: 00007ffd64719c08