syzbot


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

Status: upstream: reported C repro on 2025/02/08 17:02
Reported-by: syzbot+d0c4a0107e8a97f37053@syzkaller.appspotmail.com
First crash: 23d, last: 8d15h
Similar bugs (16)
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 1650d 1985d 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 1983d 2247d 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 1930d 1929d 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 746d 1832d 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 712d 2448d 0/28 closed as dup on 2018/06/20 07:51
android-49 KASAN: out-of-bounds Read in unwind_next_frame C 14 2335d 2151d 0/3 public: reported C repro on 2019/04/13 00:00
android-54 KASAN: out-of-bounds Read in unwind_next_frame 16 1265d 1771d 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 1519d 1519d 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 1924d 2031d 0/1 public: reported C repro on 2019/08/11 14:38
android-414 KASAN: out-of-bounds Read in unwind_next_frame 1 2328d 2150d 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 734d 1993d 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 1341d 1845d 0/2 auto-obsoleted due to no activity on 2023/04/20 07:24
upstream KASAN: stack-out-of-bounds Read in unwind_next_frame (3) fs 1 58d 54d 0/28 moderation: reported on 2025/01/08 17:12
upstream KASAN: stack-out-of-bounds Read in unwind_next_frame (2) kernel 1 254d 250d 0/28 auto-obsoleted due to no activity on 2024/08/21 14:38
android-49 KASAN: stack-out-of-bounds Read in unwind_next_frame 5 2400d 2635d 0/3 auto-closed as invalid on 2019/02/22 14:33
android-414 KASAN: stack-out-of-bounds Read in unwind_next_frame C 2192 1916d 2153d 0/1 public: reported C repro on 2019/04/11 00:00
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/02/23 07:24 6m retest repro android12-5.4 report log
2025/02/23 07:24 6m retest repro android12-5.4 report log
2025/02/23 07:24 13m retest repro android12-5.4 report log
2025/02/23 07:24 11m retest repro android12-5.4 report log

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+0x1cd/0x1ea0 arch/x86/kernel/unwind_orc.c:426
Read of size 8 at addr ffff8881eb7ef8d0 by task syz-executor963/538

CPU: 0 PID: 538 Comm: syz-executor963 Not tainted 5.4.289-syzkaller-00030-gcb850525fc3e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1d8/0x241 lib/dump_stack.c:118
 print_address_description+0x8c/0x600 mm/kasan/report.c:384
 __kasan_report+0xf3/0x120 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+0x1cd/0x1ea0 arch/x86/kernel/unwind_orc.c:426
 arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save_tsk+0x309/0x4b0 kernel/stacktrace.c:151
 proc_pid_stack+0x125/0x1e0 fs/proc/base.c:490
 proc_single_show+0xda/0x160 fs/proc/base.c:801
 seq_read+0x4df/0xe60 fs/seq_file.c:232
 do_loop_readv_writev fs/read_write.c:713 [inline]
 do_iter_read+0x3e8/0x580 fs/read_write.c:935
 vfs_readv fs/read_write.c:997 [inline]
 do_preadv+0x20e/0x350 fs/read_write.c:1089
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7f44b233c2e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f44b22d9198 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00007f44b23c3338 RCX: 00007f44b233c2e9
RDX: 0000000000000332 RSI: 00004000000017c0 RDI: 0000000000000004
RBP: 00007f44b23c3330 R08: 0000000000000000 R09: 65732f636f72702f
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f44b23900ac
R13: 00007f44b22d91a0 R14: 00004000000000c0 R15: 00004000000017c0

The buggy address belongs to the page:
page:ffffea0007adfbc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x8000000000000000()
raw: 8000000000000000 0000000000000000 ffffea0007adfbc8 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+0x18f/0x370 mm/page_alloc.c:2171
 get_page_from_freelist+0x2d13/0x2d90 mm/page_alloc.c:3794
 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4893
 __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+0x85/0x600 kernel/fork.c:886
 copy_process+0x56d/0x3230 kernel/fork.c:1889
 _do_fork+0x197/0x900 kernel/fork.c:2399
 __do_sys_clone kernel/fork.c:2557 [inline]
 __se_sys_clone kernel/fork.c:2538 [inline]
 __x64_sys_clone+0x26b/0x2c0 kernel/fork.c:2538
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
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+0x847/0x950 mm/page_alloc.c:1438
 free_the_page mm/page_alloc.c:4955 [inline]
 __free_pages+0x91/0x140 mm/page_alloc.c:4961
 free_thread_stack kernel/fork.c:299 [inline]
 release_task_stack kernel/fork.c:439 [inline]
 put_task_stack+0x212/0x260 kernel/fork.c:450
 finish_task_switch+0x24a/0x590 kernel/sched/core.c:3479
 context_switch kernel/sched/core.c:3611 [inline]
 __schedule+0xb0d/0x1320 kernel/sched/core.c:4307
 schedule_idle+0x50/0x80 kernel/sched/core.c:4403
 do_idle+0x609/0x660 kernel/sched/idle.c:288
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:356
 start_secondary+0x3a5/0x460 arch/x86/kernel/smpboot.c:277
 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241

Memory state around the buggy address:
 ffff8881eb7ef780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881eb7ef800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881eb7ef880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                                 ^
 ffff8881eb7ef900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881eb7ef980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/09 05:41 android12-5.4 cb850525fc3e ef44b750 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2025/02/09 03:10 android12-5.4 cb850525fc3e ef44b750 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2025/02/08 16:58 android12-5.4 cb850525fc3e ef44b750 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2025/02/09 06:18 android12-5.4 cb850525fc3e ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: stack-out-of-bounds Read in unwind_next_frame
2025/02/08 15:54 android12-5.4 cb850525fc3e ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2025/02/08 15:53 android12-5.4 cb850525fc3e ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2025/02/08 15:52 android12-5.4 cb850525fc3e ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
2025/02/08 15:52 android12-5.4 cb850525fc3e ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: out-of-bounds Read in unwind_next_frame
* Struck through repros no longer work on HEAD.