FreeBSD/src 7e4ac11sys/kern vfs_bio.c

getblkx(9): be more tolerant but also strict with the buffer size checks

It is possible that on-disk filesystem format causes allocation of
buffers of size larger than maxbcachebuf.  Currently, getblkx() and
indirectly bufkva_alloc() panic in that situation.

It is more useful to return an error instead, allowing the system to
continue running.

PR:     277414
Reported by:    Robert Morris <rtm at lcs.mit.edu>
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+10-2sys/kern/vfs_bio.c
+10-21 files

FreeBSD/src beadbcalib/libsys read.2

read(2): Add write cross reference

Add a write cross reference in the SEE ALSO section.

Sponsored by:           Netflix
DeltaFile
+2-1lib/libsys/read.2
+2-11 files

FreeBSD/src 0d161f7lib/libsys read.2

read.2: Use .Fn markup instead of .Xr for read/write calls

Udpate both write / read references from .Xr to .Fn to eliminate
self-reference cross reference.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1128
DeltaFile
+4-4lib/libsys/read.2
+4-41 files

FreeBSD/src 2956f58share/man/man5 src.conf.5, share/mk bsd.lib.mk bsd.opts.mk

Add an UNDEFINED_VERSION option

When enabled (current default) link with --undefined-version to allow
symbol maps to contain symbols not defined by libraries.  When disabled,
link with --no-undefined-version to disallow these bugs.

WITHOUT_UNDEFINED_VERSION is currently broken.  Once it is fixed it
should be made the default and this option should likely be removed.

Reviewed by:    dim, emaste
Differential Revision:  https://reviews.freebsd.org/D44169
DeltaFile
+6-4share/mk/bsd.lib.mk
+4-1share/man/man5/src.conf.5
+2-0tools/build/options/WITHOUT_UNDEFINED_VERSION
+1-0share/mk/bsd.opts.mk
+13-54 files

FreeBSD/src c5246cbsys/dev/nvme nvme_ctrlr.c

nvme: Report only the unknown bits

When we get a smart error that's unknown, report only the unknown
(reserved) bits of the Critical Warning Bitfield.

Sponsored by:           Netflix
DeltaFile
+2-1sys/dev/nvme/nvme_ctrlr.c
+2-11 files

FreeBSD/src 94dedfdshare/man/man7 hier.7

hier.7: various improvements m-s

Second batch of word smithing: /media, /mnt, /nonexistant, /rescue,
/sbin: Improved wording and a few missing files added

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/831
DeltaFile
+14-9share/man/man7/hier.7
+14-91 files

FreeBSD/src f19875bshare/man/man7 hier.7

hier.7: various improvements usr/src and /var

Forth batch of word smithing: /usr/src and /var: Improved wording and a
few missing files added.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/831
DeltaFile
+128-24share/man/man7/hier.7
+128-241 files

FreeBSD/src a5b0727share/man/man7 hier.7

hier.7: various improvements usr (no src)

Third batch of word smithing: /usr but not /usr/src: Improved wording
and a few missing files added.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/831
DeltaFile
+87-39share/man/man7/hier.7
+87-391 files

FreeBSD/src 03ee091share/man/man7 hier.7

hier.7: various improvements

First batch of word smithing: /boot, /dev and /etc. Improved wording and
a few missing files added, though /dev is by no means complete.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/831
DeltaFile
+188-25share/man/man7/hier.7
+188-251 files

FreeBSD/src b286700sys/dev/pci pci_host_generic_fdt.c pci_host_generic.c

pci_host_generic: Enumerate resource ranges under bootverbose

Previously ranges were only enumerated for the FDT attachment but not
ACPI.  This commit moves the enumeration to the shared attach routine
so it is done for both.  While here, don't list empty ranges but do
include the resource type for each range.

Reviewed by:    andrew
Differential Revision:  https://reviews.freebsd.org/D44132
DeltaFile
+0-11sys/dev/pci/pci_host_generic_fdt.c
+8-0sys/dev/pci/pci_host_generic.c
+8-112 files

FreeBSD/src 7485926sbin/nvmecontrol logpage.c, sys/dev/nvme nvme.h nvme_ctrlr.c

nvme: Firmware revisions in the firmware slot info logpage are ASCII strings

In particular, don't try to byteswap the values as 64-bit integers and
always print a non-empty version as a string.

Reviewed by:    chuck, imp
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D44121
DeltaFile
+2-12sys/dev/nvme/nvme.h
+2-11sbin/nvmecontrol/logpage.c
+0-4sys/dev/nvme/nvme_ctrlr.c
+4-273 files

FreeBSD/src 638b5aesys/netinet tcp_hpts.h tcp_hpts.c

HTPS has actually three states not two so the macro needs to account for that.

Ok lets fix up the tcp_in_hpts() so that it also says yes if you
are in the race state moving and you are scheduled to be put in.
This also requires changing the MPASS to be the old version non
inline function of tcp_in_hpts().

This change also adds a new inline macro so that a uint64_t timestamp can be
obtained by a transport (aka Rack will use this).

Reviewed by: glebius, tuexen
Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D44157
DeltaFile
+14-1sys/netinet/tcp_hpts.h
+1-1sys/netinet/tcp_hpts.c
+15-22 files

FreeBSD/src 80d2b63. UPDATING, lib/csu/common crtbrand.S

Update in preparation for 13.3-RELEASE

- Bump BRANCH to RELEASE
- Add the anticipated RELEASE announcement date
- Set a static __FreeBSD_version

Approved by:    re (implicit)
Sponsored by:   https://www.patreon.com/cperciva
DeltaFile
+3-0UPDATING
+1-1lib/csu/common/crtbrand.S
+1-1sys/conf/newvers.sh
+5-23 files

FreeBSD/src c6a6ec8sys/arm64/arm64 locore.S

arm64: Fix typo in pagetable_l0_ttbr0_bootstrap symbol name

Obtained from:  CheriBSD
DeltaFile
+3-3sys/arm64/arm64/locore.S
+3-31 files

FreeBSD/src b307cfesys/kern uipc_mqueue.c

mqueuefs: fix statfs report to not signal file system full

Synthetic file systems that do not actually allocate file system
blocks or inodes should report that they have space available and
that they provide 0 inodes, in order to prevent capacity monitoring
tools from warning about resource exhaustion.

This has been fixed in all other synthetic file systems in base in
commit 88a795e80c0, but this file was overlooked since its name does
not indicate that it also provides a file system.

MFC after:      1 month
DeltaFile
+2-2sys/kern/uipc_mqueue.c
+2-21 files

FreeBSD/src 2423565. .cirrus.yml

Cirrus-CI: Add manual Clang 18 jobs

Work is in progress to import Clang/LLVM 18 as the base system compiler.
llvm18-lite is not yet in the quarterly package set but but will be
available in the not too distant future, and is available for src forks
that switch to latest packages.  Add manual llvm18 jobs now so that they
can be used for testing.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+16-0.cirrus.yml
+16-01 files

FreeBSD/src 0854004.github CODEOWNERS

CODEOWNERS: Add Stephane Rochoy

Stephane Rochoy isn't quite the maintainer of these items, but has an
interest in them. As an experiment, see if this is a viable thing to do.
DeltaFile
+16-3.github/CODEOWNERS
+16-31 files

FreeBSD/src 484de86sbin/ldconfig ldconfig.8 ldconfig.c

ldconfig: remove ignored -v (verbose) option

The -v option used to print useful information when operating on a.out
format libraries. After the removal of a.out support, it was accepted
but did not have any effect.

Remove the option and update the man-page.

While here mention the set of historic options that are accepted but
ignored: "-elf", "-s", and "-v".

The FILES section contained outdated information and did not mention
the way library directories of optional ports and packages are
included in the library search path recorded in the hints file.

The description of the "-B" option was incorrect (described a planned
change) for big-endian platforms (powerpc64). These do still default
to big-endian hints files, since the current version of the "pkg"
program expects the hints file to be in native byte-order.

    [4 lines not shown]
DeltaFile
+19-12sbin/ldconfig/ldconfig.8
+4-4sbin/ldconfig/ldconfig.c
+23-162 files

FreeBSD/src 2a04785usr.bin/mkimg mkimg.1

mkimg.1: add new PARTITION SPECIFICATION section

The specification follows a commentary to the function parse_part()
in the source code and the code itself.

(cherry picked from commit d1797fb5bbaeb212501a72b916d647fb2e021d50)
DeltaFile
+38-1usr.bin/mkimg/mkimg.1
+38-11 files

FreeBSD/src 22f1192usr.bin/mkimg mkimg.1

mkimg.1: add new PARTITION SPECIFICATION section

The specification follows a commentary to the function parse_part()
in the source code and the code itself.

(cherry picked from commit d1797fb5bbaeb212501a72b916d647fb2e021d50)
DeltaFile
+38-1usr.bin/mkimg/mkimg.1
+38-11 files

FreeBSD/src b9c2c36sys/contrib/openzfs/cmd/zpool zpool_main.c, sys/contrib/openzfs/cmd/zpool/os/linux zpool_vdev_os.c

zfs: merge openzfs/zfs at fb6d53206 (zfs-2.1-release) into stable/13

Notable upstream pull request merges:
 #13976 3ad882658 Avoid calling rw_destroy() on uninitialized rwlock
 #15243 11574a793 Add zfs_prepare_disk script for disk firmware install
 #15331 e1bc32f71 Report ashift of L2ARC devices in zdb
 #15675 12a031a3f spa: make read/write queues configurable
 #15719 b4481996b spa: Fix FreeBSD sysctl handlers
 #15719 8e5298f0a spa: Let spa_taskq_param_get()'s addition of a newline
                       be optional
 #15769 dfece78a4 Add 'zpool status -e' flag to see unhealthy vdevs
 #15847 d1ee3d611 LUA: Backport CVE-2020-24370's patch

Obtained from:  OpenZFS
OpenZFS commit: fb6d532066f23458f768a97ae94b158c42cbe484
OpenZFS tag:    zfs-2.1.15
DeltaFile
+303-284sys/contrib/openzfs/lib/libzfs/libzfs.abi
+190-172sys/contrib/openzfs/lib/libzfs_core/libzfs_core.abi
+266-35sys/contrib/openzfs/cmd/zpool/zpool_main.c
+279-1sys/contrib/openzfs/module/zfs/spa.c
+255-0sys/contrib/openzfs/cmd/zpool/os/linux/zpool_vdev_os.c
+193-0sys/contrib/openzfs/lib/libzfs/libzfs_util.c
+1,486-492136 files not shown
+4,193-1,154142 files

FreeBSD/src 56ec98alib/libpam/modules/pam_xdg pam_xdg.c

pam_xdg: Close the dir after removal

CID:    1534878
Sponsored by:   Beckhoff Automation GmbH & Co. KG
DeltaFile
+1-0lib/libpam/modules/pam_xdg/pam_xdg.c
+1-01 files

FreeBSD/src fb99582tests/sys/netpfil/pf route_to.sh

pf tests: IPv6 versions of the route-to/reply-to if-bound tests

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+106-0tests/sys/netpfil/pf/route_to.sh
+106-01 files

FreeBSD/src 6460322sys/netpfil/pf pf.c, tests/sys/netpfil/pf route_to.sh

pf: support if-bound with reply-to

On reply-to we don't know what interface to bind to when we create
the state. Create any reply-to state as floating, but bind to the
appropriate interface once we're handling the reply.

See also:       https://redmine.pfsense.org/issues/15220
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+56-0tests/sys/netpfil/pf/route_to.sh
+32-1sys/netpfil/pf/pf.c
+88-12 files

FreeBSD/src b9880e2tests/sys/kern sigsys.c

sigsys test: correct count of delivered signals

(cherry picked from commit 09dd7240acf1fc50061246013ce318404d70c4e0)
DeltaFile
+4-4tests/sys/kern/sigsys.c
+4-41 files

FreeBSD/src 846bf43sys/fs/msdosfs msdosfs_fat.c

fs/msdosfs fatblock: use ulmin() rather than min()

PR:     277237

(cherry picked from commit 0085afdceb17cb7d4e41f9073299f688372c6a0f)
DeltaFile
+1-1sys/fs/msdosfs/msdosfs_fat.c
+1-11 files

FreeBSD/src b2c9d40sys/fs/msdosfs msdosfs_fat.c

fs/msdosfs fatblock: use ulmin() rather than min()

PR:     277237

(cherry picked from commit 0085afdceb17cb7d4e41f9073299f688372c6a0f)
DeltaFile
+1-1sys/fs/msdosfs/msdosfs_fat.c
+1-11 files

FreeBSD/src acb4075tests/sys/kern sigsys.c

sigsys test: correct count of delivered signals

(cherry picked from commit 09dd7240acf1fc50061246013ce318404d70c4e0)
DeltaFile
+4-4tests/sys/kern/sigsys.c
+4-41 files

FreeBSD/src e38dee6usr.bin/posixmqcontrol posixmqcontrol.c posixmqcontrol.1

posixmqcontrol(1): manage posix message queues

(cherry picked from commit 0112f8c4a88e75342bdb6b9815fa220c5f645aa0)
DeltaFile
+924-0usr.bin/posixmqcontrol/posixmqcontrol.c
+180-0usr.bin/posixmqcontrol/posixmqcontrol.1
+99-0usr.bin/posixmqcontrol/posixmqcontroltest8x64.sh
+50-0usr.bin/posixmqcontrol/posixmqcontroltest8qs.sh
+28-0usr.bin/posixmqcontrol/posixmqcontroltestsane.sh
+4-0usr.bin/posixmqcontrol/Makefile
+1,285-01 files not shown
+1,286-07 files

FreeBSD/src 51c6bf0. .cirrus.yml

Cirrus-CI: bump Clang versions to 16 and 17

Clang/LLVM 17 is currently the in-tree default compiler, so use it as
the default Cirrus-CI toolchain.  Clang/LLVM 18 is coming soon and needs
to be added here, but I ran into trouble with llvm18-lite package
availability so will look at that later.

Reviewed by:    dim (earlier), Jose Luis Duran
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44162
DeltaFile
+15-15.cirrus.yml
+15-151 files