FreeBSD/src 62551aeusr.sbin/iostat iostat.8

iostat.8: Expand -w description

PR:             194781
MFC after:      3 days
Reviewed by:    ziaee
Event:          Halifax Hackathon 202606

(cherry picked from commit 4d299a767acce2841ded288e789a9c36620b57d7)
DeltaFile
+6-1usr.sbin/iostat/iostat.8
+6-11 files

FreeBSD/src 1744efcshare/man/man4 tcp.4, sys/netinet tcp_fastopen.c

tcp.fastopen.client_enable: Fix documented default

The default value has been 1 since June 2018, but the docs were not
updated to reflect the change.

MFC after:      3 days
Reviewed by:    ziaee
Fixes:          af4da5865557 (Enable TCP_FASTOPEN by default)
Signed-off-by:  Matteo Riondato <matteo at FreeBSD.org>
Closes:         https://github.com/freebsd/freebsd-src/pull/2285

(cherry picked from commit 0bc852cc62afcd79fc776f784623c3f2b7691d27)
DeltaFile
+2-2share/man/man4/tcp.4
+1-1sys/netinet/tcp_fastopen.c
+3-32 files

FreeBSD/src fa550b2stand/man loader.efi.8

loader.efi.8: hw.uart.console is explained in uart

PR:             295944
MFC to:         15
MFC after:      3 days

(cherry picked from commit a641aa1c80f80e44cd9212b95e6584db9533712c)
DeltaFile
+2-3stand/man/loader.efi.8
+2-31 files

FreeBSD/src c19c83bsbin/mount_udf mount_udf.8

mount_udf.8: Alphabetize and align options

While here, remove "The following UDF specific options are available:".
It is unused and does not appear to have ever been used.

MFC after:      3 days

(cherry picked from commit 05f132adc530cd53203b9cd09d7e1b211d2babc4)
DeltaFile
+5-6sbin/mount_udf/mount_udf.8
+5-61 files

FreeBSD/src 4016f9dcontrib/mandoc mdoc.7

mdoc.7: Revert upstream changes to Lb/LIBRARY

Since this manual describes the mdoc syntax throughout the ecosystem,
I had to blend what we had before with what upstream is doing now.

Thanks:         adrian
MFC after:      3 days (we shipped this doc in 15.0/14.4)
Reviewed by:    ivy, mhorne, des, adrian
Discussed with: arch@
Differential Revision:  https://reviews.freebsd.org/D56153

(cherry picked from commit 4e2bf6e90a65bee317e4dd379e098ba2eb5d8c0d)
DeltaFile
+33-4contrib/mandoc/mdoc.7
+33-41 files

FreeBSD/src 9e6c043bin/ln symlink.7

symlink.7: Clean up markup and tag SPDX

Also unwind some parentheticals.

MFC after:      3 days

(cherry picked from commit e821152cc71dbd09f5bd28be86499165c553f3ae)
DeltaFile
+49-43bin/ln/symlink.7
+49-431 files

FreeBSD/src bb1154fsys/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 34b95f5sys/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 d7d5337sys/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 ec0d7d0sys/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 caa2e5csys/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 23ebf0csys/kern kern_procctl.c

kern_procctl(PROC_WX_MAPPINGS_PERMIT): ensure stability of the target vmspace

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

FreeBSD/src a11c4f0sys/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 190d667sys/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 35b95besys/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 adb1479sys/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 197f367sys/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 b3f99cesys/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 da1398dsys/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 1f06224sys/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 e856c10sys/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 dc94d15sys/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
+79-0sys/kern/kern_exec.c
+4-0sys/sys/imgact.h
+3-0sys/sys/proc.h
+1-0sys/kern/kern_exit.c
+1-0sys/kern/kern_fork.c
+88-05 files

FreeBSD/src e7578e3sys/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
+105-19sys/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
+127-285 files

FreeBSD/src 9e1bbfbsys/fs/nfsclient nfs_clstate.c

nfs_clstate.c: Fix CB_RECALL handling for NFSv4.1/4.2

Recent testing with a modified NFSv4.1/4.2 client that
sometimes ignored CB_RECALL callbacks, identified a few
problems when handling the unusual case of CB_RECALL not
be performed by the client.
- The csa_cachethis argument to CB_SEQUENCE was being ignored.
- The CB_SEQUENCE operation would reply NFSERR_DELAY
  after the first CB_RECALL attempt, making retries
  ineffective.
- The code could return NFSERR_RESOURCE, which is a
  NFSv4.0 specific error code.

This patch fixes the above three problems.

The patch only affects the NFSv4.1/4.2 client when
delegations are being issued and the client somehow
fails to handle a CB_RECALL callback of a delegation,
which is an unusual case.

    [2 lines not shown]
DeltaFile
+9-2sys/fs/nfsclient/nfs_clstate.c
+9-21 files

FreeBSD/src 4b26ea5contrib/openresolv resolvconf.in

openresolv: Trim leading dot from domain name

Merge upstream change d9f6b1a2d292

PR:             296305
MFC after:      1 week
DeltaFile
+3-0contrib/openresolv/resolvconf.in
+3-01 files

FreeBSD/src ded28c5. resolvconf.in

Strip leading dots as we do trailing dots from domains

Seems some routers do this and this breaks unbound at least.

Based on a patch from Dag-Erling Smørgrav <des at FreeBSD.org>
DeltaFile
+3-0resolvconf.in
+3-01 files

FreeBSD/src 21e9413usr.sbin/ctld ctld.cc kernel.cc

ctld: Cleanup redundant handling of duplicate kernel ports

Sponsored by:   Chelsio Communications
DeltaFile
+1-13usr.sbin/ctld/ctld.cc
+1-6usr.sbin/ctld/kernel.cc
+0-1usr.sbin/ctld/ctld.hh
+2-203 files

FreeBSD/src 4907d1cusr.sbin/ctld ctld.cc kernel.cc

ctld: Normalize physical port names

Don't require ioctl port names to be fully expanded as this
contradicts the syntax documented in the ctl.conf(5).  However, don't
require users to exactly guess when pp or vp can be omitted.  Instead,
normalize all physical port names by parsing any port name with a pp
or vp value and reformatting them to a standardized format.  This
format is also used when generating names for kernel-enumerated ports.

Reported by:    Seth Hoffert <seth.hoffert at gmail.com>
Fixes:          caef3c50ac06 ("ctld: Refactor ioctl port handling")
Sponsored by:   Chelsio Communications
DeltaFile
+50-9usr.sbin/ctld/ctld.cc
+1-4usr.sbin/ctld/kernel.cc
+51-132 files

FreeBSD/src 27e2926usr.sbin/gstat gstat.c

gstat: Sanitize code which gcc did not like.
DeltaFile
+8-6usr.sbin/gstat/gstat.c
+8-61 files

FreeBSD/src 72acd17sys/dev/sound sndstat.c

sound: Use sx_assert instead of KASSERT(sx_xlocked())

It's redundant.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-2sys/dev/sound/sndstat.c
+1-21 files