From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8183217BB1C for ; Wed, 6 Nov 2024 05:02:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730869341; cv=none; b=tUb7tTktiFXablJ08jSG918kxJueRhMMPY4+pW3REj+LAH1nwiqZCpLZ0sLew85gg7K1I+NEDjmvUjrgfyBrim4X6tMUN2LGvivKwuB7eAZsLj7fLhwS6KLthS9q7Tspoq8GP7nEHKaDS42qvOBhX3PxORJ+AZpjnvFwKmFSK5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730869341; c=relaxed/simple; bh=S6HVl5YYmeNgzf4H120DElxRhniXzUnsxIFr8KZvG1Q=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=E2O89dzBM81ONAIlBzf6tsF8ugqnMjZt5Zh9Qm/eGKHJyY0rSXo57dzG1y+piXlsvGGiuaTj6Agoi3gFDunRz20ctAJ56837t43wfThLHg85aqb9F0En2ZZSrCiMPsdmwbVSkcND5GWhAahsU16PlbSW9GdiJrUAUxgt460z0p4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f199.google.com with SMTP id e9e14a558f8ab-3a3b2aee1a3so69102905ab.1 for ; Tue, 05 Nov 2024 21:02:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730869338; x=1731474138; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+O0Kb3rEGozlsN+xaRfLtSu1aFI8EkV95LDgZv6n7G8=; b=SmIdGjaZUojIPqMTHZAHSBeGbpaTrD0COdEA8fZZmdl9ICogwhGJNxhksGjjKKAbJ9 5+gzw0eQtuusprQLT9JTGErSAegwU6bet4p+C750fRB+Aa4iKPXKQQEnTSpJLn1Seu0w /OPpltkdEcIylpXiLGRvpNQ8ZLqrXdPrUZfwVKSsCbGtRe2yfYIS/xZ3jXmnX6ksOgFf CoLMTSr5OUwntzfuqZEQNZUqOTKwrA7NFMorj9u7C/kLi6uC9F6SeE3oDeUGgrQ/YYRQ k6MZ7drhMxxCKTVgAlH1SH//dLLvk1bHvBIarjW5O2h5h6opSrwxs17BpL46QLN+NSyU Ux8Q== X-Gm-Message-State: AOJu0Yy+GwC0ptg+V8bP4HWryot119NsJgxTHIsxq7SOD2MRoK0Qy44e fHmmnJgqJ+HrBxvgEAMOxhlICr++whGQ0Ck1CrAyM1F0cN6dYgOfond+2M9m2SgtEs1vMaFc2Ei nD8O6P2K/pMLo4/MypTkTTx1NbpdYhQdWLY0xDtGQiZF5z1cuVueGVEo= X-Google-Smtp-Source: AGHT+IFKCCJhaixJy45QcK9k7ayQSOfba2re5g9XCOmmQiFPPBUyevkkPEeMRPp2hNRt3jPgUyXvnsQdOqbCgGoYa55w8c4Sxakz Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:2163:b0:39f:5efe:ae73 with SMTP id e9e14a558f8ab-3a5e2436614mr278689915ab.5.1730869338630; Tue, 05 Nov 2024 21:02:18 -0800 (PST) Date: Tue, 05 Nov 2024 21:02:18 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <672af85a.050a0220.2edce.151c.GAE@google.com> Subject: [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_cat_bin_cmp_key From: syzbot To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" 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@syzkaller.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@googlegroups.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