------------[ cut here ]------------ WARNING: CPU: 0 PID: 5218 at mm/gup.c:1173 __get_user_pages+0xeaa/0x1290 Modules linked in: CPU: 0 PID: 5218 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-08881-g533925cb7604 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:__get_user_pages+0xeaa/0x1290 mm/gup.c:1173 Code: 00 fc ff df 48 8b 5c 24 20 e9 2e fe ff ff e8 1d ed be ff 4c 8d ac 24 00 01 00 00 48 8b 5c 24 20 e9 38 fe ff ff e8 06 ed be ff <0f> 0b e9 5b f6 ff ff 48 8b 4c 24 28 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc90004fb6c00 EFLAGS: 00010287 RAX: ffffffff81cced0a RBX: 0000000000000100 RCX: 0000000000040000 RDX: ffffc90003ba1000 RSI: 0000000000005ef2 RDI: 0000000000005ef3 RBP: ffffc90004fb6d90 R08: ffffffff81cce352 R09: fffffbfff243d9e4 R10: dffffc0000000000 R11: fffffbfff243d9e4 R12: 0000000020009000 R13: ffffc90004fb6ce0 R14: dffffc0000000000 R15: ffffc90004fb6d00 FS: 00007f342849f700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2da23000 CR3: 000000007ccf2000 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+0x2018/0x2a80 mm/gup.c:2150 internal_get_user_pages_fast+0x24b5/0x2c90 mm/gup.c:3148 iov_iter_extract_user_pages lib/iov_iter.c:1768 [inline] iov_iter_extract_pages+0x3bd/0x740 lib/iov_iter.c:1831 __bio_iov_iter_get_pages block/bio.c:1276 [inline] bio_iov_iter_get_pages+0x5db/0x13b0 block/bio.c:1349 iomap_dio_bio_iter+0xac2/0x1430 fs/iomap/direct-io.c:317 __iomap_dio_rw+0x11fa/0x2250 fs/iomap/direct-io.c:575 iomap_dio_rw+0x46/0xa0 fs/iomap/direct-io.c:665 ext4_dio_write_iter fs/ext4/file.c:609 [inline] ext4_file_write_iter+0x16a0/0x1b10 fs/ext4/file.c:720 do_iter_write+0x84f/0xde0 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_pwritev+0x21a/0x360 fs/read_write.c:1030 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f342768c389 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:00007f342849f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f34277abf80 RCX: 00007f342768c389 RDX: 0000000000000001 RSI: 0000000020000680 RDI: 0000000000000003 RBP: 00007f34276d7493 R08: 0000000000000174 R09: 0000000000000000 R10: 0000000006000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3d75796f R14: 00007f342849f300 R15: 0000000000022000