fusefs: fix vnode locking violations during execve
Fix two locking violations that could happen during execve, while
executing a file stored on fusefs. Both would cause panics on an
INVARIANTS kernel after 15.0, or a DEBUG_VFS_LOCKS kernel prior to that.
Neither is likely to be noticeable on a release kernel.
* Don't assume that the vnode is exclusively locked during VOP_CLOSE.
It usually is thanks to !MNTK_LOOKUP_SHARED, but isn't during execve,
which locks the vnode outside of the lookup path.
* Totally rewrite fuse_io_invalbuf. It's had a number of problems ever
since its original introduction[^1]:
- Don't assume that the vnode is exclusively locked. That assumption
failed during execve just like the assumption in fuse_vnop_close.
- Don't livelock forever if vinvalbuf returns ENOSPC or EDQUOT.
[20 lines not shown]
hwpstate_amd(4): Use new cpu_get_pcpuid(), constify related variables
Also, add a check in the attach method that a per-CPU structure is
provided by the bus. This allows to remove such checks in multiple
functions. The check cannot currently fail as all x86 CPU drivers
(ACPI, legacy) provide the CPU_IVAR_PCPU instance variable, but it is
safer to have it, especially as an example to other driver writers.
Event: Halifax Hackathon 202606
Location: Seat 25A in AF0349, before leaving Montréal-Trudeau
Sponsored by: The FreeBSD Foundation
hwpstate_intel(4): Use new cpu_get_pcpuid(), constify related variables
Also, add a check in the attach method that a per-CPU structure is
provided by the bus. This allows to remove such checks in multiple
functions. The check cannot currently fail as all x86 CPU drivers
(ACPI, legacy) provide the CPU_IVAR_PCPU instance variable, but it is
safer to have it, especially as an example to other driver writers.
Event: Halifax Hackathon 202606
Location: Seat 36K in AC667, still waiting for a gate at Montréal-Trudeau
Sponsored by: The FreeBSD Foundation
cpu: New cpu_get_pcpuid(), retrieves internal CPU ID
It is a handy shortcut that will be used extensively in
hwpstate_intel(4) and hwpstate_amd(4).
Warn users that it panics if the parent bus does not provide the
CPU_IVAR_PCPU instance variable. That condition should be tested by
callers (doing so once is enough). Suggest to do that in driver's
attach method.
Reviewed by: jhb (code)
Event: Halifax Hackathon 202606
Location: Seat 36K in AC667, waiting for a gate at Montréal-Trudeau
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57897
newvers.sh: Avoid spurious -dirty in git revision
If git is installed and .git exists but git rev-parse failed to report a
hash we previously produced just "-dirty" as the git revision. Gate the
git commit count and -dirty check on the rev-parse passing.
Reviewed by: jlduran
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57995
archivers/xarchiver: archivers/rar[i386] is available only for i386/amd64 arches (+)
Define correct dependencies on rar only on supported arches
Approved by: portmgr blanket
archivers/xarchive: archivers/rar[i386] is available only for i386/amd64 arches (+)
Define correct dependencies on rar only on supported arches
Approved by: portmgr blanket
archivers/py-comicapi: archivers/rar[i386] is available only for i386/amd64 arches (+)
Define correct dependencies on rar only on supported arches
Approved by: portmgr blanket
archivers/file-roller: archivers/rar[i386] is available only for i386/amd64 arches (+)
Define correct dependencies on rar only on supported arches
Approved by: portmgr blanket
archivers/ark: archivers/rar[i386] is available only for i386/amd64 arches (+)
Define correct dependencies on rar only on supported arches
Approved by: portmgr blanket
archivers/lzma: update to 26.02
- add 7-zip.org to MASTER_SITES as distfile not yet on Sourceforge
(but will probably be uploaded soon)
Upstream changes:
- Some bugs and vulnerabilities were fixed.
MFH: 2026Q2
(cherry picked from commit 2821c2b2c26f4fa71ad6a1913aca848c4caafd66)
security/amavisd-new: archivers/rar[i386] is available only for i386/amd64 arches (+)
Define correct dependencies on rar only on supported arches
Approved by: portmgr blanket
archivers/lzma: update to 26.02
- add 7-zip.org to MASTER_SITES as distfile not yet on Sourceforge
(but will probably be uploaded soon)
Upstream changes:
- Some bugs and vulnerabilities were fixed.
MFH: 2026Q2