syzbot


KASAN: out-of-bounds Read in unwind_next_frame

Status: auto-closed as invalid on 2022/01/13 05:16
Reported-by: syzbot+fa556ea76b0b21118d75@syzkaller.appspotmail.com
First crash: 1450d, last: 944d
Similar bugs (11)
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 1329d 1663d 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 1661d 1926d 0/26 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 1608d 1608d 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 425d 1510d 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 390d 2127d 0/26 closed as dup on 2018/06/20 07:51
android-49 KASAN: out-of-bounds Read in unwind_next_frame C 14 2014d 1830d 0/3 public: reported C repro on 2019/04/13 00:00
linux-4.19 KASAN: out-of-bounds Read in unwind_next_frame (2) 1 1197d 1197d 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 1603d 1709d 0/1 public: reported C repro on 2019/08/11 14:38
android-414 KASAN: out-of-bounds Read in unwind_next_frame 1 2006d 1829d 0/1 auto-closed as invalid on 2019/04/28 00:03
linux-4.14 KASAN: stack-out-of-bounds Read in unwind_next_frame C 1039 413d 1672d 0/1 upstream: reported C repro on 2019/09/18 00:47
android-54 KASAN: stack-out-of-bounds Read in unwind_next_frame C 49 1020d 1523d 0/2 auto-obsoleted due to no activity on 2023/04/20 07:24

Sample crash report:
==================================================================
BUG: KASAN: out-of-bounds in user_mode arch/x86/include/asm/ptrace.h:131 [inline]
BUG: KASAN: out-of-bounds in unwind_next_frame+0x1be/0x27b0 arch/x86/kernel/unwind_orc.c:421
Read of size 8 at addr ffff8881ef56f570 by task syz-executor.0/5567

CPU: 0 PID: 5567 Comm: syz-executor.0 Not tainted 5.4.125-syzkaller-00004-g4614f5de0f95 #0
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+0x1d8/0x24e lib/dump_stack.c:118
 print_address_description+0x9b/0x650 mm/kasan/report.c:384
 __kasan_report+0x182/0x260 mm/kasan/report.c:516
 kasan_report+0x30/0x60 mm/kasan/common.c:653
 user_mode arch/x86/include/asm/ptrace.h:131 [inline]
 unwind_next_frame+0x1be/0x27b0 arch/x86/kernel/unwind_orc.c:421
 arch_stack_walk+0x114/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save_tsk+0x17c/0x270 kernel/stacktrace.c:151
 proc_pid_stack+0x126/0x1f0 fs/proc/base.c:455
 proc_single_show+0xd3/0x120 fs/proc/base.c:757
 seq_read+0x4aa/0xd10 fs/seq_file.c:229
 do_loop_readv_writev fs/read_write.c:714 [inline]
 do_iter_read+0x41b/0x5c0 fs/read_write.c:935
 vfs_readv fs/read_write.c:997 [inline]
 do_preadv+0x20d/0x350 fs/read_write.c:1089
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa02a2db188 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9
RDX: 0000000000000218 RSI: 00000000200017c0 RDI: 0000000000000004
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffd5dd7f2bf R14: 00007fa02a2db300 R15: 0000000000022000

The buggy address belongs to the page:
page:ffffea0007bd5bc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x8000000000000000()
raw: 8000000000000000 0000000000000000 ffffea0007bd5b88 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x400dc0(GFP_KERNEL_ACCOUNT|__GFP_ZERO)
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook mm/page_alloc.c:2165 [inline]
 prep_new_page+0x19a/0x380 mm/page_alloc.c:2171
 get_page_from_freelist+0x550/0x8b0 mm/page_alloc.c:3794
 __alloc_pages_nodemask+0x3a2/0x880 mm/page_alloc.c:4855
 __alloc_pages include/linux/gfp.h:503 [inline]
 __alloc_pages_node include/linux/gfp.h:516 [inline]
 alloc_pages_node include/linux/gfp.h:530 [inline]
 alloc_thread_stack_node kernel/fork.c:259 [inline]
 dup_task_struct kernel/fork.c:875 [inline]
 copy_process+0x605/0x5630 kernel/fork.c:1877
 _do_fork+0x18f/0x900 kernel/fork.c:2391
 __do_sys_clone kernel/fork.c:2549 [inline]
 __se_sys_clone kernel/fork.c:2530 [inline]
 __x64_sys_clone+0x25b/0x2c0 kernel/fork.c:2530
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1176 [inline]
 __free_pages_ok+0xc60/0xd80 mm/page_alloc.c:1438
 free_the_page mm/page_alloc.c:4917 [inline]
 __free_pages+0x8f/0x250 mm/page_alloc.c:4923
 free_thread_stack kernel/fork.c:299 [inline]
 release_task_stack kernel/fork.c:439 [inline]
 put_task_stack+0x1ed/0x220 kernel/fork.c:450
 finish_task_switch+0x23f/0x550 kernel/sched/core.c:3459
 context_switch kernel/sched/core.c:3591 [inline]
 __schedule+0x9b8/0x1170 kernel/sched/core.c:4287
 schedule+0x13b/0x1d0 kernel/sched/core.c:4355
 freezable_schedule include/linux/freezer.h:172 [inline]
 do_nanosleep+0x1c3/0x6c0 kernel/time/hrtimer.c:1892
 hrtimer_nanosleep+0x247/0x450 kernel/time/hrtimer.c:1945
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1230 [inline]
 __se_sys_clock_nanosleep+0x308/0x390 kernel/time/posix-timers.c:1208
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Memory state around the buggy address:
 ffff8881ef56f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881ef56f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881ef56f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                                             ^
 ffff8881ef56f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881ef56f600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/15 05:15 android12-5.4 4614f5de0f95 07e953c1 .config console log report info ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2021/05/31 09:30 android12-5.4 3e256ddba1ff 032639db .config console log report info ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2021/02/26 17:28 android12-5.4 75af36a743bc 4c37c133 .config console log report info ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2020/12/30 09:08 android12-5.4 b69d75c07de5 0fa352f2 .config console log report info ci2-android-5-4-kasan
2020/09/11 20:00 https://android.googlesource.com/kernel/common android-5.4 aa0ddbda9397 adfb8b4e .config console log report ci2-android-5-4-kasan
2020/09/10 09:21 https://android.googlesource.com/kernel/common android-5.4 80d830d79a4d ac7ca78e .config console log report ci2-android-5-4-kasan
2020/09/09 17:26 https://android.googlesource.com/kernel/common android-5.4 2d65e6a459a7 0ea7a887 .config console log report ci2-android-5-4-kasan
2020/09/03 08:37 https://android.googlesource.com/kernel/common android-5.4 3f84f0c1ff00 abf9ba4f .config console log report ci2-android-5-4-kasan
2020/08/25 04:33 https://android.googlesource.com/kernel/common android-5.4 8c7bf5fe0edb 344da168 .config console log report ci2-android-5-4-kasan
2020/08/13 22:40 https://android.googlesource.com/kernel/common android-5.4 00dc5af368b7 ee7cb8b6 .config console log report ci2-android-5-4-kasan
2020/07/23 14:22 https://android.googlesource.com/kernel/common android-5.4 f51ce0659c2a 340ea530 .config console log report ci2-android-5-4-kasan
2020/07/15 10:03 https://android.googlesource.com/kernel/common android-5.4 42adbe0458e6 ada108d0 .config console log report ci2-android-5-4-kasan
2020/06/14 14:09 https://android.googlesource.com/kernel/common android-5.4 a191332e9e93 2a22c77a .config console log report ci2-android-5-4-kasan
2020/05/12 05:05 https://android.googlesource.com/kernel/common android-5.4 228c59bb379b 9eb09c40 .config console log report ci2-android-5-4-kasan
2020/04/30 03:30 https://android.googlesource.com/kernel/common android-5.4 e32f5ec4d846 2dd552a5 .config console log report ci2-android-5-4-kasan
2020/04/27 04:08 https://android.googlesource.com/kernel/common android-5.4 ab5026515199 0ce7569e .config console log report ci2-android-5-4-kasan
* Struck through repros no longer work on HEAD.