syzbot


KASAN: out-of-bounds Read in unwind_next_frame (2)

Status: public: reported C repro on 2019/08/11 14:38
Reported-by: syzbot+0ea21dd409dff347ee4b@syzkaller.appspotmail.com
First crash: 1929d, last: 1822d
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 1548d 1882d 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 1880d 2145d 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 1827d 1827d 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 644d 1729d 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 609d 2346d 0/28 closed as dup on 2018/06/20 07:51
android-49 KASAN: out-of-bounds Read in unwind_next_frame C 14 2233d 2049d 0/3 public: reported C repro on 2019/04/13 00:00
android-54 KASAN: out-of-bounds Read in unwind_next_frame 16 1163d 1669d 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 1416d 1416d 0/1 auto-closed as invalid on 2021/05/04 22:57
android-414 KASAN: out-of-bounds Read in unwind_next_frame 1 2226d 2048d 0/1 auto-closed as invalid on 2019/04/28 00:03

Sample crash report:
==================================================================
BUG: KASAN: out-of-bounds in deref_stack_regs arch/x86/kernel/unwind_orc.c:307 [inline]
BUG: KASAN: out-of-bounds in unwind_next_frame+0x17a5/0x1810 arch/x86/kernel/unwind_orc.c:437
Read of size 8 at addr ffff8881cef0fed8 by task syz-executor381/10127

CPU: 0 PID: 10127 Comm: syz-executor381 Not tainted 4.14.150+ #0
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xca/0x134 lib/dump_stack.c:53
 print_address_description+0x60/0x226 mm/kasan/report.c:187
 __kasan_report.cold+0x1a/0x41 mm/kasan/report.c:316
 deref_stack_regs arch/x86/kernel/unwind_orc.c:307 [inline]
 unwind_next_frame+0x17a5/0x1810 arch/x86/kernel/unwind_orc.c:437
 __save_stack_trace+0x7a/0xf0 arch/x86/kernel/stacktrace.c:44
 save_stack_trace_tsk arch/x86/kernel/stacktrace.c:73 [inline]
 save_stack_trace_tsk+0x34/0x40 arch/x86/kernel/stacktrace.c:68
 proc_pid_stack+0x194/0x270 fs/proc/base.c:460
 proc_single_show+0xf1/0x160 fs/proc/base.c:762
 seq_read+0x4f7/0x1180 fs/seq_file.c:237
 do_loop_readv_writev fs/read_write.c:699 [inline]
 do_loop_readv_writev fs/read_write.c:686 [inline]
 do_iter_read+0x3e8/0x5b0 fs/read_write.c:923
 vfs_readv+0xe6/0x150 fs/read_write.c:985
 do_preadv+0x189/0x230 fs/read_write.c:1069
 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x446af9
RSP: 002b:00007f3971e0ed18 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00000000006dbc78 RCX: 0000000000446af9
RDX: 10000000000002a1 RSI: 0000000020000480 RDI: 0000000000000006
RBP: 00000000006dbc70 R08: 00007f3971e0f700 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc7c
R13: 00007f3971e0ed20 R14: 00007f3971e0ed20 R15: 0000000000000001

The buggy address belongs to the page:
page:ffffea00073bc3c0 count:0 mapcount:0 mapping:          (null) index:0x0
flags: 0x4000000000000000()
raw: 4000000000000000 0000000000000000 0000000000000000 00000000ffffffff
raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8881cef0fd80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
 ffff8881cef0fe00: f1 00 f2 f2 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00
>ffff8881cef0fe80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                                    ^
 ffff8881cef0ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881cef0ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/30 06:51 android-4.14 59eb65b24c35 5ea87a66 .config console log report syz C ci-android-414-kasan-gce-root
2019/11/26 08:02 android-4.14 f9b4ab5c8e99 f746151a .config console log report ci-android-414-kasan-gce-root
2019/11/23 02:04 android-4.14 437a2a739c5f 598ca6c8 .config console log report ci-android-414-kasan-gce-root
2019/10/29 22:15 android-4.14 59eb65b24c35 5ea87a66 .config console log report ci-android-414-kasan-gce-root
2019/08/11 13:38 android-4.14 57ac921eaff1 acb51638 .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.