------------[ cut here ]------------ WARNING: CPU: 0 PID: 3602 at mm/page_alloc.c:5402 __alloc_pages+0x39e/0x510 mm/page_alloc.c:5402 Modules linked in: CPU: 1 PID: 3602 Comm: syz-executor419 Not tainted 5.18.0-syzkaller-12234-g50fd82b3a9a9 #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: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 01 68 ea 0b 00 75 09 c6 05 f8 67 ea 0b 01 <0f> 0b 45 31 f6 e9 8d fe ff ff 65 ff 05 81 d4 45 7e 48 c7 c0 80 8e RSP: 0018:ffffc90002edfb90 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 1ffff920005dbf73 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000018 RDI: 0000000000000000 RBP: 0000000000040dc0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000018 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88807d33e168 FS: 0000555556742300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562faf8556f8 CR3: 0000000074241000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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:0x7f9b53a66719 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:00007ffd256e4fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9b53a66719 RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007f9b53a2a8c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9b53a2a950 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000