================================================================== 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:1978 [inline] BUG: KASAN: wild-memory-access in sg_read+0x1296/0x1440 drivers/scsi/sg.c:520 Read of size 129 at addr ffe7087456283000 by task syzkaller396392/3372 CPU: 0 PID: 3372 Comm: syzkaller396392 Not tainted 4.9.71-g2506378 #113 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c80ffa38 ffffffff81d922b9 ffe7087456283000 0000000000000081 0000000000000000 ffff8801c954c180 ffff8801c9714340 ffff8801c80ffa80 ffffffff8153bebe ffffffff82667866 0000000000000282 5fcdbf6024a5f4d3 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:1978 [inline] [] sg_read+0x1296/0x1440 drivers/scsi/sg.c:520 [] 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+0x23/0xc6 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 3372 Comm: syzkaller396392 Tainted: G B 4.9.71-g2506378 #113 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c80ff958 ffffffff81d922b9 ffffffff84194b3f ffff8801c80ffa30 0000000000000000 ffff8801c954c180 ffff8801c9714340 ffff8801c80ffa20 ffffffff8142d741 0000000041b58ab3 ffffffff84188580 ffffffff8142d585 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:1978 [inline] [] sg_read+0x1296/0x1440 drivers/scsi/sg.c:520 [] 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+0x23/0xc6 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..