syzbot


KASAN: stack-out-of-bounds Read in __unwind_start

Status: public: reported C repro on 2019/04/13 00:00
Reported-by: syzbot+a5acc96bc00acaf5025a@syzkaller.appspotmail.com
First crash: 2540d, last: 2032d

Sample crash report:
==================================================================
BUG: KASAN: stack-out-of-bounds in get_frame_pointer arch/x86/include/asm/stacktrace.h:64 [inline]
BUG: KASAN: stack-out-of-bounds in __unwind_start+0x37c/0x3c0 arch/x86/kernel/unwind_frame.c:76
Read of size 8 at addr ffff8801cfdffc88 by task syz-executor056/5798

CPU: 0 PID: 5798 Comm: syz-executor056 Not tainted 4.9.118-g47b77b8 #20
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801c8e6f140 ffffffff81eb4b89 ffffea00073f7fc0 ffff8801cfdffc88
 0000000000000000 ffff8801cfdffc88 ffff8801c8e6f278 ffff8801c8e6f178
 ffffffff81567f29 ffff8801cfdffc88 0000000000000008 0000000000000000
Call Trace:
 [<ffffffff81eb4b89>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb4b89>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81567f29>] print_address_description+0x6c/0x234 mm/kasan/report.c:256
 [<ffffffff81568333>] kasan_report_error mm/kasan/report.c:355 [inline]
 [<ffffffff81568333>] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412
 [<ffffffff8153beb4>] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
 [<ffffffff810d323c>] get_frame_pointer arch/x86/include/asm/stacktrace.h:64 [inline]
 [<ffffffff810d323c>] __unwind_start+0x37c/0x3c0 arch/x86/kernel/unwind_frame.c:76
 [<ffffffff8107b9a9>] unwind_start arch/x86/include/asm/unwind.h:39 [inline]
 [<ffffffff8107b9a9>] __save_stack_trace+0x59/0xf0 arch/x86/kernel/stacktrace.c:41
 [<ffffffff8107baa8>] save_stack_trace_tsk+0x48/0x70 arch/x86/kernel/stacktrace.c:71
 [<ffffffff816d7dc8>] proc_pid_stack+0x148/0x220 fs/proc/base.c:469
 [<ffffffff816d94bd>] proc_single_show+0xfd/0x170 fs/proc/base.c:771
 [<ffffffff815ed7b6>] seq_read+0x4b6/0x12e0 fs/seq_file.c:240
 [<ffffffff8156f7b5>] do_loop_readv_writev.part.18+0xd5/0x280 fs/read_write.c:718
 [<ffffffff81573705>] do_loop_readv_writev fs/read_write.c:707 [inline]
 [<ffffffff81573705>] do_readv_writev+0x565/0x7a0 fs/read_write.c:873
 [<ffffffff815739c4>] vfs_readv+0x84/0xc0 fs/read_write.c:897
 [<ffffffff81614b5b>] kernel_readv fs/splice.c:363 [inline]
 [<ffffffff81614b5b>] default_file_splice_read+0x44b/0x7e0 fs/splice.c:435
 [<ffffffff81613c5c>] do_splice_to+0x10c/0x170 fs/splice.c:899
 [<ffffffff81613eff>] splice_direct_to_actor+0x23f/0x7e0 fs/splice.c:971
 [<ffffffff81614643>] do_splice_direct+0x1a3/0x270 fs/splice.c:1080
 [<ffffffff815759d0>] do_sendfile+0x4f0/0xc60 fs/read_write.c:1393
 [<ffffffff81577a51>] SYSC_sendfile64 fs/read_write.c:1448 [inline]
 [<ffffffff81577a51>] SyS_sendfile64+0xd1/0x160 fs/read_write.c:1440
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839fca93>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

The buggy address belongs to the page:
page:ffffea00073f7fc0 count:0 mapcount:0 mapping:          (null) index:0x0
flags: 0x8000000000000000()
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8801cfdffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8801cfdffc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8801cfdffc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                      ^
 ffff8801cfdffd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8801cfdffd80: 00 00 f1 f1 f1 f1 00 f2 f2 f2 f2 f2 f2 f2 00 f2
==================================================================

Crashes (39):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/07 09:37 https://android.googlesource.com/kernel/common android-4.9 47b77b8d01c4 1beb8136 .config console log report syz C ci-android-49-kasan-gce-root
2018/08/07 09:17 https://android.googlesource.com/kernel/common android-4.9 47b77b8d01c4 1beb8136 .config console log report syz C ci-android-49-kasan-gce
2018/04/26 00:42 https://android.googlesource.com/kernel/common android-4.9 8c01d009ed72 73417389 .config console log report syz C ci-android-49-kasan-gce
2018/01/16 04:01 https://android.googlesource.com/kernel/common android-4.9 8dec074e888a e17f4a5d .config console log report syz C ci-android-49-kasan-gce-386
2018/01/08 04:59 https://android.googlesource.com/kernel/common android-4.9 5f5e5d4041e3 19c05fff .config console log report syz C ci-android-49-kasan-gce
2018/04/29 08:57 https://android.googlesource.com/kernel/common android-4.9 71fce1edd26d d5a5d045 .config console log report syz C ci-android-49-kasan-gce-386
2018/04/24 19:22 https://android.googlesource.com/kernel/common android-4.9 320d53a9d07c 37e76fe2 .config console log report syz ci-android-49-kasan-gce-root
2018/04/22 17:43 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report syz ci-android-49-kasan-gce
2017/12/27 06:44 https://android.googlesource.com/kernel/common android-4.9 250637879165 73aba437 .config console log report syz ci-android-49-kasan-gce
2017/12/07 23:27 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5d643f8e .config console log report syz ci-android-49-kasan-gce
2019/04/30 10:18 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 20f16bef .config console log report ci-android-49-kasan-gce
2018/11/20 06:55 https://android.googlesource.com/kernel/common android-4.9 109a48ed2f69 9bc2a903 .config console log report ci-android-49-kasan-gce-root
2018/09/27 18:56 https://android.googlesource.com/kernel/common android-4.9 aa4de6f13f5d 0c2fa87b .config console log report ci-android-49-kasan-gce
2018/08/29 15:36 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 53ff8784 .config console log report ci-android-49-kasan-gce
2018/08/24 11:40 https://android.googlesource.com/kernel/common android-4.9 520d10d31ca4 95b5c82b .config console log report ci-android-49-kasan-gce
2018/08/01 13:21 https://android.googlesource.com/kernel/common android-4.9 52be322125e5 1477993e .config console log report ci-android-49-kasan-gce
2018/07/30 10:20 https://android.googlesource.com/kernel/common android-4.9 990559158c7b 1a381291 .config console log report ci-android-49-kasan-gce
2018/07/23 02:35 https://android.googlesource.com/kernel/common android-4.9 47bbcd6bf8f9 8cc079c3 .config console log report ci-android-49-kasan-gce
2018/07/16 02:06 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 92a49505 .config console log report ci-android-49-kasan-gce
2018/06/23 10:42 https://android.googlesource.com/kernel/common android-4.9 7cecc756ceae 2064fc5c .config console log report ci-android-49-kasan-gce
2018/05/29 01:00 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report ci-android-49-kasan-gce
2018/05/12 02:14 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 12c7428a .config console log report ci-android-49-kasan-gce
2018/03/23 01:31 https://android.googlesource.com/kernel/common android-4.9 960923fdc278 2e9d9054 .config console log report ci-android-49-kasan-gce
2018/03/13 19:52 https://android.googlesource.com/kernel/common android-4.9 97d7f1c7c0f0 08dacaa0 .config console log report ci-android-49-kasan-gce
2018/02/22 12:35 https://android.googlesource.com/kernel/common android-4.9 7595d550012d 04cbdbd1 .config console log report ci-android-49-kasan-gce
2018/01/22 11:28 https://android.googlesource.com/kernel/common android-4.9 e12a9c4458ff aeb24072 .config console log report ci-android-49-kasan-gce
2018/01/08 21:57 https://android.googlesource.com/kernel/common android-4.9 b54d99aa12b4 93b4c6f1 .config console log report ci-android-49-kasan-gce-386
2018/01/08 04:41 https://android.googlesource.com/kernel/common android-4.9 5f5e5d4041e3 19c05fff .config console log report ci-android-49-kasan-gce
2017/12/09 11:56 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5ad0ce95 .config console log report ci-android-49-kasan-gce
2017/12/09 11:38 https://android.googlesource.com/kernel/common android-4.9 f26d3c76d376 5ad0ce95 .config console log report ci-android-49-kasan-gce
2018/09/29 19:49 https://android.googlesource.com/kernel/common android-4.9 1c7637ca0b04 41e4b329 .config console log report ci-android-49-kasan-gce-386
2018/09/14 03:13 https://android.googlesource.com/kernel/common android-4.9 a8c1ea6c63ed 19e9088b .config console log report ci-android-49-kasan-gce-386
2018/09/09 14:20 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b 6b5120a4 .config console log report ci-android-49-kasan-gce-386
2018/06/18 22:11 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 45c54f75 .config console log report ci-android-49-kasan-gce-386
2018/04/01 02:08 https://android.googlesource.com/kernel/common android-4.9 9c3fb9cd6e63 0174c6c8 .config console log report ci-android-49-kasan-gce-386
2018/03/31 03:10 https://android.googlesource.com/kernel/common android-4.9 cc88c05eca31 8fbce0e4 .config console log report ci-android-49-kasan-gce-386
2018/03/19 14:25 https://android.googlesource.com/kernel/common android-4.9 bb52bba67e35 7e7d7ed2 .config console log report ci-android-49-kasan-gce-386
2018/01/30 07:55 https://android.googlesource.com/kernel/common android-4.9 7be198545491 08d47756 .config console log report ci-android-49-kasan-gce-386
2018/01/28 12:50 https://android.googlesource.com/kernel/common android-4.9 68d447c0a37b 08d47756 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.