Re: [PATCH] ocfs2: use kzalloc for quota recovery bitmap allocation
From: Andrew Morton
Date: Fri Apr 24 2026 - 10:12:18 EST
On Sat, 18 Apr 2026 13:10:48 +0000 Tristan Madani <tristmd@xxxxxxxxx> 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@xxxxxxxxx