syzbot


KASAN: out-of-bounds Read in unwind_next_frame

Status: auto-obsoleted due to no activity on 2022/09/07 09:08
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+2fdf0ed2b3bc8fc51fc6@syzkaller.appspotmail.com
First crash: 1933d, last: 1668d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
KASAN: out-of-bounds Read in unwind_next_frame 1 (3) 2019/01/26 12:07
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 1335d 1670d 0/1 upstream: reported C repro on 2019/09/26 21:20
linux-4.19 KASAN: out-of-bounds Read in unwind_next_frame 1 1615d 1615d 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 431d 1517d 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 397d 2134d 0/26 closed as dup on 2018/06/20 07:51
android-49 KASAN: out-of-bounds Read in unwind_next_frame C 14 2021d 1837d 0/3 public: reported C repro on 2019/04/13 00:00
android-54 KASAN: out-of-bounds Read in unwind_next_frame 16 951d 1457d 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 1204d 1204d 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 1609d 1716d 0/1 public: reported C repro on 2019/08/11 14:38
android-414 KASAN: out-of-bounds Read in unwind_next_frame 1 2013d 1836d 0/1 auto-closed as invalid on 2019/04/28 00:03
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/09/07 06:27 16m retest repro upstream OK log
2022/09/07 02:27 16m retest repro upstream OK log

Sample crash report:
8021q: adding VLAN 0 to HW filter on device batadv0
==================================================================
BUG: KASAN: out-of-bounds in unwind_next_frame.part.0+0x756/0xa90 arch/x86/kernel/unwind_frame.c:324
Read of size 8 at addr ffff88808b117b68 by task syz-executor4/9315

CPU: 1 PID: 9315 Comm: syz-executor4 Not tainted 5.0.0-rc4+ #53
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
 unwind_next_frame.part.0+0x756/0xa90 arch/x86/kernel/unwind_frame.c:324
 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:0x458089
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:00007f0409b35c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000458089
RDX: 2000000000000113 RSI: 0000000020000480 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0409b366d4
R13: 00000000004c4b47 R14: 00000000004d82c0 R15: 00000000ffffffff

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

Memory state around the buggy address:
 ffff88808b117a00: f1 f1 f1 00 00 f2 f2 00 f2 f2 f2 00 f2 f2 f2 f8
 ffff88808b117a80: f2 f2 f2 f8 f2 f2 f2 f8 f2 f2 f2 f8 f2 f2 f2 f8
>ffff88808b117b00: f2 f2 f2 00 f2 f2 f2 00 f2 f2 f2 00 f3 f3 f3 00
                                                          ^
 ffff88808b117b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88808b117c00: 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 f8 f3 f3
==================================================================

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/31 13:03 upstream af0c9af1b3f6 aa432daf .config console log report syz ci-upstream-kasan-gce-smack-root
2019/01/26 12:06 upstream ba6069759381 c73f090a .config console log report syz ci-upstream-kasan-gce-smack-root
2019/09/28 18:58 upstream f1f2f614d535 eb6b9855 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/22 16:56 upstream f7c3bf8fa7e5 d96e88f3 .config console log report ci-upstream-kasan-gce-selinux-root
2019/06/21 19:06 upstream abf02e2964b3 34bf9440 .config console log report ci-upstream-kasan-gce-root
2019/03/15 02:04 upstream 3b319ee220a8 d72db19b .config console log report ci-upstream-kasan-gce-selinux-root
2019/03/08 11:32 upstream 610cd4eadec4 12365b99 .config console log report ci-upstream-kasan-gce-root
2019/01/31 12:19 upstream af0c9af1b3f6 aa432daf .config console log report ci-upstream-kasan-gce-smack-root
2019/01/24 04:14 upstream 30bac164aca7 56558f63 .config console log report ci-upstream-kasan-gce-selinux-root
2019/01/23 05:17 upstream 787a3b432276 b1ff06b2 .config console log report ci-upstream-kasan-gce-smack-root
2019/01/06 21:13 upstream b5aef86e089a 94f8adb5 .config console log report ci-upstream-kasan-gce-selinux-root
2019/02/13 20:56 linux-next c4f3ef3eb53f 0a49c954 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.