------------[ cut here ]------------ WARNING: CPU: 1 PID: 4998 at lib/iov_iter.c:644 _copy_from_iter+0x2f3/0x1290 lib/iov_iter.c:644 Modules linked in: CPU: 1 PID: 4998 Comm: syz-executor266 Not tainted 6.4.0-rc4-syzkaller-00099-g1874a42a7d74 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:_copy_from_iter+0x2f3/0x1290 lib/iov_iter.c:644 Code: 72 ff ff 89 c3 e9 23 ff ff ff e8 d8 d4 72 fd be 88 02 00 00 48 c7 c7 80 bd a6 8a e8 f7 e2 af fd e9 17 fe ff ff e8 bd d4 72 fd <0f> 0b 45 31 ff e9 6b ff ff ff e8 ae d4 72 fd 31 ff 89 ee e8 85 d0 RSP: 0018:ffffc90003aff688 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888029a23b80 RSI: ffffffff84116f63 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8a0f5e59 R12: 0000000000000021 R13: ffffea000065e200 R14: ffffc90003aff8c0 R15: 0000000000000021 FS: 0000555557450300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff7a85f1b10 CR3: 0000000021676000 CR4: 0000000000350ee0 Call Trace: copy_page_from_iter lib/iov_iter.c:805 [inline] copy_page_from_iter+0x9f/0x110 lib/iov_iter.c:794 bio_copy_from_iter block/blk-map.c:56 [inline] bio_copy_user_iov block/blk-map.c:211 [inline] blk_rq_map_user_iov+0xb55/0x16d0 block/blk-map.c:662 blk_rq_map_user block/blk-map.c:691 [inline] blk_rq_map_user_io+0x1cd/0x200 block/blk-map.c:724 sg_start_req drivers/scsi/sg.c:1807 [inline] sg_common_write.constprop.0+0xdcd/0x1e00 drivers/scsi/sg.c:803 sg_new_write.isra.0+0x522/0xa90 drivers/scsi/sg.c:770 sg_ioctl_common drivers/scsi/sg.c:935 [inline] sg_ioctl+0x9a8/0x2700 drivers/scsi/sg.c:1159 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+0x197/0x210 fs/ioctl.c:856 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:0x7f1b286776c9 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:00007ffe4c931ba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1b286776c9 RDX: 0000000020000180 RSI: 0000000000002285 RDI: 0000000000000003 RBP: 00007f1b286371d0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000ffff R11: 0000000000000246 R12: 00007f1b28637260 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000