freebsd-dev/sys
Zhenlei Huang c941b82e1c geom_linux_lvm: Check the offset of physical volume header
The LVM label is stored on any of the first four sectors, and the
PV (physical volume) header is stored within the same sector following
the LVM label. The current implementation does not fully check the
offset of PV header, when attaching a bad formatted LVM PV the kernel
may crash due to out-of-bounds memory read.

PR:	266562
Reviewed by:	jhb
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D36773
2023-08-22 17:20:10 +08:00
..
amd64 linux(4): Replace linux32_copyiniov by freebsd32_copyiniov 2023-08-20 10:36:32 +03:00
arm sys: Remove SND_DECLARE_FILE 2023-08-18 13:05:12 -07:00
arm64 Regen for writev syscall 2023-08-20 10:36:31 +03:00
bsm sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cam sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
cddl sys: Remove $FreeBSD$: one-line catalog 2023-08-16 11:55:22 -06:00
compat mt76: update driver from upstream 2023-08-21 01:34:03 +00:00
conf Add atopcase, the Apple HID over SPI input driver 2023-08-20 12:53:32 +03:00
contrib rtw89: update driver from upstream 2023-08-21 01:35:29 +00:00
crypto Delete trailing whitespace from $FreeBSD$ removal 2023-08-21 19:37:28 -06:00
ddb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
dev e6000sw: support building without FDT 2023-08-21 17:26:17 +02:00
dts sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
fs Remove my middle name. 2023-08-17 15:08:30 +02:00
gdb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom geom_linux_lvm: Check the offset of physical volume header 2023-08-22 17:20:10 +08:00
gnu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
i386 Regen for writev syscall 2023-08-20 10:36:31 +03:00
isa sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
kern pctrie: change for vm_radix compatibility 2023-08-21 12:28:51 -05:00
kgssapi sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
libkern sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
modules rtw89: update driver from upstream 2023-08-21 01:35:29 +00:00
net sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
net80211 sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netgraph sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
netinet sctp: fix a warning 2023-08-19 13:24:02 +02:00
netinet6 sctp: cleanup cdefs.h include 2023-08-18 15:25:34 +02:00
netipsec sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netlink sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netpfil pf: enable the syncookie feature for IPv6 2023-08-21 13:19:06 +02:00
netsmb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfsclient sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nfsserver sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nlm sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ofed sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
opencrypto sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
powerpc intr: merge interrupt table uses of MAXCOMLEN into INTRNAME_LEN 2023-08-17 18:10:02 -04:00
riscv riscv db_trace: Ensure trapframe pointer is suitably aligned. 2023-08-21 21:00:26 -07:00
rpc sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
security sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sys pctrie: change for vm_radix compatibility 2023-08-21 12:28:51 -05:00
teken sys: Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:06 -06:00
tests sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
tools sys: Remove $FreeBSD$: two-line lua tag 2023-08-16 11:55:27 -06:00
ufs sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
vm vm_map.c: fix syntax 2023-08-18 16:37:16 +03:00
x86 x86: handle domains with no CPUs usable for intr delivery 2023-08-21 15:52:10 -04:00
xdr sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xen sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
Makefile sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
README.md sys/README.md: Add a section for documentation 2023-08-03 11:07:41 -03:00

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