FreeBSD/src 6365c45sys/sys elf_common.h

elf_common: Add FDO package metadata note type

Reviewed by:    fuz
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57525
DeltaFile
+3-0sys/sys/elf_common.h
+3-01 files

FreeBSD/src 0881f6csecure/lib/libcrypto/man/man3 BIO_s_bio.3 d2i_X509.3, sys/crypto/openssl/powerpc chachap10-ppc.S

crypto/openssl: update artifacts to match 3.5.7 release

MFC after:      3 days
MFC with:       1523ccfd9
DeltaFile
+85-3secure/lib/libcrypto/man/man3/BIO_s_bio.3
+46-4sys/crypto/openssl/powerpc64le/chachap10-ppc.S
+46-4sys/crypto/openssl/powerpc/chachap10-ppc.S
+46-4sys/crypto/openssl/powerpc64/chachap10-ppc.S
+24-16secure/lib/libcrypto/man/man3/d2i_X509.3
+19-10secure/lib/libcrypto/man/man3/SSL_CTX_set_session_id_context.3
+266-41901 files not shown
+1,274-996907 files

FreeBSD/src 1523ccfcrypto/openssl/apps testrsa.h, crypto/openssl/crypto/cast cast_s.h

MFV: openssl 3.5.7

This change is a security release which resolves several issues with OpenSSL 3.5,
the highest severity issue being ranked "High". Users are strongly encouraged to
update to this release.

More information about the release (from a high level) can be found in
the release notes [1].

1. https://github.com/openssl/openssl/blob/openssl-3.5.7/NEWS.md

All conflicts were resolved with `--theirs`, taking the release diff
over the local diff; the conflicts occurred due to preemptive security
fixes applied by so@ in e508c343.

MFC after:      3 days (the important security issues have been
preemptively addressed)
Merge commit '3a71a35ad9dad0e5d2cad8efecc8ba9d57c42d43'


    [6 lines not shown]
DeltaFile
+854-8,335crypto/openssl/test/quic_record_test.c
+449-4,467crypto/openssl/apps/testrsa.h
+380-3,027crypto/openssl/fuzz/dtlsserver.c
+284-2,821crypto/openssl/test/pkcs12_format_test.c
+224-2,214crypto/openssl/test/evp_extra_test2.c
+257-2,049crypto/openssl/crypto/cast/cast_s.h
+2,448-22,913196 files not shown
+7,603-35,267202 files

FreeBSD/src 4bdcff5sys/powerpc/booke machdep_e500.c, sys/powerpc/include spr.h

powerpc/booke: Add watchdog driver

The Book-E watchdog is effectively a state machine based around an AND
mask of the timebase register.  A single bit (0-63) is watched in the
timebase register, and when it transitions (by counting *or* by
programmatically setting) an exception is triggered.  The first
exception triggers a core interrupt.  The second is programmable.
In our case, we panic on the first and reset on second.
DeltaFile
+71-0sys/powerpc/booke/machdep_e500.c
+3-0sys/powerpc/include/spr.h
+74-02 files

FreeBSD/src d08cb1dsys/dev/watchdog watchdog.c

watchdog: Fix a couple type issues

* Force the type of the literal `1` passed to nstosbt() to ensure it's a
  64-bit type (or larger).  Otherwise it gets inconveniently typed to
  int, resulting in truncation.
* Use `flsll()` when converting sbt to power-of-2-nanoseconds to fix
  32-bit compatibility.

PR:             292616
Obtained from:  Hewlett Packard Enterprise
Fixes:  26d6617f3 ("watchdog: Convert to using sbintime_t format")
MFC after:      3 days
DeltaFile
+2-2sys/dev/watchdog/watchdog.c
+2-21 files

FreeBSD/src 4d8fde8usr.sbin/ppp fsm.c

ppp: Reject FSM messages whose length is smaller than the message header

PR:             271843
Reported by:    Robert Morris <rtm at lcs.mit.edu>
Reviewed by:    des, emaste
Differential Revision:  https://reviews.freebsd.org/D57139
DeltaFile
+6-0usr.sbin/ppp/fsm.c
+6-01 files

FreeBSD/src 7e97189usr.sbin/ppp chap.c chap.h

ppp: Permit CHAP challenges up to 255 bytes

RFC 1994 does not place any limit on the length of the value field in
challenge messages except that the length is a single octet which
bounds the maximum length to 255.

NB: I'm not sure why the local[] and peer[] arrays contain room for an
authentication name (AUTHLEN) in addition to a challenge value/response,
but I've just left that in place.

PR:             271955
Reported by:    Robert Morris <rtm at lcs.mit.edu>
Reviewed by:    des
Differential Revision:  https://reviews.freebsd.org/D57138
DeltaFile
+2-2usr.sbin/ppp/chap.c
+2-2usr.sbin/ppp/chap.h
+1-1usr.sbin/ppp/defs.h
+5-53 files

FreeBSD/src b5a8b93usr.sbin/ppp id.c

ppp: Don't fetch a non-existent variadic argument

Only fetch the optional mode argument to ID0open to pass to open(2) if
O_CREAT is present in the flags argument.  It is UB to fetch an
argument that doesn't exist.  On CHERI this UB results in a fault.

Reviewed by:    brooks
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D57137
DeltaFile
+4-1usr.sbin/ppp/id.c
+4-11 files

FreeBSD/src 0492dbesys/fs/cd9660 cd9660_rrip.c

cd9660: Don't parse RRIP records whose length overflows the sector boundary

PR:             272896
Reported by:    Robert Morris <rtm at lcs.mit.edu>
Reviewed by:    des, emaste
Differential Revision:  https://reviews.freebsd.org/D57135
DeltaFile
+18-8sys/fs/cd9660/cd9660_rrip.c
+18-81 files

FreeBSD/src f2f67dfsys/dev/mii miidevs smscphy.c

mii: Fix SMSC name

The LAN8700 / LAN8710 PHYs were Standard Microsystems Corporation (SMSC)
parts.  I presume SMC was chosen as an abbreviation, but the company
always used SMSC as its short name.

SMSC was acquired by Microchip in 2012.  I kept the pre-acquisition
name, as NetBSD (from where we obtained miidevs) uses SMSC.

Reviewed by:    adrian
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56819

(cherry picked from commit 89c883c09ab5e0fdca7ac5dfe74fcc46b7669eb5)
DeltaFile
+4-4sys/dev/mii/miidevs
+2-2sys/dev/mii/smscphy.c
+6-62 files

FreeBSD/src b203a37sys/compat/linuxkpi/common/include/linux pm_qos.h

linuxkpi: Make pm_qos.h self-contained

Include <linux/types.h> for `false`.  This is needed by amdgpu somewhere
between Linux 6.12 and 6.15.

Reviewed by:    Minsoo Choo <minsoo at minsoo.io>, bz
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57415

(cherry picked from commit 67df313015906d84d90df8e37795885e81cf8da5)
DeltaFile
+2-0sys/compat/linuxkpi/common/include/linux/pm_qos.h
+2-01 files

FreeBSD/src 4b57028usr.bin/xinstall xinstall.c, usr.bin/xinstall/tests install_test.sh

xinstall: Do not allow -l and -s together

Cannot strip the target if creating a link.

Reviewed by:    des
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57398

(cherry picked from commit 521afce6a859c1d7ac9674e8f21ff45418becaf5)
DeltaFile
+6-0usr.bin/xinstall/xinstall.c
+3-0usr.bin/xinstall/tests/install_test.sh
+9-02 files

FreeBSD/src 166532eusr.bin/xinstall install.1

install.1: Convert link flags to a table

The five link flags get lost in prose.

Reviewed by:    ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57418

(cherry picked from commit 248dd56d2dea03e4723e8225b890d02fcc10973f)
DeltaFile
+13-10usr.bin/xinstall/install.1
+13-101 files

FreeBSD/src 8853447usr.bin/xinstall/tests install_test.sh

xinstall: Add test for -d -s not allowed together

Reviewed by:    des
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57403

(cherry picked from commit 4908bea5b7f5de70032e201e718958ef40bc3b03)
DeltaFile
+7-0usr.bin/xinstall/tests/install_test.sh
+7-01 files

FreeBSD/src 5ccda21usr.bin/xinstall install.1

install.1: Document options incompatible with -s

Reported by:    des
Reviewed by:    ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57409

(cherry picked from commit b49021b49a78ca6a9e3a1a59c5aa6f2fec503afb)
DeltaFile
+5-1usr.bin/xinstall/install.1
+5-11 files

FreeBSD/src ab8ceaalib/libc/stdlib hcreate.3

hcreate(3): fix incorrect claim that hdestroy frees keys

The man page incorrectly stated that hdestroy() calls free(3) for
each comparison key. The implementation (hdestroy_r.c) only frees
the internal table structure, not the user-provided keys or data.
This matches POSIX, which says hdestroy "shall dispose of the
search table" without mentioning key deallocation.

Update the description to clarify that the caller is responsible
for freeing any memory associated with table entries.

PR: 291240
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2095
DeltaFile
+6-5lib/libc/stdlib/hcreate.3
+6-51 files

FreeBSD/src 05a02d3usr.bin/mail mail.1

mail(1): fix temporary file path in FILES section

The FILES section listed /tmp/R* but the source code uses
/tmp/mail.R* (e.g. mail.RsXXXXXXXXXX, mail.ReXXXXXXXXXX,
mail.RxXXXXXXXXXX) as the mkstemp template prefix.

PR: 289980
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2103
DeltaFile
+2-2usr.bin/mail/mail.1
+2-21 files

FreeBSD/src 3a71a24sbin/etherswitchcfg etherswitchcfg.8

etherswitchcfg(8): document atu commands

Add documentation for the ATU (Address Translation Unit) commands
that were implemented but not documented in the man page:

- atu dump: display the MAC address table
- atu flush all: clear all dynamic ATU entries
- atu flush port <n>: clear ATU entries for a specific port

Also add atu to the SYNOPSIS section.

PR: 275413
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2096
DeltaFile
+20-1sbin/etherswitchcfg/etherswitchcfg.8
+20-11 files

FreeBSD/src 473fa0fshare/man/man4 re.4

re(4): document jumbo frame support for 8168/8111 chips

The man page only mentioned jumbo frame support for the 8169, 8169S,
and 8110S chips. The 8168 and 8111 family also support jumbo frames,
with varying MTU limits depending on the chip revision (6K for C
variants, 9K for D and later). Update the documentation to reflect
the actual driver capabilities.

PR: 160399
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2097
DeltaFile
+7-4share/man/man4/re.4
+7-41 files

FreeBSD/src e7bdf44usr.sbin/bsdconfig bsdconfig.8

bsdconfig(8): add missing vt(4) console commands

Add documentation for the vt_font, vt_keymap, vt_repeat, vt_saver,
vt_screenmap, and vt_ttys commands which are available at runtime
but were not listed in the man page.

Also clarify that the existing syscons_* commands are for the
syscons(4) console driver and remove stale commented-out entries.

PR: 291051
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2100
DeltaFile
+31-17usr.sbin/bsdconfig/bsdconfig.8
+31-171 files

FreeBSD/src f8c8875share/man/man8 diskless.8

diskless(8): remove references to deleted clone_root script

The clone_root script was removed from the tree in commit
7736786b08e8 but the diskless(8) man page still referenced it
in two places. Remove both references.

PR: 292231
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2101
DeltaFile
+2-9share/man/man8/diskless.8
+2-91 files

FreeBSD/src 2c5fd7dbin/cp cp.1

cp(1): fix -P documentation to reflect it works without -R

Since commit 97e13037915c, the -P flag works without -R as
required by POSIX. Update the man page to state that only -H
and -L are ignored without -R, while -P can be used independently.

PR: 289959
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2102
DeltaFile
+8-5bin/cp/cp.1
+8-51 files

FreeBSD/src 82780afusr.bin/du du.1

du(1): document --si option

The --si option (human-readable output with SI units based on
powers of 1000) was implemented but missing from both the SYNOPSIS
and the options list.

PR: 265199
Signed-off-by: Kit Dallege <xaum.io at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2104
DeltaFile
+7-2usr.bin/du/du.1
+7-21 files

FreeBSD/src 2671607lib/libc/tests/gen fpsetmask_test.c fpclassify_test.c

libc/tests: Enable fpsetround_basic which was never triggered since ported.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1656
DeltaFile
+26-16lib/libc/tests/gen/fpsetmask_test.c
+8-5lib/libc/tests/gen/fpclassify_test.c
+4-3lib/libc/tests/gen/fpsetround_test.c
+38-243 files

FreeBSD/src ce08af6tests/sys/mac/portacl bind.c misc.sh

mac_portacl tests: rewrite the test program and test unspecific family.

Reviewed by: imp,emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/1659
DeltaFile
+60-0tests/sys/mac/portacl/bind.c
+32-23tests/sys/mac/portacl/misc.sh
+2-0tests/sys/mac/portacl/Makefile
+94-233 files

FreeBSD/src 85e449clib/libc/tests/gen fpsetmask_test.c fpclassify_test.c

libc/tests: copy ieeefp tests out from contrib/netbsd-tests and rename them as FreeBSD test convention.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1656
DeltaFile
+369-0lib/libc/tests/gen/fpsetmask_test.c
+206-0lib/libc/tests/gen/fpclassify_test.c
+163-0lib/libc/tests/gen/fpsetround_test.c
+3-3lib/libc/tests/gen/Makefile
+741-34 files

FreeBSD/src 6b61852sys/security/mac_portacl mac_portacl.c

mac_portacl: do not reject unspecific family directly

Reviewed by: imp,emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/1659
DeltaFile
+2-1sys/security/mac_portacl/mac_portacl.c
+2-11 files

FreeBSD/src 9a6a2e4usr.sbin/bsdinstall/scripts hostname

Warn if hostname is empty

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1700
DeltaFile
+29-4usr.sbin/bsdinstall/scripts/hostname
+29-41 files

FreeBSD/src a62eaf7usr.sbin/bsdinstall/scripts zfsboot

bsdinstall(8): Fix GPT label conflicts with disks not managed by us

Signed-off-by: Phil Krylov <phil at krylov.eu>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1735
DeltaFile
+19-0usr.sbin/bsdinstall/scripts/zfsboot
+19-01 files

FreeBSD/src 925f536usr.bin/renice renice.c, usr.bin/renice/tests renice_test.sh

improve renice user error messages

Improve error handling for invalid user names and UIDs in renice:
- Use warnx() and err() for consistent error reporting
- Set errno = EINVAL for invalid input
- Provide clearer error messages for invalid user names and UIDs
- Add test cases for invalid user input

Signed-off-by: androvonx95 <androvonx95 at tutamail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1768
DeltaFile
+57-0usr.bin/renice/tests/renice_test.sh
+27-4usr.bin/renice/renice.c
+84-42 files