------------[ cut here ]------------ WARNING: CPU: 0 PID: 3606 at mm/page_alloc.c:5402 __alloc_pages+0x39e/0x510 mm/page_alloc.c:5402 Modules linked in: CPU: 0 PID: 3606 Comm: syz-executor168 Not tainted 5.19.0-rc5-syzkaller-00187-ge8a4e1c1bb69 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:__alloc_pages+0x39e/0x510 mm/page_alloc.c:5402 Code: ff ff 00 0f 84 33 fe ff ff 80 ce 01 e9 2b fe ff ff 83 fe 0a 0f 86 3e fd ff ff 80 3d 45 56 ea 0b 00 75 09 c6 05 3c 56 ea 0b 01 <0f> 0b 45 31 f6 e9 8d fe ff ff 65 ff 05 61 fc 45 7e 48 c7 c0 e0 54 RSP: 0018:ffffc900032dfb90 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 1ffff9200065bf73 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 000000000000000b RDI: 0000000000000000 RBP: 0000000000040dc0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 000000000000000b R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880785de168 FS: 00005555560c5300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa6bedf5a70 CR3: 000000007d6ba000 CR4: 0000000000350ef0 Call Trace: alloc_pages+0x1aa/0x310 mm/mempolicy.c:2272 kmalloc_order+0x34/0xf0 mm/slab_common.c:945 kmalloc_order_trace+0x14/0x120 mm/slab_common.c:961 kmalloc include/linux/slab.h:605 [inline] kzalloc include/linux/slab.h:733 [inline] input_mt_init_slots drivers/input/input-mt.c:49 [inline] input_mt_init_slots+0xd9/0x5f0 drivers/input/input-mt.c:38 uinput_create_device drivers/input/misc/uinput.c:327 [inline] uinput_ioctl_handler.isra.0+0x81d/0x1dc0 drivers/input/misc/uinput.c:870 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fbfe6b04719 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcafd69878 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fbfe6b04719 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007fbfe6ac88c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbfe6ac8950 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000