Re: [PATCH v3 01/18] memfd: export memfd_get_seals()

From: Ankit Soni

Date: Mon Jun 15 2026 - 01:14:56 EST


On Sun, Jun 14, 2026 at 11:37:11PM +0000, Samiullah Khawaja wrote:
> memfd_get_seals() is used by iommufd during preservation to make sure
> that he preserved memfd was sealed when it was mapped into iommufd.

Hi,
Minor nit s/he/the

> Since iommufd can be built as a module, export memfd_get_seals() to
> avoid linker error.
>
> Cc: Hugh Dickins <hughd@xxxxxxxxxx>
> Cc: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Cc: linux-mm@xxxxxxxxx
>

Reviewed-by: Ankit Soni <Ankit.Soni@xxxxxxx>

> Signed-off-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>
> ---
> mm/memfd.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/mm/memfd.c b/mm/memfd.c
> index fb425f4e315f..1f45fa6d4e9c 100644
> --- a/mm/memfd.c
> +++ b/mm/memfd.c
> @@ -315,6 +315,7 @@ int memfd_get_seals(struct file *file)
>
> return seals ? *seals : -EINVAL;
> }
> +EXPORT_SYMBOL_GPL(memfd_get_seals);
>
> long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg)
> {
> --
> 2.54.0.1136.gdb2ca164c4-goog
>