From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (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 4DBA12877F7 for ; Fri, 1 May 2026 00:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777593633; cv=none; b=g8H2zpyQETuERklAN9adELanQzxDqoQ9w/WOICGuVOSiO+YvbPb6qPW8g83HyfUduMM2x8DSGO12xIuVUioIxbEE/TudjiWub1o0fP4Urs1opkF1+cI9rbfe5d3rl1p1cCRhhsoPPvWmOkitODG8cyTezt8kGl1jCvdVULXj83c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777593633; c=relaxed/simple; bh=DhvJT2dfKfQmyXnlAk8l/j8uuyIeqOUz0gBpg1EJ/JY=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=RhzhqJ2hwxQ4ITDA3d508tN7iQzJilEVFiLdJCYv/2vWkqFgk6R4SugWJ8e0DcnUE8UQoFvXopPmGuHq8zKXil+F4zaaA+1xif3pERto9aLM9Y0C+WWRfVA0XxYG9cGY5sjg7NaoiNewz4ac2+a3vCm9bjZX0szGPWgEhF+IiT4= 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.210.71 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-ot1-f71.google.com with SMTP id 46e09a7af769-7dbbb806e10so3249139a34.1 for ; Thu, 30 Apr 2026 17:00:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777593629; x=1778198429; 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=vYzOIi1nI6oz45c+/sEzsnyQ4Ykqxy8E/I97egkCpr0=; b=s60aCr0Ws2n/saso5wY0hDKYWu+PGjo55y+9vvT7Xf+HfQ3UW46IUfWTA3Uk+q9MqD votOaSZwzf25IO0bng/lmeYOAbQj0M9CUDfJkaUlFN7Oj688XVm+0PE1Gfh6ZVbsdevp ZwSHDNzqtebRwmlAZAAxebLJnk4LcIk9kAkuiARmLYaXJPJf9gcaMHQIdtCgCMh711Ik uKwlBIieoJKew7qtbGSZQoibyI+RQbUTdSkQgRYGZjaVuQUroy45EVCIFZTYR2bU5NEo /76UNCTYWd16NUOItSGCVg4A17hU/qYn/Fd6wJGLmSv2hrq0cLR1ICAV9A2Lg/gMOjyg 42Ig== X-Gm-Message-State: AOJu0YzSlATUdpZ6MYZcKPLyAYHCjvG02bTdG8LYx66HLppyoJPIMokc dmgbDJc65x3YLiUuq+rGVTLRfxUNUWjKhGFzKqUBeo1pVRh3CYLNZEvGffT7HHA5f2sXZqUdAAY kOCeIs1BAtXhbGtHBG7TFTRBEEDfJ6U6+nwXwr6+42igh5S7fyF7NwKRT1Dc= 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:6820:4b87:b0:696:15ed:6a09 with SMTP id 006d021491bc7-6968bbcdf87mr322904eaf.24.1777593629328; Thu, 30 Apr 2026 17:00:29 -0700 (PDT) Date: Thu, 30 Apr 2026 17:00:29 -0700 In-Reply-To: <69decbd0.a00a0220.468cb.006b.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69f3ed1d.050a0220.312cd3.000b.GAE@google.com> Subject: Forwarded: #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master Author: tristmd@gmail.com #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>From fa9693d02a6d2e2fda72504085400c761d5eec1f Mon Sep 17 00:00:00 2001 From: Tristan Madani Date: Sat, 18 Apr 2026 13:39:03 +0000 Subject: [PATCH] hfsplus: zero-initialize buffer in hfs_bnode_read hfs_bnode_read() can return early without initializing the output buffer when the offset is invalid or the requested length is corrected to zero by check_and_correct_requested_length(). Callers such as hfs_bnode_read_u16() pass stack-allocated buffers and use the result unconditionally, leading to KMSAN uninit-value reports. Rather than initializing at each individual call site, zero the buffer at the start of hfs_bnode_read() before any validation checks. This ensures the buffer is always in a known state regardless of which early-return path is taken. Reported-by: syzbot+217eb327242d08197efb@syzkaller.appspotmail.com Tested-by: syzbot+217eb327242d08197efb@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=217eb327242d08197efb Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Signed-off-by: Tristan Madani --- fs/hfsplus/bnode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/hfsplus/bnode.c b/fs/hfsplus/bnode.c index f8b5a8ae58ff5..14d1af2c7ba93 100644 --- a/fs/hfsplus/bnode.c +++ b/fs/hfsplus/bnode.c @@ -25,6 +25,8 @@ void hfs_bnode_read(struct hfs_bnode *node, void *buf, u32 off, u32 len) struct page **pagep; u32 l; + memset(buf, 0, len); + if (!is_bnode_offset_valid(node, off)) return; -- 2.47.3