opnsense-src/sys/compat/linux
Gleb Smirnoff 0d9ef08e09 netlink: do not pass writer to the Linux translation layer
Another flaw in the KPI between Netlink and Linuxulator is that we pass
the on-stack writer structure.  This structure belongs to someone, that we
can't even identify inside nl_send() and we shall not tamper it.  The
Linux translation layer needs a writer, because it actually composes a new
message.  Instead of reusing someone's writer and trying to repair it in
all possible cases where translation process tampers the writer, just let
Linuxulator use its own writer.  See also b977dd1ea5.

PR:			288892
Reviewed by:		melifaro
Differential Revision:	https://reviews.freebsd.org/D51928
2025-08-22 09:23:38 -07:00
..
check_error.d
check_internal_locks.d
linux.c
linux.h linux.h: don't redefine lower_32_bits if already defined 2024-10-15 04:50:44 -06:00
linux_common.c
linux_common.h
linux_dtrace.h
linux_dummy.c linux: Add inotify support 2025-07-04 14:42:34 +00:00
linux_elf.c
linux_elf.h
linux_elf32.c
linux_elf64.c
linux_emul.c
linux_emul.h
linux_errno.c
linux_errno.h
linux_errno.inc
linux_event.c
linux_event.h
linux_file.c kern: allow kern_shm_open2 of an anonymous preconstructed shmfd 2025-07-26 16:31:40 -05:00
linux_file.h linux: Add inotify support 2025-07-04 14:42:34 +00:00
linux_fork.c cpu_set_upcall / linux_clone_thread: Remove calls to cpu_thread_clean 2025-01-03 11:03:08 -05:00
linux_fork.h
linux_futex.c umtx: Add a helper for unlocked umtxq_busy() calls 2025-02-24 21:34:51 +00:00
linux_futex.h
linux_getcwd.c
linux_ioctl.c linux: support IUTF8 2024-10-21 08:22:50 +00:00
linux_ioctl.h linux: support IUTF8 2024-10-21 08:22:50 +00:00
linux_ipc.c
linux_ipc.h
linux_ipc64.h
linux_mib.c
linux_mib.h
linux_misc.c kern: add a new ucred flag for groups having been set 2025-07-31 19:50:47 -05:00
linux_misc.h sys: Add AT_HWCAP3 and AT_HWCAP4 2025-06-24 17:26:40 +01:00
linux_mmap.c
linux_mmap.h
linux_netlink.c netlink: do not pass writer to the Linux translation layer 2025-08-22 09:23:38 -07:00
linux_persona.h
linux_ptrace.c linux: Fix usage of ptrace(PT_GET_SC_ARGS) 2025-06-13 19:19:59 +00:00
linux_rseq.c
linux_siginfo.h
linux_signal.c
linux_signal.h
linux_socket.c linux: Handle IP_RECVTOS cmsg type 2025-03-10 11:12:36 -07:00
linux_socket.h
linux_stats.c linuxulator: ignore AT_NO_AUTOMOUNT for all stat variants 2024-09-24 13:58:42 -04:00
linux_sysctl.c
linux_time.c Redefine CLOCK_BOOTTIME to alias CLOCK_MONOTONIC, not CLOCK_UPTIME 2024-05-31 08:45:02 -06:00
linux_time.h linux: Export linux_convert_l_sigevent 2024-05-23 13:40:46 -06:00
linux_timer.c linux: Export linux_convert_l_sigevent 2024-05-23 13:40:46 -06:00
linux_uid16.c kern: add a new ucred flag for groups having been set 2025-07-31 19:50:47 -05:00
linux_util.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
linux_util.h
linux_vdso.c
linux_vdso.h
linux_vdso_gtod.inc
linux_vdso_inc.S linux: Allows writing to the vdso from the kernel 2024-06-06 09:07:49 +00:00
linux_videodev2_compat.h
linux_videodev_compat.h
linux_xattr.c linux(4): Fix typo xatrr in function name 2024-11-29 14:38:35 -07:00
stats_timing.d
trace_futexes.d