sg_write: data in/out 1472779634/53 bytes for SCSI command 0x83-- guessing data in; program syz-executor4 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:1968 [inline] BUG: KASAN: wild-memory-access in sg_read+0x1290/0x1440 drivers/scsi/sg.c:519 Read of size 592 at addr ffe70873f832b000 by task syz-executor4/6626 CPU: 1 PID: 6626 Comm: syz-executor4 Not tainted 4.9.88-g71df7bb #60 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d536fae8 ffffffff81d95f19 ffe70873f832b000 0000000000000250 0000000000000000 ffff8801b828a7e0 ffff8801d5102240 ffff8801d536fb30 ffffffff8153eba2 ffffffff8266c600 0000000000000282 6004e04c12b68d48 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:353 [inline] [] kasan_report+0x162/0x380 mm/kasan/report.c:412 [] 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:1968 [inline] [] sg_read+0x1290/0x1440 drivers/scsi/sg.c:519 [] __vfs_read+0x103/0x670 fs/read_write.c:449 [] vfs_read+0x11e/0x380 fs/read_write.c:472 [] SYSC_read fs/read_write.c:588 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:581 [] do_syscall_64+0x1a4/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 6626 Comm: syz-executor4 Tainted: G B 4.9.88-g71df7bb #60 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801d536fa08 ffffffff81d95f19 ffffffff841981e7 ffff8801d536fae0 0000000000000000 ffff8801b828a7e0 ffff8801d5102240 ffff8801d536fad0 ffffffff8142fa71 0000000041b58ab3 ffffffff8418bc48 ffffffff8142f8b5 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:180 [] kasan_report_error mm/kasan/report.c:360 [inline] [] kasan_report+0x16b/0x380 mm/kasan/report.c:412 [] 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:1968 [inline] [] sg_read+0x1290/0x1440 drivers/scsi/sg.c:519 [] __vfs_read+0x103/0x670 fs/read_write.c:449 [] vfs_read+0x11e/0x380 fs/read_write.c:472 [] SYSC_read fs/read_write.c:588 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:581 [] do_syscall_64+0x1a4/0x490 arch/x86/entry/common.c:282 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..