FreeBSD/src b76b05clib/libpam/modules/pam_ssh pam_ssh.c

pam_ssh: Fix build - chase OpenSSH function signature change

Reported by: dch
Fixes: 644b4646c7ac ("OpenSSH: Update to 10.1p1")
Sponsored by: The FreeBSD Foundation
DeltaFile
+1-1lib/libpam/modules/pam_ssh/pam_ssh.c
+1-11 files

FreeBSD/src d889f6crelease/tools oci-image-static.conf

release/tools: use same pkg settings in containers as in /etc/pkg/FreeBSD.conf

Instructions in /etc/pkg/FreeBSD.conf and elsewhere recommend putting
changes in /usr/local/etc/pkg/repos/FreeBSD.conf so bring OCI containers
into line as well.

Reviewed by:    dfr, ivy
Differential Revision:  https://reviews.freebsd.org/D54090

MFC after:      5 days
Sponsored by:   SkunkWerks, GmbH

(cherry picked from commit c73ae67348998a0056145e88debbea9ff6860c4f)
DeltaFile
+1-5release/tools/oci-image-static.conf
+1-51 files

FreeBSD/src e68aa5acrypto/openssh ChangeLog ssh-pkcs11.c, crypto/openssh/openbsd-compat bsd-misc.c

OpenSSH: Update to 10.2p1

Full release notes are available at
https://www.openssh.com/txt/release-10.2

Selected highlights from the release notes:

Bugfixes
--------

 * ssh(1): fix mishandling of terminal connections when
   ControlPersist was active that rendered the session unusable.
   bz3872

Sponsored by:   The FreeBSD Foundation
DeltaFile
+146-37crypto/openssh/ChangeLog
+26-5crypto/openssh/ssh-pkcs11.c
+24-0crypto/openssh/openbsd-compat/bsd-misc.c
+0-16crypto/openssh/ssh-pkcs11-helper.c
+8-4crypto/openssh/regress/test-exec.sh
+5-4crypto/openssh/channels.c
+209-6616 files not shown
+248-8022 files

FreeBSD/src 644b464crypto/openssh ChangeLog pkcs11.h

OpenSSH: Update to 10.1p1

Full release notes are available at
https://www.openssh.com/txt/release-10.1

Selected highlights from the release notes:

Potentially-incompatible changes

 * ssh(1): add a warning when the connection negotiates a non-post
   quantum key agreement algorithm.

 * ssh(1), sshd(8): major changes to handling of DSCP marking/IPQoS

 * ssh(1), sshd(8): deprecate support for IPv4 type-of-service (ToS)
   keywords in the IPQoS configuration directive.

 * ssh-add(1): when adding certificates to an agent, set the expiry
   to the certificate expiry time plus a short (5 min) grace period.

    [17 lines not shown]
DeltaFile
+3,255-1,388crypto/openssh/ChangeLog
+1,018-474crypto/openssh/pkcs11.h
+0-1,113crypto/openssh/sshkey-xmss.c
+0-1,106crypto/openssh/xmss_fast.c
+637-243crypto/openssh/ssh-pkcs11.c
+426-433crypto/openssh/moduli
+5,336-4,757308 files not shown
+10,988-10,646314 files

FreeBSD/src 237900flib/libutil quotafile.c

libutil: Include param.h in quotafile.c

Required for MAXPATHLEN.

MFC after:      1 week
DeltaFile
+1-1lib/libutil/quotafile.c
+1-11 files

FreeBSD/src 9461071sbin/reboot reboot.c

reboot: Include limits.h for PATH_MAX

MFC after:      1 week
DeltaFile
+1-0sbin/reboot/reboot.c
+1-01 files

FreeBSD/src ee2d1a1usr.sbin/edquota edquota.c

edquota: Include param.h

Required for MAXPATHLEN and MAXLOGNAME.

MFC after:      1 week
DeltaFile
+1-0usr.sbin/edquota/edquota.c
+1-01 files

FreeBSD/src beab4a2sys/netinet igmp.c, sys/sys mbuf.h

igmp: Avoid leaving dangling pointers in the state-change queue

When igmp_v3_merge_state_changes() is iterating over state-change
packets, there is a case where it'll free a queued packet but will fail
to remove it from the queue.  Fix that.

Reported by:    Yuxiang Yang, Yizhou Zhao, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM5.1 from Z.ai
Reviewed by:    pouria, glebius
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56947
DeltaFile
+8-0sys/sys/mbuf.h
+5-3sys/netinet/igmp.c
+13-32 files

FreeBSD/src 3cd3900sbin/fsck_ffs fsck.h gjournal.c

fsck_ffs: Avoid relying on param.h pollution from libufs.h

- gjournal.c needs param.h to get a definition of isclr().
- fsck.h needs signal.h for sig_atomic_t.

Sort includes while here.

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56858
DeltaFile
+6-5sbin/fsck_ffs/fsck.h
+2-2sbin/fsck_ffs/gjournal.c
+8-72 files

FreeBSD/src a6c4fe2sys/net if_vxlan.c

if_vxlan: Update *m0 after a pullup

vxlan_input()'s caller is supposed to free *m0 if it is non-NULL after
the function returns.  vxlan_input() failed to update *m0 after the
pullup however, so if it hits an error case after the pullup, we'll free
the mbuf twice.  Currently this can happen only if the interface is
brought down or due to a packet loop.

Reported by:    Yuxiang Yang, Yizhou Zhao, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM5.1 from Z.ai
Reviewed by:    pouria, zlei
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56944
DeltaFile
+1-2sys/net/if_vxlan.c
+1-21 files

FreeBSD/src 8b4b995sys/sys cpuset.h _cpuset.h

cpuset: Move userspace declarations out of _cpuset.h

The _*.h headers are for structure definitions and should avoid
dependencies on other headers.  This convention is violated by using
__BEGIN_DECLS/__END_DECLS.

Move the declarations to cpuset.h, I see no reason they can't be there.

Reviewed by:    olce, brooks, kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56856
DeltaFile
+6-1sys/sys/cpuset.h
+0-7sys/sys/_cpuset.h
+6-82 files

FreeBSD/src 271d25alib/libufs libufs.h inode.c

libufs: Avoid using param.h constants in libufs.h

MAXBSIZE is defined in param.h, which defines many other things.  To
avoid forcing all consumers of libufs.h to include param.h, let's
instead redefine it and verify the definition in inode.c.

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56859
DeltaFile
+5-2lib/libufs/libufs.h
+3-0lib/libufs/inode.c
+8-22 files

FreeBSD/src fae5815sbin/hastd hooks.c

hastd: Include param.h instead of relying on pollution in hooks.c

This is needed at least for MAX() and PATH_MAX.

MFC after:      1 week
DeltaFile
+1-1sbin/hastd/hooks.c
+1-11 files

FreeBSD/src fab4acbsys/kern subr_vmem.c

vmem: Include param.h in the userspace port as well

It is required at least for NBBY.

MFC after:      1 week
DeltaFile
+1-1sys/kern/subr_vmem.c
+1-11 files

FreeBSD/src 35a36d4usr.bin/mdo mdo.c

mdo: Avoid relying on header pollution

The uses of PAGE_SIZE and roundup2() require param.h.

MFC after:      1 week
DeltaFile
+1-1usr.bin/mdo/mdo.c
+1-11 files

FreeBSD/src 3b16e96tests/sys/netinet ip_mroute.py

tests/ip_mroute: Remove test timeouts

The configured timeout of 30s is a bit too low for a couple of tests
which create 4+ VNET jails when running tests in parallel and with
kernel sanitizers enabled.  There's no reason to have custom timeouts,
just use the default.

MFC after:      1 week
DeltaFile
+0-6tests/sys/netinet/ip_mroute.py
+0-61 files

FreeBSD/src 26bffe5sys/netinet tcp_hpts_test.c

tests/tcp_hpts_test: Fix more resource leaks

Address leaks that I missed in commit f7bf9fd6199c
("tests/tcp_hpts_test: Fix resource leaks").

Reviewed by:    Nick Banks <nickbanks at netflix.com>, tuexen
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56943
DeltaFile
+10-3sys/netinet/tcp_hpts_test.c
+10-31 files

FreeBSD/src 5615db1usr.bin/find extern.h

find: Include signal.h to get a definition for sig_atomic_t

MFC after:      1 week
DeltaFile
+1-1usr.bin/find/extern.h
+1-11 files

FreeBSD/src d1aee9fsys/sys time.h

sys/time.h: add bintime2us() helper

Add a microsecond conversion helper to complement the existing
bintime2ns(). The body mirrors bintime2ns().
This will be used by an upcoming eventlog(9) framework as well as
the TCP code in upcoming changes.

Approved by:            gallatin, tuexen
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D56972
DeltaFile
+11-0sys/sys/time.h
+11-01 files

FreeBSD/src 714f6acetc/mtree BSD.root.dist

BSD.root.dist: Correct tag for /etc/sysctl.kld.d

This is only used by rc.subr and belongs in rc, not runtime.

Fixes:          fa6d67cd16b5 ("BSD.root.dist: Add package tag for all directories")
MFC after:      3 days
Reviewed by:    ivy
Differential Revision:  https://reviews.freebsd.org/D56900

(cherry picked from commit 44338ccd12685621c4b1c57e692a4f27f5a655d3)
DeltaFile
+1-1etc/mtree/BSD.root.dist
+1-11 files

FreeBSD/src 379805busr.sbin/ctld login.cc

ctld: normalize iSCSI TargetName on login

Case-insensitive TargetName matching on logins was accidentally removed,
let's fix that by normalizing TargetName again according to RFC 3722.

Approved by:    re (cperciva)
PR:                     294522
Fixes:                  4b1aac931465f39c5c26bfa1d5539a428d340f20
Sponsored by:           ConnectWise
Reviewed by:            asomers, jhb
Approved by:            asomers (mentor)
Differential Revision:  https://reviews.freebsd.org/D56469

(cherry picked from commit eb837cb8b2073c09bafaf3318f5bb103827b2bca)
(cherry picked from commit 0baae6223a6350215d7b11264e59408362b15a19)
DeltaFile
+8-2usr.sbin/ctld/login.cc
+8-21 files

FreeBSD/src a7bc1c0sbin/fsck_msdosfs fat.c

fsck_msdosfs: fix FAT header correction not persisting in cache mode

When fsck_msdosfs runs with FAT32 cache mode (used for large
filesystems that cannot be mmap'd), a detected FAT header correction
was written into the in-memory buffer but the corresponding cache
entry (fat32_cache_allentries[0]) was never marked dirty.  As a
result, fat_flush_fat32_cache_entry() skipped it, the corrected
bytes were never written to disk, and copyfat() propagated the
uncorrected on-disk data to all backup FAT copies.  Every subsequent
fsck run would repeat the same "FAT starts with odd byte sequence /
FIXED" cycle indefinitely.

Fix by marking fat32_cache_allentries[0].dirty = true after applying
the in-memory correction, ensuring the chunk is flushed before
copyfat() runs.

Approved by:    re (cperciva)
Obtained from:  https://android-review.googlesource.com/c/platform/external/fsck_msdos/+/4047981


    [2 lines not shown]
DeltaFile
+11-0sbin/fsck_msdosfs/fat.c
+11-01 files

FreeBSD/src f0bb84fusr.bin/vtfontcvt vtfontcvt.c

vtfontcvt: Add SPDX-License-Identifier tag

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit f12a0dca86b529069a940f09aba796dd4e28c66f)
DeltaFile
+2-0usr.bin/vtfontcvt/vtfontcvt.c
+2-01 files

FreeBSD/src 025f886usr.sbin/makefs msdos.c msdos.h

makefs: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 6010b73fa9574b8e651b08451f30ba9c05f3f894)
DeltaFile
+2-0usr.sbin/makefs/msdos.c
+2-0usr.sbin/makefs/msdos.h
+4-02 files

FreeBSD/src 8fcc509usr.sbin/fstyp cd9660.c exfat.c

fstyp: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 836ac989933bcd5b662979bfdec429a201c123a6)
DeltaFile
+2-0usr.sbin/fstyp/cd9660.c
+2-0usr.sbin/fstyp/exfat.c
+2-0usr.sbin/fstyp/ext2fs.c
+2-0usr.sbin/fstyp/fstyp.c
+2-0usr.sbin/fstyp/fstyp.h
+2-0usr.sbin/fstyp/geli.c
+12-011 files not shown
+34-017 files

FreeBSD/src 9d283f9usr.bin/mkimg raw.c apm.c

mkimg: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 971696b22f7acc8c45600bb56b972340e9b912e8)
DeltaFile
+2-0usr.bin/mkimg/raw.c
+2-0usr.bin/mkimg/apm.c
+2-0usr.bin/mkimg/bsd.c
+2-0usr.bin/mkimg/ebr.c
+2-0usr.bin/mkimg/endian.h
+2-0usr.bin/mkimg/format.c
+12-014 files not shown
+40-020 files

FreeBSD/src cbf2071sbin/ipfw nptv6.c

ipfw: Add SPDX-License-Identifier tag

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55273

(cherry picked from commit 904e0dcd2967cfe72899e7285e6cd6e9977ae68c)
DeltaFile
+2-0sbin/ipfw/nptv6.c
+2-01 files

FreeBSD/src 16d0c34bin/chio chio.c defs.h

chio: Add SPDX-License-Identifier tags

Some BSD-4-Clause files under bin/chio were missing the
SPDX-License-Identifier-tag.

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55193

(cherry picked from commit b6824fe48e4197877f472268859ffe80d7fd946b)
DeltaFile
+2-0bin/chio/chio.c
+2-0bin/chio/defs.h
+2-0bin/chio/pathnames.h
+6-03 files

FreeBSD/src f7e41b4sbin/newfs_msdos mkfs_msdos.c mkfs_msdos.h

newfs_msdos: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55274

(cherry picked from commit 8ac992645850318d8b2cf93b083372b99b6374e1)
DeltaFile
+2-0sbin/newfs_msdos/mkfs_msdos.c
+2-0sbin/newfs_msdos/mkfs_msdos.h
+4-02 files

FreeBSD/src 03bc95bcddl/contrib/opensolaris/cmd/dtrace dtrace.1, share/man/man4 dtrace_dtmalloc.4 Makefile

dtrace_dtmalloc.4: Document the DTrace dtmalloc provider

MFC after:      1 week
Discussed with: christos, markj, ziaee
Differential Revision:  https://reviews.freebsd.org/D51396
DeltaFile
+132-0share/man/man4/dtrace_dtmalloc.4
+2-1cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
+2-1share/man/man9/malloc.9
+1-0share/man/man4/Makefile
+137-24 files