freebsd-src/sys/kern
Olivier Certner afc10f8bba
sys_procctl(): Make it clear that negative commands are invalid
An initial reading of the preamble of sys_procctl() gives the impression
that no test prevents a malicious user from passing a negative commands
index (in 'uap->com'), which is soon used as an index into the static
array procctl_cmds_info[].

However, a closer examination leads to the conclusion that the existing
code is technically correct.  Indeed, the comparison of 'uap->com' to
the nitems() expression, which expands to a ratio of sizeof(), leads to
a conversion of 'uap->com' to an 'unsigned int' as per Usual Arithmetic
Conversions/Integer Promotions applied by '<=', because sizeof() returns
'size_t' values, and we define 'size_t' as an equivalent of 'unsigned
int' (which is not mandated by the standard, the latter allowing, e.g.,
integers of lower ranks).

With this conversion, negative values of 'uap->com' are automatically
ruled-out since they are converted to very big unsigned integers which
are caught by the test.  An analysis of assembly code produced by LLVM
16 on amd64 and practical tests confirm that no exploitation is possible.

However, the guard code as written is misleading to readers and might
trip up static analysis tools.  Make sure that negative values are
explicitly excluded so that it is immediately clear that EINVAL will be
returned in this case.

Build tested with clang 16 and GCC 12.

Approved by:    markj (mentor)
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
2024-04-10 17:15:25 +02:00
..
bus_if.m new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07: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: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
genoffset.sh genoffset.sh: fix build break on MacOS 2023-11-16 17:54:28 +00:00
imgact_aout.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
imgact_binmisc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
imgact_elf.c imgact_elf: Add const to the checknote parameter to __elfN(parse_notes) 2024-03-04 20:52:21 -08:00
imgact_elf32.c sys/kern: Remove a few sys/cdefs.h around some elf things 2024-02-20 20:40:19 -07:00
imgact_elf64.c sys/kern: Remove a few sys/cdefs.h around some elf things 2024-02-20 20:40:19 -07:00
imgact_shell.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
init_main.c amd64: initialize td_frame stack area for init(8) main thread 2024-03-26 04:01:38 +02:00
init_sysent.c regen 2024-01-24 07:11:27 +02:00
kern_acct.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_alq.c alq, siftr: add panic/debugger checks to shutdown hooks 2023-11-23 12:07:42 -04:00
kern_boottrace.c boottrace: Add corresponding sysctl knob for loader tunable 2023-10-12 18:14:48 +08:00
kern_clock.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07: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-09 00:33:55 -05:00
kern_conf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_cons.c sys: Simplify enabling EARLY_PRINTF uarts 2024-02-13 11:48:52 +00:00
kern_context.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_cpu.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_cpuset.c ktrace: Record cpuset violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
kern_ctf.c kern_ctf.c: Don't print out warning messages unconditionally 2024-03-29 20:32:18 +01:00
kern_descrip.c ktrace: Record namei violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
kern_devctl.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_dtrace.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_dump.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_environment.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_et.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_event.c kcmp(2): implement for generic file types 2024-01-24 07:11:26 +02:00
kern_exec.c ktrace: Record namei violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
kern_exit.c Revert "kqueue: on process exit, force-clear its registered signal events" 2023-11-28 19:29:58 +02:00
kern_fail.c Replace random sbuf_printf() with cheaper cat/putc. 2023-11-22 17:27:17 -05:00
kern_ffclock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_fork.c EVFILT_TIMER: intialize stop timer list in type-stable proc init, instead of fork 2023-11-28 19:29:58 +02:00
kern_hhook.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_idle.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_intr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_jail.c Abstract UIO allocation and deallocation. 2024-02-10 11:38:04 -05:00
kern_kcov.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_khelp.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_kthread.c kthread: Set *newtdp earlier in kthread_add1() 2023-12-09 14:11:33 -05:00
kern_ktr.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_ktrace.c ktrace: Record detailed ECAPMODE violations 2024-04-07 18:52:51 -05:00
kern_linker.c kern linker: Don't invoke dtors without having invoked ctors 2024-03-31 14:15:11 -04:00
kern_lock.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_lockf.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
kern_lockstat.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_loginclass.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_malloc.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
kern_mbuf.c mbuf: provide mc_get() that allocates struct mchain of given length 2024-04-08 13:16:51 -07:00
kern_membarrier.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_mib.c sysctl: Don't pass CTLFLAG_MPSAFE to SYSCTL_STRING 2024-01-04 08:39:53 -05:00
kern_module.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_mtxpool.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_mutex.c SCHEDULER_STOPPED(): Rely on a global variable 2024-01-26 22:09:38 +01:00
kern_ntptime.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_osd.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_physio.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07: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: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_proc.c stop_all_proc(): skip traced or signal-stoped processes 2024-04-05 17:52:39 +03:00
kern_procctl.c sys_procctl(): Make it clear that negative commands are invalid 2024-04-10 17:15:25 +02:00
kern_prot.c cr_bsd_visible(): Style fixes 2024-01-10 18:50:19 +01:00
kern_racct.c kern_racct.c: Don't compile if RACCT undefined 2023-11-22 14:17:17 -05:00
kern_rangelock.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_rctl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_resource.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_rmlock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_rwlock.c SCHEDULER_STOPPED(): Rely on a global variable 2024-01-26 22:09:38 +01:00
kern_sdt.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
kern_sema.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_sendfile.c sendfile: mark it explicitly as a TCP only feature 2024-04-08 13:16:51 -07:00
kern_sharedpage.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_shutdown.c kerneldump: Add flag to indicate kernel core was successfully dumped 2024-03-28 14:11:16 -04:00
kern_sig.c ktrace: Record signal violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
kern_switch.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_sx.c SCHEDULER_STOPPED(): Rely on a global variable 2024-01-26 22:09:38 +01:00
kern_synch.c ktrace: Fix the build when options KTRACE is not configured 2024-03-09 00:33:55 -05:00
kern_syscalls.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_sysctl.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
kern_tc.c timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
kern_thr.c thread: Ignore errors when copying out during thr_exit() 2023-12-25 21:04:00 -05:00
kern_thread.c thread_single(9): decline external requests for traced or debugger-stopped procs 2024-03-30 16:43:52 +02:00
kern_time.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
kern_timeout.c callout: retire callout_async_drain() 2024-01-24 09:33:27 -08:00
kern_tslog.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_ubsan.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
kern_umtx.c PP mutexes: lock: Reduce 'umtx_lock' holding before taking the user lock 2024-02-27 09:59:42 +01:00
kern_uuid.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
kern_vnodedumper.c kerneldump: add livedump_start_vnode(9) 2024-03-18 17:12:18 -04:00
kern_xxx.c compat_freebsd4: Fix handling of errors from subyte() 2023-12-25 21:04:01 -05:00
ksched.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
link_elf.c kern linker: Don't invoke dtors without having invoked ctors 2024-03-31 14:15:11 -04:00
link_elf_obj.c kern linker: Don't invoke dtors without having invoked ctors 2024-03-31 14:15:11 -04:00
linker_if.m ddb: Add CTF-based pretty printing 2024-03-22 04:03:33 +01:00
Make.tags.inc sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
Makefile sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
md4c.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
md5c.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07: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-14 15:24:11 +01:00
pic_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
posix4_mib.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sched_4bsd.c sched: Simplify sched_lend_user_prio_cond() 2024-02-27 09:59:48 +01:00
sched_ule.c sched: Simplify sched_lend_user_prio_cond() 2024-02-27 09:59:48 +01: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: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_acl_posix1e.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_asan.c kasan: Add corresponding sysctl knob for loader tunable 2023-10-12 18:14:48 +08:00
subr_atomic64.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_autoconf.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
subr_blist.c Replace random sbuf_printf() with cheaper cat/putc. 2023-11-22 17:27:17 -05:00
subr_boot.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_bufring.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_bus.c new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07: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: tidy bus_dma_run_filter() functions 2023-12-06 19:11:39 -04:00
subr_busdma_bufalloc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_capability.c capsicum: introduce cap_rights_is_empty Function 2023-12-11 12:15:46 +01:00
subr_clock.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_clockcalib.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_compressor.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_counter.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_coverage.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_csan.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_devmap.c arm64: enable superpage mappings by pmap_mapdev{,_attr}() 2024-03-30 15:41:30 -05:00
subr_devstat.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07: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: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_early.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_epoch.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_eventhandler.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_fattime.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
subr_filter.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_firmware.c firmware: unbreak armv7 2024-02-29 10:53:05 -07:00
subr_gtaskqueue.c gtaskqueue: Fix a typo 2023-12-31 11:49:08 -05:00
subr_hash.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_hints.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_intr.c arm64: Make KMSAN aware of exceptions 2024-02-08 11:35:11 -05:00
subr_kdb.c SCHEDULER_STOPPED(): Rely on a global variable 2024-01-26 22:09:38 +01:00
subr_kobj.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_lock.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_log.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_mchain.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_memdesc.c memdesc: Helper function to construct mbuf chain backed by memdesc buffer 2024-01-09 11:09:43 -08:00
subr_module.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_msan.c kmsan: Add some additional bus_space accessors 2024-02-08 11:22:58 -05:00
subr_msgbuf.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
subr_param.c Rename VM_LAST to more appropriate VM_GUEST_LAST 2024-03-18 10:49:09 +00: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 ram: Don't reserve excluded regions 2024-02-14 14:07:33 -08:00
subr_pidctrl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_power.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_prf.c Abstract UIO allocation and deallocation. 2024-02-10 11:38:04 -05:00
subr_prng.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_prof.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_rangeset.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_rman.c rman: Add rman_get/set_type 2024-03-13 15:05:53 -07:00
subr_rtc.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
subr_sbuf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_scanf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_sfbuf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_sglist.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_sleepqueue.c Replace random sbuf_printf() with cheaper cat/putc. 2023-11-22 17:27:17 -05:00
subr_smp.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_smr.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_stack.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
subr_stats.c Reinstate returning EOVERFLOW from stats_v1_blob_clone() 2024-04-03 12:58:26 +11:00
subr_syscall.c ktrace: Record syscall violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
subr_taskqueue.c Schedule fast taskqueue callouts on right CPU. 2023-12-26 22:55:24 -05:00
subr_terminal.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07: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-03-28 08:12:37 -04:00
subr_turnstile.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
subr_uio.c Abstract UIO allocation and deallocation. 2024-02-10 11:38:04 -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 Replace random sbuf_printf() with cheaper cat/putc. 2023-11-22 17:27:17 -05:00
sys_capability.c ktrace: Record detailed ECAPMODE violations 2024-04-07 18:52:51 -05:00
sys_eventfd.c kcmp(2): implement for generic file types 2024-01-24 07:11:26 +02:00
sys_generic.c ktrace: log genio events on failed write 2024-03-04 23:44:09 -06:00
sys_getrandom.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sys_pipe.c kcmp(2): implement for generic file types 2024-01-24 07:11:26 +02:00
sys_procdesc.c kcmp(2): implement for procdesc 2024-01-24 07:11:27 +02:00
sys_process.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sys_socket.c inpcb: fully retire inp_ppcb pointer 2024-03-29 12:18:32 -07:00
sys_timerfd.c timerfd_create: fix after cf742faa39 2024-03-06 18:28:02 +01:00
syscalls.c regen 2024-01-24 07:11:27 +02:00
syscalls.conf libsys: generate private symbol map 2024-02-05 20:34:56 +00:00
syscalls.master syscalls.master: use __acl_type_t 2024-03-19 23:13:27 +00:00
sysctl_security_jail_children.sh tests: Fixing incomplete atf_skip if missing jail condition 2024-02-23 13:08:09 +01:00
systrace_args.c sysent: regen 2024-03-19 23:13:27 +00:00
sysv_ipc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sysv_msg.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sysv_sem.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sysv_shm.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tty.c kern: fix panic with disabled ttys 2024-02-26 15:11:27 -05:00
tty_compat.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
tty_info.c Replace random sbuf_printf() with cheaper cat/putc. 2023-11-22 17:27:17 -05:00
tty_inq.c kern: tty: fix recanonicalization 2024-01-24 13:48:31 -06:00
tty_outq.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tty_pts.c kcmp(2): implement for generic file types 2024-01-24 07:11:26 +02:00
tty_tty.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tty_ttydisc.c kern: tty: recanonicalize the buffer on ICANON/VEOF/VEOL changes 2024-01-15 20:55:59 -06:00
uipc_accf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uipc_debug.c sockets: garbage collect SS_ISCONFIRMING 2024-01-30 10:38:33 -08:00
uipc_domain.c sockets: make pr_shutdown fully protocol specific method 2024-01-16 10:30:37 -08:00
uipc_ktls.c ktls: catch invalid parameters earlier 2024-03-18 03:37:49 +01:00
uipc_mbuf.c mbuf: provide mc_uiotomc() a function to copy from uio(9) to mchain 2024-04-08 13:16:51 -07:00
uipc_mbuf2.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
uipc_mbufhash.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uipc_mqueue.c mqueuefs: fix statfs report to not signal file system full 2024-03-01 18:31:15 +01:00
uipc_sem.c kcmp(2): implement for generic file types 2024-01-24 07:11:26 +02:00
uipc_shm.c uipc_shm: Copyin userpath for ktrace(2) 2024-04-09 21:17:11 -05:00
uipc_sockbuf.c socket: Don't assume m0 != NULL in sbappendcontrol_locked() 2024-02-02 14:00:37 -05:00
uipc_socket.c sockets: Add hhook in sonewconn for inheriting OSD specific data 2024-04-08 21:31:34 -04:00
uipc_syscalls.c ktrace: Record socket violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
uipc_usrreq.c Revert "unix: new implementation of unix/stream & unix/seqpacket" 2024-04-09 13:15:47 -07:00
vfs_acl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vfs_aio.c lio_listio(2): add LIO_FOFFSET flag to ignore aiocb aio_offset 2024-02-11 03:53:50 +02:00
vfs_bio.c getblkx(9): be more tolerant but also strict with the buffer size checks 2024-03-02 07:02:55 +02:00
vfs_cache.c ktrace: Record namei violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
vfs_cluster.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vfs_default.c VFS: add VOP_GETLOWVNODE() 2023-11-28 19:32:53 +02:00
vfs_export.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
vfs_extattr.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vfs_hash.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vfs_init.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vfs_lookup.c ktrace: Record namei violations with KTR_CAPFAIL 2024-04-07 18:52:51 -05:00
vfs_mount.c Abstract UIO allocation and deallocation. 2024-02-10 11:38:04 -05:00
vfs_mountroot.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vfs_subr.c VFS: update VOP_FSYNC() debug check to reflect actual locking policy 2024-02-18 09:16:16 -06:00
vfs_syscalls.c Add kern_openatfp(9) 2024-01-24 07:13:26 +02:00
vfs_vnops.c copy_file_range: Call vn_rdwr() at least once 2024-04-04 17:03:07 -04:00
vnode_if.src VFS: add VOP_GETLOWVNODE() 2023-11-28 19:32:53 +02:00