FreeBSD/src 3deae7bsys/dev/sound/pcm channel.c

sound: Detect unsupported formats

This way we can avoid edge-cases like
8af6aee96ed609456900c6dd92dafabac5e89c0a ("virtual_oss(8): Remove
floating point formats from preference list").

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D55403
DeltaFile
+15-1sys/dev/sound/pcm/channel.c
+15-11 files

FreeBSD/src d5dd331usr.sbin/pw pw.8

pw.8: spell

(cherry picked from commit 66797b469ee3e303c5e228bea1e244f433e666e1)
DeltaFile
+1-1usr.sbin/pw/pw.8
+1-11 files

FreeBSD/src c4a5799usr.sbin/pw pw.8

pw.8: spell

(cherry picked from commit 66797b469ee3e303c5e228bea1e244f433e666e1)
DeltaFile
+1-1usr.sbin/pw/pw.8
+1-11 files

FreeBSD/src 8f8a9adusr.sbin/pw pw.8

pw.8: spell

(cherry picked from commit 66797b469ee3e303c5e228bea1e244f433e666e1)
DeltaFile
+1-1usr.sbin/pw/pw.8
+1-11 files

FreeBSD/src 677bbfftests/sys/kern pdrfork.c

pdrfork(2) tests: should wait for the child to exit

(cherry picked from commit f90ee665d035a5e4aea0bcaa18793e683ea253ed)
DeltaFile
+3-2tests/sys/kern/pdrfork.c
+3-21 files

FreeBSD/src b0551b0lib/libc/gen uexterr_gettext.3 Makefile.inc, share/man/man9 exterror.9

libc: add man page for uexterr_gettext(3)

(cherry picked from commit a03f285afafae243396c9bc7892cbe717a3ac37d)
DeltaFile
+71-0lib/libc/gen/uexterr_gettext.3
+2-1share/man/man9/exterror.9
+1-0lib/libc/gen/Makefile.inc
+74-13 files

FreeBSD/src 396d709tests/sys/kern pdrfork.c

pdrfork(2) tests: enable on x86

(cherry picked from commit 793e891f4ad1ef450f562a241fb0bd3b21d72251)
DeltaFile
+20-9tests/sys/kern/pdrfork.c
+20-91 files

FreeBSD/src e3fda88tests/sys/kern pdrfork.c

pdrfork(2) tests: RFPROCDESC|RFPROC are required

(cherry picked from commit 68ba270f4fc7799929a3d59d710f44e5e9087def)
DeltaFile
+2-44tests/sys/kern/pdrfork.c
+2-441 files

FreeBSD/src 558b761tests/sys/kern pdrfork.c Makefile

Add tests for pdrfork

(cherry picked from commit d1e6057fa47e842c63461b64b29ac5d3e9fdad76)
DeltaFile
+187-0tests/sys/kern/pdrfork.c
+1-0tests/sys/kern/Makefile
+188-02 files

FreeBSD/src 7a1c336tests/sys/kern pdrfork.c

pdrfork(2) tests: do not rely on (int *)-1 being invalid address

(cherry picked from commit d6bf2d14a941a88e27a82a3f91790353e134b8f6)
DeltaFile
+8-2tests/sys/kern/pdrfork.c
+8-21 files

FreeBSD/src fea8849lib/libsys pdfork.2, sys/kern kern_fork.c

pdrfork(2): do require RFPROCDESC | RFPROC

(cherry picked from commit b05be03ceea0a95f7783ddc890885f34bb4023d4)
DeltaFile
+5-3lib/libsys/pdfork.2
+5-0sys/kern/kern_fork.c
+10-32 files

FreeBSD/src e166a6etests/sys/kern pdrfork.c

pdrfork(2) tests: split basic_usage

(cherry picked from commit 94e4de77dec809fa5a6975e3495a41d1924c25ad)
DeltaFile
+19-9tests/sys/kern/pdrfork.c
+19-91 files

FreeBSD/src c2c3881tests/sys/kern pdrfork.c

pdrfork(2) tests: catch runaway child for EFAULT test

(cherry picked from commit 44843695bc4e36abd15835d627da7d38c06f2219)
DeltaFile
+10-0tests/sys/kern/pdrfork.c
+10-01 files

FreeBSD/src afe6868lib/libsys pdfork.2

pdfork.2: add EFAULT as possible error, explain some consequences of it

(cherry picked from commit db80ea9b88628168d2bb7f17a60b73568a8ea102)
DeltaFile
+18-0lib/libsys/pdfork.2
+18-01 files

FreeBSD/src 6a263d7include exterr.h, lib/libc/gen uexterr_format.c

libc: improve include usage for exterror sources

(cherry picked from commit 1443a455a96e587a7b49608def79495e9d74513f)
DeltaFile
+1-2include/exterr.h
+1-0lib/libc/gen/uexterr_format.c
+2-22 files

FreeBSD/src fd91b1flib/libc/gen err.c

libc: print extended errors from warn(3) and vwarn(3)

(cherry picked from commit ffbf95907039821b69dfe1607d1695b46af82e35)
DeltaFile
+2-2lib/libc/gen/err.c
+2-21 files

FreeBSD/src 0e67c3fsys/kern kern_procctl.c

reap_kill_subtree_once(): reap_kill_proc_work() might drop proctree_lock

Due to this, restart the iteration over the p_reapsiblings if the lock
was dropped.

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D55288
DeltaFile
+8-3sys/kern/kern_procctl.c
+8-31 files

FreeBSD/src 5c8af59sys/kern kern_procctl.c

procctl(PROC_REAP_KILL): align error reporting with pgkill(2)

ESRCH from cr_cansignal() means that the target process should be not
visible to the initiator.  So do not report pids with ESRCH result.

Noted by:       markj
Reviewed by:    markj, olce
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D55341
DeltaFile
+5-1sys/kern/kern_procctl.c
+5-11 files

FreeBSD/src be14071sys/kern kern_procctl.c

procctl(PROC_REAP_KILL): use pgrp pg_killsx sx to sync with fork

PROC_REAP_KILL must guarantee that all reaper descendants are signalled.
In particular, it must ensure that forked but not yet fully linked
descendants cannot escape killing. Currently, proc_reap() fullfils the
guarantee by single-threading stopping the target process, which moves
the target to the userspace boundary, so the target cannot fork while
the signal is sent.

Single-threading has undesirable effect of sometimes terminating sleeps
with EINTR.

Since the time that the bug with PROC_REAP_KILL was fixed, we grow
the pg_killsx mechanism that is similarly used by the process group
signalling to ensure that no member of the process group escapes.
Reuse pg_killsx for PROC_REAP_KILL as well.

Besides the functional change of no longer causing spurious EINTR, not
single-threading the target means that we no longer need to delegate the

    [9 lines not shown]
DeltaFile
+54-84sys/kern/kern_procctl.c
+54-841 files

FreeBSD/src dc11af0stand/efi/loader/arch/amd64 trap.c

loader.efi: tss_pa setup seems to be flawed in trap.c

since sd_lobase is 24 bits, we would need to shift 24 bits, not 16.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D55178
DeltaFile
+1-1stand/efi/loader/arch/amd64/trap.c
+1-11 files

FreeBSD/src 503374astand/efi/loader/arch/amd64 trap.c

fix typo in efi/loader/arch/amd64/trap.c

Rename grap_faults to grab_faults

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D55177
DeltaFile
+1-1stand/efi/loader/arch/amd64/trap.c
+1-11 files

FreeBSD/src e2abec6contrib/less lesskey.nro screen.c

MFV: less v692.
DeltaFile
+48-20contrib/less/lesskey.nro
+37-4contrib/less/screen.c
+21-0contrib/less/NEWS
+13-4contrib/less/charset.c
+11-5contrib/less/decode.c
+7-7contrib/less/less.nro
+137-4050 files not shown
+233-9956 files

FreeBSD/src e20e26esys/dev/asmc asmc.c

asmc: code style modernization and minor cleanups

- Allow `ASMC_DEBUG` to be treated as a variadic macro.
- Add ellipses around `sizeof(..)` calls.
- Reindent some of the lines to better follow style(9) with line
  wrapping.

A number of other clang-format changes were not taken as they are not
compatible with style(9).

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D55394
DeltaFile
+47-59sys/dev/asmc/asmc.c
+47-591 files

FreeBSD/src 4be8b0b. less.man lesskey.nro

Vendor import of less v692.
DeltaFile
+470-470less.man
+48-20lesskey.nro
+48-20lesskey.man
+37-4screen.c
+21-0NEWS
+13-4charset.c
+637-51872 files not shown
+862-59978 files

FreeBSD/src b5d570elib/libfetch common.c

libfetch: Gracefully skip unsupported protocols

If socket() fails because the address family or protocol is unsupported,
just continue with the next address.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55407
DeltaFile
+5-1lib/libfetch/common.c
+5-11 files

FreeBSD/src afbdcd4lib/libfetch common.c

libfetch: Fail hard if interrupted while connecting

This fixes an issue where the first address that DNS returns is blocked
by a packet filter, so we hang for a while, then the user hits Ctrl-C,
interrupting connect(2), whereupon we move on to the next address, get
a connection, request the file, and return to fetch(1), which sees that
SIGINT was caught and bails.

Note that we make no attempt to enforce fetchTimeout in the connection
phase, and never have.  It's feasible, but non-trivial, so we'll leave
it as an exercise for future us.

PR:             293312
MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55406
DeltaFile
+7-1lib/libfetch/common.c
+7-11 files

FreeBSD/src 1b7c4d2lib/libfetch common.c

libfetch: Clean up fetch_info usage

* Provide a wrapper for the common if (verbose) fetch_info(...) idiom.

* Replace remaining instances of fprintf(stderr, ...) with fetch_info().

* Fix a few style nits.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55405
DeltaFile
+34-54lib/libfetch/common.c
+34-541 files

FreeBSD/src d1f1402lib/libnetbsd/sys cdefs.h

libnetbsd: import `__CTASSERT(..)` macros

These compile-time assert macros are similar to `Static_assert` on FreeBSD.

These macros are in use in newer versions of `contrib/netbsd-tests`.

Obtained from:  https://github.com/NetBSD/src (c26cc77b3a0b26b95a2)
MFC after:      1 week
DeltaFile
+16-0lib/libnetbsd/sys/cdefs.h
+16-01 files

FreeBSD/src e188655sys/netinet tcp_subr.c

tcp: improve validation of received TCP over UDP packets

Reviewed by:            glebius, pouria
MFC after:              3 days
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D55410
DeltaFile
+17-5sys/netinet/tcp_subr.c
+17-51 files

FreeBSD/src 1602f00sbin/nvmecontrol nvmecontrol.8 fabrics.c, sys/dev/nvmf nvmf.h

nvmf: Limit the default I/O queue size to 128 entries

Previously the size defaulted to the maximum supported size reported
by the remote host.  The value of 128 matches the default on Linux and
avoids excessive resource usage for I/O queues.

Sponsored by:   Chelsio Communications
DeltaFile
+3-3sbin/nvmecontrol/nvmecontrol.8
+2-1sys/dev/nvmf/nvmf.h
+2-1tools/tools/nvmf/nvmfdd/nvmfdd.c
+1-1sbin/nvmecontrol/fabrics.c
+8-64 files