freebsd-skq/sys/arm64/linux
Kyle Evans 5403f186a7 linuxolator: implement memfd_create syscall
This effectively mirrors our libc implementation, but with minor fudging --
name needs to be copied in from userspace, so we just copy it straight into
stack-allocated memfd_name into the correct position rather than allocating
memory that needs to be cleaned up.

The sealing-related fcntl(2) commands, F_GET_SEALS and F_ADD_SEALS, have
also been implemented now that we support them.

Note that this implementation is still not quite at feature parity w.r.t.
the actual Linux version; some caveats, from my foggy memory:

- Need to implement SHM_GROW_ON_WRITE, default for memfd (in progress)
- LTP wants the memfd name exposed to fdescfs
- Linux allows open() of an fdescfs fd with O_TRUNC to truncate after dup.
  (?)

Interested parties can install and run LTP from ports (devel/linux-ltp) to
confirm any fixes.

PR:		240874
Reviewed by:	kib, trasz
Differential Revision:	https://reviews.freebsd.org/D21845
2020-06-29 03:09:14 +00:00
..
linux_dummy.c linuxolator: implement memfd_create syscall 2020-06-29 03:09:14 +00:00
linux_genassym.c linuxulator: add stub arm64 linux_genassym.c 2019-09-11 17:29:44 +00:00
linux_locore.asm Implement the Linux/arm64 VDSO gettimeofday and clock_gettime 2020-02-08 13:35:56 +00:00
linux_machdep.c Add linux_madvise(2) instead of having Linux apps call the native 2020-06-20 18:29:22 +00:00
linux_proto.h Regen. 2020-06-27 14:43:29 +00:00
linux_ptrace.c Introduce arm64 linuxulator stubs 2018-06-18 19:34:34 +00:00
linux_support.s Introduce arm64 linuxulator stubs 2018-06-18 19:34:34 +00:00
linux_syscall.h Regen after r362440. 2020-06-20 18:31:02 +00:00
linux_syscalls.c Regen after r362440. 2020-06-20 18:31:02 +00:00
linux_sysent.c Regen. 2020-06-27 14:43:29 +00:00
linux_systrace_args.c Regen. 2020-06-27 14:43:29 +00:00
linux_sysvec.c Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
linux_vdso.lds.s Add stub arm64 linuxulator VDSO ldscript 2018-06-28 20:36:21 +00:00
linux.h Add proper types for linux message queue syscalls; mostly taken 2020-06-27 14:42:08 +00:00
Makefile sysent targets: further cleanup and deduplication 2020-01-18 20:37:45 +00:00
syscalls.conf
syscalls.master Add proper types for linux message queue syscalls; mostly taken 2020-06-27 14:42:08 +00:00