Backported memfd_create() system call

This commit is contained in:
Nathan
2025-04-07 00:23:38 -05:00
parent 3d1c55ae1e
commit eee847d17d
12 changed files with 258 additions and 1 deletions

View File

@@ -411,6 +411,7 @@
#define __NR_renameat2 (__NR_SYSCALL_BASE+382)
#define __NR_seccomp (__NR_SYSCALL_BASE+383)
#define __NR_getrandom (__NR_SYSCALL_BASE+384)
#define __NR_memfd_create (__NR_SYSCALL_BASE+385)
/*
* This may need to be greater than __NR_last_syscall+1 in order to

View File

@@ -394,6 +394,7 @@
CALL(sys_ni_syscall) /* CALL(sys_renameat2) */
CALL(sys_seccomp)
CALL(sys_getrandom)
/* 385 */ CALL(sys_memfd_create)
#ifndef syscalls_counted
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
#define syscalls_counted

View File

@@ -362,3 +362,4 @@
353 i386 renameat2 sys_ni_syscall
354 i386 seccomp sys_seccomp
355 i386 getrandom sys_getrandom
356 i386 memfd_create sys_memfd_create

View File

@@ -325,6 +325,7 @@
316 common renameat2 sys_ni_syscall
317 common seccomp sys_seccomp
318 common getrandom sys_getrandom
319 common memfd_create sys_memfd_create
#
# x32-specific system call numbers start at 512 to avoid cache impact