freebsd-src/sys
Kristof Provost 59a6666ec9 if_ovpn: cope with loops
User misconfiguration may lead to routing loops where we try to send the tunnel
packet into the tunnel. This eventually leads to stack overflows and panics.

Avoid this using if_tunnel_check_nesting(), which will drop the packet if we're
looping or we hit three layers of nested tunnels.

MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2024-05-13 12:11:06 +02:00
..
amd64 uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
arm uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
arm64 arm64: map kernel using large pages when page size is 16K 2024-05-12 18:22:38 -05:00
bsm
cam ctl_backend_block: Correct value of NVME nsdata nuse field 2024-05-10 09:13:40 -07:00
cddl
compat Revert linprocfs commits 2024-05-12 09:09:03 -06:00
conf kmod.mk use ${XARGS} 2024-05-10 12:05:05 -07:00
contrib Import device-tree files from Linux 6.8 2024-05-06 10:46:36 +02:00
crypto
ddb
dev usb: Remove uneeded revision verbosity from quirks list 2024-05-11 13:32:57 -06:00
dts dts: Bump the freebsd branding version to 6.8 2024-05-06 10:47:26 +02:00
fs devfs_allocv(): style 2024-05-12 04:13:00 +03:00
gdb
geom Remove final cross-reference to GBDE 2024-05-07 07:40:20 +00:00
gnu
i386 uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
isa
kern intr: Document how to get the interrupt frame 2024-05-10 15:41:36 -06:00
kgssapi
libkern
modules linux: Make module standalone-buildable 2024-05-11 16:35:54 -06:00
net if_ovpn: cope with loops 2024-05-13 12:11:06 +02:00
net80211 net80211: add new ciphers and RSN flags 2024-05-08 17:49:34 -07:00
netgraph
netinet ipfw: Fix a typo in a source code comment 2024-05-12 10:53:40 +02:00
netinet6 in6_rmx: remove unnecessary socketvar.h 2024-05-07 14:15:56 -07:00
netipsec
netlink
netpfil pf: always mark states as unlinked before detaching them 2024-05-08 13:19:05 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
riscv uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
rpc
security
sys Prepare the system for _FORTIFY_SOURCE 2024-05-13 00:23:50 -05:00
teken
tests
tools
ufs uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
vm cdev_pager_allocate(): ensure that the cdev_pager_ops ctr is called only once 2024-05-12 04:13:00 +03:00
x86 Increase IOAPIC_MAX_ID to 255 (from 254) 2024-05-10 15:40:18 -04:00
xdr
xen
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(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures