[PATCH] loongarch: wire up memfd_secret system call
Huacai Chen
chenhuacai at kernel.org
Sat Jan 24 20:03:25 PST 2026
On Fri, Jan 9, 2026 at 4:21 PM Mike Rapoport <rppt at kernel.org> wrote:
>
> On Fri, Jan 09, 2026 at 01:10:51PM +0800, Lain Fearyncess Yang wrote:
> > From: "Lain \"Fearyncess\" Yang" <fearyncess at aosc.io>
> >
> > 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 at aosc.io>
> > ---
> > 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.
More information about the linux-riscv
mailing list