syzbot


KASAN: wild-memory-access Read in kasan_check_read

Status: closed as invalid on 2018/02/06 14:26
First crash: 2258d, last: 2258d

Sample crash report:
sg_write: data in/out 167158/293 bytes for SCSI command 0x67-- guessing data in;
   program syz-executor3 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 ffe70873f59e7000 by task syz-executor3/7041

CPU: 1 PID: 7041 Comm: syz-executor3 Not tainted 4.9.80-g550c01d #29
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801b1317a38 ffffffff81d94b69 ffe70873f59e7000 0000000000001000
 0000000000000000 0000000000000000 ffff8801d870a240 ffff8801b1317a80
 ffffffff8153e49e ffffffff8266a72c 0000000000000282 2ffc0876b392f9d8
Call Trace:
 [<ffffffff81d94b69>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d94b69>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff8153e49e>] kasan_report_error mm/kasan/report.c:349 [inline]
 [<ffffffff8153e49e>] kasan_report+0x15e/0x360 mm/kasan/report.c:408
 [<ffffffff8153cfc7>] check_memory_region_inline mm/kasan/kasan.c:318 [inline]
 [<ffffffff8153cfc7>] check_memory_region+0x137/0x190 mm/kasan/kasan.c:325
 [<ffffffff8153d031>] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:330
 [<ffffffff8266a72c>] __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline]
 [<ffffffff8266a72c>] sg_read_oxfer drivers/scsi/sg.c:1973 [inline]
 [<ffffffff8266a72c>] sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519
 [<ffffffff8156cc21>] do_loop_readv_writev.part.17+0x141/0x1e0 fs/read_write.c:714
 [<ffffffff81570a90>] do_loop_readv_writev fs/read_write.c:880 [inline]
 [<ffffffff81570a90>] do_readv_writev+0x520/0x750 fs/read_write.c:874
 [<ffffffff81570d44>] vfs_readv+0x84/0xc0 fs/read_write.c:898
 [<ffffffff81570e66>] do_readv+0xe6/0x250 fs/read_write.c:924
 [<ffffffff81574357>] SYSC_readv fs/read_write.c:1011 [inline]
 [<ffffffff81574357>] SyS_readv+0x27/0x30 fs/read_write.c:1008
 [<ffffffff838b346e>] entry_SYSCALL_64_fastpath+0x29/0xe8
==================================================================
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7041 Comm: syz-executor3 Tainted: G    B           4.9.80-g550c01d #29
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801b1317958 ffffffff81d94b69 ffffffff841970af ffff8801b1317a30
 0000000000000000 0000000000000000 ffff8801d870a240 ffff8801b1317a20
 ffffffff8142f541 0000000041b58ab3 ffffffff8418ab20 ffffffff8142f385
Call Trace:
 [<ffffffff81d94b69>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d94b69>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff8142f541>] panic+0x1bc/0x3a8 kernel/panic.c:179
 [<ffffffff8153e000>] kasan_end_report+0x50/0x50 mm/kasan/report.c:176
 [<ffffffff8153e4a7>] kasan_report_error mm/kasan/report.c:356 [inline]
 [<ffffffff8153e4a7>] kasan_report+0x167/0x360 mm/kasan/report.c:408
 [<ffffffff8153cfc7>] check_memory_region_inline mm/kasan/kasan.c:318 [inline]
 [<ffffffff8153cfc7>] check_memory_region+0x137/0x190 mm/kasan/kasan.c:325
 [<ffffffff8153d031>] kasan_check_read+0x11/0x20 mm/kasan/kasan.c:330
 [<ffffffff8266a72c>] __copy_to_user arch/x86/include/asm/uaccess_64.h:182 [inline]
 [<ffffffff8266a72c>] sg_read_oxfer drivers/scsi/sg.c:1973 [inline]
 [<ffffffff8266a72c>] sg_read+0xe5c/0x1440 drivers/scsi/sg.c:519
 [<ffffffff8156cc21>] do_loop_readv_writev.part.17+0x141/0x1e0 fs/read_write.c:714
 [<ffffffff81570a90>] do_loop_readv_writev fs/read_write.c:880 [inline]
 [<ffffffff81570a90>] do_readv_writev+0x520/0x750 fs/read_write.c:874
 [<ffffffff81570d44>] vfs_readv+0x84/0xc0 fs/read_write.c:898
 [<ffffffff81570e66>] do_readv+0xe6/0x250 fs/read_write.c:924
 [<ffffffff81574357>] SYSC_readv fs/read_write.c:1011 [inline]
 [<ffffffff81574357>] SyS_readv+0x27/0x30 fs/read_write.c:1008
 [<ffffffff838b346e>] entry_SYSCALL_64_fastpath+0x29/0xe8
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/02/06 14:25 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 645ce5da .config console log report ci-android-49-kasan-gce
2018/02/06 13:57 https://android.googlesource.com/kernel/common android-4.9 550c01d0e051 645ce5da .config console log report ci-android-49-kasan-gce
* Struck through repros no longer work on HEAD.