Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3861049rdb; Thu, 28 Dec 2023 02:23:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsS6SZ8hxqcN+vEWqK/i6h5AhThbReOZTraxLGxj2ECRGt01BGnfeUEqmWIdiwqNRXVzZi X-Received: by 2002:a05:620a:5596:b0:77f:6b52:cd89 with SMTP id vq22-20020a05620a559600b0077f6b52cd89mr11899794qkn.91.1703759015841; Thu, 28 Dec 2023 02:23:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703759015; cv=none; d=google.com; s=arc-20160816; b=LOnP/Xs9myPkzvFFAtqWkyigUWkqoGUJEWiarvJvwpZuJ6n29nzB/QRhuga5nFz/rf /r2kguq0yPqvPR8g/0iEFY4jjkE91mbEhyc0JO7yfpsyQIwOa1Ov5ZKqwjsK29rsrpLI bI8oVKHQN7gfGj2VMFNaqGy4zP8uAlSo989p4yFj3Iq5V1UWgMBixFmUcXLpxJm7kCfb h7vH2H76BVHm9IfytG4Dn3FvN0OGjI/pHYpsFQhY/sxtKEpI/zLIvbcLyG57MOXy7aH3 ZIDCVdI/L4lWLarPh9zBx05Ni2tkX9hwdOJ3CNqj5Eba0B+3/5Ql46cMC0u9NGO89NMn Aehw== 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=hd+YFMq5UU4QGqfb69wCvN3j30ey5zlrqHKEHPW8tDE=; fh=n8yPjRbETdsPfD611YoXSDtOyw2rxYTTeo4lQ47FNHM=; b=kykjOIW9+LA5U80kXGfgd63pJvhI5dg4F8aSHsomstDm3bBkcl2aT5AqLwFU/16K0T 9CR492uaMQtN1gWrBMImQ2/nVYhLBj2IjJONckEqg2b2vAdFklJPYCaxMKuxtkWcEDYB BKZP7ls6/j/8fqtD56Xc9+0w1NY3xHnsyCIED8NBC7y8cGRZH+1jmpbyibh17qeIipwc U7Cg/kRkcXXVTTcY5OeKVC1wwIrZwccKYYejaTyoZVOak61AdiyVv+4i0NLA3/68OJQ5 TBAf18Id9ecfPVrpKXj27LMyS7O+LUJF7CCuOBSP53Hld/pTqoSLWka3c1IFzAlRFASx swXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12563-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 i19-20020a05620a405300b0077faf9ab6ffsi11084807qko.609.2023.12.28.02.23.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 02:23:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12563-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-12563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12563-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 940231C23172 for ; Thu, 28 Dec 2023 10:23:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 188D26D18; Thu, 28 Dec 2023 10:23:26 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (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 2043C63C6 for ; Thu, 28 Dec 2023 10:23:23 +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-io1-f69.google.com with SMTP id ca18e2360f4ac-7b7018c9476so498753139f.0 for ; Thu, 28 Dec 2023 02:23:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703759003; x=1704363803; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hd+YFMq5UU4QGqfb69wCvN3j30ey5zlrqHKEHPW8tDE=; b=fKtXMZ1rySFeQL3GDZ7pFmRgxz+PH+mVSxf5VE5USxKs31g1EFr2/tGwtDSh38Q27i ql3CZlC1vQ0BrqWsirM2SFu2fqWxEI6N1DFQM3mI1f7t3Sxr9Qc0YyBqtGus7pJzOX+D iAMNqKzPNKfGJ82uRC8aO6B2t5lPOkWnXk9CZOO1C+hJKYJ0Cs5mP7maN4mZRvuWWh3p K96r3sT2ZUeYjYJgSSmcg3DRSDhyAM25RjoXZkiNQe9d4CBMbMopbb/a7v9KpM+mLzOQ DN3b8OTyVZ3gkqitynZxdDhhyf1u19hrRE39g6ZYxRZ5w0IUyVQnYXulY31G3mSnAa/v Sg4g== X-Gm-Message-State: AOJu0YyhlmXYPQGhSKhtV/M7ZfxP6p7EOZe81uMA4FkIFGGxWmKlwUSs nuoOO7LoiyZ9U9hzN6E9K6O83PEcZY2doGmhCBd2eS8kWAYH 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:6638:410b:b0:46b:4319:59cc with SMTP id ay11-20020a056638410b00b0046b431959ccmr668539jab.1.1703759003316; Thu, 28 Dec 2023 02:23:23 -0800 (PST) Date: Thu, 28 Dec 2023 02:23:23 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002cf943060d8f4e3c@google.com> Subject: [syzbot] [hfs?] KMSAN: uninit-value in __hfsplus_ext_cache_extent 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: fbafc3e621c3 Merge tag 'for_linus' of git://git.kernel.org.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1770ee26e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=e0c7078a6b901aa3 dashboard link: https://syzkaller.appspot.com/bug?extid=55ad87f38795d6787521 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=17ea9be9e80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=149e8179e80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/1520f7b6daa4/disk-fbafc3e6.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/8b490af009d5/vmlinux-fbafc3e6.xz kernel image: https://storage.googleapis.com/syzbot-assets/202ca200f4a4/bzImage-fbafc3e6.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/78ed00b58340/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+55ad87f38795d6787521@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in __hfsplus_ext_read_extent fs/hfsplus/extents.c:167 [inline] BUG: KMSAN: uninit-value in __hfsplus_ext_cache_extent+0x82a/0x960 fs/hfsplus/extents.c:191 __hfsplus_ext_read_extent fs/hfsplus/extents.c:167 [inline] __hfsplus_ext_cache_extent+0x82a/0x960 fs/hfsplus/extents.c:191 hfsplus_ext_read_extent fs/hfsplus/extents.c:218 [inline] hfsplus_file_extend+0x775/0x1b90 fs/hfsplus/extents.c:461 hfsplus_get_block+0xe99/0x1690 fs/hfsplus/extents.c:245 __block_write_begin_int+0x946/0x2c70 fs/buffer.c:2119 __block_write_begin fs/buffer.c:2168 [inline] block_write_begin+0x143/0x450 fs/buffer.c:2227 cont_write_begin+0xd5c/0x12f0 fs/buffer.c:2582 hfsplus_write_begin+0x9a/0x130 fs/hfsplus/inode.c:52 generic_perform_write+0x3f5/0xc40 mm/filemap.c:3918 __generic_file_write_iter+0x20a/0x460 mm/filemap.c:4013 generic_file_write_iter+0x103/0x5b0 mm/filemap.c:4039 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x8ef/0x1490 fs/read_write.c:584 ksys_write+0x20f/0x4c0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x93/0xd0 fs/read_write.c:646 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: slab_post_alloc_hook+0x129/0xa70 mm/slab.h:768 slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x5c9/0x970 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0x121/0x3c0 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] hfsplus_find_init+0x91/0x250 fs/hfsplus/bfind.c:21 hfsplus_ext_read_extent fs/hfsplus/extents.c:216 [inline] hfsplus_file_extend+0x6d8/0x1b90 fs/hfsplus/extents.c:461 hfsplus_get_block+0xe99/0x1690 fs/hfsplus/extents.c:245 __block_write_begin_int+0x946/0x2c70 fs/buffer.c:2119 __block_write_begin fs/buffer.c:2168 [inline] block_write_begin+0x143/0x450 fs/buffer.c:2227 cont_write_begin+0xd5c/0x12f0 fs/buffer.c:2582 hfsplus_write_begin+0x9a/0x130 fs/hfsplus/inode.c:52 generic_perform_write+0x3f5/0xc40 mm/filemap.c:3918 __generic_file_write_iter+0x20a/0x460 mm/filemap.c:4013 generic_file_write_iter+0x103/0x5b0 mm/filemap.c:4039 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x8ef/0x1490 fs/read_write.c:584 ksys_write+0x20f/0x4c0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x93/0xd0 fs/read_write.c:646 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: 5003 Comm: syz-executor371 Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #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