opnsense-src/sys
Alan Somers f1ec3bc06e fusefs: add more checks for buggy FUSE servers
* If a FUSE file system is NFS-exported (either by a kernel or userspace
  NFS server), then it must support FUSE_LOOKUP operations for ".".  But
  if the response reports a different nodeid than the request, that's
  very bad.  Fail the operation and warn the operator.

* In general, a FUSE file may have a distinct "nodeid" and "inode
  number".  But it the file system is NFS-exported (either by a kernel
  or userspace NFS server), then those two must match, because the NFS
  server will do VFS_VGET operations using the inode number.  If they
  don't match, warn the operator.

MFC after:	2 weeks
Sponsored by:	ConnectWise
Differential Revision: https://reviews.freebsd.org/D48471
2025-06-13 15:00:25 -06:00
..
amd64 vm: remove pa_index from the machine-independent layer 2025-06-13 13:23:28 -05:00
arm arm: fix build after _types.h changes 2025-06-12 01:38:00 +01:00
arm64 arm64 pmap: Simplify pmap_demote_l{2,3}c() 2025-06-13 12:31:53 -05:00
bsm New setcred() system call and associated MAC hooks 2024-12-16 15:42:39 +01:00
cam machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
cddl machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
compat linux: Fix usage of ptrace(PT_GET_SC_ARGS) 2025-06-13 19:19:59 +00:00
conf qat: add disable safe dc mode for QAT SPR devices 2025-06-06 13:42:58 +00:00
contrib machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +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 gve: Add support for 4k RX Buffers when using DQO queue formats 2025-06-13 18:53:51 +00: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: add more checks for buggy FUSE servers 2025-06-13 15:00:25 -06:00
gdb thread: Remove kernel stack swapping support, part 4 2024-07-29 01:40:22 +00:00
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 exterr: make SET_ERRORX() macros an expression evaluating to the errno 2025-06-13 22:39:55 +03: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 qat: move debugfs handling to separate file 2025-06-06 13:43:22 +00:00
net machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01: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 local blackholing 2025-06-13 22:53:42 +02: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 pf: fix !VIMAGE build 2025-06-09 20:19:04 -07: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 exterr: make SET_ERRORX() macros an expression evaluating to the errno 2025-06-13 22:39:55 +03:00
teken Typo: brig(h)tness 2024-09-11 08:35:46 +00:00
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: simplify code by using the SET_ERRNOX() values 2025-06-13 22:39:55 +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 sys: Index netlink/ files with the cscope target 2024-07-22 09:50:43 +00:00
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