[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <672af85a.050a0220.2edce.151c.GAE@google.com>
Date: Tue, 05 Nov 2024 21:02:18 -0800
From: syzbot <syzbot+968ecf5dc01b3e0148ec@...kaller.appspotmail.com>
To: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_cat_bin_cmp_key
Hello,
syzbot found the following issue on:
HEAD commit: 6c52d4da1c74 Merge tag 'for-linus' of git://git.kernel.org..
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1069c987980000
kernel config: https://syzkaller.appspot.com/x/.config?x=1edd801cefd6ca3e
dashboard link: https://syzkaller.appspot.com/bug?extid=968ecf5dc01b3e0148ec
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10e2b55f980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1469c987980000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4b3257cc2711/disk-6c52d4da.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/826b93a55a16/vmlinux-6c52d4da.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e7be84048c24/bzImage-6c52d4da.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/1dd80244cd46/mount_0.gz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+968ecf5dc01b3e0148ec@...kaller.appspotmail.com
loop0: detected capacity change from 0 to 1024
=====================================================
BUG: KMSAN: uninit-value in hfsplus_cat_bin_cmp_key+0xf1/0x190 fs/hfsplus/catalog.c:36
hfsplus_cat_bin_cmp_key+0xf1/0x190 fs/hfsplus/catalog.c:36
hfs_find_rec_by_key+0xb1/0x240 fs/hfsplus/bfind.c:89
__hfsplus_brec_find+0x26f/0x7b0 fs/hfsplus/bfind.c:124
hfsplus_brec_find+0x445/0x970 fs/hfsplus/bfind.c:184
hfsplus_brec_read+0x46/0x1a0 fs/hfsplus/bfind.c:211
hfsplus_find_cat+0xdb/0x460 fs/hfsplus/catalog.c:202
hfsplus_iget+0x729/0xae0 fs/hfsplus/super.c:82
hfsplus_fill_super+0x151b/0x2700 fs/hfsplus/super.c:509
mount_bdev+0x39a/0x520 fs/super.c:1679
hfsplus_mount+0x4d/0x60 fs/hfsplus/super.c:647
legacy_get_tree+0x114/0x290 fs/fs_context.c:662
vfs_get_tree+0xb1/0x5a0 fs/super.c:1800
do_new_mount+0x71f/0x15e0 fs/namespace.c:3507
path_mount+0x742/0x1f10 fs/namespace.c:3834
do_mount fs/namespace.c:3847 [inline]
__do_sys_mount fs/namespace.c:4057 [inline]
__se_sys_mount+0x722/0x810 fs/namespace.c:4034
__x64_sys_mount+0xe4/0x150 fs/namespace.c:4034
x64_sys_call+0x255a/0x3ba0 arch/x86/include/generated/asm/syscalls_64.h:166
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Uninit was created at:
slab_post_alloc_hook mm/slub.c:4091 [inline]
slab_alloc_node mm/slub.c:4134 [inline]
__do_kmalloc_node mm/slub.c:4263 [inline]
__kmalloc_noprof+0x661/0xf30 mm/slub.c:4276
kmalloc_noprof include/linux/slab.h:882 [inline]
hfsplus_find_init+0x95/0x1d0 fs/hfsplus/bfind.c:21
hfsplus_iget+0x3c4/0xae0 fs/hfsplus/super.c:80
hfsplus_fill_super+0x151b/0x2700 fs/hfsplus/super.c:509
mount_bdev+0x39a/0x520 fs/super.c:1679
hfsplus_mount+0x4d/0x60 fs/hfsplus/super.c:647
legacy_get_tree+0x114/0x290 fs/fs_context.c:662
vfs_get_tree+0xb1/0x5a0 fs/super.c:1800
do_new_mount+0x71f/0x15e0 fs/namespace.c:3507
path_mount+0x742/0x1f10 fs/namespace.c:3834
do_mount fs/namespace.c:3847 [inline]
__do_sys_mount fs/namespace.c:4057 [inline]
__se_sys_mount+0x722/0x810 fs/namespace.c:4034
__x64_sys_mount+0xe4/0x150 fs/namespace.c:4034
x64_sys_call+0x255a/0x3ba0 arch/x86/include/generated/asm/syscalls_64.h:166
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
CPU: 1 UID: 0 PID: 5784 Comm: syz-executor301 Not tainted 6.12.0-rc5-syzkaller-00181-g6c52d4da1c74 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
=====================================================
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@...glegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
Powered by blists - more mailing lists