HardenedBSD/sys
Gleb Smirnoff 2f5a315b30 linux: require vnet(9) context in ifname_bsd_to_linux_name()
This function is used by netlink(9) only.  The netlink(9) taskqueue thread
runs in the vnet of the socket whose request the thread is processing
right now.  This is a correct vnet and resetting it to vnet0 is incorrect.
If the function is to be used by any other caller in addition to
netlink(9), it would be caller's responsiblity to provide correct vnet(9).

Reviewed by:		melifaro, dchagin
Differential Revision:	https://reviews.freebsd.org/D44191
PR:			277286
2024-03-03 12:56:58 -08:00
..
amd64 ath(4): always enable 11n 2024-02-22 22:34:17 +00:00
arm conf: deduplicate dwmmc config logic 2024-02-27 18:10:14 -04:00
arm64 arm64: Fix typo in pagetable_l0_ttbr0_bootstrap symbol name 2024-03-01 10:37:18 -08:00
bsm
cam CTL: Drop Format Device and Rigid Disk Geometry mode pages 2024-02-27 13:28:44 -05:00
cddl
compat linux: require vnet(9) context in ifname_bsd_to_linux_name() 2024-03-03 12:56:58 -08:00
conf kernel: Sync ldscript files wrt gnu.attributes and .note.GNU-stack 2024-02-29 09:30:37 -07:00
contrib ice_ddp: Update package to 1.3.36.0 2024-02-20 21:13:18 -08:00
crypto
ddb
dev nvme: Report only the unknown bits 2024-03-01 16:04:27 -07:00
dts
fs fs/msdosfs fatblock: use ulmin() rather than min() 2024-02-23 19:37:52 +02:00
gdb
geom
gnu
i386 ath(4): always enable 11n 2024-02-22 22:34:17 +00:00
isa
kern getblkx(9): be more tolerant but also strict with the buffer size checks 2024-03-02 07:02:55 +02:00
kgssapi
libkern
modules Import the kernel parts of bhyve/arm64 2024-02-21 18:55:32 +00:00
net pf: convert kill/clear state to use netlink 2024-02-28 23:26:18 +01:00
net80211
netgraph
netinet HTPS has actually three states not two so the macro needs to account for that. 2024-03-01 15:21:15 -05:00
netinet6
netipsec ipsec esp: avoid dereferencing freed secasindex 2024-02-26 16:27:46 +02:00
netlink netlink: add bool type support 2024-02-28 23:26:18 +01:00
netpfil pf: support if-bound with reply-to 2024-03-01 09:39:43 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc powerpc: Bump maximum number of FDT reserved mem entries 2024-02-28 22:01:15 -05:00
riscv riscv: add starfive kernelconf template 2024-02-27 18:10:14 -04:00
rpc
security
sys sys/mount.h: align values of MNTK_XXX flags 2024-03-03 07:15:12 +02:00
teken
tests
tools lib{c,sys}: expose _getlogin consistently 2024-02-29 19:46:33 +00:00
ufs
vm
x86 x86/ucode: add support for early loading of CPU ucode on AMD. 2024-02-22 10:04:31 -08:00
xdr
xen x86/xen: introduce non-hypercall based emergency print 2024-02-22 11:08:03 +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(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures