opnsense-src/sys
Andrew Turner ea8dc498aa arm64: Create an L3 table to limit permissions
When building a 4k page kernel we use 2M blocks to map the kernel
contents. As the .text section may not end on a 2M aligned address
we need to split one block into level 3 pages and pad the end of the
section to an appropriate boundary.

With both these changes we can then mapjust the code as executable.
While here also map it as read-only as none ofthis shouldbe written
to directly.

Reviewed by:	alc
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45064
2025-06-17 13:48:22 +01:00
..
amd64 vm: remove pa_index from the machine-independent layer 2025-06-13 13:23:28 -05:00
arm arm pmap: fix CTASSERT 2025-06-13 16:53:59 -05:00
arm64 arm64: Create an L3 table to limit permissions 2025-06-17 13:48:22 +01:00
bsm New setcred() system call and associated MAC hooks 2024-12-16 15:42:39 +01:00
cam ufshci: Introduce the ufshci(4) driver 2025-06-15 00:08:56 -06:00
cddl machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
compat ptrace: Rename the internal command range constants 2025-06-16 13:22:15 +00:00
conf arm64: Create an L3 table to limit permissions 2025-06-17 13:48:22 +01:00
contrib openzfs: Add a _WANT_ZNODE that defines struct znode / znode_t for userspace 2025-06-16 22:34:12 +01:00
crypto openssl: update ASM and version info for 3.0.16 import 2025-03-13 23:42:02 -07:00
ddb machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
dev ufshci: Introduce the ufshci(4) driver 2025-06-15 00:08:56 -06:00
dts dts: fix RT-AC58U to match the updated device tree name/alias changes. 2025-04-07 20:45:40 -07:00
fs fusefs: First take on exterrorizing 2025-06-17 09:11:34 +03:00
gdb
geom machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
gnu
i386 machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
isa machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
kern ptrace: Rename the internal command range constants 2025-06-16 13:22:15 +00:00
kgssapi crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
libkern machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
modules nvme.ko: Don't include nvme_util.c 2025-06-16 13:56:52 -04:00
net bridge: Remove a redundant assignment of if_type 2025-06-16 22:35:40 +08:00
net80211 machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
netgraph ng_iface(4): Remove a redundant assignment of if_type 2025-06-13 18:07:18 +08:00
netinet tcp: Fix the SO_REUSEPORT_LB check 2025-06-17 11:22:26 +00:00
netinet6 udp: fix local blackholing 2025-06-13 22:59:50 +02:00
netipsec machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
netlink machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
netpfil pfsync: Remove a redundant assignment of if_type 2025-06-16 22:12:03 +08:00
netsmb sockets: garbage collect SB_NOINTR 2025-02-02 22:38:18 -08:00
nfs
nfsclient
nfsserver
nlm nlm: set vnet(9) context in the NLM syscall 2025-02-01 01:00:26 -08:00
ofed ofed: jiffies is unsigned long 2025-04-29 13:53:40 +00:00
opencrypto crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
powerpc vm: remove pa_index from the machine-independent layer 2025-06-13 13:23:28 -05:00
riscv vm: remove pa_index from the machine-independent layer 2025-06-13 13:23:28 -05:00
rpc machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
security machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
sys fusefs: First take on exterrorizing 2025-06-17 09:11:34 +03:00
teken
tests machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
tools vnode_if: Remove some branching around SDT probes in VOP wrappers 2025-05-22 14:37:49 +00:00
ufs ufs_aclcheck(): accurately dereference vp->v_mount 2025-03-22 01:40:00 +02:00
vm vm/vm_mmap.c: use EXTERROR() 2025-06-16 18:12:05 +03:00
x86 machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
xdr xdr: provide x_putmbuf method for xdrmem 2025-02-01 01:00:25 -08:00
xen machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01: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