HardenedBSD/src aa20f56lib/msun/man fmax.3, release/packages generate-set-ucl.lua generate-ucl.lua

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+67-0sys/fs/nfs/nfsid.h
+0-23sys/fs/nfs/nfs.h
+8-5lib/msun/man/fmax.3
+1-1release/packages/generate-set-ucl.lua
+1-1release/packages/generate-ucl.lua
+2-0usr.bin/yes/tests/yes_test.sh
+79-304 files not shown
+82-3110 files

HardenedBSD/src f0f0293lib/msun/man fmax.3, release/packages generate-ucl.lua generate-set-ucl.lua

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+67-0sys/fs/nfs/nfsid.h
+0-23sys/fs/nfs/nfs.h
+8-5lib/msun/man/fmax.3
+1-1release/packages/generate-ucl.lua
+2-0usr.bin/yes/tests/yes_test.sh
+1-1release/packages/generate-set-ucl.lua
+79-304 files not shown
+82-3110 files

HardenedBSD/src 8f2646ausr.bin/diff pr.c diffreg.c, usr.bin/diff3 diff3.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+37-24usr.bin/diff/pr.c
+28-20usr.bin/diff3/diff3.c
+5-0usr.bin/diff/diffreg.c
+70-443 files

HardenedBSD/src c5961b6usr.bin/yes/tests yes_test.sh

yes: fix argv test race between fork and exec

The argv test checks ps(1) output immediately after backgrounding yes(1), but
the forked child briefly shows the parent shell's argv before exec(2) replaces it.
This caused intermittent failures where ps(1) captured the atf shell wrapper
command line instead of "yes y".

Approved by:    des
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D56231
DeltaFile
+2-0usr.bin/yes/tests/yes_test.sh
+2-01 files

HardenedBSD/src 63d0e3erelease/packages generate-set-ucl.lua generate-ucl.lua

packages: Fix build with libucl 0.9.3

In libucl 0.9.3, macros and includes are disabled by default when
creating a new UCL parser.  This breaks the package build, which
relies on includes.  Fix this by explicitly passing zero flags
to ucl.parser().

MFC after:      3 days
Fixes:          abda442d92fd ("contrib/libucl:  Import libucl 0.9.3")
Reviewed by:    kevans, bapt
Reported by:    freebsd at walstatt-de.de
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56266
DeltaFile
+1-1release/packages/generate-set-ucl.lua
+1-1release/packages/generate-ucl.lua
+2-22 files

HardenedBSD/src 7764e9clib/msun/man fmax.3

fmax.3: Add caveat for going beyond C std requirements

libm's fmax and fmin family of functions treat +0.0 as greater than
-0.0.  This is not required by the C standard, so the user may not see
this behaviour due to compiler optimization.

PR:             294214
Reviewed by:    fuz
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56230
DeltaFile
+8-5lib/msun/man/fmax.3
+8-51 files

HardenedBSD/src f5d3d35usr.bin/diff pr.c

diff: use O_CLOEXEC on pipes

This only simplifies the code, no functional changes expected

MFC After:      1 week

(cherry picked from commit c8d40bf8ecc60cc15e3904410db62065ea681fdc)
DeltaFile
+2-5usr.bin/diff/pr.c
+2-51 files

HardenedBSD/src 0c0e08busr.bin/diff diffreg.c

diff: handle read(2) failures

MFC After:      1 week

(cherry picked from commit 9b98c4b053917cad42e26596b37df72efab6dc39)
DeltaFile
+5-0usr.bin/diff/diffreg.c
+5-01 files

HardenedBSD/src 8fade07usr.bin/diff3 diff3.c

diff3: set O_CLOEXEC on pipes

This avoid leaking pipe fd in children and simplifies the code

MFC After:      1 week
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D56120

(cherry picked from commit 945e60e018c287f8097f3ee4a30ccf4921845aa1)
DeltaFile
+2-6usr.bin/diff3/diff3.c
+2-61 files

HardenedBSD/src 8cc85a8usr.bin/diff pr.c

diff: prefer posix_spawn over pdfork/execl

MFC After:              1 week
Reviewed by:            kib
Differential Revision:  https://reviews.freebsd.org/D56076

(cherry picked from commit 6d8b2ac449f34423be9d56492022421db61d920e)
DeltaFile
+39-23usr.bin/diff/pr.c
+39-231 files

HardenedBSD/src 2abaf8ausr.bin/diff3 diff3.c

diff3: plug fd leak

MFC After:      1 week
Reported by:    kib

(cherry picked from commit 33424fd50ee0333bc6f70b5b14a270b85e5b5de1)
DeltaFile
+1-0usr.bin/diff3/diff3.c
+1-01 files

HardenedBSD/src 210f4d8usr.bin/diff3 diff3.c

diff3: prefer posix_spawn over pdfork/execlp

MFC After:              1 week
Reviewed by:            kib
Differential Revision:  https://reviews.freebsd.org/D56075

(cherry picked from commit 5f7f0efe8e13247fc80a2a739e757f73a5d7ebda)
DeltaFile
+29-18usr.bin/diff3/diff3.c
+29-181 files

HardenedBSD/src e6db4ddsys/fs/nfs nfsid.h nfs.h, usr.sbin/nfsuserd nfsuserd.c

nfsid.h: Put the nfsd_idargs structure in a new .h

This patch moves the definition of the nfsd_idargs
structure out of nfs.h and into a new file called
nfsid.h.

This is being done so that it can be included in
nfs_diskless.c in a future commit.

There should be no semantics change from this
commit.

MFC after:      1 week
Fixes:  8b9775912cbc ("nfs_diskless: Add support for an NFSv4 root fs")
DeltaFile
+67-0sys/fs/nfs/nfsid.h
+0-23sys/fs/nfs/nfs.h
+1-0sys/fs/nfs/nfs_commonport.c
+1-0sys/fs/nfs/nfs_commonsubs.c
+0-1sys/fs/nfs/nfs_var.h
+1-0usr.sbin/nfsuserd/nfsuserd.c
+70-246 files

HardenedBSD/src 5a33016lib/msun/aarch64 fenv.c, lib/msun/arm fenv.c fenv.h

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+110-33lib/msun/arm/fenv.c
+78-21lib/msun/powerpc/fenv.c
+77-19lib/msun/riscv/fenv.c
+64-18lib/msun/aarch64/fenv.c
+49-14lib/msun/arm/fenv.h
+43-13lib/msun/riscv/fenv.h
+421-1188 files not shown
+596-19514 files

HardenedBSD/src 5c36d1bsys/dev/sound/usb uaudio_pcm.c uaudio.c

snd_uaudio: Retire sndcard_func usage

This is effectively a no-op, as it does not make use of the
sndcard_func->varinfo field, so eventually ua_probe() always succeeds.

Also change ua_probe()'s value to 0. There is no need to return
BUS_PROBE_DEFAULT, because snd_uaudio() attaches the sound(4)'s children
with bus_attach_children().

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56160

(cherry picked from commit 0efd33382504d3172734fa21325fcabef9c7f063)
DeltaFile
+1-12sys/dev/sound/usb/uaudio_pcm.c
+0-5sys/dev/sound/usb/uaudio.c
+1-172 files

HardenedBSD/src 77e5da3lib/libc/gen posix_spawn.3

posix_spawn_file_action_addopen.3: ignoring close failure is now approved

(cherry picked from commit b7b485efac8c1b601b9c0ada39921bad0e342970)
DeltaFile
+4-2lib/libc/gen/posix_spawn.3
+4-21 files

HardenedBSD/src 35f585fsys/dev/mlx5/mlx5_en mlx5_en_main.c, sys/net iflib.c if.h

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+16-2sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+9-0sys/net/iflib.c
+3-2sys/net/if.h
+4-1sys/net/iflib.h
+1-0sys/sys/sockio.h
+33-55 files

HardenedBSD/src 11950ecsys/dev/mlx5/mlx5_en mlx5_en_main.c, sys/net iflib.c iflib.h

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+16-2sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+9-0sys/net/iflib.c
+4-1sys/net/iflib.h
+3-2sys/net/if.h
+1-0sys/sys/sockio.h
+33-55 files

HardenedBSD/src cf1f215sys/dev/mlx5/mlx5_en mlx5_en_main.c, sys/net iflib.c if.h

net: Add SIOCGI2CPB ioctl & add page/bank fields to ifi2creq

This commit adds page & bank fields to ifi2creq in preparation
for adding CMIS support for 400g optics to ifconfig.
The new ioctl SIOCGI2CPB is added, so that drivers can distinguish
between callers asking for page/bank selection and legacy callers
that simply failed to zero out all ifi2creq fields.

The mlx5en(4) driver and iflib(4) driver frameork have been updated
to use this new SIOCGI2CPB ioctl and support page/bank operations.
A follow-on patchset will add support to ifconfig for reporting
data from CMIS optics.

This has been tested on Nvidia ConnectX-7 and Broadcom Thor2 (using
out of tree driver) based NICs.

Differential Revision: https://reviews.freebsd.org/D55912
Sponsored by: Netflix Inc.
Reviewed by: kib
DeltaFile
+16-2sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+9-0sys/net/iflib.c
+3-2sys/net/if.h
+4-1sys/net/iflib.h
+1-0sys/sys/sockio.h
+33-55 files

HardenedBSD/src a4252cdshare/misc committers-ports.dot, sys/fs/nfsclient nfs_clport.c nfs_clstate.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+25-12sys/nfs/nfs_diskless.c
+31-0sys/fs/nfsclient/nfs_clport.c
+15-2sys/fs/nfsclient/nfs_clstate.c
+5-2sys/fs/nfsclient/nfs_clvfsops.c
+3-0share/misc/committers-ports.dot
+2-1sys/fs/nfsclient/nfs_clrpcops.c
+81-172 files not shown
+83-188 files

HardenedBSD/src cd7da48share/misc committers-ports.dot, sys/fs/nfsclient nfs_clport.c nfs_clstate.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+25-12sys/nfs/nfs_diskless.c
+31-0sys/fs/nfsclient/nfs_clport.c
+15-2sys/fs/nfsclient/nfs_clstate.c
+5-2sys/fs/nfsclient/nfs_clvfsops.c
+3-0share/misc/committers-ports.dot
+2-1sys/fs/nfsclient/nfs_clrpcops.c
+81-172 files not shown
+83-188 files

HardenedBSD/src c84049cshare/misc committers-ports.dot

Add myself as a committer

Approved by:    makc (mentor)
DeltaFile
+3-0share/misc/committers-ports.dot
+3-01 files

HardenedBSD/src 8b97759sys/fs/nfs nfs_var.h, sys/fs/nfsclient nfs_clport.c nfs_clstate.c

nfs_diskless: Add support for an NFSv4 root fs

Without this patch, diskless root NFS file systems
could only be mounted via NFSv3 (or NFSv2).
This patch adds the basic support needed to mount
a root fs via NFSv4.

At this time, the NFSv4 mount will only work if
the following is done on the NFS server configuration:
- The root directory specified in the "V4:" line in
  /etc/exports must be "/".  This is needed since the
  path to mount must be the same for NFSv3 and NFSv4.
- The NFS server must be configured to do both NFSv3
  and NFSv4, since the bootstrap code still uses NFSv3.
- The NFSv4 server must be configured with:
  vfs.nfs.enable_uidtostring=1
  vfs.nfsd.enable_stringtouid=1
  since the NFSv4 root fs cannot be running nfsuserd(8)
  when it is booting.  (This limitation may be removed

    [14 lines not shown]
DeltaFile
+25-12sys/nfs/nfs_diskless.c
+31-0sys/fs/nfsclient/nfs_clport.c
+15-2sys/fs/nfsclient/nfs_clstate.c
+5-2sys/fs/nfsclient/nfs_clvfsops.c
+2-1sys/fs/nfsclient/nfs_clrpcops.c
+1-0sys/fs/nfs/nfs_var.h
+79-176 files

HardenedBSD/src cb81314. CONTRIBUTING.md

CONTRIBUTING.md: Correct typo

Reported by:    vladlen
DeltaFile
+1-1CONTRIBUTING.md
+1-11 files

HardenedBSD/src 081f52alib/msun/aarch64 fenv.c, lib/msun/amd64 fenv.c

msun: remove requirement to have C99 inline semantic

PR:     277958

(cherry picked from commit d15733065c4221dcd5bb3622d225760f271f6fc9)
DeltaFile
+0-5lib/msun/arm/fenv.c
+0-5lib/msun/aarch64/fenv.c
+0-5lib/msun/amd64/fenv.c
+0-5lib/msun/i387/fenv.c
+0-5lib/msun/powerpc/fenv.c
+0-5lib/msun/riscv/fenv.c
+0-306 files

HardenedBSD/src 2d81a95lib/msun/powerpc fenv.c fenv.h

msun/powerpc: convert fenv functions to proper linkage

PR:     277958

(cherry picked from commit e4505a58a77f6f4f2df60d26ea99710af6c6b3cf)
DeltaFile
+73-16lib/msun/powerpc/fenv.c
+39-12lib/msun/powerpc/fenv.h
+112-282 files

HardenedBSD/src faca80flib/msun/arm fenv.c fenv.h

msun/arm: convert fenv functions to proper linkage

PR:     277958

(cherry picked from commit 70674434e2424d61262322702d0415e54d8cc1a2)
DeltaFile
+105-28lib/msun/arm/fenv.c
+45-13lib/msun/arm/fenv.h
+150-412 files

HardenedBSD/src 492843dlib/msun/aarch64 fenv.c fenv.h

msun/aarch64: convert fenv functions to proper linkage

PR:     277958

(cherry picked from commit 3a01e1e1a50cb9a9594aac2148dc920a6b295428)
DeltaFile
+59-13lib/msun/aarch64/fenv.c
+31-10lib/msun/aarch64/fenv.h
+90-232 files

HardenedBSD/src 60b5183lib/msun/amd64 fenv.c, lib/msun/i387 fenv.c

msun/x86: convert rest of the extern inline fenv functions to proper linkage

PR:     277958

(cherry picked from commit 5bc64b7d417dd1f105755e093f8e807bcdc2a666)
DeltaFile
+27-5lib/msun/amd64/fenv.c
+27-5lib/msun/i387/fenv.c
+20-9lib/msun/x86/fenv.h
+74-193 files

HardenedBSD/src f13155clib/msun/riscv fenv.c fenv.h

msun/riscv: convert fenv functions to proper linkage

PR:     277958

(cherry picked from commit 6b89f5360f8441ffd1a3e8db7375ed3ccdba7d2a)
DeltaFile
+71-13lib/msun/riscv/fenv.c
+39-12lib/msun/riscv/fenv.h
+110-252 files