FreeBSD/src 42d8b0bsys/kern kern_exec.c

kern_exec.c: explicitly include sys/limits.h for UINT_MAX

(cherry picked from commit f5fce0bcc370a9700249e64901eabf2e0be4ecb0)
DeltaFile
+1-1sys/kern/kern_exec.c
+1-11 files

FreeBSD/src 7898184sys/compat/linprocfs linprocfs.c, sys/fs/procfs procfs_map.c procfs_mem.c

procfs, linprocfs: ensure target process vmspace stability

(cherry picked from commit 5db31f1b47b586a5091eb41fc957236f28b78dba)
DeltaFile
+7-10sys/fs/procfs/procfs_map.c
+5-11sys/compat/linprocfs/linprocfs.c
+1-5sys/fs/procfs/procfs_mem.c
+13-263 files

FreeBSD/src e049244sys/kern kern_prot.c

sys_set*id(9): wait for the execblocks to pass

(cherry picked from commit d0384f50dad25d3358d76f7556969ea1d515ba68)
DeltaFile
+10-0sys/kern/kern_prot.c
+10-01 files

FreeBSD/src 1744ce4sys/fs/pseudofs pseudofs_vnops.c

pfs_readdir(): block the target process from execing

(cherry picked from commit 4c0a0909f928baac982b7de4bfa5b5ca7de5291a)
DeltaFile
+9-1sys/fs/pseudofs/pseudofs_vnops.c
+9-11 files

FreeBSD/src e900223sys/compat/linux linux_misc.c

linux_prlimit(): block execve for the target

(cherry picked from commit e41c28e67fac9cd22a85b160c5c9d0477ed03600)
DeltaFile
+15-0sys/compat/linux/linux_misc.c
+15-01 files

FreeBSD/src 277f612sys/fs/pseudofs pseudofs_vnops.c

pseudofs: ensure that the target process vmspace is stable for VOP_READ/WRITE

(cherry picked from commit a4993bac41350e85bc9affb862d2974a1a09bb5e)
DeltaFile
+41-18sys/fs/pseudofs/pseudofs_vnops.c
+41-181 files

FreeBSD/src 035f66fsys/kern kern_resource.c

kern_resource.c: disallow execve around sysctl kern.proc.rlimitusage

(cherry picked from commit 836749817036b90b60af0584fa21f2d9dbd60ff7)
DeltaFile
+19-8sys/kern/kern_resource.c
+19-81 files

FreeBSD/src d80a7fdsys/kern kern_procctl.c

kern_procctl(PROC_WX_MAPPINGS_PERMIT): ensure stability of the target vmspace

(cherry picked from commit 6a572920f251ac8ac6a80a55d4d039736ea7dd65)
DeltaFile
+14-7sys/kern/kern_procctl.c
+14-71 files

FreeBSD/src d172933sys/kern kern_event.c

kern_event: block the target process from execing for sysctl kern.proc.kqueue

(cherry picked from commit 79b384bd8fdff4869ce4799edb0342ff5c25b6fa)
DeltaFile
+17-5sys/kern/kern_event.c
+17-51 files

FreeBSD/src 60d8df6sys/kern kern_proc.c

kern_proc.c: disallow execve around sysctl kern.proc.kstacks

(cherry picked from commit 8b5abd9027b8b1f6290c756730ee3adebed007f4)
DeltaFile
+16-12sys/kern/kern_proc.c
+16-121 files

FreeBSD/src 24d8b33sys/kern kern_proc.c

kern_proc.c: disallow execve around sysctl kern.proc.rlimit

(cherry picked from commit 5a91fa5a7656c99e527fe7e6f6bf6bd9e85ab589)
DeltaFile
+16-10sys/kern/kern_proc.c
+16-101 files

FreeBSD/src 5e633dbsys/kern kern_proc.c

kern_proc.c: make kern.proc.osrel atomic

(cherry picked from commit 80626f34ee985671bb8c60ee986b89587b7a1511)
DeltaFile
+22-23sys/kern/kern_proc.c
+22-231 files

FreeBSD/src eb03358sys/kern kern_proc.c

kern_proc.c: ensure stability of the vmspace for sysctl kern.proc.vm_layout

(cherry picked from commit 31fa677e4af00b795bf671847b4dc72960c90f14)
DeltaFile
+10-2sys/kern/kern_proc.c
+10-21 files

FreeBSD/src 20ed389sys/kern kern_proc.c

kern_proc.c: ensure stability of the vmspace for sysctl kern.proc.vmmap

(cherry picked from commit 5fe6e08d2db56b530f0df2903ef24cfabab7b8ea)
DeltaFile
+12-8sys/kern/kern_proc.c
+12-81 files

FreeBSD/src be6e513sys/fs/cuse cuse.c, sys/fs/procfs procfs_mem.c

proc: Allow to make proc_rwmem() operate on a consistent address space

(cherry picked from commit e1b0d051bbf7e4e730470cbd6622f71a639834c3)
DeltaFile
+109-22sys/kern/sys_process.c
+14-1sys/sys/ptrace.h
+5-5sys/kern/kern_prot.c
+2-2sys/fs/cuse/cuse.c
+1-1sys/fs/procfs/procfs_mem.c
+131-315 files

FreeBSD/src 3748c2esys/kern kern_proc.c

kern_proc.c: ensure stability of the vmspace we read the strings from

(cherry picked from commit a22c044cce41864a32af6b8281a3c416a2664d7f)
DeltaFile
+38-22sys/kern/kern_proc.c
+38-221 files

FreeBSD/src cbd5847sys/kern kern_exec.c, sys/sys imgact.h

execve_block_pass(9): a helper to wait for the execblock to pass

(cherry picked from commit 450fe67d19eb2ea8e27109214ff21064fdcf808c)
DeltaFile
+16-4sys/kern/kern_exec.c
+1-0sys/sys/imgact.h
+17-42 files

FreeBSD/src a80e40csys/kern kern_exec.c kern_exit.c, sys/sys imgact.h proc.h

execve_block(): a mechanism for mutual exclusion with execve() on the process

(cherry picked from commit e1a84b7708c2514769625c2af6c5034694013b6a)
DeltaFile
+67-2sys/kern/kern_exec.c
+3-0sys/sys/imgact.h
+2-1sys/sys/proc.h
+1-0sys/kern/kern_exit.c
+1-0sys/kern/kern_fork.c
+74-35 files

FreeBSD/src be9295dsys/kern vfs_default.c, sys/sys vnode.h

VOP_VPUT_PAIR(): handle the case when dvp == vp

Reviewed by:    jah, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57824
DeltaFile
+23-5sys/kern/vfs_default.c
+11-7sys/ufs/ffs/ffs_vnops.c
+1-0sys/sys/vnode.h
+35-123 files

FreeBSD/src 6b54e96sys/x86/cpufreq hwpstate_intel.c

hwpstate_intel(4): Fix comment for 'req', whitespace

MFC after:      2 weeks
Event:          Halifax Hackathon 202606
Location:       Seat 36K in AC667, over Thetford Mines
Sponsored by:   The FreeBSD Foundation
DeltaFile
+7-4sys/x86/cpufreq/hwpstate_intel.c
+7-41 files

FreeBSD/src 10213f0sys/conf files.riscv files.arm64

files: riscv, arm64: Remove redundant 'ofw_cpu.c'

Should have been removed when that line was moved from 'files.arm' to
'files'.

Fixes:          14e1a2cd295d ("Move ofw_cpu file to the main files conf file.")
MFC after:      2 weeks
Event:          Halifax Hackathon 202606
Location:       Seat 36K in AC667, over Maine near Canadian border
Sponsored by:   The FreeBSD Foundation
DeltaFile
+0-1sys/conf/files.riscv
+0-1sys/conf/files.arm64
+0-22 files

FreeBSD/src bdc3dcasys/x86/cpufreq hwpstate_amd.c

hwpstate_amd(4): Style: End brace of struct initializers on new line

Fixes:          191f47bcd650 ("hwpstate_amd: Refactor the cpufreq code by using delegation pattenr")
MFC after:      2 weeks
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation
DeltaFile
+4-2sys/x86/cpufreq/hwpstate_amd.c
+4-21 files

FreeBSD/src 8ea6d9fsys/x86/cpufreq hwpstate_intel.c

hwpstate_intel(4): Debug sysctl: Style

Introduce 'error', set it to the result of rdmsr_safe() and use 'error'
as the test expression.

No functional change (intended).

Fixes:          29b8220b179b ("hwpstate_intel: Use ipi instead of thread_lock + sched_bind")
MFC after:      2 weeks
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation
DeltaFile
+12-4sys/x86/cpufreq/hwpstate_intel.c
+12-41 files

FreeBSD/src 9320b99sys/x86/cpufreq hwpstate_intel.c

hwpstate_intel(4): Debug sysctl: Fix retrieving the pkg-level MSR

IA32_HWP_REQUEST_PACKAGE_CONTROL is never set in 'sc->req'.  Just
discriminate on 'hwp_pkg_ctrl', which indicates the hardware capability
as indicated by CPUID.

Fixes:          29b8220b179b ("hwpstate_intel: Use ipi instead of thread_lock + sched_bind")
MFC after:      2 weeks
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-2sys/x86/cpufreq/hwpstate_intel.c
+1-21 files

FreeBSD/src 9209e04sys/x86/cpufreq hwpstate_intel.c

hwpstate_intel(4): Debug sysctl: Rename struct/field

New names are better descriptions and match what is done in
hwpstate_amd(4).

No functional change (intended).

MFC after:      2 weeks
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation
DeltaFile
+20-17sys/x86/cpufreq/hwpstate_intel.c
+20-171 files

FreeBSD/src e4c50d8sys/dev/tpm tpm_tis_core.c

tpm_tis: release TPM resources after reading response

Per TIS 1.3 section 5.6.12, write commandReady to TPM_STS after reading the
response so the TPM can free its ReadFIFO and other internal resources.
The subsequent tpmtis_go_ready() provides the second write the spec describes
and waits for the state transition.

PR:             295103
Reported by:    Benoit Sansoni <benoit.sansoni at gmail.com>
Reviewed by:    kevans
Approved by:    kevans
Differential Revision:  https://reviews.freebsd.org/D57841
DeltaFile
+10-0sys/dev/tpm/tpm_tis_core.c
+10-01 files

FreeBSD/src dcc684dlib/libc/stdlib system.3

system(3): Use plural form of 'command'

Pick the plural form in the sentence about running arbitrary commands in
the security consideration section.

PR:         294497
Event:      Halifax Hackathon 202606
Location:   Couch
DeltaFile
+1-1lib/libc/stdlib/system.3
+1-11 files

FreeBSD/src 0cedb62sys/dev/iicbus iichid.c

iichid(4): Always release interrupt resource

Reviewed by:    aokblast
Event:          Halifax Hackathon 202606
Location:       Chair
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57886
DeltaFile
+4-4sys/dev/iicbus/iichid.c
+4-41 files

FreeBSD/src 7fff1f1share/man/man4 netlink.4

netlink.4: Document missing socket options

Add descriptions for NETLINK_GET_STRICT_CHK, NETLINK_MSG_INFO.

Reviewed by:    ziaee, obiwac
Differential Revision:  https://reviews.freebsd.org/D57520
DeltaFile
+6-0share/man/man4/netlink.4
+6-01 files

FreeBSD/src b207b15sys/sys systm.h

sys/systm.h: use __nodiscard consistently and correctly

__nodiscard is closer to (and sometimes expands to) [[nodiscard]] from
C23 and C++17 so prefer it to the homegrown __result_use_check and put
it in the right place so it is correct when expanded to [[nodiscard]].

Reviewed by:    markj, emaste
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D57882
DeltaFile
+6-6sys/sys/systm.h
+6-61 files