netmap: Clear ni_bufs_head in a new netmap_if
netmap_mem2_if_new() does not set ni_bufs_head, and the netmap_if comes
from a pool that is not zeroed, so it starts with the head of the last
extra buffer list of whoever had that netmap_if before. Only a
registration from userspace sets the field afterwards. One made by the
kernel, such as attaching a NIC to a VALE switch, keeps the old value,
and so does a registration that fails after the netmap_if was created.
netmap_mem2_if_delete() then frees that list again. When the buffer is
free this logs "ouch, double free on buffer"; when another ring has got
it in the meantime, it is freed under that ring and can be given out a
second time.
Clear the field when the netmap_if is created.
Reviewed by: vmaffione
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D62152
xprt_verbs.c: Don't reset the connection for all failure stats
Without this patch, rpcrdma_unmap() fails the RDMA connection
for all RPC stat returns other than RPC_SUCCESS.
This patch allows the connection to remain for certain failures:
- RPC_AUTHERR, which can happen when a Kerberos TGT expires.
- RPC_INTR, RPC_TIMEDOUT, which can happen for "intr" or "soft"
mounts.
Reported by: llm-postcr
MFC after: 1 month
Fixes: 80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")
ietp(4): Expect I2C address provided by iicbus(4) to be in 8-bit format
Since rGb2dbfc7b7701 ("acpi_iicbus: shift the ACPI slave address into the
form iicbus(4) stores"), iicbus_get_addr() returns an 8-bit slave address
on acpi_iicbus(4) to match iicbus(4) and ofw_iicbus(4).
iichid(4) was updated in rGafe3bfec65da, but ietp(4) still left-shifts
iicbus_get_addr(iichid) in ietp_iic_identify(), ietp_iic_read_reg(), and
ietp_iic_write_reg() before issuing I2CRDWR transfers via iichid_ioctl().
Drop the redundant shifts so the slave address is not shifted twice.
Fixes: b2dbfc7b7701 ("acpi_iicbus: shift the ACPI slave address into the form iicbus(4) stores")
Reviewed by: wulf
Differential Revision: https://reviews.freebsd.org/D62164
xhci: read HCIVERSION as part of the first capability word
Some controllers apparently do not like accesses non-aligned to 32bits,
even when only reading 8 or 16 bits.
Commit 6d5c80aee3ae made it so we unconditionally read XHCI_HCIVERSION
with a 16bits read, which panics on my Radxa Orion O6. This gives a
SError, with the firmware reporting "IDM: USB3CH0 non-secure access".
Instead, do a 32bits read on XHCI_CAPLENGTH, which is properly aligned,
and shift it to get the value of XHCI_HCIVERSION. This is what Linux
does too.
Reviewed by: aokblast, seuros
Differential Revision: https://reviews.freebsd.org/D62132
MFC after: 3 days (with 6d5c80aee3ae, as it gets MFC'd)
devel/pyotherside-qt5: Update and switch to Qt6
While here:
- Do not install qtquicktests test binary.
- Add testing support.
- Append opengl to USE_GL.
PR: 289587
Approved by: daniel at shafer.cc (maintainer timeout, 1+ year)
acpi: Add acpi_fan
Implemet acpi fan driver for controlling fan device defined in ACPI
standard. We implement level mode and step mode currently and provides
sysctls to control it.
In level mode, we have exposes n numbers of level can be choosen. People
writes the Ctrl value to set_level node to get desired value.
In step mode, people can write abitrary value (automatically rounddown
to the multiple of step) to set_level.
The full spec is in:
https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/11_Thermal_Management/fan-device.html
Reviewed by: seuros, zaiee
Tested by: rz_fabmicro.ru
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55592
net-im/tdlib-purple: Update 0.9.6 => 0.9.7
Pictures are now shown at once, as blurred stand-ins replaced when the
picture arrives, and whether they are downloaded automatically can be
chosen per account and per conversation. Rich messages (instant-view
style blocks) are shown as formatted text, the buttons bots and
channels put under messages work, and a message's link in a public chat
can be copied. The local database can be encrypted with the account's
password. Many fixes, mostly in how a chat's history is filled in
Pidgin, and all five translations are complete.
The release adds tdlib-purple-tg-link, a handler for tg: links that
hands them to the running libpurple program over D-Bus, with a desktop
entry registering it for x-scheme-handler/tg; hence desktop-file-utils.
Release notes:
https://github.com/UnitedMarsupials/tdlib-purple/releases/tag/v0.9.7
PR: 301242
Co-Authored-By: Claude Opus 5.5 (effort medium)
misc/paseo-desktop: Update to 0.18.1
Add a FreeBSD verifier for the browser proxy's SOCKS5 client check.
Assisted-by: Claude Code (Opus 5.5, Fable 5.2)
benchmarks/imaptest: New port
ImapTest is a generic IMAP server compliance tester that works with all
IMAP servers. It supports stress testing with state tracking, scripted
tests with expected output, and benchmarking.
Upstream has no releases. The newest release-* branch (2.3.21) is from
2021 and only builds with Dovecot 2.3; the main branch follows Dovecot
core development. Use the last commit that builds with Dovecot 2.4.5,
versioned by its date. Later ones need the SASL and SMTP client APIs of
the next Dovecot release.
WWW: https://github.com/dovecot/imaptest
PR: 301173
Co-Authored-By: Claude Opus 5.5 (effort medium)