From: Andrew Morton <akpm@linux-foundation.org>
To: Tristan Madani <tristmd@gmail.com>
Cc: mark@fasheh.com, jlbec@evilplan.org, joseph.qi@linux.alibaba.com,
ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org,
syzbot+7ea0b96c4ddb49fd1a70@syzkaller.appspotmail.com
Subject: Re: [PATCH] ocfs2: use kzalloc for quota recovery bitmap allocation
Date: Fri, 24 Apr 2026 07:10:11 -0700 [thread overview]
Message-ID: <20260424071011.2ddf2d37f9cb5f992fdcfac4@linux-foundation.org> (raw)
In-Reply-To: <20260418131048.1052507-1-tristmd@gmail.com>
On Sat, 18 Apr 2026 13:10:48 +0000 Tristan Madani <tristmd@gmail.com> wrote:
> ocfs2 quota recovery allocates a bitmap buffer with kmalloc and does
> not fully initialize it. This can lead to use of uninitialized bits
> during quota recovery from a corrupted filesystem image.
>
> Use kzalloc instead to ensure the bitmap is zero-initialized.
AI review asks a question about the nearby code:
https://sashiko.dev/#/patchset/20260418131048.1052507-1-tristmd@gmail.com
prev parent reply other threads:[~2026-04-24 14:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-18 13:10 [PATCH] ocfs2: use kzalloc for quota recovery bitmap allocation Tristan Madani
2026-04-19 13:01 ` Joseph Qi
2026-04-24 14:10 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260424071011.2ddf2d37f9cb5f992fdcfac4@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=jlbec@evilplan.org \
--cc=joseph.qi@linux.alibaba.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark@fasheh.com \
--cc=ocfs2-devel@lists.linux.dev \
--cc=syzbot+7ea0b96c4ddb49fd1a70@syzkaller.appspotmail.com \
--cc=tristmd@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox