sg_write: data in/out 917468/251 bytes for SCSI command 0x0-- guessing data in; program syz-executor.0 not setting count and/or reply_len properly ------------[ cut here ]------------ WARNING: CPU: 0 PID: 100744 at lib/iov_iter.c:385 _copy_from_iter+0x2f1/0x1320 Modules linked in: CPU: 0 PID: 100744 Comm: syz-executor.0 Not tainted 6.4.0-rc5-next-20230609 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:_copy_from_iter+0x2f1/0x1320 Code: b2 ff ff 89 c3 e9 1f ff ff ff e8 ea f0 35 ff be 85 01 00 00 48 c7 c7 e0 f4 9e 84 e8 c9 4f 5a ff e9 13 fe ff ff e8 cf f0 35 ff <0f> 0b 45 31 f6 e9 67 ff ff ff e8 c0 f0 35 ff 31 ff 89 ee e8 f7 eb RSP: 0018:ffff88801656f608 EFLAGS: 00010202 RAX: 0000000000002420 RBX: 0000000000000000 RCX: ffffc900037ff000 RDX: 0000000000040000 RSI: ffffffff82161ac1 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff846000aa R12: 0000000000001000 R13: ffffea00012ea200 R14: 0000000000001000 R15: ffff88801656f838 FS: 00007f2424b71700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f85746214b0 CR3: 00000000401e8000 CR4: 0000000000350ef0 DR0: ffffffffffff01dd DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: copy_page_from_iter+0xe3/0x180 blk_rq_map_user_iov+0xb39/0x16c0 blk_rq_map_user_io+0x1d1/0x200 sg_common_write.constprop.0+0xd8d/0x15f0 sg_write.part.0+0x69e/0xac0 sg_write+0x8d/0xe0 vfs_write+0x2b9/0xd70 ksys_write+0x122/0x250 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f24275fbb19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2424b71188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f242770ef60 RCX: 00007f24275fbb19 RDX: 0000000000000125 RSI: 00000000200003c0 RDI: 0000000000000005 RBP: 00007f2427655f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd55a1357f R14: 00007f2424b71300 R15: 0000000000022000 irq event stamp: 3705 hardirqs last enabled at (3745): [] __up_console_sem+0x78/0x80 hardirqs last disabled at (3784): [] __up_console_sem+0x5d/0x80 softirqs last enabled at (2786): [] irq_exit_rcu+0x93/0xc0 softirqs last disabled at (2711): [] irq_exit_rcu+0x93/0xc0 ---[ end trace 0000000000000000 ]--- warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow sr 1:0:0:0: [sr0] CDROM not ready. Make sure there is a disc in the drive. sr 1:0:0:0: [sr0] CDROM not ready. Make sure there is a disc in the drive. sr 1:0:0:0: [sr0] CDROM not ready. Make sure there is a disc in the drive. sr 1:0:0:0: [sr0] CDROM not ready. Make sure there is a disc in the drive. netlink: 36 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.6'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.6'. netlink: 36 bytes leftover after parsing attributes in process `syz-executor.5'. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.6'. autofs4:pid:103305:check_dev_ioctl_version: ioctl control interface version mismatch: kernel(1.1), user(3832191489.3414207377), cmd(0xc0189375) autofs4:pid:103305:validate_dev_ioctl: invalid device control module version supplied for cmd(0xc0189375) netlink: 8 bytes leftover after parsing attributes in process `syz-executor.6'. autofs4:pid:103400:check_dev_ioctl_version: ioctl control interface version mismatch: kernel(1.1), user(3832191489.3414207377), cmd(0xc0189375) autofs4:pid:103400:validate_dev_ioctl: invalid device control module version supplied for cmd(0xc0189375) netlink: 8 bytes leftover after parsing attributes in process `syz-executor.6'. autofs4:pid:103412:check_dev_ioctl_version: ioctl control interface version mismatch: kernel(1.1), user(3832191489.3414207377), cmd(0xc0189375) autofs4:pid:103412:validate_dev_ioctl: invalid device control module version supplied for cmd(0xc0189375) autofs4:pid:103525:check_dev_ioctl_version: ioctl control interface version mismatch: kernel(1.1), user(3832191489.3414207377), cmd(0xc0189375) autofs4:pid:103525:validate_dev_ioctl: invalid device control module version supplied for cmd(0xc0189375) netlink: 'syz-executor.1': attribute type 1 has an invalid length. netlink: 'syz-executor.1': attribute type 1 has an invalid length. netlink: 'syz-executor.1': attribute type 1 has an invalid length. program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO netlink: 'syz-executor.1': attribute type 1 has an invalid length. cgroup: fork rejected by pids controller in /syz6