Re: [PATCH v3 5/7] mm/memfd_luo: fix physical address conversion in put_folios cleanup

From: Andrew Morton

Date: Thu Apr 02 2026 - 13:44:28 EST


On Thu, 02 Apr 2026 11:06:23 +0000 Pratyush Yadav <pratyush@xxxxxxxxxx> wrote:

> > Fix by converting PFN to physical address with PFN_PHYS() and adding
> > the !pfolio->pfn check, matching the pattern used elsewhere in this file.
> >
> > This issue was identified by the AI review.
> > https://sashiko.dev/#/patchset/20260323110747.193569-1-duanchenghao@xxxxxxxxxx
> >
> > Signed-off-by: Chenghao Duan <duanchenghao@xxxxxxxxxx>
>
> Reviewed-by: Pratyush Yadav <pratyush@xxxxxxxxxx>

Thanks.

> Andrew, can you please add:
>
> Fixes: b3749f174d68 ("mm: memfd_luo: allow preserving memfd")
> Cc: stable@xxxxxxxxxxxxxxx

Done.