------------[ cut here ]------------ WARNING: CPU: 0 PID: 30442 at mm/gup.c:1173 __get_user_pages+0xd49/0x1080 mm/gup.c:1173 Modules linked in: CPU: 0 PID: 30442 Comm: syz-executor.3 Not tainted 6.4.0-next-20230630-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:__get_user_pages+0xd49/0x1080 mm/gup.c:1173 Code: 89 f8 48 c1 e8 03 80 3c 08 00 0f 85 bc 02 00 00 48 8b 44 24 20 48 8b 80 c0 00 00 00 48 8d 1c e8 e9 ad f7 ff ff e8 b7 11 c3 ff <0f> 0b e9 32 f6 ff ff e8 ab 11 c3 ff 0f 0b e8 a4 11 c3 ff 44 89 ed RSP: 0018:ffffc90005796ec8 EFLAGS: 00010216 RAX: 0000000000003188 RBX: 0000000000000100 RCX: ffffc9002d3a8000 RDX: 0000000000040000 RSI: ffffffff81c20219 RDI: 0000000000000007 RBP: 0000000020004000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000001 R12: ffff88809cef6500 R13: 0000000000290000 R14: ffff888012868980 R15: 0000000000000000 FS: 00007f3f86354700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f86333000 CR3: 00000000ae606000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __get_user_pages_locked mm/gup.c:1456 [inline] __gup_longterm_locked+0x6f9/0x23e0 mm/gup.c:2150 internal_get_user_pages_fast+0x1728/0x3370 mm/gup.c:3148 pin_user_pages_fast+0xa8/0xf0 mm/gup.c:3254 iov_iter_extract_user_pages lib/iov_iter.c:1768 [inline] iov_iter_extract_pages+0x293/0x18f0 lib/iov_iter.c:1831 __bio_iov_iter_get_pages block/bio.c:1276 [inline] bio_iov_iter_get_pages block/bio.c:1349 [inline] bio_iov_iter_get_pages+0x33b/0xd50 block/bio.c:1336 iomap_dio_bio_iter+0x82a/0x1430 fs/iomap/direct-io.c:317 iomap_dio_iter fs/iomap/direct-io.c:430 [inline] __iomap_dio_rw+0x1010/0x1d80 fs/iomap/direct-io.c:575 iomap_dio_rw+0x40/0xa0 fs/iomap/direct-io.c:665 ext4_dio_write_iter fs/ext4/file.c:609 [inline] ext4_file_write_iter+0x1102/0x1880 fs/ext4/file.c:720 call_write_iter include/linux/fs.h:1871 [inline] aio_write+0x350/0x7d0 fs/aio.c:1596 __io_submit_one fs/aio.c:1968 [inline] io_submit_one+0xf4c/0x1c50 fs/aio.c:2015 __do_sys_io_submit fs/aio.c:2074 [inline] __se_sys_io_submit fs/aio.c:2044 [inline] __x64_sys_io_submit+0x190/0x320 fs/aio.c:2044 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3f8568c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3f86354168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f3f857abf80 RCX: 00007f3f8568c389 RDX: 0000000020000540 RSI: 0000000000000f10 RDI: 00007f3f86333000 RBP: 00007f3f856d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd565098af R14: 00007f3f86354300 R15: 0000000000022000