freebsd-src/sys
Zhenlei Huang 242fa308f3 carp: Explicitly mark tunnable net.inet.carp.allow with CTLFLAG_NOFETCH
With recent change 110113bc08, a vnet tunable can be initialized when
there is a corresponding kernel environment variable unless it is marked
with the flag CTLFLAG_NOFETCH.

The initialization may happen during early boot(linker preload), at that
time vnet0 has not been created. The hander carp_allow_sysctl() for the
tunable net.inet.carp.allow requires vnet, thus invoking it during early
boot will cause kernel panic.

The tunnable is initialized by vnet sysinit routine ipcarp_sysinit() so
let's just mark it with flag CTLFLAG_NOFETCH.

No functional change intended.

Fixes:		110113bc08 sysctl(9): Enable vnet sysctl variables to be loader tunable
MFC after:	2 week
Differential Revision:	https://reviews.freebsd.org/D41525
2023-09-09 16:10:32 +08:00
..
amd64 linux(4): Deduplicate mmap2 2023-09-05 21:16:39 +03:00
arm arm: Add a userspace physical timer check 2023-09-01 10:49:18 +01:00
arm64 arm64: Add TCR register masks 2023-09-08 14:31:26 +01:00
bsm timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
cam cam/scsi_da: Bump deprecation one release. 2023-08-23 22:34:41 -06:00
cddl dtrace: Fix a kernel panic in printm() 2023-09-06 10:00:59 -04:00
compat kern: Globally define abs64 2023-09-08 09:44:06 +02:00
conf arm64: start defining a std.apple configuration 2023-09-08 00:53:51 -05:00
contrib iwlwifi/LinuxKPI: 802.11: update ieee80211_request_smps() 2023-09-05 21:14:25 +00:00
crypto armv8_crypto: fix recursive fpu_kern_enter call 2023-09-01 10:56:58 +01:00
ddb
dev cxgbe t4_tls: Call t4_rcvd_locked from do_rx_tls_cmp 2023-09-08 16:31:38 -07:00
dts
fs vfs: copy_file_range() between multiple mountpoints of the same fs type 2023-09-06 14:28:23 +02:00
gdb
geom geom_linux_lvm: Check the offset of physical volume header 2023-08-22 17:20:10 +08:00
gnu
i386 linux(4): Deduplicate mmap2 2023-09-05 21:16:39 +03:00
isa
kern kernel linker: Eliminate unneeded vnet propagation 2023-09-09 16:06:24 +08:00
kgssapi
libkern
modules rtw88: temporary disconnect from build 2023-09-05 21:13:19 +00:00
net Assert that ifnet_detach_sxlock is held where needed. 2023-09-08 10:06:11 +00:00
net80211
netgraph
netinet carp: Explicitly mark tunnable net.inet.carp.allow with CTLFLAG_NOFETCH 2023-09-09 16:10:32 +08:00
netinet6
netipsec
netlink
netpfil pf: mark removed connections within a multihome association as shutting down 2023-09-07 19:05:01 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed ofed: mask seq_num identifier to occupy only 3 bytes 2023-08-22 16:09:13 -07:00
opencrypto
powerpc Add cpu_sync_core() 2023-08-23 03:02:21 +03:00
riscv riscv: Print stval in dump_regs for fatal exceptions 2023-09-08 16:35:59 -07:00
rpc
security mac_ipacl: Use IfAPI 2023-08-25 12:50:39 -04:00
sys Move kern_extattr_* prototypes to <sys/syscallsubr.h> 2023-09-08 16:36:28 -07:00
teken
tests
tools pccarddevs2h.awk: Remove 2023-08-25 15:12:44 -06:00
ufs
vm add pmap_active_cpus() 2023-08-23 03:02:21 +03:00
x86 x86: Introduce APIC ID limit by default on AMD hardware 2023-08-29 13:25:30 -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