sysutils/legion: Update to 0.3.0
Install the PostgreSQL replication plugin, new in this release, as
libexec/legion/replication/postgres, and the new replication
documentation.
Changes: https://github.com/grepjava/legion/releases/tag/v0.3.0
PR: 301441
Sponsored by: Netzkommune GmbH
*/*: Zap SOCK_STREAM size advice from pkg-messages
FreeBSD 15.0 raised the default net.local.stream.sendspace and
recvspace, and the change has now been merged to stable/14, so
users no longer need to tune them by hand for Akonadi, KMail or
e2guardian.
MFH: 2026Q4
Reviewed by: arrowd (as KDE)
Approved by: pormgr (implicit)
Differential Revision: https://reviews.freebsd.org/D62340
(cherry picked from commit bc3717dbe5bff01121ecee42017f896372590628)
*/*: Zap SOCK_STREAM size advice from pkg-messages
FreeBSD 15.0 raised the default net.local.stream.sendspace and
recvspace, and the change has now been merged to stable/14, so
users no longer need to tune them by hand for Akonadi, KMail or
e2guardian.
MFH: 2026Q4
Reviewed by: arrowd (as KDE)
Approved by: pormgr (implicit)
Differential Revision: https://reviews.freebsd.org/D62340
unix: increase net.local.(stream|seqpacket).(recv|send)space to 64 KiB
The limit of 8 KiB comes straight from the 80-ies, when memory sizes were
two orders of magnitude less. Microbenchmarking clearly shows that
increased maximum buffer size is needed to improve bulk transfer
performance over unix(4). Most operating system have larger default
sizes. This brings us another reason for increase. A buggy application,
that treats a stream socket as a datagram socket, shall work on Linux as
long as its messages are smaller than socket buffer size without any
issues 99.99% of time. But on FreeBSD it will instantly fail. In the
ports system there are already applications that suggest increase of this
sysctls for the application to work. We don't want to be a bug catcher
for bad applications in the default configuration.
Note that buffer size increase will not increase memory usage even on a
system with a million unix(4) sockets at normal runtime, as long as
applications are written properly and receivers drain their sockets and
system has enough CPU time for them to do that.
[5 lines not shown]
imgact_elf: accept PT_INTERP segments up to 4096 bytes
The Yocto/Poky relocatable SDK NUL-pads the interpreter path in
PT_INTERP out to 4096 bytes (within Linux's POSIX PATH_MAX) so that
'relocate_sdk.py' can rewrite the path in place. The kernel rejected
any PT_INTERP with p_filesz > BSD's MAXPATHLEN (1024) with
"Invalid PT_INTERP" and ENOEXEC, so none of the SDK's binaries could
be run under the Linuxulator.
- The PT_INTERP segment may now be up to 'PT_INTERP_SEG_MAXSZ'
bytes, which may be greater than 'MAXPATHLEN'.
- The interpreter path within the segment must still be shorter
than 'MAXPATHLEN' -- when violated results in 'ENAMETOOLONG'
when the interpreter is looked up.
Approved by: re (cperciva)
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D62075
(cherry picked from commit 7ee8d41ebb2ffb13e50ea59fd5bc43155123f323)
(cherry picked from commit cada5351b20f3dd1e146d558d0f44a8f9a1f9b52)
Revert "virtio_net: Use bus_dma for rxq/txq buffers"
This code is causing data corruption in 15.2-RC1 and needs to be fixed
before it lands in a release.
This reverts commit 6695c6bd0bf248927f34479a9ea2e13a6bf7db3d.
Approved by: re (cperciva)
Revert "virtio_net: Use bus_dma for command/ack buffers"
This code is causing data corruption in 15.2-RC1 and needs to be fixed
before it lands in a release.
This reverts commit 9291bb153595a4b10ef86cd3fee5b783835db819.
Approved by: re (cperciva)
vm_page: Make every shared unbusy a release
vm_page_sunbusy() and vm_page_busy_release() drop a shared busy that
other threads still hold with a relaxed atomic_fcmpset_int(). Only the
last sharer's update is a release, but any sharer can modify the page.
The next thread to busy the page exclusively synchronizes with the last
sharer's release, so on weakly ordered CPUs it need not see the changes
by a sharer that was not the last.
Found by: Claude Code (Opus 5.5)
Reviewed by: kib, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62391