Re: [PATCH v4 09/19] mm/shmem_luo: Leave freeing the preserved state to finish()
From: David Matlack
Date: Mon Nov 23 2026 - 13:16:09 EST
On Fri Nov 20, 2026 at 3:55 AM PST, Pratyush Yadav wrote:
> On Wed, Nov 11 2026, David Matlack wrote:
[...]
> I think some of this is already fixed by [0]. It holds the folios until
> finish, but only in the success case. On failure to parse seals for
> example, it leaks them. Except, as Sashiko also points out, in
> memfd_luo_retrieve_folios() the folios are freed.
>
> I don't think this is strictly related to your series so can you please
> send something on top of [0] to fix these bugs, and perhaps drop this
> patch?
>
> [0] https://lore.kernel.org/kexec/20261110175855.2437084-3-pratyush@xxxxxxxxxx/
Sure, I'll drop this patch from v5 and send the fixes separately on top
of your series.