nfsclrdma: Add build glue for nfsclrdma sources
Commit 80bee4d836 added the sources for client side NFS
over RDMA.
This patch adds the code to build these sources as a
module called nfsclrdma.ko or in the kernel when
kernel options NFSCL and OFED are specified.
Reviewed by: markj
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D61926
Fixes: 80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")
nfs_clvfsops.c: Don't allow krb5i/krb5p or TLS for RDMA
I don't think it makes any sense to do encryption/decryption via
the cpu for data being RDMA'd. (The whole point of RDMA is to
move the data fast.) Disallow the combination of "rdma" and
"krb5i", "krb5p" or "tls".
MFC after: 1 month
Fixes: 884ee8d6c9b4 ("nfscl: Add some glue for client side NFS over RDMA")
localedef: off by one bug drops the highest code point from every collation table
localedef(1) writes one fewer entry than it has into the "large" (code point
above UCHAR_MAX) collation table, and records a count one short. The table is
built in code point order, so the entry lost is always the character with the
highest code point in the locale. For that character wcsxfrm(3) returns 0 and
wcscoll(3) gives it no weight: it sorts with the ignorables and compares equal
to unrelated characters.
Reviewed by: rmoeller, kevans
Approved by: kevans (mentor)
Differential Revision: https://reviews.freebsd.org/D60057
www/mod_evasive: Fix build without IPv6, print getpid() portably
Wrap the IPv6 parts of the whitelist code in #if APR_HAVE_IPV6, so the
module builds against an APR configured without IPv6 (e.g. on systems
built WITHOUT_INET6).
Cast getpid() to unsigned long and print it with %lu instead of
assuming pid_t is long.
The existing s6_addr change (upstream PR 57) is retained.
PR: 300129
Co-authored-by: Claude Opus 5.5 (effort medium)
Approved by: Rafael Grether <devnull at apt322.org> (maintainer)
netlink: Do not change interface flags on an empty ifinfomsg
Since f89f82e4042a, _nl_modify_ifp_generic() treats ifi_change == 0
as a request to apply all of ifi_flags. A RTM_NEWLINK request that
only modifies attributes carries a zeroed ifinfomsg, so it brought
the interface down and cleared its permanent promiscuous mode as a
side effect.
Only apply flags for an empty ifi_change when ifi_flags is set,
which matches the behavior of Linux.
Fixes: f89f82e4042a ("netlink: Fix IFF_UP flag handling in RTM_NEWLINK's modify_link handler")
Differential Revision: https://reviews.freebsd.org/D61504
nd6: Keep addresses tentative when DAD cannot run
in6_ifa_need_dad() ignored the interface state, making addresses on
down/ifdisabled interfaces optimistic and usable while DAD was deferred.
Guard it like nd6_dad_start() and re-evaluate it in in6_if_up() and
nd6_timer().
Also, reject IN6_IFF_NOTREADY sources in nd6_ns_output_fib() and
GRAND because optimistic DAD can fail while sockets are already using
the address.
While here, add some tests to make sure these never happen.
Reported by: llm-postcr
Fixes: c7cd7e7fad57 ("nd6: Add support for Optimistic DAD (RFC 4429)")
Differential Revision: https://reviews.freebsd.org/D55229
net-im/tuwunel: Update to 2.1.0
Adds LiveKit tokens for MatrixRTC calls and sticky events in both sync
APIs, and takes part in room policy servers by default. The database
pool is now sized against FreeBSD's per-process thread limit.
Restarting the service works again: daemon(8) keeps the child pidfile
locked until after the child exits, so the start following a stop found
it still held.
Changes:
https://github.com/matrix-construct/tuwunel/releases/tag/v2.1.0
Sponsored by: Netzkommune GmbH
tcp/rack: reject unknown rate_sample_method values
The net.inet.tcp.rack.rate_sample_method sysctl is copied into every
new RACK connection but accepts any integer, while the
TCP_BBR_RACK_RTT_USE socket option only accepts USE_RTT_HIGH (0),
USE_RTT_LOW (1) and USE_RTT_AVG (2). With any other value,
tcp_rack_xmit_timer_commit() panics an INVARIANTS kernel on the first
RTT sample of each new connection ("Unknown rtt variant"). Without
INVARIANTS it returns early on every sample, so the connection never
updates its SRTT, RTTVAR or RTO.
Validate the sysctl with a handler that accepts only the three values
that the socket option accepts, and document the third value in the
sysctl description and in tcp_rack(4).
Reviewed by: tuexen
Co-authored-by: Claude Opus 5.5
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D62072
tcp/rack: range-check pace_max_seg sysctl and socket option
The net.inet.tcp.rack.pacing.pace_max_seg sysctl is a 32-bit integer,
but rack_init() copies it into each new connection's 7-bit bitfield
rc_user_set_max_segs. Values that do not fit are truncated, and a value
of 128 becomes 0. A connection with rc_user_set_max_segs of 0 ends up
with a pacing max segment size of 0, and rack_setup_fast_output() then
executes rounddown(left_to_send, 0), causing an integer divide fault:
Fatal trap 18: integer divide fault while in kernel mode
#5 rack_do_segment_nounlock+0x29eb
... (fault in rack_setup_fast_output() inlined into rack_output())
The TCP_RACK_PACE_MAX_SEG socket option clamps values above
MAX_USER_SET_SEG (63), but it accepts 0, which leads to the same
division by zero.
Validate the sysctl with a handler that only accepts 1 to
MAX_USER_SET_SEG, and reject a socket option value of 0 with EINVAL
[12 lines not shown]
Add misc/paseo-hub: Agentic development environment (automation hub)
- Installed from the published @getpaseo/hub npm package, which ships
the prebuilt server and web app
- fs-native-extensions, which locks the embedded database, has no
FreeBSD support; it is built with a new FreeBSD backend using
flock(2), fspacectl(2), and extattr(2)
- rc script runs Hub as paseo-hub through daemon(8), listening on
127.0.0.1:3000 with its embedded database in /var/db/paseo-hub
Assisted-by: Claude Code (Opus 5.5, Fable 5.2)
Add www/paseo-web: Agentic development environment (web app)
- Prebuilt web app taken from the @getpaseo/server npm package; no
build
- Works with pairing links from any daemon and with net/paseo-relay
Assisted-by: Claude Code (Opus 5.5, Fable 5.2)
Add misc/paseo-desktop: Agentic development environment (desktop app)
- Built from the GitHub source and run with devel/electron44; amd64
only, as lightningcss has no FreeBSD binary for other architectures
- Runs the daemon and the CLI from misc/paseo; version locked to it
- Patches point resource paths at DATADIR, treat FreeBSD like Linux,
and leave updates to pkg
- node_modules archive pruned of non-FreeBSD prebuilt binaries
Assisted-by: Claude Code (Opus 5.5, Fable 5.2)
Add net/paseo-relay: Agentic development environment (relay server)
- Upstream has no releases; DISTVERSION g<date> tracks a commit
- Hex dependencies are fetched as distfiles and unpacked offline by
files/hex-deps.exs
- The OTP release bundles ERTS from lang/erlang-runtime29
- rc script runs the relay as paseo-relay, with Erlang distribution off
Assisted-by: Claude Code (Opus 5.5, Fable 5.2)
Add misc/paseo: Agentic development environment (daemon and CLI)
- Installed from the published @getpaseo/cli npm package, with
node_modules prefetched per architecture (aarch64, amd64)
- node-pty is rebuilt for FreeBSD, carrying microsoft/node-pty#961
- Dictation is off by default: its local speech engine (sherpa-onnx)
has no FreeBSD build
- rc script runs the daemon as paseo_user through daemon(8)
- ZSH option generates the zsh completion from the CLI's commander
definition
Assisted-by: Claude Code (Opus 5.5, Fable 5.2)