vchiq: Merge two commits from Linux
6e474d8e3981 ("staging: vchiq_shim: avoid code duplication") refactors
some code which makes applying the subsequent patch easier.
49bec49fd7f2 ("staging: vc04_services: remove vchiq_copy_from_user")
addresses a user-triggerable integer overflow via the
VCHIQ_IOC_QUEUE_MESSAGE ioctl on /dev/vchiq (which has mode 0600 by
default). It also addresses insufficient validation of user-controlled
addresses in vchiq_copy_from_user().
Update the bcm2835_audio driver to follow the change to
vchi_msg_queue().
Reported by: Vicki Pfau
Reviewed by: Abdelkader Boudih <freebsd at seuros.com>
Tested by: Abdelkader Boudih <freebsd at seuros.com>
Tested by: Marco Devesas Campos <devesas.campos at gmail.com>
MFC after: 2 weeks
[2 lines not shown]
libusb: Add an XXX comment for possible duplicate callback IDs
If next_callback_id wraps we could end up with two callbacks with the
same ID. I recommitted the original change despite this issue in order
to fix the libusb API as soon as possible after SHLIB_MAJOR was bumped
in commit 527a82474cb3 (libusb: versioning symbols).
It's very unlikely in practice that software will register and
deregister a sufficient number of callbacks to trigger this, but it is
a real issue to be fixed in a subsequent commit.
Sponsored by: The FreeBSD Foundation
libusb: change callback register handler to int
libusb upstream uses int for register handler. This causes some library
user (like pyusb) to assume that we have int in all implementations and
therefore provides a 4 byte storage only. This causes Segmentation
fault as we will right the pointer.
Reviewed by: adrian
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54211
(cherry picked from commit ce9ced951a0b9d004a3b007d4ac6e9087a1301a2)
devel/py-backports.*: resolve conflicts with devel/py-backports
devel/py-backports does basically nothing except to install the
/usr/local/lib/python3.*/site-packages/backports/__init__.py file.
Several other py-backports.* ports also installed the same file, with
identical contents. That created runtime conflicts that prevented
certain ports from being installed, including sysutils/py-salt.
Fix the conflicts by patching the offending ports to stop installing
that file, and instead depend on devel/py-backports.
PR: 297696
PR: 297697
Reviewed by: krion
Sponsored by: ConnectWise
Inspired by: 56a719e6b67 (svn r492366)
netstat(1): Add nexthop statistics support with -os flag
Add support nexthop statistics and update its manual.
While here, fix manual of other nexthop related options.
Reviewed by: kfv
Differential Revision: https://reviews.freebsd.org/D58538
snd_uaudio: Use uDWord for the UAC2 sample rate
uaudio20_set_speed() split the sample rate into bytes by hand. Use
uDWord and USETDW() instead.
No functional change intended.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D59066
clk: Correct SpacemitT typo
SpacemiT has only one T.
Fixes: dcb10e3add17 ("clk: Initial support for the SpacemiT K1 clock control units")
Sponsored by: The FreeBSD Foundation
www/mod_dnssd: Deprecate and set expiration date
Upstream has been abandoned since the 0.6 release in 2008; the download
directory has never carried anything newer and the port is only kept
building by local patches.
MFH: 2026Q3
Sponsored by: Netzkommune GmbH
(cherry picked from commit 741389d46352a5c1545fec77871d76c06597c782)
finance/pear_Payment_DTA: Deprecate and set expiration date
Upstream released the last version 1.4.3 in June 2012 and the PEAR
channel itself has seen no activity since. The DTAUS file format the
package produces has been superseded by SEPA and is no longer accepted
by German banks, so the port has no remaining use case.
MFH: 2026Q3
Sponsored by: Netzkommune GmbH
(cherry picked from commit 2c6b0c1c1c1e78952cf01a97a0bd1ee77492dfe1)
finance/pear_Payment_DTA: Deprecate and set expiration date
Upstream released the last version 1.4.3 in June 2012 and the PEAR
channel itself has seen no activity since. The DTAUS file format the
package produces has been superseded by SEPA and is no longer accepted
by German banks, so the port has no remaining use case.
MFH: 2026Q3
Sponsored by: Netzkommune GmbH