FreeBSD/src 0d9aa2asbin/recoverdisk recoverdisk.c

recoverdisk(1): Change time variables to time_t to compile on i386

Reported by: fluffy
PR: 288550
DeltaFile
+1-1sbin/recoverdisk/recoverdisk.c
+1-11 files

FreeBSD/src 8526152sbin/ping Makefile

ping: Remove unnecessary compiler flag

This reverts commit 55e0aefae688075718e212594e823fe5fbfba4bf.
DeltaFile
+0-2sbin/ping/Makefile
+0-21 files

FreeBSD/src 7ee04c7libexec/rc rc rc.shutdown, libexec/rc/rc.d zfs hostname

rc: Use check_jail to check values of security.jail MIBs

PR:             282404
Reviewed by:    markj, netchild
Approved by:    markj (mentor)
MFC after:      2 weeks
Event:          Berlin Hackathon 202507
Differential Revision:  https://reviews.freebsd.org/D47329

(cherry picked from commit 46f18ecf8d3cdda1cd433841c44a4c1268ab9721)
DeltaFile
+4-4libexec/rc/rc.d/zfs
+2-2libexec/rc/rc
+2-2libexec/rc/rc.shutdown
+2-2libexec/rc/rc.d/hostname
+1-1libexec/rc/rc.d/zfsbe
+1-1libexec/rc/rc.d/routing
+12-121 files not shown
+13-137 files

FreeBSD/src 943ad2clibexec/rc rc rc.shutdown, libexec/rc/rc.d zfs hostname

rc: Use check_jail to check values of security.jail MIBs

PR:             282404
Reviewed by:    markj, netchild
Approved by:    markj (mentor)
MFC after:      2 weeks
Event:          Berlin Hackathon 202507
Differential Revision:  https://reviews.freebsd.org/D47329

(cherry picked from commit 46f18ecf8d3cdda1cd433841c44a4c1268ab9721)
DeltaFile
+4-4libexec/rc/rc.d/zfs
+2-2libexec/rc/rc
+2-2libexec/rc/rc.d/hostname
+2-2libexec/rc/rc.shutdown
+1-1libexec/rc/rc.subr
+1-1libexec/rc/rc.d/routing
+12-121 files not shown
+13-137 files

FreeBSD/src 2dded8fcddl/contrib/opensolaris/cmd/dtrace dtrace.1, share/man/man4 dtrace_fbt.4 Makefile

dtrace_fbt.4: Document the DTrace fbt provider

Reported by:    markj
Reviewed by:    christos, markj (earlier version), ziaee
Obtained from:  Mark Johnston, DTrace, FreeBSD Journal, May 2014
Obtained from:  https://wiki.freebsd.org/DTrace/One-Liners
MFC after:      2 weeks
Relnotes:       yes

(cherry picked from commit 9388c2887817d7162ebb356b39aa9b4ab67a8c00)

Do not mention dtrace_kinst(4) as it is not available on FreeBSD 13.
DeltaFile
+323-0share/man/man4/dtrace_fbt.4
+7-0cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
+1-0share/man/man4/Makefile
+331-03 files

FreeBSD/src 683f161cddl/contrib/opensolaris/cmd/dtrace dtrace.1

dtrace.1: Mention providers in SEE ALSO

Reviewed by:    bnovkov, christos, markj
Approved by:    bnovkov (mentor), christos (mentor), markj (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D50852

(cherry picked from commit 177471148a6111537e84912fb9a033b6ac5ecb17)
DeltaFile
+11-1cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
+11-11 files

FreeBSD/src 0c91fa9cddl/contrib/opensolaris/cmd/dtrace dtrace.1, share/man/man4 dtrace_fbt.4 dtrace_kinst.4

dtrace_fbt.4: Document the DTrace fbt provider

Reported by:    markj
Reviewed by:    christos, markj (earlier version), ziaee
Obtained from:  Mark Johnston, DTrace, FreeBSD Journal, May 2014
Obtained from:  https://wiki.freebsd.org/DTrace/One-Liners
MFC after:      2 weeks
Relnotes:       yes

(cherry picked from commit 9388c2887817d7162ebb356b39aa9b4ab67a8c00)
DeltaFile
+332-0share/man/man4/dtrace_fbt.4
+8-4share/man/man4/dtrace_kinst.4
+5-0cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
+1-0share/man/man4/Makefile
+346-44 files

FreeBSD/src 8679496cddl/contrib/opensolaris/cmd/dtrace dtrace.1

dtrace.1: Mention providers in SEE ALSO

Reviewed by:    bnovkov, christos, markj
Approved by:    bnovkov (mentor), christos (mentor), markj (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D50852

(cherry picked from commit 177471148a6111537e84912fb9a033b6ac5ecb17)
DeltaFile
+12-1cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
+12-11 files

FreeBSD/src 1459853lib/libc/db/hash hash.c, lib/libc/db/man dbm.3 dbopen.3

db/hash.c: Allow O_WRONLY in dbm_open

The dbm(3) manpage explicitly states that O_WRONLY is not allowed in
dbm_open, but a more recent comment in ` __hash_open` suggests otherwise.
Furthermore, POSIX.1 allows O_WRONLY in dbm_open and states
that the underlying file must be opened for both reading and writing.

Fix this by correcting the O_WRONLY check and moving it further into
the function to make sure that the original flags are stored in hashp.

Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D51514
DeltaFile
+98-0lib/libc/tests/db/dbm_perm_test.c
+16-7lib/libc/tests/db/dbm_open_test.c
+9-6lib/libc/db/hash/hash.c
+1-4lib/libc/db/man/dbm.3
+1-4lib/libc/db/man/dbopen.3
+1-0lib/libc/tests/db/Makefile
+126-216 files

FreeBSD/src 7fc218busr.bin/find function.c

find: Put back clearing the NOSTAT bit

In fd186cd16eaf I read the condition backwards. We want to stat all the
time until we can implement something to do it more inteligently as
Jiles suggested in the review.

Fixes: fd186cd16eaf
Noticed by: des
Sponsored by: Netflix
DeltaFile
+3-2usr.bin/find/function.c
+3-21 files

FreeBSD/src b87013flib/libthr/thread thr_getthreadid_np.c

libthr: fix typo in comment

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+1-1lib/libthr/thread/thr_getthreadid_np.c
+1-11 files

FreeBSD/src a0041aesys/kern kern_thread.c

kern/kern_thread.c: fix typo in comment

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+1-1sys/kern/kern_thread.c
+1-11 files

FreeBSD/src 8f6769bsys/kern kern_descrip.c

file: Fix the !CAPABILITIES build

Reported by:    Ian FREISLICH <ianfreislich at gmail.com>
Fixes:  f35525ff2053 ("file: Add a fd flag with O_RESOLVE_BENEATH semantics")

(cherry picked from commit 6783dfb10637100067520bd6d9804e154cfee7ee)
DeltaFile
+1-2sys/kern/kern_descrip.c
+1-21 files

FreeBSD/src 6a11b6asys/dev/atkbdc psm.c

psm(4): Add kqueue support

MFC after:      2 weeks

(cherry picked from commit b93063c84e4e792ede844d30452d82c4fe12bdd2)
DeltaFile
+45-0sys/dev/atkbdc/psm.c
+45-01 files

FreeBSD/src 6296dd0sys/dev/hid ps4dshock.c

Added identifiers for additional PS4 DualShock controller variants

PR:             285215
MFC after:      1 week

(cherry picked from commit d4147ad1a2b9d6e7a862a63894da604c61721786)
DeltaFile
+16-0sys/dev/hid/ps4dshock.c
+16-01 files

FreeBSD/src 2100a0fsys/netgraph/bluetooth/drivers/ubt ng_ubt_rtl.c, usr.sbin/bluetooth/rtlbtfw rtlbtfw.conf main.c

rtlbtfw(8): Sync device VID/PID list with Linux 6.15-rc4

Sponsored by:   Future Crew, LLC
MFC after:      1 month

(cherry picked from commit 3e72d0b40040f94c4b99ab9dfa0a0e1b62dff397)
DeltaFile
+64-2usr.sbin/bluetooth/rtlbtfw/rtlbtfw.conf
+20-0sys/netgraph/bluetooth/drivers/ubt/ng_ubt_rtl.c
+20-0usr.sbin/bluetooth/rtlbtfw/main.c
+14-0usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.c
+1-0usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.h
+119-25 files

FreeBSD/src 08ad5c4usr.sbin/bluetooth/rtlbtfw rtlbt_fw.c rtlbt_fw.h

rtlbtfw(8): Add support for firmware file format V2

As Realtek changed format of the firmware files for recent adaptors.

Sponsored by:   Future Crew, LLC
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D50082

(cherry picked from commit b87a926098b291e2baf45ffc13c076ba0b0f0d74)
DeltaFile
+189-6usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.c
+50-3usr.sbin/bluetooth/rtlbtfw/rtlbt_fw.h
+35-0usr.sbin/bluetooth/rtlbtfw/rtlbt_hw.c
+15-4usr.sbin/bluetooth/rtlbtfw/main.c
+13-0usr.sbin/bluetooth/rtlbtfw/rtlbt_hw.h
+302-135 files

FreeBSD/src 507f852usr.sbin/makefs/zfs fs.c

makefs: zfs dataset mountpoints are considered non-empty

The dataset mountpoints get link count and size calculated by
content of dataset root directory, but this will break libzfs
dir_is_empty_stat() test.

For fix, we need to check if the directory is mountpoint for
dataset, and calculate the link count and size accordingly.

Reviewed by:    markj
Differential revision:  https://reviews.freebsd.org/D51593
DeltaFile
+27-15usr.sbin/makefs/zfs/fs.c
+27-151 files

FreeBSD/src da12555usr.sbin/makefs/zfs dsl.c zap.c

makefs: clean up warnings

zfs/fs.c:
zfs/objset.c:
zfs/vdev.c:
zfs/zap.c:
Add include sys/param.h

dsl_dir_alloc() needs to set parent = NULL to silence warning
about 'parent' may be used uninitialized. Warning is given because
we break the loop when nextdir == NULL and parent was not previously set.
(it should not happen, but compiler does not know that).

zap_add() and zap_fat_write_array_chunk() takes uint8_t *, use type
cast.

zap_fat_write_array_chunk() should check sz for 0 to avoid
use of uninitialized pointer.


    [4 lines not shown]
DeltaFile
+13-12usr.sbin/makefs/zfs/dsl.c
+8-5usr.sbin/makefs/zfs/zap.c
+2-1usr.sbin/makefs/zfs/fs.c
+1-0usr.sbin/makefs/zfs/vdev.c
+1-0usr.sbin/makefs/zfs/objset.c
+25-185 files

FreeBSD/src aa42e49sys/sys exterr_cat.h, sys/vm swap_pager.c

sys_swapon: reject too small devices

blist_create() panics on zero nblks.

Reported by:    olivier
Reviewed by:    alc, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D51618
DeltaFile
+11-6sys/vm/swap_pager.c
+1-0sys/sys/exterr_cat.h
+12-62 files

FreeBSD/src f795179sys/dev/pci pci_iov.c pci_iov_private.h

pci_iov: Support dynamic subordinate bus growth during VF creation

Certain SR-IOV devices enumerate Virtual Functions (VFs) on a different
PCIe bus than their parent Physical Function (PF).  In such cases, the
default subordinate bus range assigned by BIOS may be insufficient to cover
all VFs.

This patch dynamically expands the subordinate bus range by:
- Allocating additional bus numbers using bus_alloc_resource() when VFs are
  initialized
- Releasing the reserved bus range during VF deletion via
  bus_release_resource()

Reviewed by:    jhb
DeltaFile
+21-4sys/dev/pci/pci_iov.c
+2-0sys/dev/pci/pci_iov_private.h
+23-42 files

FreeBSD/src 706d8fftools/build/cross-build/include/mac endian.h

cross-build: Add a <endian.h> wrapper for macOS

This is required to build libkrb5support.

Fixes:          7e35117eb07f ("Makefile: Hook MIT KRB5 into the build")
DeltaFile
+7-0tools/build/cross-build/include/mac/endian.h
+7-01 files

FreeBSD/src 8be24d8crypto/openssh sshd_config

ssh: Reduce sshd_config diffs against OpenSSH 10.0p2

Upstream had a poor description for KbdInteractiveAuthentication prior
to the 10.0p2 release.  We use KbdInteractiveAuthentication for PAM
authentication, and we replaced the poor description with a note about
use by PAM.

In 10.0p2 the upstream description has been fixed.  Incorporate that
text now as it is an improvement and avoids a conflict in the upcoming
10.0p2 import.

Reviewed by:    jhb
Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-2crypto/openssh/sshd_config
+5-21 files

FreeBSD/src 7b68893. Makefile.inc1, crypto/krb5/src/util/ss listen.c

krb5: remove libedit from the bootstrap tools

libedit breaks the bootstrap on MacOS and Linux.

Activate libedit only for the regular build not for the bootstrap
tools

While here fix the definition of the dependency chain between
libkrb5ss and libedit (and libtinfow) via src.libnames.mk

Remove a local patch to find the readline compatible header and
find them via proper CFLAGS.
DeltaFile
+5-0krb5/util/ss/Makefile
+2-2krb5/usr.sbin/kadmin.local/Makefile
+0-4crypto/krb5/src/util/ss/listen.c
+2-2krb5/usr.bin/kadmin/Makefile
+1-1krb5/usr.bin/ktutil/Makefile
+0-2Makefile.inc1
+10-112 files not shown
+12-128 files

FreeBSD/src 27ed349share/vt/keymaps uk.kbd

uk.kbd: Fix € mapping

We previously emitted the generic currency sign `¤` for Ctrl+4.
Generally speaking the modifer should be AltGr not Ctrl, and this should
be the Euro symbol `€`.

Fixes: eb8f9028fb38 ("Add the Euro symbol mapping to the UK keyboard keymap.")
Fixes: a232c1d130d2 ("Copy country-code .iso syscons keymaps for vt(4)")
Fixes: fdd869bd8a89 ("Another rpund of fixes, after checking keymaps for plausibility and with")

Reviewed by:    ivy
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50702

(cherry picked from commit 5c66d7a2b8a000b6307c0a12e78eb1b50376c9f8)
DeltaFile
+1-1share/vt/keymaps/uk.kbd
+1-11 files

FreeBSD/src 3fe326blib/libc/string memcmp.3

memcmp.3: Clarify return value

The return value is not required to be the difference between the
differing bytes, only less than zero, zero, or greater than zero.

Reviewed by:    fuz
Event:          Kitchener-Waterloo Hackathon 202406
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47683

(cherry picked from commit 5cc53d79655bf7f67b1a794c088d896aa6475c2e)
DeltaFile
+25-18lib/libc/string/memcmp.3
+25-181 files

FreeBSD/src 5aaaa1ausr.bin/beep beep.c

beep: Capsicumize

While it's unlikely that beep(1) will be used in a context where a
sandbox is particularly valuable, it does offer a simple demonstration
of entering a capability sandbox after opening required fds, and is
trivial to do.

Reviewed by:    christos
Event:          Kitchener-Waterloo Hackathon 202506
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50709

(cherry picked from commit 54eda43cc1e6b1d73804b6c397a15002e3519555)
DeltaFile
+4-0usr.bin/beep/beep.c
+4-01 files

FreeBSD/src 2bc355csys/ufs/ufs ufs_vnops.c

ufs: Pass the new parent inode number to ufs_dirrewrite()

Despite the name, isrmdir is not a boolean-valued, it is also used to
pass a new parent inode number down to the SU layer.

Fixes:          98eb6f0eaa50 ("ufs: restore conditional")
Reviewed by:    kib
Reported by:    syzbot+fbfff9613b6dab616124 at syzkaller.appspotmail.com
Reported by:    syzbot+02cb048d48b51bcd9c41 at syzkaller.appspotmail.com
Reported by:    syzbot+98c39c45a437812f7683 at syzkaller.appspotmail.com
Reported by:    syzbot+6fb8cb919cc686d1a1d0 at syzkaller.appspotmail.com
Reported by:    syzbot+fb35cce6a6f5075a6692 at syzkaller.appspotmail.com
Reported by:    syzbot+602fb6ee1a39abfd3b5c at syzkaller.appspotmail.com
Reported by:    syzbot+5cb82352555d5d505640 at syzkaller.appspotmail.com
Reported by:    syzbot+6a4ea1e13f4e07369785 at syzkaller.appspotmail.com
Reported by:    syzbot+18722c8e4008048efb51 at syzkaller.appspotmail.com
DeltaFile
+1-1sys/ufs/ufs/ufs_vnops.c
+1-11 files

FreeBSD/src f1f77adsys/netpfil/pf pf.c

pf: remove incorrect __unused annotation

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+1-1sys/netpfil/pf/pf.c
+1-11 files

FreeBSD/src e9ca883sys/netinet6 scope6.c, tests/sys/netpfil/pf nat64.py

netinet6: Don't return non-IPv6 enabled interfaces from in6_getlinkifnet()

There are scenarios where we can end up looking up an interface by its scope and
turn up an interface that doesn't have IPv6 enabled on it. If that happens we
could end up dereferencing a NULL pointer accessing ifp->if_afdata[AF_INET6].
Check for this.

One such scenario is if a firewall rewrites a destination address to a
link-local address, with an embedded scope for such an interface. Attach a test
case which provokes this.

PR:             288263
Reported by:    Robert Morris <rtm at lcs.mit.edu>
Reviewed by:    zlei
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D51500
DeltaFile
+40-1tests/sys/netpfil/pf/nat64.py
+16-1sys/netinet6/scope6.c
+56-22 files