------------[ cut here ]------------ WARNING: CPU: 1 PID: 7792 at mm/gup.c:2121 is_valid_gup_args+0x1d8/0x230 mm/gup.c:2121 Modules linked in: CPU: 1 PID: 7792 Comm: syz-executor.3 Not tainted 6.2.0-rc7-next-20230207-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:is_valid_gup_args+0x1d8/0x230 mm/gup.c:2121 Code: c7 ff 48 83 3c 24 00 0f 85 7a ff ff ff e8 10 3a c7 ff 0f 0b 45 31 e4 eb cd e8 04 3a c7 ff 0f 0b 45 31 e4 eb c1 e8 f8 39 c7 ff <0f> 0b 45 31 e4 eb b5 e8 ec 39 c7 ff 0f 0b 45 31 e4 eb a9 e8 e0 39 RSP: 0018:ffffc9000317f4e8 EFLAGS: 00010212 RAX: 000000000000c79f RBX: 0000000000040000 RCX: ffffc9000f0bd000 RDX: 0000000000040000 RSI: ffffffff81bd3248 RDI: 0000000000000005 RBP: ffffc9000317f548 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000040000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000040000 R15: 0000000000040000 FS: 00007f4e7e3ca700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32e30000 CR3: 000000007b95e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pin_user_pages_fast+0x83/0x100 mm/gup.c:3089 iov_iter_extract_user_pages lib/iov_iter.c:2160 [inline] iov_iter_extract_pages+0x2b9/0x1e20 lib/iov_iter.c:2229 __bio_iov_iter_get_pages block/bio.c:1267 [inline] bio_iov_iter_get_pages block/bio.c:1340 [inline] bio_iov_iter_get_pages+0x354/0x1580 block/bio.c:1327 iomap_dio_bio_iter+0x830/0x1440 fs/iomap/direct-io.c:323 iomap_dio_iter fs/iomap/direct-io.c:436 [inline] __iomap_dio_rw+0xd81/0x1d80 fs/iomap/direct-io.c:594 iomap_dio_rw+0x40/0xa0 fs/iomap/direct-io.c:682 ext4_dio_write_iter fs/ext4/file.c:587 [inline] ext4_file_write_iter+0x1053/0x1710 fs/ext4/file.c:698 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 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:0x7f4e7d68c0f9 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:00007f4e7e3ca168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4e7d7ac120 RCX: 00007f4e7d68c0f9 RDX: 00000000175d900f RSI: 0000000020000200 RDI: 000000000000000b RBP: 00007f4e7d6e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcfd1bf22f R14: 00007f4e7e3ca300 R15: 0000000000022000