opnsense-src/sys
David Heidelberg c30fff2e2f Implement vmemdup_{array}_user
This is what FreeBSD now does for memdup_user and memdup_array_user
(which is wrong for memdup, but correct for vmemdup).

The amdgpu DRM driver started this in Linux ~6.12.86+

Reviewed by:	wulf
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D57444

(cherry picked from commit 302c6d25da6907ec762ff8937fa86d380743b000)
2026-09-23 12:01:16 +02:00
..
amd64 Revert "amd64 GENERIC: Switch uart hints from "isa" to "acpi"" 2026-06-19 09:47:29 +02:00
arm bus: Document special ranges of IVARs 2026-09-23 10:52:48 +02:00
arm64 sys: Use is_pci_device instead of direct comparisons to devclasses 2026-09-23 11:30:15 +02:00
bsm
cam cam (scsi): silence "Medium not present" SCSI sense logging for removable media 2026-04-22 12:48:35 -04:00
cddl dtrace: Improve dmesg kernel message prefix 2026-05-07 15:16:38 -07:00
compat Implement vmemdup_{array}_user 2026-09-23 12:01:16 +02:00
conf LinuxKPI: page pool updates and add to the build 2026-09-23 11:55:49 +02:00
contrib LinuxKPI: 802.11: add support for suspend/resume 2026-09-23 11:33:37 +02:00
crypto crypto/openssl: update artifacts to match 3.5.7 release 2026-07-06 11:08:04 +02:00
ddb
dev pci: Expose PME support by power state 2026-09-23 12:01:02 +02:00
dts
fs p9fs: Remove the "cancel" transport method 2026-07-09 08:58:45 +02:00
gdb
geom glabel(8): Fix debug message for already existing labels 2026-04-22 11:30:27 +02:00
gnu
i386 padlock: Restore padlock_rng to the amd64 build 2026-05-28 15:15:46 -07:00
isa bus: Document special ranges of IVARs 2026-09-23 10:52:48 +02:00
kern posixshm: Fix a TOCTOU race in the FIOSSHMLPGCNF handler 2026-08-26 10:16:56 +02:00
kgssapi kgss: de-virtualize kgss_gssd_handle 2026-04-27 09:11:51 -07:00
libkern libkern: Add libcalls for ffs and __ffsdi2 2026-04-24 11:26:39 -04:00
modules LinuxKPI: page pool updates and add to the build 2026-09-23 11:55:49 +02:00
net routing: Use a better error number in sysctl_fibs() 2026-09-23 09:01:46 +02:00
net80211 net80211: define a type for rssi values 2026-09-23 09:08:44 +02:00
netgraph bluetooth: remove redundant 0x0bda entries from ng_ubt_rtl, rtlbtfw 2026-04-28 05:25:47 +03:00
netinet manpages: Fix author e-mail address formatting 2026-09-23 09:07:21 +02:00
netinet6 bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active 2026-09-14 07:30:53 +02:00
netipsec netipsec: Implement pr_disconnect for PF_KEY sockets 2026-09-11 09:43:09 +02:00
netlink Revert "sys/socket.h: Fix AF_MAX" 2026-08-12 19:25:57 +02:00
netpfil pf: fix securelevel off-by-one 2026-09-11 09:33:57 +02:00
netsmb
nfs nfs_diskless: Fix handling of nfsuserd case for NFSv4 2026-04-13 20:26:32 -07:00
nfsclient
nfsserver
nlm
ofed RDMA: Fix link active_speed size 2026-07-06 11:07:12 +02:00
opencrypto OCF: Add a fail point to inject EBADMSG decryption errors 2026-08-03 12:53:17 +02:00
powerpc pci: Reconcile MPS before attaching PCIe devices 2026-09-23 12:01:01 +02:00
riscv sys: Declare 'end' as an extern char[] 2026-04-24 11:43:38 -04:00
rpc rpcsec_tls: Avoid a socket reference underflow in rpctls_server() 2026-07-06 10:29:20 +02:00
security mac_seeotheruids: allow specificgid to be a list of groups 2026-04-28 23:17:06 -05:00
sys sys/cdefs.h: Introduce __maybe_unused attribute 2026-09-23 11:28:12 +02:00
teken manpages: Fix author e-mail address formatting 2026-09-23 09:07:21 +02:00
tests
tools sound: Retire unused emu10k1-mkalsa.sh 2026-03-31 11:54:44 +02:00
ufs renameat2(2): implement AT_RENAME_NOREPLACE flag 2026-03-10 13:41:31 +02:00
vm posixshm: Fix handling of sendfile() with largepage objects 2026-07-06 10:29:39 +02:00
x86 sys: Use is_pci_device instead of direct comparisons to devclasses 2026-09-23 11:30:15 +02:00
xdr
xen bus: Document special ranges of IVARs 2026-09-23 10:52:48 +02:00
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(4)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures