From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) (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 0416372622 for ; Fri, 17 Apr 2026 16:21:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776442876; cv=none; b=f/1asbRe2wgY4euDC8Bvh/uzRDL5LUxf9A2vqG4C52i/RDldlIdHSsjTSc8jUOb+Y4qqUh22v7xNBsBcOOZzeFLYPgDwy/jtKlSNROrHvVaNTQKB91car0zaqmZyjAqI8YDbC4NyQ2hjned0L3ZUakaJjBD4AlFlQSwHt61MUvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776442876; c=relaxed/simple; bh=fgr9Ki0V+ozD5QITsR9wIwNV5eCziDGhbZLUSunL1L0=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=pyp9YbE8L8P6Y90rM3J6JHirTY4nuln+JEbX4qqt/bFBUWLOo3Qb1z3uzCQ+54cDYT/rLyW66WsPL291TrCggLUxesMv78Xa5oSs63qicly2g46lt9+ryO0HkLBteYWBpcDF9w0R/7zMyEDCygX4IiSXgjKnikTWLhWzy406trE= 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.161.72 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-oo1-f72.google.com with SMTP id 006d021491bc7-683b5d81209so1598928eaf.0 for ; Fri, 17 Apr 2026 09:21:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776442874; x=1777047674; 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=X/AWtJJ/nOhEt6Uyv7TsHhmT9gEbHUdvBml9Ky6tQs0=; b=BoUS4P6j1WbjDQ0ARPZOIWOaSRdRGr8CsUR2sy1Wt+fqUZ8G4CQFreCv8OdEfOtZGJ DqnSlnxyA0t3yjpJjcgYW0RHOcjAgUEOJdijNSnXCUAYketTWTYJpjUyD7ZaurNJ6i9/ n2qqvRqdmELVjPVB3l2SMyNm8XnOdD3wuSCbi4NA308h7TRjrA4ehQuJGM2Yjjrl1IN6 XWAHpmELVQFhhL7fl9Q+Ldnn3ofG8MH6QpzbbfLYHhSQ+w5m2IUFxx8F7zfTxlBE/GjH qMhid5wWbLdRRndNj/aJktkvo1FxMYcQYHgKxmxU55YKHyUzZGEL02NfIstXBDn0VuyP DDPg== X-Gm-Message-State: AOJu0Yx6rtwj8kiIdNqzisV08pU+UajoV5lEe61KP2jW5DAw5jibXn9I KnvBtdYY6DbigGzNPILpO3vuK/yubU8Iv+2YgwsvW6JdN19fH4knSFRbfHqMTuMyZLpEaxQTfdZ XUqyrXayz6jKIviUHNHocyheMs3mVhIKC6pMngn5jll7zfKJUJtPQBm76xeQ= 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:2d0b:b0:67e:3f0d:422a with SMTP id 006d021491bc7-69462ded7camr1739313eaf.8.1776442874094; Fri, 17 Apr 2026 09:21:14 -0700 (PDT) Date: Fri, 17 Apr 2026 09:21:14 -0700 In-Reply-To: <67ddd191.050a0220.25ae54.006a.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69e25dfa.a00a0220.1cdc.001b.GAE@google.com> Subject: Forwarded: Re: [syzbot] KMSAN: uninit-value in ocfs2_recover_local_quota_file 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: Re: [syzbot] KMSAN: uninit-value in ocfs2_recover_local_quota_file Author: tristmd@gmail.com #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>From 1ade1b62aa44f46691057222a65eebd8ce67f470 Mon Sep 17 00:00:00 2001 From: Tristan Madani Date: Fri, 17 Apr 2026 16:15:18 +0000 Subject: [PATCH] ocfs2: zero-initialize quota recovery bitmap allocation ocfs2_add_recovery_chunk() allocates rc_bitmap with kmalloc, leaving the bitmap uninitialized. Bits beyond the actual quota entries contain stale heap data, which KMSAN detects as uninit-value during recovery. Replace kmalloc with kzalloc to ensure the bitmap is zeroed. Reported-by: syzbot+7ea0b96c4ddb49fd1a70@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=7ea0b96c4ddb49fd1a70 Signed-off-by: Tristan Madani --- fs/ocfs2/quota_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c index 12cbb4f..f55810c 100644 --- a/fs/ocfs2/quota_local.c +++ b/fs/ocfs2/quota_local.c @@ -302,7 +302,7 @@ static int ocfs2_add_recovery_chunk(struct super_block *sb, if (!rc) return -ENOMEM; rc->rc_chunk = chunk; - rc->rc_bitmap = kmalloc(sb->s_blocksize, GFP_NOFS); + rc->rc_bitmap = kzalloc(sb->s_blocksize, GFP_NOFS); if (!rc->rc_bitmap) { kfree(rc); return -ENOMEM; -- 2.47.3