sg_write: data in/out 167158/1 bytes for SCSI command 0x67-- guessing data in; program syz-executor1 not setting count and/or reply_len properly ================================================================== BUG: KASAN: wild-memory-access in __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline] BUG: KASAN: wild-memory-access in sg_read_oxfer drivers/scsi/sg.c:1973 [inline] BUG: KASAN: wild-memory-access in sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519 Read of size 4096 at addr ffe70873f7f2b000 by task syz-executor1/13133 CPU: 0 PID: 13133 Comm: syz-executor1 Not tainted 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b42afa38 ffffffff81d94b69 ffe70873f7f2b000 0000000000001000 0000000000000000 0000000000000000 ffff8801c5ef4340 ffff8801b42afa80 ffffffff8153e49e ffffffff8266a72c 0000000000000282 b11e0ea3aa111a19 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_report_error mm/kasan/report.c:349 [inline] [] kasan_report+0x15e/0x360 mm/kasan/report.c:408 [] check_memory_region_inline mm/kasan/kasan.c:318 [inline] [] check_memory_region+0x137/0x190 mm/kasan/kasan.c:325 [] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:330 [] __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline] [] sg_read_oxfer drivers/scsi/sg.c:1973 [inline] [] sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519 [] do_loop_readv_writev.part.17+0x141/0x1e0 fs/read_write.c:714 [] do_loop_readv_writev fs/read_write.c:880 [inline] [] do_readv_writev+0x520/0x750 fs/read_write.c:874 [] vfs_readv+0x84/0xc0 fs/read_write.c:898 [] do_readv+0xe6/0x250 fs/read_write.c:924 [] SYSC_readv fs/read_write.c:1011 [inline] [] SyS_readv+0x27/0x30 fs/read_write.c:1008 [] entry_SYSCALL_64_fastpath+0x29/0xe8 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 13133 Comm: syz-executor1 Tainted: G B 4.9.80-g550c01d #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801b42af958 ffffffff81d94b69 ffffffff841970af ffff8801b42afa30 0000000000000000 0000000000000000 ffff8801c5ef4340 ffff8801b42afa20 ffffffff8142f541 0000000041b58ab3 ffffffff8418ab20 ffffffff8142f385 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] panic+0x1bc/0x3a8 kernel/panic.c:179 [] kasan_end_report+0x50/0x50 mm/kasan/report.c:176 [] kasan_report_error mm/kasan/report.c:356 [inline] [] kasan_report+0x167/0x360 mm/kasan/report.c:408 [] check_memory_region_inline mm/kasan/kasan.c:318 [inline] [] check_memory_region+0x137/0x190 mm/kasan/kasan.c:325 [] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:330 [] __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline] [] sg_read_oxfer drivers/scsi/sg.c:1973 [inline] [] sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519 [] do_loop_readv_writev.part.17+0x141/0x1e0 fs/read_write.c:714 [] do_loop_readv_writev fs/read_write.c:880 [inline] [] do_readv_writev+0x520/0x750 fs/read_write.c:874 [] vfs_readv+0x84/0xc0 fs/read_write.c:898 [] do_readv+0xe6/0x250 fs/read_write.c:924 [] SYSC_readv fs/read_write.c:1011 [inline] [] SyS_readv+0x27/0x30 fs/read_write.c:1008 [] entry_SYSCALL_64_fastpath+0x29/0xe8 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..