arm64: Reject user-mode faults on kernel addresses
On a CPU without FEAT_E0PD, a user-mode store to a mapped kernel
address takes a permission fault, which data_abort() passes to
pmap_fault() with the process's pmap. pmap_pte() then finds the user
mapping whose address has the same low-order bits. If that mapping is
writable, pmap_fault() marks it dirty, although nothing wrote it, and
returns KERN_SUCCESS. The store is retried and faults again, so the
thread spins instead of receiving SIGSEGV. Access flag faults, which
loads also take, have the same flaw when a kernel mapping lacks
ATTR_AF.
Like amd64's trap_pfault(), send SIGSEGV for a user-mode fault in the
kernel address space without calling pmap_fault() or vm_fault_trap().
Also, in pmap_fault(), assert that a kernel address comes with the
kernel pmap and a user address with a user pmap.
Found by: Claude Code (Opus 5.5)
[3 lines not shown]
graphics/ect: New port
Efficient Compression Tool (ECT) is a file optimizer that losslessly
reduces the size of PNG, JPEG, gzip and ZIP files. It combines a
modified zopfli deflate encoder, optipng-style PNG filter selection
and mozjpeg-based JPEG optimization.
Upstream unconditionally builds x86 with SSSE3, SSE4.2 and PCLMUL
without runtime dispatch; this is now gated behind the SIMD option
(off by default) so packages run on baseline amd64 CPUs.
WWW: https://github.com/fhanau/Efficient-Compression-Tool
archivers/plzip: Fix decompression from stdin
Decompressing from a pipe or stdin always failed with "Not enough
memory." without reading any input.
clang (seen with 19 and 20) constant-folds the result of
'new (std::nothrow) uint8_t[N]' to a null pointer when the result
is stored in a const pointer and N is a constant larger than the
-fconstexpr-steps limit (default 2^20). The splitter buffer in
dec_stream.cc is 2^20 + 30 bytes, so the compiled splitter thread
unconditionally took the out-of-memory path. GCC is not affected,
which is why upstream could not reproduce this on GNU/Linux.
As a temporary workaround until clang is fixed, drop 'const' from
the pointer, which prevents the folding. Raising -fconstexpr-steps
would also work but depends on the compiler and on the buffer size,
so it was not used.
PR: 301139
www/immich-power-tools: Unbreak build
Type checking runs out of memory on the build cluster and only looks at
the sources. The port now takes the default node version.
Sponsored by: Netzkommune GmbH
audio/p5-Net-FreeDB: Mark DEPRECATED
- Client for the defunct freedb.org service
- Use audio/p5-MusicBrainz-DiscID (MusicBrainz) instead
- Switch to DISTVERSION while I am here
- Set EXPIRATION_DATE 2026-12-24
- No consumers in the tree
(cherry picked from commit 196a6a0653aa8d93bf2b79087c3cbffbaaa62f7f)
www/p5-WebService-IMDB: Mark DEPRECATED
- Relies on IMDb's retired app.imdb.com API
- No consumers in the tree
- Switch to DISTVERSION while I am here
- Set EXPIRATION_DATE 2026-12-24
(cherry picked from commit 8971ef6c84f5d6c202574225a772fd41499ca79d)
contrib/lutok: upgrade to 0.7.0
This is a large cleanup release which has a number of changes that
should be largely transparent to end-users of lutok.
Please see NEWS for more details, as well as the vendor import commit.
MFC after: 1 week
Merge commit 'a1e3c85b0684e1a1896fbf811a894a45e658ec83'
lutok: import lutok-0.7.0
This change adds lutok lutok-0.7.0 from [upstream][1].
The lutok-0.7.0 artifact was been verified by [SHA256 checksum][3].
This is a major cleanup release. A lot of credit goes to mchoo@ for all of the
hard work submitted in #13 🎉.
The API should not change in a noticeable way to consumers, e.g., a number of
"transparent" changes like const poisoning was done with methods, etc.
Iterative builds will require rebuilding lutok from scratch--which should
happen naturally, given how header dependencies [should] be treated with make.
More information about the release (from a high level) can be found in
the [release notes][4].
Updated via [`update_lutok.sh`][4] like: `update_lutok.sh 0.7.0 lutok-0.7.0`.
[4 lines not shown]
security/{pecl|php}-mcrypt: Convert port
Pecl package available only for PHP 7.2 and above
Please note that pecl infrastructure is being deprecated so create a
different port which is not dependent on pecl infrastructure.
This commit also removes pecl-mcrypt ports in lieu of this port and
updates reverse dependency.
WWW: https://pecl.php.net/package/mcrypthttps://github.com/php/pecl-encryption-mcrypt/