syzbot


KASAN: stack-out-of-bounds Read in unwind_next_frame (4)

Status: upstream: reported syz repro on 2025/08/01 04:30
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+b3447ea7dcdd5eb42d00@syzkaller.appspotmail.com
First crash: 71d, last: 20d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] KASAN: stack-out-of-bounds Read in unwind_next_frame (4) 0 (1) 2025/08/01 04:30
Similar bugs (10)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: stack-out-of-bounds Read in unwind_next_frame 17 C 1039 916d 2175d 0/1 upstream: reported C repro on 2019/09/18 00:47
android-54 KASAN: stack-out-of-bounds Read in unwind_next_frame 17 C 49 1523d 2027d 0/2 auto-obsoleted due to no activity on 2023/04/20 07:24
android-49 KASAN: stack-out-of-bounds Read in unwind_next_frame 17 5 2582d 2817d 0/3 auto-closed as invalid on 2019/02/22 14:33
android-54 KASAN: out-of-bounds Read in unwind_next_frame (2) 17 C 8 120d 205d 0/2 upstream: reported C repro on 2025/02/08 17:02
linux-4.19 KASAN: stack-out-of-bounds Read in unwind_next_frame 17 C error 525 928d 2014d 0/1 upstream: reported C repro on 2020/02/26 18:51
upstream KASAN: stack-out-of-bounds Read in unwind_next_frame (3) fs 17 1 240d 236d 0/29 auto-obsoleted due to no activity on 2025/04/04 17:08
upstream KASAN: stack-out-of-bounds Read in unwind_next_frame kernel 17 C 929 894d 2630d 0/29 closed as dup on 2018/06/20 07:51
upstream KASAN: stack-out-of-bounds Read in unwind_next_frame (2) kernel 17 1 436d 432d 0/29 auto-obsoleted due to no activity on 2024/08/21 14:38
android-414 KASAN: stack-out-of-bounds Read in unwind_next_frame 17 C 2192 2098d 2335d 0/1 public: reported C repro on 2019/04/11 00:00
android-54 KASAN: out-of-bounds Read in unwind_next_frame 17 16 1447d 1953d 0/2 auto-closed as invalid on 2022/01/13 05:16
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/08/27 17:45 41m retest repro upstream OK log

Sample crash report:
loop2: detected capacity change from 0 to 4096
ntfs3(loop2): Different NTFS sector size (1024) and media sector size (512).
==================================================================
BUG: KASAN: stack-out-of-bounds in vsnprintf+0x5f6/0xf00 lib/vsprintf.c:2930
Read of size 8 at addr ffffc90005d07718 by task syz.2.51/6216

CPU: 0 UID: 0 PID: 6216 Comm: syz.2.51 Tainted: G        W           6.17.0-rc1-syzkaller #0 PREEMPT_{RT,(full)} 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0xca/0x240 mm/kasan/report.c:482
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 vsnprintf+0x5f6/0xf00 lib/vsprintf.c:2930
 vprintk_store+0x3ef/0xd10 kernel/printk/printk.c:2279
 vprintk_emit+0x224/0x7c0 kernel/printk/printk.c:2426
 vprintk_deferred kernel/printk/printk.c:4604 [inline]
 _printk_deferred+0xdd/0x130 kernel/printk/printk.c:4613
 unwind_next_frame+0x1dc7/0x2390 arch/x86/kernel/unwind_orc.c:667
 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122
 save_trace+0x49/0x390 kernel/locking/lockdep.c:587
 check_prev_add kernel/locking/lockdep.c:3226 [inline]
 check_prevs_add kernel/locking/lockdep.c:3284 [inline]
 validate_chain+0x14b0/0x2140 kernel/locking/lockdep.c:3908
 __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237
 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
 rt_spin_lock+0x88/0x2c0 kernel/locking/spinlock_rt.c:56
 spin_lock include/linux/spinlock_rt.h:44 [inline]
 force_sig_info_to_task+0x6c/0x5a0 kernel/signal.c:1302
 force_sig_info kernel/signal.c:1331 [inline]
 force_sig+0xc9/0x120 kernel/signal.c:1645
 __exc_general_protection arch/x86/kernel/traps.c:822 [inline]
 exc_general_protection+0xdb/0x200 arch/x86/kernel/traps.c:792
 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:617
 </TASK>

The buggy address belongs to stack of task syz.2.51/6216
internal error: frame has invalid marker: 16140896666449346560

The buggy address belongs to a 8-page vmalloc region starting at 0xffffc90005d00000 allocated at copy_process+0x545/0x3ae0 kernel/fork.c:2004
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880302fdc80 pfn:0x302fd
memcg:ffff8880297f3482
flags: 0x80000000000000(node=0|zone=1)
raw: 0080000000000000 0000000000000000 dead000000000122 0000000000000000
raw: ffff8880302fdc80 0000000000000000 00000001ffffffff ffff8880297f3482
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO|__GFP_NOWARN), pid 2, tgid 2 (kthreadd), ts 135373163521, free_ts 125337292562
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851
 prep_new_page mm/page_alloc.c:1859 [inline]
 get_page_from_freelist+0x2119/0x21b0 mm/page_alloc.c:3858
 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148
 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2416
 alloc_frozen_pages_noprof mm/mempolicy.c:2487 [inline]
 alloc_pages_noprof+0xcf/0x1e0 mm/mempolicy.c:2507
 vm_area_alloc_pages mm/vmalloc.c:3642 [inline]
 __vmalloc_area_node mm/vmalloc.c:3720 [inline]
 __vmalloc_node_range_noprof+0x97d/0x12f0 mm/vmalloc.c:3893
 __vmalloc_node_noprof+0xc2/0x110 mm/vmalloc.c:3956
 alloc_thread_stack_node kernel/fork.c:311 [inline]
 dup_task_struct+0x3e7/0x860 kernel/fork.c:882
 copy_process+0x545/0x3ae0 kernel/fork.c:2004
 kernel_clone+0x224/0x7c0 kernel/fork.c:2605
 kernel_thread+0x10c/0x160 kernel/fork.c:2667
 create_kthread kernel/kthread.c:486 [inline]
 kthreadd+0x575/0x770 kernel/kthread.c:846
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
page last free pid 6012 tgid 6012 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1395 [inline]
 __free_frozen_pages+0xb59/0xce0 mm/page_alloc.c:2895
 vfree+0x2ad/0x470 mm/vmalloc.c:3434
 do_free_pages sound/core/pcm_memory.c:88 [inline]
 snd_pcm_lib_free_pages+0x250/0x2e0 sound/core/pcm_memory.c:495
 do_hw_free sound/core/pcm_native.c:906 [inline]
 snd_pcm_release_substream+0x2b7/0x480 sound/core/pcm_native.c:2730
 snd_pcm_oss_release_file sound/core/oss/pcm_oss.c:2397 [inline]
 snd_pcm_oss_release+0x184/0x250 sound/core/oss/pcm_oss.c:2576
 __fput+0x45b/0xa80 fs/file_table.c:468
 task_work_run+0x1d1/0x260 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:43
 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline]
 do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffffc90005d07600: f1 f1 f1 f1 04 f2 00 f2 f2 f2 00 f2 f2 f2 00 f2
 ffffc90005d07680: f2 f2 04 f3 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90005d07700: f1 f1 f1 f1 00 00 f3 f3 f1 f1 f1 f1 00 00 00 f3
                            ^
 ffffc90005d07780: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
 ffffc90005d07800: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/12 02:12 upstream 8f5ae30d69d7 c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: stack-out-of-bounds Read in unwind_next_frame
2025/08/05 15:43 upstream 7e161a991ea7 904e669c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: stack-out-of-bounds Read in unwind_next_frame
2025/08/01 04:30 upstream 260f6f4fda93 0c075d67 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs KASAN: stack-out-of-bounds Read in unwind_next_frame
2025/07/29 05:40 upstream ced1b9e0392d c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: stack-out-of-bounds Read in unwind_next_frame
2025/06/22 04:19 upstream f7301f856d35 d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: stack-out-of-bounds Read in unwind_next_frame
* Struck through repros no longer work on HEAD.