syzbot


KMSAN: uninit-value in hfs_free_fork

Status: upstream: reported C repro on 2024/05/06 07:01
Subsystems: hfs
[Documentation on labels]
Reported-by: syzbot+2e6fb1f89ce5e13cd02d@syzkaller.appspotmail.com
First crash: 480d, last: 32d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] hfs: use kzalloc in hfs_find_init() to fix KMSAN bug 2 (2) 2024/11/12 16:08
[syzbot] [hfs?] KMSAN: uninit-value in hfs_free_fork 0 (5) 2024/11/11 19:53
Re: [syzbot] [hfs?] KMSAN: uninit-value in hfs_free_fork 1 (2) 2024/10/22 22:40
Last patch testing requests (15)
Created Duration User Patch Repo Result
2025/08/12 13:19 32m retest repro upstream OK log
2025/08/12 12:17 27m retest repro upstream OK log
2025/08/12 12:17 30m retest repro upstream OK log
2025/08/12 12:17 39m retest repro upstream OK log
2025/08/12 12:17 29m retest repro upstream OK log
2025/05/01 17:07 23m retest repro upstream report log
2025/04/11 02:44 22m retest repro upstream report log
2025/04/11 02:44 25m retest repro upstream report log
2025/04/11 02:44 30m retest repro upstream report log
2025/01/31 08:20 28m retest repro upstream report log
2024/11/11 19:53 27m gianf.trad@gmail.com patch upstream OK log
2024/11/11 19:50 0m gianf.trad@gmail.com patch upstream error
2024/11/11 19:49 30m gianf.trad@gmail.com upstream report log
2024/10/22 22:12 27m gianf.trad@gmail.com patch upstream OK log
2024/10/22 21:25 40m gianf.trad@gmail.com upstream report log

Sample crash report:
loop6: detected capacity change from 0 to 64
=====================================================
BUG: KMSAN: uninit-value in __hfs_ext_read_extent fs/hfs/extent.c:160 [inline]
BUG: KMSAN: uninit-value in hfs_free_fork+0x929/0xa70 fs/hfs/extent.c:320
 __hfs_ext_read_extent fs/hfs/extent.c:160 [inline]
 hfs_free_fork+0x929/0xa70 fs/hfs/extent.c:320
 hfs_cat_delete+0x47c/0xb90 fs/hfs/catalog.c:247
 hfs_remove+0x167/0x310 fs/hfs/dir.c:262
 vfs_unlink+0x613/0xab0 fs/namei.c:4595
 do_unlinkat+0x6e6/0xe50 fs/namei.c:4659
 __do_sys_unlinkat fs/namei.c:4700 [inline]
 __se_sys_unlinkat fs/namei.c:4693 [inline]
 __x64_sys_unlinkat+0x1a5/0x210 fs/namei.c:4693
 x64_sys_call+0x2be5/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:264
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Uninit was created at:
 slab_post_alloc_hook mm/slub.c:4154 [inline]
 slab_alloc_node mm/slub.c:4197 [inline]
 __do_kmalloc_node mm/slub.c:4327 [inline]
 __kmalloc_noprof+0x95f/0x1310 mm/slub.c:4340
 kmalloc_noprof include/linux/slab.h:909 [inline]
 hfs_find_init+0x93/0x260 fs/hfs/bfind.c:21
 hfs_free_fork+0x392/0xa70 fs/hfs/extent.c:316
 hfs_cat_delete+0x47c/0xb90 fs/hfs/catalog.c:247
 hfs_remove+0x167/0x310 fs/hfs/dir.c:262
 vfs_unlink+0x613/0xab0 fs/namei.c:4595
 do_unlinkat+0x6e6/0xe50 fs/namei.c:4659
 __do_sys_unlinkat fs/namei.c:4700 [inline]
 __se_sys_unlinkat fs/namei.c:4693 [inline]
 __x64_sys_unlinkat+0x1a5/0x210 fs/namei.c:4693
 x64_sys_call+0x2be5/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:264
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 0 UID: 0 PID: 17004 Comm: syz.6.2617 Tainted: G        W           6.16.0-syzkaller #0 PREEMPT(none) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
=====================================================

Crashes (220):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/28 20:09 upstream 038d61fd6422 c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/07/12 20:25 upstream 379f604cc3dc 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/07/11 06:39 upstream bc9ff192a6c9 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/07/08 01:17 upstream d7b8f8e20813 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/07/01 00:28 upstream d0b3b7b22dfa 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/30 08:19 upstream d0b3b7b22dfa fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/24 00:23 upstream 86731a2a651e 1a7fb460 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/22 20:45 upstream 739a6c93cc75 d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/20 03:22 upstream 24770983ccfe ed3e87f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/17 20:53 upstream 9afe652958c3 417d98fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/15 09:43 upstream 8c6bc74c7f89 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/14 22:10 upstream 4774cfe3543a 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/06/07 17:19 upstream 7a912d04415b 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/22 22:17 upstream 5cdb2c77c4c3 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/20 14:38 upstream a5806cd506af 8f9cf946 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/20 00:05 upstream a5806cd506af 8f9cf946 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/18 00:28 upstream 172a9d94339c f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/17 11:02 upstream 83a896549f92 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/17 06:09 upstream 83a896549f92 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/12 08:48 upstream 02ddfb981de8 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/03 10:21 upstream 02ddfb981de8 b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/03 10:21 upstream 02ddfb981de8 b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/02 07:27 upstream 02ddfb981de8 51b137cd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/05/01 18:19 upstream 02ddfb981de8 51b137cd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/04/17 13:59 upstream cfb2e2c57aef 2a6ededb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/03/28 00:38 upstream 1a9239bb4253 6c09fb82 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/03/25 19:00 upstream 327ecdbc0fda 875573af .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/03/23 14:01 upstream 586de92313fc 4e8d3850 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/03/23 02:42 upstream 183601b78a9b c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/03/23 02:42 upstream 183601b78a9b c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/02/17 18:28 upstream 0ad2507d5d93 9be4ace3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/02/16 07:25 upstream 496659003dac 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/02/15 21:41 upstream 7ff71e6d9239 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2024/12/19 11:14 upstream c061cf420ded 1432fc84 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2024/08/26 11:15 upstream 5be63fc19fca d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2024/08/26 09:31 upstream 5be63fc19fca d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2024/05/06 06:49 upstream b9158815de52 610f2a54 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2024/05/06 06:02 upstream b9158815de52 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hfs_free_fork
2025/07/28 22:57 upstream 038d61fd6422 c4a95487 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/07/22 16:24 upstream 89be9a83ccf1 1555463b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/07/18 09:40 upstream 6832a9317eee 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/06/30 15:02 upstream d0b3b7b22dfa fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/06/17 21:54 upstream 9afe652958c3 417d98fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/06/15 12:00 upstream 8c6bc74c7f89 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/05/19 12:48 upstream a5806cd506af f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/05/11 20:37 upstream 02ddfb981de8 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/05/10 10:31 upstream 02ddfb981de8 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/04/15 02:21 upstream 834a4a689699 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/03/23 18:03 upstream 586de92313fc 4e8d3850 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/03/23 06:18 upstream 183601b78a9b c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/03/10 17:35 upstream 80e54e84911a 16256247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/02/26 16:21 upstream ac9c34d1e45a d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/02/17 21:21 upstream 0ad2507d5d93 9be4ace3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/02/16 12:15 upstream 496659003dac 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
2025/02/15 19:10 upstream 7ff71e6d9239 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hfs_free_fork
* Struck through repros no longer work on HEAD.