syzbot


KASAN: out-of-bounds Read in update_stack_state

Status: auto-closed as invalid on 2019/07/25 10:51
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+7afca242bca1a5d29d68@syzkaller.appspotmail.com
First crash: 2038d, last: 1916d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: out-of-bounds Read in update_stack_state (2) fs 1 1625d 1625d 0/26 auto-closed as invalid on 2020/02/10 13:24
android-54 KASAN: out-of-bounds Read in update_stack_state 1 1534d 1534d 0/2 auto-closed as invalid on 2020/06/10 17:42

Sample crash report:
==================================================================
BUG: KASAN: out-of-bounds in update_stack_state+0x5cd/0x680 arch/x86/kernel/unwind_frame.c:266
Read of size 8 at addr ffff8880533873f0 by task syz-executor3/14256

CPU: 1 PID: 14256 Comm: syz-executor3 Not tainted 5.0.0-rc3+ #44
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1db/0x2d0 lib/dump_stack.c:113
 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187
 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135
 update_stack_state+0x5cd/0x680 arch/x86/kernel/unwind_frame.c:266
 unwind_next_frame.part.0+0x1ae/0xa90 arch/x86/kernel/unwind_frame.c:329
 unwind_next_frame+0x3b/0x50 arch/x86/kernel/unwind_frame.c:287
 __save_stack_trace+0x7a/0xf0 arch/x86/kernel/stacktrace.c:44
 save_stack_trace_tsk arch/x86/kernel/stacktrace.c:76 [inline]
 save_stack_trace_tsk+0x9e/0xd0 arch/x86/kernel/stacktrace.c:69
 proc_pid_stack+0x272/0x430 fs/proc/base.c:438
 proc_single_show+0xf6/0x180 fs/proc/base.c:739
 seq_read+0x4db/0x1130 fs/seq_file.c:229
 do_loop_readv_writev fs/read_write.c:700 [inline]
 do_loop_readv_writev fs/read_write.c:687 [inline]
 do_iter_read+0x4a9/0x660 fs/read_write.c:921
 vfs_readv+0x175/0x1c0 fs/read_write.c:983
 do_preadv+0x1c4/0x280 fs/read_write.c:1067
 __do_sys_preadv fs/read_write.c:1117 [inline]
 __se_sys_preadv fs/read_write.c:1112 [inline]
 __x64_sys_preadv+0x9a/0xf0 fs/read_write.c:1112
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458099
Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f65006b4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000458099
RDX: 1000000000000156 RSI: 0000000020000480 RDI: 0000000000000006
RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f65006b56d4
R13: 00000000004c4b67 R14: 00000000004d82e0 R15: 00000000ffffffff

The buggy address belongs to the page:
page:ffffea00014ce1c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x1fffc0000000000()
raw: 01fffc0000000000 0000000000000000 ffffffff014c0101 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff888053387280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888053387300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888053387380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                                             ^
 ffff888053387400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888053387480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/26 10:50 upstream ba6069759381 c73f090a .config console log report ci-upstream-kasan-gce-smack-root
2018/10/01 02:45 upstream 17b57b1883c1 41e4b329 .config console log report ci-upstream-kasan-gce-root
2018/09/26 02:38 upstream 846e8dd47c26 b7e11289 .config console log report ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.