sglist: Cosmetic cleanups to sglist_join
- Don't create an out-of-bounds pointer in flast. Instead, use NULL
for the case that first is empty for a more deterministic failure.
- Use a helper variable to de-duplicate an expression
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D62005
sglist: Correct order of operands to bcopy in sglist_join
This was trashing the second list with uninitialized garbage from the
first list.
Reviewed by: markj
Fixes: b36cfff75df4 ("Add a simple API to manage scatter/gather...")
Differential Revision: https://reviews.freebsd.org/D62004
sglist: Avoid an out-of-bounds access in sglist_append_sglist
If the destination sglist is empty, then the first matching segment
from the source sglist should be added as the first segment in the
destination list. This happened to work by accident when sg_nseg was
a u_short as ss pointed to the sglist header which never had a
matching paddr so _sglist_append_range fell through to appending a new
range, but that was still buggy. After sg_nseg changed to an unsigned
int, the initial ss now points way out of range on 64-bit platforms
resulting in reading from a random (possibly unmapped) kernel address.
Reported by: llm-postcr
Reviewed by: markj
Fixes: 00f6cd3f5682 ("Add sglist_append_sglist().")
Differential Revision: https://reviews.freebsd.org/D62003
devel/py-pyformance: Drop the pkg_resources namespace declaration
- pyformance/__init__.py declares a pkg_resources namespace, but
setup.py declares no namespace packages and nothing else installs
into pyformance/, so the line does nothing. Patch it out and drop
the py-setuptools run dependency it needed.
- Add py-mock to TEST_DEPENDS: three test modules import mock, so
they failed to import under USE_PYTHON=unittest.
PR: 299863
Reported by: vishwin (via e-mail)
MFH: 2026Q4
(cherry picked from commit c22a007aaf31eb8d30f1f1205759dc5e1aff6c45)
devel/py-pyformance: Drop the pkg_resources namespace declaration
- pyformance/__init__.py declares a pkg_resources namespace, but
setup.py declares no namespace packages and nothing else installs
into pyformance/, so the line does nothing. Patch it out and drop
the py-setuptools run dependency it needed.
- Add py-mock to TEST_DEPENDS: three test modules import mock, so
they failed to import under USE_PYTHON=unittest.
PR: 299863
Reported by: vishwin (via e-mail)
MFH: 2026Q4
net-im/gomuks: Fix 14.x builds including rollback wasm
When building on 14.x with gomuks 0.2611.x an npm depend. pulls in
rolldown. rolldown only provide a 15.x binary release. It's possible
upstream can (re)build a 14.x release however in the interim change the
package-lock.json to include rollback wasm that's the fallback package
if the native is not found.
PR: 301275
Sponsored by: UNIS Labs (vvd, commit patch)
mail/stalwart: Update 1.2.1 => 1.2.2
- Follow the upstream product name: Stalwart Mail and Collaboration
Server.
- Add the 1.2.2 upgrade notes for the spam filter rules and SMTP relay
authentication.
Changelog:
https://github.com/stalwartlabs/stalwart/releases/tag/v1.2.2
PR: 301282
mgb: Add PCI11010 support
The Microchip PCI11010 is a PCIe switch with embedded multi-Gigabit
Ethernet controller. Only a new PCI ID is needed, as commit
da8a529bc01f ("mgb: support for PCI11414.") added required new
functionality.
Reviewed by: br
Sponsored by: The FreeBSD Foundation
Sponsored by: Microchip (hardware)
Differential Revision: https://reviews.freebsd.org/D62208
nvme: do not submit Abort commands with the qpair lock held
The Abort for a timed-out admin command is submitted to the queue
whose lock the watchdog holds. For an I/O command, a failed admin
queue completes the Abort during submission, and nvme_abort_complete()
takes the I/O takes the I/O qpair lock again.
Either way the thread recurses on a non-recursive mutex.
Abort command: NVM Express Base Specification 2.4, section 5.2.1.
Fixes: 2a6b7055a980 ("nvme: Timeout expired transactions")
Reviewed by: rz_fabmicro.ru, ngie
Differential Revision: https://reviews.freebsd.org/D61625
unr(9): fix iterator with trivial unit allocations
Hoist the check that we've scanned all the unrs to the top of the
loop since none might have been allocated e.g., if we've only used
allocated units in order with alloc_unr() and never freed any.
Add a test of the trivial case.
Reviewed by: kib, markj
Sponsored by: Innovate UK
Fixes: a014e0a3987a ("unr(9): add iterator interface")
Differential Revision: https://reviews.freebsd.org/D62139
ports.cgi: clarify the help page
Explain that ^ anchors a search at the start of a name, and that
the Dependencies search is the reverse of the Dependencies list
shown for each port. Simplify the Package Name description,
rename "External Links" to "Result Links" and shorten the
FreshPorts link text.