Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp497721rdd; Tue, 9 Jan 2024 10:18:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGifRlZzqtB3HeW+QxaNjZkXkyxmVOSs7bADISW0VS8w44tirp7lNopZCl/Pz0HLxvpvEdb X-Received: by 2002:a05:620a:2085:b0:783:3423:b8c1 with SMTP id e5-20020a05620a208500b007833423b8c1mr170364qka.135.1704824281151; Tue, 09 Jan 2024 10:18:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704824281; cv=none; d=google.com; s=arc-20160816; b=wUfkuuWjvwFUejre7KrwO/D5v9CJSw/o4360MABV9iOzDUMcvmaydJZL1Q75GvXbi/ RjYynxJBXHmKq19Pi0VOXNe2g1JF31IrFyq73sOZ+c7VZBXzbxJ+34MquMpvfh94QpdT i7WpnQahsne7hUsuVcliv7txiTj4XijFCkMe6FuPwv1H14vfcFoxid/OHs+BFTfMrT1y FcpFytGRoNhJX7NzEIU13UG42wswh74cArimNEzhiwt2+PDE+oInk1g3O98hTgkCq7i9 zgWi95CK7+8eBtgCuXvkkQiWewWAwrI+Maucc4mF7mCMLVcd1L6Jvq5HXHMJBH2EujJ+ etQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=RiahJxs7SPtt+UudYmhc+t36HoMS9MKqIrVEkKF6S2U=; fh=n8yPjRbETdsPfD611YoXSDtOyw2rxYTTeo4lQ47FNHM=; b=qlghTE6/npSOryC1izslwm0POGWZUwP6d0NGV5TVZ3SEBgwPpMd2Xmwh/75+cA9Xdd cPCiQRr2BdplLfH7Ri/7eYSze9KbwRySSZ3RQjuwML8l+OpMdeXmv7LTbsEqxVbW4pcI oVOcC9HBdgTs6hlfdLn7bXPjc5I9SDUSXIDJa5pc/WJsYQeWZf0fZb1zLQJWcbYpeiXq ZIdy6mNrSR9pgh0WFMjBUI4V4aNdEIlrSKm+70RwWcNshUc6Cbl56qbVmUQCQCl2KhWp SWAA4H/H9wsTDaOhUflkTfTSaMjOT7G7g0d7qUwgKr4ux4f/punI7nNItahDVhnQl2iW bfuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21230-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c23-20020a05620a0cf700b00783220e060dsi2495354qkj.113.2024.01.09.10.18.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 10:18:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21230-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21230-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 D3E351C25116 for ; Tue, 9 Jan 2024 18:18:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4AC13C478; Tue, 9 Jan 2024 18:17:37 +0000 (UTC) Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (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 B60073C06A for ; Tue, 9 Jan 2024 18:17:35 +0000 (UTC) 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-f200.google.com with SMTP id e9e14a558f8ab-3607d60e4c8so29840525ab.2 for ; Tue, 09 Jan 2024 10:17:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704824255; x=1705429055; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RiahJxs7SPtt+UudYmhc+t36HoMS9MKqIrVEkKF6S2U=; b=gTnzBtgNI6Uu/owiS8pAR1uyIRR7IikY3pzWA/KlEusuj13qdmHr2I2+7KOPXWcAKN Ta4XXw9gYYrEo974K+nd3o1sS+96N5+36xY37L4sn1Hw2rGCwzdYWenP75f9TFWacmqM gQkuzChnQ0b1AX7zxENSvq9mtngcquzmPzJn7c4YUHjrIbw18HFGSbdkuqmeWBgn9qJr ka6EPuQYX6e7KO99/eDG2lTJZwNy34KUBQfsAuvpkHotQ7muKeSbXYoH89BIr+ZXd2hJ 4eBLjv39vKfa5yhUrLBn+7AUAAMAddC6/ijP175aksihsgh49fNKhSBGQrDf3NTfNEGH Z20A== X-Gm-Message-State: AOJu0YzQPhBy2AlF12HD4OxFTrgw9i0yByWt2gMIe5Kqy3+iZNvCf/xS 5Em/x8GIoOFf0ul9feAM45AcdHSuqN6FWb2JJ0t+hj1FLHE8 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:17cb:b0:360:f2c:cde6 with SMTP id z11-20020a056e0217cb00b003600f2ccde6mr755040ilu.6.1704824255096; Tue, 09 Jan 2024 10:17:35 -0800 (PST) Date: Tue, 09 Jan 2024 10:17:35 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000212ec9060e8754e2@google.com> Subject: [syzbot] [hfs?] KMSAN: uninit-value in hfsplus_lookup 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: 861deac3b092 Linux 6.7-rc7 git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=103d9131e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=e0c7078a6b901aa3 dashboard link: https://syzkaller.appspot.com/bug?extid=91db973302e7b18c7653 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=15dd9e81e80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=134b9595e80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/0ea60ee8ed32/disk-861deac3.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/6d69fdc33021/vmlinux-861deac3.xz kernel image: https://storage.googleapis.com/syzbot-assets/f0158750d452/bzImage-861deac3.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/77e776893084/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+91db973302e7b18c7653@syzkaller.appspotmail.com loop0: detected capacity change from 0 to 1024 ===================================================== BUG: KMSAN: uninit-value in hfsplus_lookup+0x66b/0xef0 fs/hfsplus/dir.c:83 hfsplus_lookup+0x66b/0xef0 fs/hfsplus/dir.c:83 lookup_open fs/namei.c:3455 [inline] open_last_lookups fs/namei.c:3546 [inline] path_openat+0x27d3/0x5c70 fs/namei.c:3776 do_filp_open+0x20d/0x590 fs/namei.c:3809 do_sys_openat2+0x1bf/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_creat fs/open.c:1528 [inline] __se_sys_creat fs/open.c:1522 [inline] __x64_sys_creat+0xe6/0x140 fs/open.c:1522 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Uninit was created at: __alloc_pages+0x9a4/0xe00 mm/page_alloc.c:4591 alloc_pages_mpol+0x62b/0x9d0 mm/mempolicy.c:2133 alloc_pages+0x1be/0x1e0 mm/mempolicy.c:2204 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab mm/slub.c:2017 [inline] new_slab+0x421/0x1570 mm/slub.c:2070 ___slab_alloc+0x13db/0x33d0 mm/slub.c:3223 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x552/0x970 mm/slub.c:3509 alloc_inode_sb include/linux/fs.h:2937 [inline] hfsplus_alloc_inode+0x5a/0xc0 fs/hfsplus/super.c:627 alloc_inode+0x83/0x440 fs/inode.c:261 iget_locked+0x2dd/0xe80 fs/inode.c:1316 hfsplus_iget+0x59/0xaf0 fs/hfsplus/super.c:64 hfsplus_btree_open+0x13e/0x1d00 fs/hfsplus/btree.c:150 hfsplus_fill_super+0x1113/0x26f0 fs/hfsplus/super.c:473 mount_bdev+0x3d7/0x560 fs/super.c:1650 hfsplus_mount+0x4d/0x60 fs/hfsplus/super.c:641 legacy_get_tree+0x110/0x290 fs/fs_context.c:662 vfs_get_tree+0xa5/0x520 fs/super.c:1771 do_new_mount+0x68d/0x1550 fs/namespace.c:3337 path_mount+0x73d/0x1f20 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x725/0x810 fs/namespace.c:3863 __x64_sys_mount+0xe4/0x140 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b CPU: 0 PID: 5008 Comm: syz-executor168 Not tainted 6.7.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ===================================================== --- 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