Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1092143lqg; Sat, 2 Mar 2024 15:34:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXPw1GELSL+8tpLFodBIXxshrS4dgYRLc/AYzTwmFHWmBxZgYB6rpZHkqG1LFxePEaM1ep/DQLUUCbHahK9Tt7jkBmpD88Ak/awfJiPoA== X-Google-Smtp-Source: AGHT+IFS1vIfcdL3qk6tozHO1H604YUHr9JksxpiWZOpjFNyo8ZslvLBo2CS/uyrA2HZAcmjWeDB X-Received: by 2002:a37:f518:0:b0:787:caee:4309 with SMTP id l24-20020a37f518000000b00787caee4309mr6111496qkk.31.1709422472567; Sat, 02 Mar 2024 15:34:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709422472; cv=pass; d=google.com; s=arc-20160816; b=DP65ODIBDobXepmbSLi9jxvXV06JaMw86gVUJ/h8DldCcH1SxsAJHLXMbUdG0s8wtX zTuusj692TnMHOBvMGbuRSPmvSJ2pSaCGTSmASzw9xZlZPZU74P4+XNbQc9Eok5plLxT FGdIrgbVDgGq7Q9HgDsLyUAn04H9hdprX9G7/HpFcGkVXANK/qRP3aqibgcF7U0nc4J3 LFEpxODXDDEbS8XYBeacttjYORUzlCDxXt9iuKNW+bzW458u/jwp1rmBs+9zZL4XVG5/ 8IWFvueIkrGpP9Uu/yu9oLN2sp0N8apY63PoEfTaRC9ZNauUUYs434vQSgPaVnqgXRmf hEMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=WIzFmH0YBizjIO8ZRQOccZP2IZa33IlKny7K5qjbqrg=; fh=b3+xmRumGGP9PSxqDA7ZSzk4lAO9Dqt5ZrlvDDcZS8s=; b=xsTsXc9Bd4zNSvPPPYmHFcsQNSTvIO4V6wiS84UNC/mxFr9LNIaXzQNB91ukj1HZom npNy4lLq7TzTs4vMTtS2l5QyUcAFeIj3XQbHrClij9IHShqyhqKwPlHDGAtn0NKE9cSs iTUYjP4o5KacgFuPbFGQM9LbdPd7Oxe6BKtjvGQ/tFjBt9d6gFFvYyUwNja3D2NCCaP4 nn6UaegGe4ntK6OelGqsAe4OVxMxAtQ1gw+H+sdcslkJqpXRMOuYGvjrmIF46a8ajxsu BNfu2LyMaDbHmO38pSnpXxHdcSAEfWNv8cX5a7p3zxwwon8Pnpy/k+9Wf+i0EXHSRFH2 jrGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-89621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y19-20020a05620a44d300b00787a85c7434si7277496qkp.758.2024.03.02.15.34.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 15:34:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-89621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4B35E1C20CE6 for ; Sat, 2 Mar 2024 23:34:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A2A554745; Sat, 2 Mar 2024 23:34:24 +0000 (UTC) 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 5B40D259C for ; Sat, 2 Mar 2024 23:34:22 +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=1709422463; cv=none; b=UKauICmBVWuhI6qyKEc1sub1d7c2Q6b0SlOOr/HLp/MsENlwjbZ6AYjSeB857ZpgkJ7pGB8vOZSh2Bi9z29Ynl0K0wdCRtz/rUaJHweWgPPzlGQMQ6oJIwIbgEEzZB84ugO0KSn7U2wBdv38aqk213GHv7vasR/obkgKseo7zkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709422463; c=relaxed/simple; bh=6PZPyZuJdSMqkug1hsGSq24Xi//ToATAhXUILGMcENk=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=bMRsCThEnx/kCZMLHuqbrdvFDWvFMJaycpPifUUmzUxnNTPPplJB5/EN/KgcaUvEU+le5OgNrzF1tbdKoWx1UYN/mrRP/M96JxuSE6Y94tb0HQAdpu8eiM1M40hHWXx/LkUgWpAzcIrjWUvioCumJgL7RNNHrpvZmxwUeREtAZI= 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-3657bb7b9d2so51231175ab.2 for ; Sat, 02 Mar 2024 15:34:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709422461; x=1710027261; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WIzFmH0YBizjIO8ZRQOccZP2IZa33IlKny7K5qjbqrg=; b=AU8ROfoYwTBgM+k4LAA4XRGjv+QbKcPzGRUEkuDLqse6jWIeJBkTOLGHb8EADfXEbl HKWt/ouetqx+cl9/keMVNCsjJtxPJNONyUpsLC+9DUr3GVYp8Y0DMxpZfF6g4yIeqtaR iZVEPqUlbYjptVIuk2cx1hfIoUhTZgrH0OHOPs8jZ6FyWJbHVciEr5XwUSXON3r7jH7Z p6SA5e5C3eu1g1amvUsvLYW14VYBLpyY+bbUSzSGSzD3FLVYbaYCnRxp4GKiDZPMMXdY g5iRGGIjXxE57D7hBvAf/JBRV8t0vsbk7yr1SDYcs9WzA1xMt3rJlE3VwvU+2jzNNpNg QX8A== X-Forwarded-Encrypted: i=1; AJvYcCWY27mWzcys7FPvLMaInY7F3nIt47wAPBuumANOdfH+U4zRGb889//QTyTQHL6jdi0M0TlK5FY489q2OjtQEw/Uss9l4qRAiu3YSO4o X-Gm-Message-State: AOJu0YwnooFg+hldaFL4SvGix1GWhk+dF4avWnqTUERi+AlvNtCC898F 9WrYrlO15urTmyCgo70JJrXkvIUhjw/0XQmvKhkq91mVHjWDbPVX70h0dlcaBfX0r8wWk+HRigS CYWrxNMqXJzi6iTYWIqExMsQA4yaztQrYnhfwfpppv/IoFUO0ubR/Z8w= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1a68:b0:365:1f2b:7be8 with SMTP id w8-20020a056e021a6800b003651f2b7be8mr449997ilv.5.1709422461627; Sat, 02 Mar 2024 15:34:21 -0800 (PST) Date: Sat, 02 Mar 2024 15:34:21 -0800 In-Reply-To: <0000000000004d5e29060e94b998@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000098b3700612b5ee0f@google.com> Subject: Re: [syzbot] [hfs?] KMSAN: uninit-value in hfs_cat_keycmp (2) From: syzbot To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 5ad3cb0ed525 Merge tag 'for-v6.8-rc2' of git://git.kernel... git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=14fa7b8c180000 kernel config: https://syzkaller.appspot.com/x/.config?x=80c7a82a572c0de3 dashboard link: https://syzkaller.appspot.com/bug?extid=04486d87f6240a004c85 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=116f5a6a180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16cb9306180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a148235ac5b1/disk-5ad3cb0e.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/4b06f4d02ad6/vmlinux-5ad3cb0e.xz kernel image: https://storage.googleapis.com/syzbot-assets/7fff06beed25/bzImage-5ad3cb0e.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/0c762eef88b9/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+04486d87f6240a004c85@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 64 hfs: filesystem is marked locked, mounting read-only. ===================================================== BUG: KMSAN: uninit-value in hfs_cat_keycmp+0x154/0x210 fs/hfs/catalog.c:178 hfs_cat_keycmp+0x154/0x210 fs/hfs/catalog.c:178 __hfs_brec_find+0x250/0x820 fs/hfs/bfind.c:75 hfs_brec_find+0x436/0x970 fs/hfs/bfind.c:138 hfs_brec_read+0x3f/0x1a0 fs/hfs/bfind.c:165 hfs_cat_find_brec+0xe6/0x400 fs/hfs/catalog.c:194 hfs_fill_super+0x1f27/0x23c0 fs/hfs/super.c:419 mount_bdev+0x38f/0x510 fs/super.c:1658 hfs_mount+0x4d/0x60 fs/hfs/super.c:456 legacy_get_tree+0x110/0x290 fs/fs_context.c:662 vfs_get_tree+0xa5/0x560 fs/super.c:1779 do_new_mount+0x71f/0x15e0 fs/namespace.c:3352 path_mount+0x73d/0x1f20 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x725/0x810 fs/namespace.c:3875 __x64_sys_mount+0xe4/0x140 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Uninit was created at: slab_post_alloc_hook mm/slub.c:3819 [inline] slab_alloc_node mm/slub.c:3860 [inline] __do_kmalloc_node mm/slub.c:3980 [inline] __kmalloc+0x919/0xf80 mm/slub.c:3994 kmalloc include/linux/slab.h:594 [inline] hfs_find_init+0x91/0x250 fs/hfs/bfind.c:21 hfs_fill_super+0x1eb9/0x23c0 fs/hfs/super.c:416 mount_bdev+0x38f/0x510 fs/super.c:1658 hfs_mount+0x4d/0x60 fs/hfs/super.c:456 legacy_get_tree+0x110/0x290 fs/fs_context.c:662 vfs_get_tree+0xa5/0x560 fs/super.c:1779 do_new_mount+0x71f/0x15e0 fs/namespace.c:3352 path_mount+0x73d/0x1f20 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x725/0x810 fs/namespace.c:3875 __x64_sys_mount+0xe4/0x140 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b CPU: 1 PID: 5019 Comm: syz-executor380 Not tainted 6.8.0-rc6-syzkaller-00238-g5ad3cb0ed525 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ===================================================== --- 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.