FreeBSD/src 49e8ec6 — secure/libexec/sftp-server Makefile, secure/usr.bin/scp Makefile

secure: Add ssh-sk-client to all consumers of libssh

These all failed to link with ld.bfd used by GCC due to
Fssh_sshsk_sign being an unresolved symbol.

Fixes:          65d8491719bb ("secure: Adapt Makefile to ssh-sk-client everywhere")
(cherry picked from commit a098111a28ed59e1ab1101ad09913f0235ebd28f)
DeltaFile
+1-1secure/usr.bin/sftp/Makefile
+1-1secure/usr.bin/scp/Makefile
+1-1secure/libexec/sftp-server/Makefile
+3-33 files

FreeBSD/src f3d13e0 — tests/sys/fs/tarfs tarfs_test.sh

tarfs: tests: Increase timeout (again)

Bump the timeout value (a little more), to avoid cutoff on emulated
architectures on ci.freebsd.org.

Reported by:    Jenkins
Fixes:          47015e454661 ("tests: Increase timeout")
MFC after:      3 days

(cherry picked from commit a551b0524953cbfa4f1035c6d968623e64f4436a)
DeltaFile
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-11 files

FreeBSD/src 8976206 — tests/sys/fs/tarfs tarfs_test.sh

tarfs: tests: Increase timeout (again 2)

Bump the timeout value (for the third time), to avoid cutoff on emulated
architectures on ci.freebsd.org.  One of the runners will take
considerably more time to complete this test.

Reported by:    Jenkins
Fixes:          a551b0524953 ("tarfs: tests: Increase timeout (again)")
MFC after:      3 days

(cherry picked from commit a4f0a60e05293f3f517324f3ebc41046a79a9feb)
DeltaFile
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-11 files

FreeBSD/src b308cbd — tests/sys/netpfil/pf rules_counter.sh

pf tests: give rules_counter:4G more time

Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 8217075f9ecb12fa9a4cf746541b9d3e1dc57e79)
DeltaFile
+1-0tests/sys/netpfil/pf/rules_counter.sh
+1-01 files

FreeBSD/src b596b02 — tests/sys/fs/fusefs Makefile, tests/sys/fs/tarfs tarfs_test.sh

tests: Increase timeout

Bump the timeout value, to avoid cutoff on emulated architectures on
ci.freebsd.org.

Reported by:    Jenkins
Reviewed by:    ngie
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54550

(cherry picked from commit 47015e4546619151f9bff548a3758b72286d04ed)
DeltaFile
+1-1tests/sys/netpfil/pf/rules_counter.sh
+1-1tests/sys/mac/portacl/Makefile
+1-1tests/sys/kern/jailmeta.sh
+1-1tests/sys/geom/class/eli/reentrancy_test.sh
+1-1tests/sys/fs/tarfs/tarfs_test.sh
+1-1tests/sys/fs/fusefs/Makefile
+6-61 files not shown
+7-67 files

FreeBSD/src 95f994e — usr.sbin/makefs/tests makefs_zfs_tests.sh

makefs: tests: Double the timeout of ZFS file_extend test

The test makefs_zfs_tests:file_extend is timing out on ci.freebsd.org.
Double the default timeout to allow it to finish.

Reported by:    Jenkins
Reviewed by:    asomers
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54425

(cherry picked from commit 065f02174f76a49fbf537ee51ed8068d3d398b08)
DeltaFile
+6-0usr.sbin/makefs/tests/makefs_zfs_tests.sh
+6-01 files

FreeBSD/src ec5fcc7 — usr.sbin/makefs/tests makefs_zfs_tests.sh

makefs: tests: Double the timeout of ZFS compression test

The test makefs_zfs_tests:compression is timing out on ci.freebsd.org.
Double the default timeout to allow it to finish.

While here, check if the file exists before cleaning up, otherwise, cat
may fail.

Reported by:    Jenkins
Reviewed by:    asomers
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54424

(cherry picked from commit 9f28e92637e9a29124f407b74d7665a921865a53)
DeltaFile
+16-6usr.sbin/makefs/tests/makefs_zfs_tests.sh
+16-61 files

FreeBSD/src 97fd69b — stand/libsa environment.c

libsa add boot_serial to is_restricted_var allow list

NOTE: variables that get passed by boot_setenv() will not have '='
so for these we need to leave that out.
It doesn't matter much unless the variable we want to allow is
also a prefix for something we do not.

Sponsored by:   Hewlett Packard Enterprise Development LP

Reviewed by:    kevans, imp
Differential Revision:  https://reviews.freebsd.org/D61856
DeltaFile
+7-8stand/libsa/environment.c
+7-81 files

FreeBSD/src 17ebd95 — sys/dev/acpica acpivar.h acpi.c, sys/dev/iicbus acpi_iicbus.c

acpi_iicbus: Return _DSD properties of the I2C children

acpi_iicbus has no bus_get_property method, so device_get_property()
on one of its children reaches acpi(4) through
bus_generic_get_property().  acpi_bus_get_prop() then takes the
child's acpi_iicbus ivars for a struct acpi_device and follows garbage
pointers: on an HP ZBook Ultra G1a, a driver reading _DSD of its I2C
device froze the machine.

Answer for the I2C children from their own ACPI handle, with a _DSD
cache in the ivars, through a helper split out of acpi_bus_get_prop().

Reviewed by:    wulf, imp
Approved by:    wulf, imp
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/117
DeltaFile
+22-4sys/dev/acpica/acpi.c
+21-0sys/dev/iicbus/acpi_iicbus.c
+3-0sys/dev/acpica/acpivar.h
+46-43 files

FreeBSD/src 92a634d — sys/dev/iicbus iicbus.h iicbus.c

acpi_iicbus: Free the ivars of deleted children

acpi_iicbus_child_deleted() replaces iicbus_child_deleted() but only
detached the ACPI data, so the ivars and their resource list leaked
with every deleted child.  It also used the ivars without checking
them, while iicbus_add_child_common() can leave a child without any.
Check them and call iicbus_child_deleted() at the end.

Reviewed by:    wulf, imp
Approved by:    wulf, imp
Fixes:          9b7938dcf338 ("iicbus(4): Add support for ACPI-based children enumeration")
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/117
DeltaFile
+3-0sys/dev/iicbus/acpi_iicbus.c
+1-1sys/dev/iicbus/iicbus.c
+1-0sys/dev/iicbus/iicbus.h
+5-13 files

FreeBSD/src d5ad797 — sys/dev/acpica acpi.c

acpi: Return the handle of a reference property, not its target

acpi_bus_get_prop() copied the first bytes of the namespace node a
_DSD reference points to, instead of the handle itself, when a caller
asked for such a property with a type other than DEVICE_PROP_HANDLE.

Reviewed by:    wulf, imp
Approved by:    wulf, imp
Fixes:          99e6980fcf5e ("device_get_property: add a HANDLE case")
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/117
DeltaFile
+1-1sys/dev/acpica/acpi.c
+1-11 files

FreeBSD/src 44c85f6 — sys/dev/amdgpio amdgpio.c

amdgpio: Add PNP info for devmatch

amdgpio is not in GENERIC and exports no PNP info, so devmatch(8)
never loads it, and GPIO consumers on AMD systems find no controller
unless amdgpio is in kld_list.

Export the ACPI ids so devmatch(8) loads the module at boot.

Reviewed by:    imp
Approved by:    imp
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/116
DeltaFile
+4-2sys/dev/amdgpio/amdgpio.c
+4-21 files

FreeBSD/src 11ba27a — sys/dev/ichiic ig4_var.h ig4_acpi.c

ig4: Add an AMD generation with a 150 MHz clock

AMDI0010 controllers attached as Atom, whose timings assume a 100 MHz
input clock, but they run from 150 MHz (Linux drivers/acpi/acpi_apd.c),
so the bus runs above the 400 kHz of fast mode and the SDA hold time
is a third short.  The median of 200 timed 1 KB reads on an HP ZBook
Ultra G1a gives an effective 472 kHz before and 348 kHz after.

Give them their own generation: the Atom timings with a 150 MHz clock,
and of the Atom register handling only the DesignWare FIFO depth and
component version checks, not the Intel LPSS private registers.  It
sorts before IG4_SKYLAKE, so IG4_HAS_ADDREGS() stays false.

Reviewed by:    wulf, imp
Approved by:    wulf, imp
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/114
DeltaFile
+12-2sys/dev/ichiic/ig4_iic.c
+2-0sys/dev/ichiic/ig4_acpi.c
+1-0sys/dev/ichiic/ig4_var.h
+15-23 files

FreeBSD/src 5172cc8 — sys/x86/iommu amd_iommu.h amd_drv.c

amdiommu: Skip the invalidation after PTE-only maps

amdiommu_map_buf() waited for an invalidation after every map, so each
busdma load cost a command round trip and a completion interrupt.  A
128 KB NVMe read raised 51 IOMMU interrupts on a Ryzen 7 7735HS and 66
on a Ryzen AI Max+ PRO 395, where reads ran at 200 MB/s instead of
900 MB/s without the IOMMU.

Filling non-present PTEs needs no invalidation unless the capability
header reports NpCache, which is how Linux handles it.  A new PDE still
does: unmap frees empty page table pages and clears their PDE before
the deferred invalidation runs, and skipping the flush then produced
IO_PAGE_FAULTs from nvme(4).  A concurrent map that uses such a PDE
before its flush completes flushes too.

With this change the same reads raise 19 and 33 interrupts, and the
second machine reads at 400 to 440 MB/s.

Reviewed by:    kib, kbowling

    [3 lines not shown]
DeltaFile
+35-13sys/x86/iommu/amd_idpgtbl.c
+2-0sys/x86/iommu/amd_iommu.h
+2-0sys/x86/iommu/amd_drv.c
+39-133 files

FreeBSD/src 014091f — sys/dev/iommu busdma_iommu.c

iommu: Identity-map contexts when DMA remapping is disabled

With hw.amdiommu.enable=1 alone, interrupt remapping is on and DMA
remapping is off.  amdiommu_ir_find() still instantiates a context for
each MSI source, and it got a translating domain with an empty page
table while busdma kept handing out physical addresses, so every DMA
from these devices faulted.  On a Ryzen 7 7735HS the USB devices
attached in an endless loop.

Treat a unit with DMA remapping disabled like a device with remapping
disabled: give the context the identity mapping.

Reviewed by:    kib, kbowling
Approved by:    kib, kbowling
Fixes:          0f5116d7efe3 ("AMD IOMMU driver")
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/113
DeltaFile
+6-3sys/dev/iommu/busdma_iommu.c
+6-31 files

FreeBSD/src 244a39a — sys/x86/iommu amd_intrmap.c

amdiommu: Free and align interrupt remapping entries

amdiommu_ir_free_irte() cleared the IRTE but never returned its index,
so a device's 32 default entries run out: a driver using 32 MSI-X
vectors gets ENOMEM from pci_alloc_msix() on its second attach.  Free
the block with vmem_xfree(), now that msi_release() hands a group over
whole, and allocate it with vmem_xalloc() aligned on its size, since
the device ORs the message number into the MSI data, which is the IRTE
index.

As the entries are now reused, invalidate the interrupt table under the
DeviceID it is installed at, the IVRS-resolved ctx->context.rid, not
the PCI requester ID, which differs for aliased devices.

Reviewed by:    kib, kbowling, imp
Approved by:    kib, kbowling
Fixes:          0f5116d7efe3 ("AMD IOMMU driver")
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/112
DeltaFile
+33-35sys/x86/iommu/amd_intrmap.c
+33-351 files

FreeBSD/src bafddca — sys/x86/iommu x86_iommu.h iommu_intrmap.h, sys/x86/x86 msi.c

x86: Release the IOMMU entries of an MSI group at once

msi_alloc() takes the interrupt remapping entries of a multiple-message
MSI group as one block, but msi_release() returned them one message at
a time.  The DMAR driver frees each with vmem_free(cookie, 1): the
extra messages, released first, do not start a vmem segment, so
releasing a group with interrupt remapping on fails an assertion or
dereferences a NULL segment.

Pass the whole group to iommu_unmap_msi_intr() with its count, and free
the block at once in the DMAR driver, with one interrupt entry cache
invalidation for the range, its index mask capped at the unit's MHMV.
The AMD driver keeps clearing each entry for now.

Reviewed by:    kib, kbowling, imp
Approved by:    kib, kbowling
Fixes:          0a110d5b172e ("Use VT-d interrupt remapping block (IR) to perform FSB messages translation.")
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/112
DeltaFile
+15-12sys/x86/iommu/intel_intrmap.c
+8-11sys/x86/x86/msi.c
+3-3sys/x86/iommu/iommu_utils.c
+3-2sys/x86/iommu/amd_intrmap.c
+1-1sys/x86/iommu/x86_iommu.h
+1-1sys/x86/iommu/iommu_intrmap.h
+31-303 files not shown
+34-339 files

FreeBSD/src cb354d6 — crypto/openssl BSDmakefile

crypto/openssl: correct messages printed out when copying manpages

Prior to this change section 1's message applied to 3/5/7 and vice
versa. Now the right message is printed out by the Makefile with its
respective operation.

MFC after:      1 week
DeltaFile
+6-6crypto/openssl/BSDmakefile
+6-61 files

FreeBSD/src a1c255f — secure/lib/libcrypto/man/man3 SSL_shutdown.3 ENGINE_add.3, secure/lib/libcrypto/man/man5 x509v3_config.5 fips_config.5

crypto/openssl: sync manpages with current release

The content in the manpages matches 3.5.4 today and we're on 3.5.9.
Update to 3.5.9's content so the manpages reflect the shipped release.

MFC after:      1 week
DeltaFile
+49-46secure/lib/libcrypto/man/man3/ENGINE_add.3
+34-31secure/lib/libcrypto/man/man7/EVP_PKEY-EC.7
+34-31secure/lib/libcrypto/man/man5/config.5
+33-30secure/lib/libcrypto/man/man5/fips_config.5
+32-29secure/lib/libcrypto/man/man5/x509v3_config.5
+32-29secure/lib/libcrypto/man/man3/SSL_shutdown.3
+214-196713 files not shown
+5,792-3,637719 files

FreeBSD/src 9ef73e4 — include search.h, lib/libc/stdlib tdestroy.c

tdestroy(3): Take posix_tnode * like the other tsearch(3) functions

tdestroy(3) was originally a glibc extension. glibc does not use
posix_tnode (yet), and when tdestroy(3) was pulled in its signature was
not updated to match the other tsearch(3) functions.

Fixes:          b8c99e7d912f ("libc: add glibc-compatible tdestroy(3)")
Sponsored by:   Klara, Inc.
DeltaFile
+1-1lib/libc/stdlib/tdestroy.c
+1-1include/search.h
+2-22 files

FreeBSD/src 9051201 — tests/sys/fs/fusefs xattr.cc

fusefs tests: Use memcpy to work around a -Wstrlcpy-strlcast-size warning

tests/sys/fs/fusefs/xattr.cc:572:50: error: size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination [-Werror,-Wstrlcpy-strlcat-size]
  572 |                         strlcpy((char*)out.body.bytes, attrs1, sizeof(attrs1));
      |                                                                ~~~~~~~^~~~~~~

The warning is correct in that the size is the size of the source, but
that is intended in this case.  Use memcpy() instead of strlcpy() to
match the same code in the size_only_race_smaller test above.

Differential Revision:  https://reviews.freebsd.org/D49786

(cherry picked from commit faae895fec6571242ae05b11bc7eba0dff83fa49)
DeltaFile
+1-1tests/sys/fs/fusefs/xattr.cc
+1-11 files

FreeBSD/src 1660d69 — sys/dev/usb usbdevs, sys/dev/usb/quirk usb_quirk.c

Add USB quirk for WCH-Link adapter

WCH-Link is a debug adapter from QinHeng Electronics that features a
(proprietary) debug bridge for their RISC-V MCUs, as well as a serial
gateway, implemented as a CDC device.  The CDC's call management
descriptor declares the data interface to be 1, but it is actually
interface 2. UQ_IGNORE_CDC_CM has already been implemented before to
handle this kind of firmware bug, so just add this quirk for WCH-Link.

Reported by:    Holm Tiffe
MFC after:      1 week
DeltaFile
+1-0sys/dev/usb/usbdevs
+1-0sys/dev/usb/quirk/usb_quirk.c
+2-02 files

FreeBSD/src d46e229 — sys/netpfil/ipfw dn_aqm_pie.c dn_aqm_codel.c

dummynet(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/netpfil/ipfw/dn_aqm_pie.c
+0-1sys/netpfil/ipfw/dn_aqm_codel.c
+0-22 files

FreeBSD/src a5c4d3a — sys/dev/enic enic_txrx.c

enic(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/dev/enic/enic_txrx.c
+0-11 files

FreeBSD/src d1e76c3 — sys/dev/vmware/vmxnet3 if_vmx.c

vmx(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/dev/vmware/vmxnet3/if_vmx.c
+0-11 files

FreeBSD/src d1b36c5 — sys/netipsec xform_ipcomp.c xform_esp.c

ipsec(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/netipsec/xform_ipcomp.c
+0-1sys/netipsec/xform_esp.c
+0-1sys/netipsec/xform_ah.c
+0-1sys/netipsec/ipsec_offload.c
+0-44 files

FreeBSD/src 8f8c37d — sys/compat/linux linux_socket.c

linux(4): remove not needed <netinet6/ip6_var.h>
DeltaFile
+0-1sys/compat/linux/linux_socket.c
+0-11 files

FreeBSD/src 118648c — gennmtab Makefile.in, lib xmlparse.c

Vendor import of expat 2.11.0
DeltaFile
+1,081-0tests/fifth_edition_tests.c
+661-224tests/basic_tests.c
+442-301lib/xmlparse.c
+740-0gennmtab/Makefile.in
+300-38tests/misc_tests.c
+322-1tests/xmltest.sh
+3,546-56450 files not shown
+5,557-1,14156 files

FreeBSD/src aa2d724 — sys/dev/mii mii.c

Revert "mii: call only PHY_STATUS() from mii_pollstat()"

This regressed bge(4).  A different patch to be proposed.

This reverts commit ef3c76fd2030a4c7d0f9c981b7129595398e3f21.

PR:     290417
PR:     301046
DeltaFile
+1-1sys/dev/mii/mii.c
+1-11 files

FreeBSD/src cbd8136 — sys/sys libkern.h

libkern: Remove remnants of inlined memset()

Fixes:          97e898489390 ("libkern: tidy up memset")
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
DeltaFile
+0-5sys/sys/libkern.h
+0-51 files