syzbot


KASAN: out-of-bounds Read in unwind_next_frame

Status: public: reported C repro on 2019/04/13 00:00
Reported-by: syzbot+09f6c15a17c88639711c@syzkaller.appspotmail.com
First crash: 2461d, last: 2195d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: out-of-bounds Read in unwind_next_frame C error 14 1509d 1844d 0/1 upstream: reported C repro on 2019/09/26 21:20
upstream KASAN: out-of-bounds Read in unwind_next_frame fs syz error error 12 1842d 2107d 0/28 auto-obsoleted due to no activity on 2022/09/07 09:08
linux-4.19 KASAN: out-of-bounds Read in unwind_next_frame 1 1789d 1789d 0/1 auto-closed as invalid on 2020/03/19 23:00
linux-4.19 KASAN: stack-out-of-bounds Read in unwind_next_frame C error 525 606d 1691d 0/1 upstream: reported C repro on 2020/02/26 18:51
upstream KASAN: stack-out-of-bounds Read in unwind_next_frame kernel C 929 571d 2308d 0/28 closed as dup on 2018/06/20 07:51
android-54 KASAN: out-of-bounds Read in unwind_next_frame 16 1125d 1631d 0/2 auto-closed as invalid on 2022/01/13 05:16
linux-4.19 KASAN: out-of-bounds Read in unwind_next_frame (2) 1 1378d 1378d 0/1 auto-closed as invalid on 2021/05/04 22:57
android-414 KASAN: out-of-bounds Read in unwind_next_frame (2) C 5 1784d 1890d 0/1 public: reported C repro on 2019/08/11 14:38
android-414 KASAN: out-of-bounds Read in unwind_next_frame 1 2187d 2010d 0/1 auto-closed as invalid on 2019/04/28 00:03

Sample crash report:
==================================================================
BUG: KASAN: out-of-bounds in unwind_next_frame+0xcd/0xe0 arch/x86/kernel/unwind_frame.c:51
Read of size 8 at addr ffff8801cb67f8b0 by task syz-executor900/21578

CPU: 0 PID: 21578 Comm: syz-executor900 Not tainted 4.9.118-g856452b #73
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801cb7277b8 ffffffff81eb4b89 ffffea00072d9fc0 ffff8801cb67f8b0
 0000000000000000 ffff8801cb67f8b8 ffff8801caead3c0 ffff8801cb7277f0
 ffffffff81567f29 ffff8801cb67f8b0 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
 [<ffffffff810d2ead>] unwind_next_frame+0xcd/0xe0 arch/x86/kernel/unwind_frame.c:51
 [<ffffffff8107b9cd>] __save_stack_trace+0x7d/0xf0 arch/x86/kernel/stacktrace.c:42
 [<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
 [<ffffffff81573df7>] do_preadv+0x197/0x240 fs/read_write.c:974
 [<ffffffff815773b0>] SYSC_preadv fs/read_write.c:1024 [inline]
 [<ffffffff815773b0>] SyS_preadv+0x30/0x40 fs/read_write.c:1019
 [<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:ffffea00072d9fc0 count:0 mapcount:0 mapping:          (null) index:0x0
flags: 0x8000000000000000()
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8801cb67f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8801cb67f800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8801cb67f880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                        ^
 ffff8801cb67f900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8801cb67f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/09 08:55 https://android.googlesource.com/kernel/common android-4.9 856452b4f22e 2eeda842 .config console log report syz C ci-android-49-kasan-gce
2018/04/22 18:16 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report syz ci-android-49-kasan-gce-386
2018/03/31 15:39 https://android.googlesource.com/kernel/common android-4.9 cc88c05eca31 8fbce0e4 .config console log report syz ci-android-49-kasan-gce-386
2018/10/11 03:44 https://android.googlesource.com/kernel/common android-4.9 38f2b4a8c277 5f818b4b .config console log report ci-android-49-kasan-gce-root
2018/10/04 08:21 https://android.googlesource.com/kernel/common android-4.9 713657425a18 8b311eaf .config console log report ci-android-49-kasan-gce
2018/08/09 05:42 https://android.googlesource.com/kernel/common android-4.9 856452b4f22e 2eeda842 .config console log report ci-android-49-kasan-gce-root
2018/02/25 05:10 https://android.googlesource.com/kernel/common android-4.9 a92bb8d6eac3 5c1e0207 .config console log report ci-android-49-kasan-gce
2018/08/08 12:19 https://android.googlesource.com/kernel/common android-4.9 47b77b8d01c4 ddeb9f8d .config console log report ci-android-49-kasan-gce-386
2018/08/01 16:00 https://android.googlesource.com/kernel/common android-4.9 52be322125e5 1477993e .config console log report ci-android-49-kasan-gce-386
2018/04/10 21:49 https://android.googlesource.com/kernel/common android-4.9 f6bec4e8c771 8b8de427 .config console log report ci-android-49-kasan-gce-386
2018/02/19 12:56 https://android.googlesource.com/kernel/common android-4.9 cdfc8df1d262 833f78c7 .config console log report ci-android-49-kasan-gce-386
2018/02/18 02:56 https://android.googlesource.com/kernel/common android-4.9 cdfc8df1d262 833f78c7 .config console log report ci-android-49-kasan-gce-386
2018/02/03 17:00 https://android.googlesource.com/kernel/common android-4.9 47af77b1dced 632a8c2c .config console log report ci-android-49-kasan-gce-386
2018/01/18 11:44 https://android.googlesource.com/kernel/common android-4.9 033d019ce29c 56cc113a .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.