Re: [PATCH] loongarch: wire up memfd_secret system call
From: Huacai Chen
Date: Sat Jan 24 2026 - 23:03:44 EST
On Fri, Jan 9, 2026 at 4:21 PM Mike Rapoport <rppt@xxxxxxxxxx> wrote:
>
> On Fri, Jan 09, 2026 at 01:10:51PM +0800, Lain Fearyncess Yang wrote:
> > From: "Lain \"Fearyncess\" Yang" <fearyncess@xxxxxxx>
> >
> > LoongArch supports ARCH_HAS_SET_DIRECT_MAP, therefore wire up the
> > memfd_secret system call, which depends on it.
>
> LoongArch version of set_memory* does not support splitting of leaf PMD
> entries. Does LoongArch always use PTE-level mappings in the direct map?
No PMD level mappings now.
Huacai
>
> > Signed-off-by: Lain "Fearyncess" Yang <fearyncess@xxxxxxx>
> > ---
> > arch/loongarch/include/asm/unistd.h | 1 +
> > arch/loongarch/kernel/Makefile.syscalls | 6 +++---
> > tools/testing/selftests/mm/Makefile | 2 +-
> > 3 files changed, 5 insertions(+), 4 deletions(-)
>
> --
> Sincerely yours,
> Mike.