opnsense-src/sys/kern
Zhenlei Huang 894efae09d sysctl(9): Enable vnet sysctl variables to be loader tunable
Complete phase two of 3da1cf1e88.

In 3da1cf1e88, the meaning of the flag CTLFLAG_TUN is extended to
automatically check if there is a kernel environment variable which
shall initialize the SYSCTL during early boot. It works for all SYSCTL
types both statically and dynamically created ones, except for the
SYSCTLs which belong to VNETs.

This change extends the meaning further, to allow it also works for
the SYSCTLs which belong to VNETs. A typical usage is
```
VNET_DEFINE_STATIC(int, foo) = 0;
SYSCTL_INT(_net, OID_AUTO, foo, CTLFLAG_RWTUN | CTLFLAG_VNET,
    &VNET_NAME(foo), 0, "Description of the foo loader tunable");
```

Note that the implementation has a limitation. It behaves the same way
as that of non-vnet loader tunables. That is, after the kernel or modules
being initialized, any changes (e.g. via kenv) to kernel environment
variable will not affect the corresponding vnet variable of subsequently
created VNETs. To overcome it, we can use TUNABLE_XXX_FETCH to fetch
the kernel environment variable into those vnet variables during vnet
constructing.

This change will fix the following SYSCTLs those belong to VNETs and
have CTLFLAG_TUN flag:
```
net.add_addr_allfibs
net.bpf.optimize_writers
net.inet.tcp.fastopen.ccache_buckets
net.link.bridge.inherit_mac
net.link.bridge.ipfw_arp
net.link.bridge.log_stp
net.link.bridge.pfil_bridge
net.link.bridge.pfil_local_phys
net.link.bridge.pfil_member
net.link.bridge.pfil_onlyip
net.link.lagg.default_use_flowid
net.link.lagg.default_use_numa
net.link.lagg.default_flowid_shift
net.link.lagg.lacp.debug
net.link.lagg.lacp.default_strict_mode
```

Although the following vnet SYSCTLs have CTLFLAG_TUN flag, theirs
values are re-fetched via TUNABLE_XXX_FETCH, thus are not affected
by this change.
```
net.inet.ip.reass_hashsize
net.inet.tcp.hostcache.cachelimit
net.inet.tcp.hostcache.hashsize
net.inet.tcp.hostcache.bucketlimit
net.inet.tcp.syncache.bucketlimit
net.inet.tcp.syncache.cachelimit
net.inet.tcp.syncache.hashsize
net.key.spdcache.maxentries
net.key.spdcache.threshold
```

In memoriam:	hselasky
Discussed with:	hselasky, glebius
Fixes:		3da1cf1e88 Extend the meaning of the CTLFLAG_TUN flag ...
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D39638

(cherry picked from commit 110113bc086f5df1a9b6547edb1ab0cec698c55c)
2025-01-24 23:35:49 +08:00
..
bus_if.m newbus: Add a set of bus resource helpers for nexus-like devices 2024-01-03 12:47:08 -08:00
clock_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
cpufreq_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
device_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
firmw.S sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
genassym.sh sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
genoffset.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
genoffset.sh sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
imgact_aout.c sysentvec: add SV_SIGSYS flag 2023-10-09 06:24:31 +03:00
imgact_binmisc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
imgact_elf.c kernel: Clarify kern.elfNN.nxstack sysctl description 2025-01-07 13:48:32 -05:00
imgact_elf32.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
imgact_elf64.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
imgact_shell.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
init_main.c Open-code proc_set_cred_init() 2025-01-16 19:06:46 +01:00
init_sysent.c Regen 2024-10-05 10:08:56 +03:00
kern_acct.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_alq.c alq, siftr: add panic/debugger checks to shutdown hooks 2023-12-08 18:02:44 -04:00
kern_boottrace.c boottrace: Stop checking for failures from realloc(M_WAITOK) 2024-09-30 12:44:13 +08:00
kern_clock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_clocksource.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_condvar.c ktrace: Fix the build when options KTRACE is not configured 2024-03-29 09:53:05 -04:00
kern_conf.c Giant: Postpone removal of Giant-locked drivers until 15 2023-11-02 00:22:22 +08:00
kern_cons.c vt/sc: retire logic to select vt(4) by default for UEFI boot 2024-08-01 12:10:26 -04:00
kern_context.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_cpu.c cpufreq: Use a real device_probe routine 2024-11-30 21:46:04 -05:00
kern_cpuset.c ktrace: Record cpuset violations with KTR_CAPFAIL 2024-05-11 18:57:44 -05:00
kern_ctf.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
kern_descrip.c stat(2): add st_filerev 2025-01-23 11:46:57 +02:00
kern_devctl.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
kern_dtrace.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_dump.c kerneldump: fix incorrect SETSIZE to BIT_COPY_STORE_REL when livedump 2024-11-30 06:53:49 +00:00
kern_environment.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_et.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_event.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
kern_exec.c ktrace: Record namei violations with KTR_CAPFAIL 2024-05-11 18:57:44 -05:00
kern_exit.c cred: proc_set_cred(), proc_unset_cred(): Update user's process count 2025-01-16 19:06:59 +01:00
kern_fail.c kern_fail: Stop checking for failures from fp_malloc(M_WAITOK) 2024-09-30 12:44:13 +08:00
kern_ffclock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_fork.c cred: proc_set_cred(), proc_unset_cred(): Update user's process count 2025-01-16 19:06:59 +01:00
kern_hhook.c hhook: Sprinkle const qualifiers where appropriate 2024-10-08 12:44:54 +08:00
kern_idle.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_intr.c ithread: Improve synchronization in ithread_destroy() 2024-08-20 13:27:05 +00:00
kern_jail.c jail: Avoid a potential use-after-free when destroying jails 2025-01-20 00:26:43 +00:00
kern_kcov.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_khelp.c khelp: Sprinkle const qualifiers where appropriate 2024-10-08 12:44:54 +08:00
kern_kthread.c kthread: Set *tdptr earlier in kproc_kthread_add() 2024-05-02 09:25:10 -04:00
kern_ktr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_ktrace.c ktrace: Fix uninitialized memory disclosure 2025-01-20 22:08:45 +00:00
kern_linker.c sysctl(9): Enable vnet sysctl variables to be loader tunable 2025-01-24 23:35:49 +08:00
kern_lock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_lockf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_lockstat.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_loginclass.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_malloc.c kern_malloc: fold free and zfree together into one __always_inline func 2024-09-28 10:35:12 +00:00
kern_mbuf.c mb_unmapped_to_ext(): return error code on error 2025-01-20 04:40:09 +02:00
kern_membarrier.c Add membarrier(2) 2023-08-23 03:02:21 +03:00
kern_mib.c kernel: Make some compile time constant variables const 2024-09-20 18:04:02 +08:00
kern_module.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_mtxpool.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_mutex.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_ntptime.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_osd.c osd: Constify signature of osd_register() 2025-01-16 19:06:52 +01:00
kern_physio.c uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-11-30 08:55:57 -05:00
kern_pmc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_poll.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_priv.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_proc.c vm_object: do not assume that un_pager.devp.dev is cdev 2024-11-13 01:19:18 +02:00
kern_procctl.c ktrace: Record signal violations with KTR_CAPFAIL 2024-05-11 18:57:44 -05:00
kern_prot.c proc_set_cred(): Fix compilation of GENERIC-NODEBUG 2025-01-16 19:07:01 +01:00
kern_racct.c kern_racct.c: Don't compile if RACCT undefined 2024-02-27 11:37:33 +01:00
kern_rangelock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_rctl.c kern_rctl.c: Minimal includes when RCTL not defined 2024-02-27 11:37:23 +01:00
kern_resource.c sysctl: add KERN_PROC_RLIMIT_USAGE 2024-10-05 10:08:56 +03:00
kern_rmlock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_rwlock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_sdt.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
kern_sema.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_sendfile.c Abstract UIO allocation and deallocation. 2024-03-08 23:27:20 -05:00
kern_sharedpage.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_shutdown.c Annotate 'rebooting' with __read_mostly 2024-02-20 09:27:03 +01:00
kern_sig.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
kern_switch.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_sx.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_synch.c ktrace: Fix the build when options KTRACE is not configured 2024-03-29 09:53:05 -04:00
kern_syscalls.c syscalls: fix missing SIGSYS for several ENOSYS errors 2023-10-09 06:24:31 +03:00
kern_sysctl.c sysctl(9): Enable vnet sysctl variables to be loader tunable 2025-01-24 23:35:49 +08:00
kern_tc.c timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
kern_thr.c kern_thr.c: normalize includes 2024-04-30 03:48:09 +03:00
kern_thread.c kern_thread.c: remove unneeded include of sys/param.h 2024-04-30 03:48:09 +03:00
kern_time.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_timeout.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_tslog.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_ubsan.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_umtx.c umtx: handle allocation failire in umtx_pi_alloc() 2025-01-12 10:47:03 +01:00
kern_uuid.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_vnodedumper.c livedump: Silence KASAN and KMSAN when livedumping 2024-12-13 01:34:14 +00:00
kern_xxx.c compat_freebsd4: Add const qualifier to the local variable s inside function freebsd4_uname() 2024-05-28 12:21:20 +08:00
ksched.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
link_elf.c sysctl(9): Enable vnet sysctl variables to be loader tunable 2025-01-24 23:35:49 +08:00
link_elf_obj.c sysctl(9): Enable vnet sysctl variables to be loader tunable 2025-01-24 23:35:49 +08:00
linker_if.m sysctl(9): Enable vnet sysctl variables to be loader tunable 2025-01-24 23:35:49 +08:00
Make.tags.inc sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
Makefile makesyscalls: don't make syscall.mk by default 2023-12-13 23:07:06 +00:00
md4c.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
md5c.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
msi_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
p1003_1b.c sched_setscheduler(2): Change realtime privilege check 2024-02-20 09:27:08 +01:00
pic_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
posix4_mib.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sched_4bsd.c sched: Simplify sched_lend_user_prio_cond() 2024-05-09 22:26:21 +09:00
sched_ule.c sched: Simplify sched_lend_user_prio_cond() 2024-05-09 22:26:21 +09:00
serdev_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
stack_protector.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_acl_nfs4.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_acl_posix1e.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_asan.c atomic: Update interceptor function signatures after commit 5e9a82e898d5 2025-01-16 19:07:01 +01:00
subr_atomic64.c atomics: Constify loads: Fix powerpc build 2025-01-16 19:07:01 +01:00
subr_autoconf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_blist.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_boot.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_bufring.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_bus.c new-bus: Fix some shortcomings in disabling devices via hints 2024-11-30 21:46:08 -05:00
subr_bus_dma.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_busdma_bounce.c busdma_bounce: Replace a SYSINIT with static initializations 2024-11-19 14:15:21 +00:00
subr_busdma_bufalloc.c busdma: uma_zcreate() does not fail 2024-05-02 09:25:08 -04:00
subr_capability.c capsicum: introduce cap_rights_is_empty Function 2024-06-05 11:55:17 -04:00
subr_clock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_clockcalib.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_compressor.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_counter.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_coverage.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_csan.c atomic: Update interceptor function signatures after commit 5e9a82e898d5 2025-01-16 19:07:01 +01:00
subr_devmap.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_devstat.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_disk.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_dummy_vdso_tc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_early.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_epoch.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_eventhandler.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_fattime.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
subr_filter.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_firmware.c firmware: unbreak armv7 2024-10-16 08:19:21 -06:00
subr_gtaskqueue.c gtaskqueue: Fix a typo 2024-01-07 11:56:04 -05:00
subr_hash.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_hints.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_intr.c intrng: Allow alternative IPI PICs to be registered and used 2024-09-07 00:59:02 +01:00
subr_kdb.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_kobj.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_lock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_log.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
subr_mchain.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_memdesc.c memdesc: Add routines for copying data to/from memory descriptors 2023-07-31 13:24:44 -07:00
subr_module.c linker: Add MODINFOMD_SPLASH type 2024-07-29 18:37:42 +02:00
subr_msan.c atomic: Update interceptor function signatures after commit 5e9a82e898d5 2025-01-16 19:07:01 +01:00
subr_msgbuf.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
subr_param.c cred: 'kern.ngroups' tunable: Limit it to avoid internal overflows 2024-11-15 11:47:42 +01:00
subr_pcpu.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_pctrie.c pctrie: change for vm_radix compatibility 2023-08-21 12:28:51 -05:00
subr_physmem.c physmem: Correct a comment 2024-06-27 11:27:42 -04:00
subr_pidctrl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_power.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_prf.c Abstract UIO allocation and deallocation. 2024-03-08 23:27:20 -05:00
subr_prng.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_prof.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_rangeset.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_rman.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_rtc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_sbuf.c Remove my middle name. 2023-08-17 15:08:30 +02:00
subr_scanf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_sfbuf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_sglist.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_sleepqueue.c sleepqueue: Fix the comment for sleepq_switch() 2024-11-19 14:15:07 +00:00
subr_smp.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_smr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_stack.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_stats.c stats: Fix the build under gcc 2024-07-15 12:28:28 +00:00
subr_syscall.c audit: Fix short-circuiting in syscallenter() 2025-01-17 13:18:51 +00:00
subr_taskqueue.c Schedule fast taskqueue callouts on right CPU. 2024-01-19 11:24:35 -05:00
subr_terminal.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_trap.c Optimize HPTS so that little work is done until we have a hpts thread that is over the connection threshold 2024-04-24 22:37:40 +02:00
subr_turnstile.c turnstile: Mention the lock name when panicking due to a sleeping thread 2024-09-03 14:54:42 +00:00
subr_uio.c uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-11-30 08:55:57 -05:00
subr_unit.c subr_unit.c: another attempt to fix the build 2023-08-18 19:28:42 +03:00
subr_vmem.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_witness.c witness: Unconditionally initialize out-params for witness_save() 2023-10-24 09:20:55 -04:00
sys_capability.c ktrace: Record detailed ECAPMODE violations 2024-05-11 18:57:44 -05:00
sys_eventfd.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
sys_generic.c kern: restore signal mask before ast() for pselect/ppoll 2024-12-10 14:02:52 -06:00
sys_getrandom.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sys_pipe.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
sys_procdesc.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
sys_process.c kern: Fix a typo in a source code comment 2024-12-31 10:32:24 +01:00
sys_socket.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
sys_timerfd.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
syscalls.c Regen 2024-10-05 10:08:56 +03:00
syscalls.conf makesyscalls: don't make syscall.mk by default 2023-12-13 23:07:06 +00:00
syscalls.master Add getrlimitusage(2) 2024-10-05 10:08:55 +03:00
systrace_args.c Regen 2024-10-05 10:08:56 +03:00
sysv_ipc.c sysvshm: add shmobjinfo() function to find key/seq of the segment backed by obj 2024-10-15 17:50:16 +03:00
sysv_msg.c sysv_ipc: remove sys/cdefs.h include 2024-10-15 17:50:15 +03:00
sysv_sem.c sysv_ipc: remove sys/cdefs.h include 2024-10-15 17:50:15 +03:00
sysv_shm.c sysvshm: add shmobjinfo() function to find key/seq of the segment backed by obj 2024-10-15 17:50:16 +03:00
tty.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
tty_compat.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tty_info.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tty_inq.c kern: tty: fix ttyinq_read_uio assertion 2024-02-06 09:31:17 -06:00
tty_outq.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tty_pts.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
tty_tty.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tty_ttydisc.c kern: tty: recanonicalize the buffer on ICANON/VEOF/VEOL changes 2024-01-30 11:11:24 -06:00
uipc_accf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uipc_debug.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uipc_domain.c uipc_domain: Fix a typo in a source code comment 2024-04-24 12:19:09 +02:00
uipc_ktls.c ktls: Fix races that can lead to double initialization 2024-07-23 09:01:30 -04:00
uipc_mbuf.c mbuf: provide m_freemp() 2024-06-10 18:31:02 -07:00
uipc_mbuf2.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uipc_mbufhash.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uipc_mqueue.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
uipc_sem.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
uipc_shm.c shm: Handle swap pager allocation failures 2024-12-18 13:43:56 +00:00
uipc_sockbuf.c socket: Implement SO_SPLICE 2024-10-17 15:48:36 +00:00
uipc_socket.c sockets: virtualize kern.ipc.soacceptqueue 2025-01-18 02:44:15 +07:00
uipc_syscalls.c socket: Pass capsicum rights down to socket option handlers 2024-07-23 09:01:29 -04:00
uipc_usrreq.c unix: Be consistent about error handling for unconnected sockets 2025-01-20 00:26:27 +00:00
vfs_acl.c acl_copyin: avoid returning uninitialized memory 2024-08-11 19:01:52 -04:00
vfs_aio.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
vfs_bio.c buf: Add a runningbufclaim() helper 2024-12-06 14:51:09 +00:00
vfs_cache.c kern___realpathat(): honor uio_seg argument 2024-12-02 03:44:56 +02:00
vfs_cluster.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vfs_default.c stat(2): add st_filerev 2025-01-23 11:46:57 +02:00
vfs_export.c nfs: Fallback to GID_NOGROUP on no groups 2024-11-15 11:47:43 +01:00
vfs_extattr.c Move kern_extattr_* prototypes to <sys/syscallsubr.h> 2023-10-24 10:00:57 -07:00
vfs_hash.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vfs_init.c vfs mount: Consistently use ENODEV internally for an invalid fstype 2024-01-03 12:18:44 -08:00
vfs_lookup.c vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled 2024-05-15 16:21:35 +03:00
vfs_mount.c nmount(2), NFS: Accept 'ngroups_max + 1' groups in "export" credentials 2025-01-16 19:06:58 +01:00
vfs_mountroot.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
vfs_subr.c stat(2): add st_filerev 2025-01-23 11:46:57 +02:00
vfs_syscalls.c open(2): allow O_PATH | O_CREAT 2025-01-14 10:56:41 +02:00
vfs_vnops.c kern: Make fileops and filterops tables const where possible 2024-12-03 01:03:42 +00:00
vnode_if.src VFS: add VOP_GETLOWVNODE() 2023-12-05 02:43:27 +02:00