chinese/fandol: Remove port
- Upstream (CTAN) has declared the Chinese Fandol fonts obsolete
MFH: 2026Q4
(cherry picked from commit c1d314f775e1a6d80b09efe2e1e638d91748fc80)
aq: build the module on arm64
The driver has no x86 dependency. It attaches and passes traffic on a
Raspberry Pi 5 with an AQC100 in its PCIe slot.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D60462
Signed-off-by: Nick Price <nprice at FreeBSD.org>
aq: support a legacy INTx interrupt
aq(4) attached only with MSI-X. Without an MSI controller iflib falls
back to INTx, and attach failed with EOPNOTSUPP.
Accept IFLIB_INTR_LEGACY, program the controller for INTx, and add a
legacy filter. INTx is level-triggered and nothing auto-masks, so the
filter masks the vector before acknowledging it; iflib unmasks it via
IFDI_INTR_ENABLE once the queues are drained. All causes already map
to vector 0 in this mode. MSI stays unsupported: iflib never selects
it here, since these controllers advertise 32 messages.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D60461
Signed-off-by: Nick Price <nprice at FreeBSD.org>
bootpd: clamp the DHCP reply length to the packet buffer
A client could set the DHCP maximum-message-size option to a large
value; dovend_rfc1048() derived the reply length from it with no upper
bound, so the trailing bzero() of the vendor area ran far past the
MAX_MSG_SIZE packet buffer. A value >= 0x8000 read into a signed short
instead went negative and slipped past the length clamps, leaving
sendto() to read a huge length from the buffer.
Read msgsz unsigned and clamp the reply length to the buffer size.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D61009
Signed-off-by: Nick Price <nprice at FreeBSD.org>
acpi: set up the sysctl tree before acpi_machdep_init()
On amd64 and i386, acpi_machdep_init() adds hw.acpi.reset_video under
acpi_sysctl_tree. Since the tree moved to the end of attach, it no
longer exists at that point, so sysctl_add_oid() drops the node and the
sysctl documented in acpi(4) is missing. Found with KUBSAN.
acpi_machdep_init() cannot fail, so calling it after the tree does not
leave knobs behind on a failed attach.
Fixes: 7f031c9f6b9f ("acpi: Move sysctl tree set up at end of initialization")
Signed-off-by: Nick Price <nprice at FreeBSD.org>
Reviewed by: olce
Differential Revision: https://reviews.freebsd.org/D60797
vmm: don't hold the global PPT lock while resetting a device
`ppt_assign_device()` holds the global PPT lock across the save/reset/restore. `pcie_flr()` can wait up to the reset timeout, and every PPT operation on every VM stalls behind it.
Reserve the function with `resetting` and drop the lock for the reset, as `ppt_reset_device()` already does (D58864). Set `ppt->vm` first so a competing assign or `ppt_detach()` gets EBUSY at once instead of sleeping out the reset. Clear it if the assign fails.
Apply matching changes to `ppt_unassign_device()` which may actually take longer on properly-functioning hardware due to teardown duration.
Reviewed by: adrian, markj
Differential Revision: https://reviews.freebsd.org/D60188
Signed-off-by: Nick Price <nprice at FreeBSD.org>
inpcb: reject a reversed ephemeral port range
vxlan, geneve and the RDMA CM take portrange.first and last as an
ordered pair and divide by zero when first == last + 1.
Refuse a write that would put first above last or hifirst above hilast.
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D61010
Signed-off-by: Nick Price <nprice at FreeBSD.org>
inpcb: treat the ephemeral port range as inclusive
in_pcb_lport_dest() sizes [first, last] as last - first, so the random
start never picks last and the search tries one port too few.
With first == last the random start divides by zero: once root sets the
range, any user's connect() panics the host.
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D61010
Signed-off-by: Nick Price <nprice at FreeBSD.org>
snp(4): drain snp_outpoll before destroying the open data
kib' note: comparing to the original submission, seldrain() is called
before cv_destroy().
PR: 301062
MFC after: 1 week
ext2fs: fix post-commit review issues in multi-block allocator
Fix 8 issues identified in post-commit review of e590490:
POSTCR-1: ext2_clusteralloc() asserted MA_NOTOWNED while holding
EXT2_LOCK, causing INVARIANTS panic on successful cluster lookup.
Changed assertion to MA_OWNED.
POSTCR-2: ext2_balloc() IO_SYNC and ext4_ext_split() error paths freed
blocks after bwrite() failure, but brelse() had redirtied the buffer
which still named the freed block. Added B_INVALONERR flag before
bwrite() to invalidate buffers on error (4 locations in ext2_balloc.c,
3 in ext2_extents.c).
POSTCR-3: ext4_ext_get_blocks() freed new run when ext4_ext_dirty()
failed, but extent remained in i_data or cached leaf buffer. Simplified
ext4_ext_dirty() error handling to use B_INVALONERR instead of manual
getblk/bundirty/brelse.
[24 lines not shown]
audio/sound-firmware-cirrus: New port
Firmware for the Cirrus Logic smart speaker amplifiers found behind the
HDA codec of some laptops: the DSP program (wmfw) and the per-amplifier
tuning files (bin) that the snd_cs35l54(4) driver downloads at attach.
The files come from linux-firmware and are installed as raw files under
/boot/firmware/cirrus/, where firmware(9) loads them on demand.
The cs35l54 flavor covers the CS35L54 platforms listed in
linux-firmware, such as the HP ZBook Ultra G1a.
Reviewed by: manu, christos
Pull Request: https://ron-dev.freebsd.org/FreeBSD/ports/pulls/20
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)
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)
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)
pf tests: give rules_counter:4G more time
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 8217075f9ecb12fa9a4cf746541b9d3e1dc57e79)
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)
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)
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