opnsense-src/sys/compat/linux
Edward Tomasz Napierala 6d76adbb6d Rework linux accept(2). This makes the code flow easier to follow,
and fixes a bug where calling accept(2) could result in closing fd 0.

Note that the code still contains a number of problems: it makes
assumptions about l_sockaddr_in being the same as sockaddr_in,
the EFAULT-related code looks like it doesn't work at all, and the
socket type check is racy.  Those will be addressed later on;
I'm trying to work in small steps to avoid breaking one thing while
fixing another.

It fixes Redis, among other things.

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25461
2020-07-01 10:37:08 +00:00
..
check_error.d Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
check_internal_locks.d Linuxolator whitespace cleanup 2018-02-05 17:29:12 +00:00
linux.c linuxolator: implement memfd_create syscall 2020-06-29 03:09:14 +00:00
linux.h linux: reposition the comment for bsd_to_linux_bits/linux_to_bsd_bits 2020-06-29 17:47:00 +00:00
linux_common.c Make linux(4) create /dev/shm. Linux applications often expect 2019-11-06 20:53:33 +00:00
linux_common.h Our bsd_to_linux_sockaddr() and linux_to_bsd_sockaddr() functions 2019-05-13 17:48:16 +00:00
linux_dtrace.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
linux_emul.c Fix execution of linux binary from multithreaded non-Linux process. 2020-06-18 20:49:56 +00:00
linux_emul.h Implement PTRACE_O_TRACESYSGOOD. This makes Linux strace(1) work. 2019-05-19 12:58:44 +00:00
linux_errno.c Share Linux errno table with libsysdecode 2018-03-22 12:58:49 +00:00
linux_errno.inc Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
linux_event.c Don't use newlines with linux_msg(). No functional changes. 2020-06-11 14:57:30 +00:00
linux_event.h Linux epoll: Register events with zero event mask 2019-11-24 20:47:40 +00:00
linux_file.c linuxolator: implement memfd_create syscall 2020-06-29 03:09:14 +00:00
linux_file.h linuxolator: implement memfd_create syscall 2020-06-29 03:09:14 +00:00
linux_fork.c schedlock 1/4 2019-12-15 21:11:15 +00:00
linux_futex.c Don't use newlines with linux_msg(). No functional changes. 2020-06-11 14:57:30 +00:00
linux_futex.h linux: futex_mtx should follow futex_list 2019-10-18 12:25:33 +00:00
linux_getcwd.c cache: replace kern___getcwd with vn_getcwd 2020-02-01 20:38:38 +00:00
linux_ioctl.c Centralize compatability translation macros. 2020-04-14 20:30:48 +00:00
linux_ioctl.h Add support for the device statistics IOCTL, needed by the coming 2020-03-10 15:56:49 +00:00
linux_ipc.c Linux between 4.18 and 5.0 split IPC system calls. 2019-03-24 14:44:35 +00:00
linux_ipc.h Update syscall.master to 5.0. 2019-03-24 14:50:02 +00:00
linux_ipc64.h Linuxolator whitespace cleanup 2018-02-05 17:29:12 +00:00
linux_mib.c Add compat.linux.debug sysctl, to make it possible to silence down 2020-06-12 14:37:50 +00:00
linux_mib.h Add compat.linux.debug sysctl, to make it possible to silence down 2020-06-12 14:37:50 +00:00
linux_misc.c Make Linux uname(2) return x86_64 to 32-bit apps. This helps Steam. 2020-06-15 20:12:10 +00:00
linux_misc.h linuxulator: Map scheduler priorities to Linux priorities. 2020-03-01 13:12:04 +00:00
linux_mmap.c Implement an approximation of Linux MADV_DONTNEED semantics. 2020-06-25 20:30:30 +00:00
linux_mmap.h Add linux_madvise(2) instead of having Linux apps call the native 2020-06-20 18:29:22 +00:00
linux_persona.h Linuxolator whitespace cleanup 2018-02-05 17:29:12 +00:00
linux_signal.c Make linux(4) ignore SA_INTERRUPT. The zsh(1) binary from Bionic uses it. 2020-06-30 16:18:09 +00:00
linux_signal.h Rationalize license text on Linuxolator files 2018-03-23 14:39:34 +00:00
linux_socket.c Rework linux accept(2). This makes the code flow easier to follow, 2020-07-01 10:37:08 +00:00
linux_socket.h Make linux(4) support SO_PROTOCOL. Running Python test suite 2020-06-28 18:56:32 +00:00
linux_stats.c vfs: reimplement deferred inactive to use a dedicated flag (VI_DEFINACT) 2020-01-07 15:56:24 +00:00
linux_sysctl.c Quiet unused fn warning for linuxulator w/o legacy syscalls 2018-06-25 19:24:50 +00:00
linux_sysproto.h sys/compat: further adoption of SPDX licensing ID tags. 2017-11-27 15:13:23 +00:00
linux_time.c Add warnings for unsupported Linux clockids. 2020-06-19 19:33:06 +00:00
linux_timer.c Return EINVAL in case of incorrect sigev_signo value specified instead of panicing. 2015-12-26 09:09:49 +00:00
linux_timer.h Centralize compatability translation macros. 2020-04-14 20:30:48 +00:00
linux_uid16.c compat/linux: Remove obsoleted and somewhat confusing comments related to COMPAT_43. 2019-08-11 19:17:29 +00:00
linux_util.c Add compat.linux.debug sysctl, to make it possible to silence down 2020-06-12 14:37:50 +00:00
linux_util.h Add compat.linux.emul_path, so it can be set to something other 2019-12-16 20:07:04 +00:00
linux_vdso.c Fix the last few cases that grab without busy or valid. The grab functions must 2019-12-02 22:38:25 +00:00
linux_vdso.h Avoid using [LINUX_]SHAREDPAGE constant directly in the vdso code. 2017-07-30 21:24:20 +00:00
linux_videodev2_compat.h
linux_videodev_compat.h
stats_timing.d Linuxolator whitespace cleanup 2018-02-05 17:29:12 +00:00
trace_futexes.d Linuxolator whitespace cleanup 2018-02-05 17:29:12 +00:00