------------[ cut here ]------------ WARNING: CPU: 1 PID: 3605 at mm/page_alloc.c:5498 __alloc_pages+0x39e/0x510 mm/page_alloc.c:5498 Modules linked in: CPU: 1 PID: 3605 Comm: syz-executor163 Not tainted 5.19.0-rc3-next-20220622-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__alloc_pages+0x39e/0x510 mm/page_alloc.c:5498 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 1b f2 eb 0b 00 75 09 c6 05 12 f2 eb 0b 01 <0f> 0b 45 31 f6 e9 8d fe ff ff 65 ff 05 d1 ec 45 7e 48 c7 c0 a0 00 RSP: 0018:ffffc90002f1fb90 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 1ffff920005e3f73 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 000000000000001a RDI: 0000000000000000 RBP: 0000000000040dc0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 000000000000001a R13: 0000000000000000 R14: 0000000000000000 R15: ffff888026df6168 FS: 000055555704f300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005d84c8 CR3: 000000001b96a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: alloc_pages+0x1aa/0x310 mm/mempolicy.c:2280 kmalloc_order+0x34/0xf0 mm/slab_common.c:944 kmalloc_order_trace+0x13/0x120 mm/slab_common.c:960 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:0x7f7ac013d719 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:00007ffd2ef9d9d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7ac013d719 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007f7ac01018c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7ac0101950 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000