Commit Graph

304148 Commits

Author SHA1 Message Date
Bjoern A. Zeeb 76aed633b5 LinuxKPI: 802.11: additions for Linux v6.17 based wireless drivers
This includes the conflicting changes from previous driver versions
(v6.11/v6.14), mostly being function pointer or function arguments.

MFC after:	3 days
2025-10-23 21:26:07 +00:00
Bjoern A. Zeeb 14b53301e8 mt76: update Mediatek's mt76 driver
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

MFC after:	3 days
2025-10-23 21:26:07 +00:00
Bjoern A. Zeeb 354a030185 rtw89: update Realtek's rtw89 driver
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

MFC after:	3 days
2025-10-23 21:26:04 +00:00
Bjoern A. Zeeb eb15fdb1b7 rtw88: update Realtek's rtw88 driver
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

MFC after:	3 days
2025-10-23 21:26:02 +00:00
Bjoern A. Zeeb 6b627f8858 iwlwifi: update Intel's mvm/mld drivers
This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

Some of the changes we reported upstream got incorporated in this
(or the v6.16) release.

This also includes a change from iwlwifi-next.git::next for missing symbols

iwl_mvm_v3_rate_from_fw() and iwl_mvm_v3_rate_to_fw() were originally
comitted to mvm/rs.[ch] which we do not have.  That left us with
unresolved symbols.  For the never comitted v6.16 driver update I had
started to piece these together but they have been migrated out to
utils.c so take them from there until the next release hopefully ships
this change.

Obtained from:	git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next.git
	branch next, 1b49af228594452206d5c50a33b6a341428edb63

MFC after:	3 days
2025-10-23 21:26:00 +00:00
John Baldwin b307799b51 closefrom_test: Fix the first test
The first test is supposed to close the new fd, but was instead not
closing anything.

Reviewed by:	ngie, markj
Fixes:		3cedbec3ee ("Integrate tools/regression/fifo into ...")
Differential Revision:	https://reviews.freebsd.org/D52799
2025-10-23 15:59:32 -04:00
Cy Schubert 8b29c373e6 unbound: Vendor import 1.24.1
Release notes at
	https://nlnetlabs.nl/news/2025/Oct/22/unbound-1.24.1-released/

Security:	CVE-2025-11411
MFC after:	3 days

Merge commit '73dd92916f532cb3fe353220103babe576d30a15'
2025-10-23 12:03:29 -07:00
Cy Schubert 73dd92916f unbound: Vendor import 1.24.0
Release notes at
	https://nlnetlabs.nl/news/2025/Oct/22/unbound-1.24.1-released/

Security:	CVE-2025-11411
2025-10-23 11:47:50 -07:00
David E. O'Brien 93b02f69a6 random: fenestrasX: Add missing entropy sources
Reviewed by: cem
Fixes: 1492c8c0d qcom_rnd: add initial qualcomm prng driver.
Fixes: 9eecef052 Add an Armv8 rndr random number provider
Fixes: b2f8b2dc8 sys: Add an SMCCC Random Number Generator driver
Differential Revision:	https://reviews.freebsd.org/D53292
2025-10-23 09:54:03 -07:00
David E. O'Brien 38e9d282cd random: fenestrasX: add RDSEED support
Reviewed by: cem
Fixes: 3a1298 random: add RDSEED as a provably unique entropy source
Differential Revision:	https://reviews.freebsd.org/D53291
2025-10-23 09:52:55 -07:00
Alan Somers 6d408ac490 fusefs: add a regression test for a cluster_read bug
VOP_BMAP is purely advisory.  If VOP_BMAP returns an error during
readahead, cluster_read should still succeed, because the actual data
was still read just fine.

Add a regression test for PR 264196, wherein cluster_read would fail if
VOP_BMAP did.

PR:		264196
MFC with:	62aef3f73f
Reported by:	danfe
Reviewed by:	arrowd
Differential Revision: https://reviews.freebsd.org/D51316
2025-10-23 07:40:56 -06:00
Sarah Walker f4f638eb23 arm64: Add additional fields for PMBSR and PMSIDR
Reviewed by:	andrew
Sponsored by:   Arm Ltd
2025-10-23 11:47:18 +01:00
Andrew Turner b157c28ce9 modules/dtb: Add the ARM dtb module
fvp-base-revc.dtb works with the kernel now interrupt-maps are
supported in more cases.

Reviewed by:	mhorne
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D51258
2025-10-23 11:47:05 +01:00
Andrew Turner 82778970ee share/mk: Add opencsd to the list of private libs
Reported by:	Sarah Walker <Sarah.Walker2@arm.com>
Reviewed by:	emaste
Fixes:	1c52229528 ("lib: Move libopencsd to /usr/lib and make private")
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D53217
2025-10-23 11:47:05 +01:00
Dag-Erling Smørgrav 4d5789532a w: Trim whitespace and commas from time and uptime
When producing formatted output, trim leading whitespace and trailing
commas from the human-readable time and uptime before emitting them.
The text output remains unchanged.

PR:		290089
Fixes:          6e6febb54d ("w: Fix idle time in json output, add login/idle times to json output")
Reviewed by:	marius.h_lden.org
Differential Revision:	https://reviews.freebsd.org/D53167
2025-10-23 12:29:01 +02:00
Michael Tuexen bfda98a420 tcp over udp: don't copy more bytes than avaiable
When copying the data in the first mbuf to get rid of the UDP
header, use the correct length. It was copying too much (8 bytes,
the length of the UDP header).
This only applies to handling TCP over UDP packets. The support for
TCP over UDP is disabled by default.

Reported by:		jtl
Reviewed by:		Peter Lei
MFC after:		3 days
Sponsored by:		Netflix, Inc.
2025-10-23 09:24:09 +02:00
Michael Tuexen c2b08c13c2 netstat: add support for UDP-Lite endpoints
With this patch UDP-Lite endpoints are also shown per default.

Reviewed by:		Nick Banks
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53252
2025-10-23 09:15:22 +02:00
Michael Tuexen f48c6390dd sockstat: add support for UDP-Lite endpoints
With this patch UDP-Lite endpoints are also show per default.

Reviewed by:		Peter Lei, Nick Banks
MFC after:		3 days
Relnotes:		yes
Differential Revision:	https://reviews.freebsd.org/D53230
2025-10-23 09:12:32 +02:00
Michael Tuexen be93b27483 UDP-Lite: export pcblist via sysctl interface
Export the list of pcbs for UDP-Lite to be consumed by sockstat and
netstat.

Reviewed by:		Peter Lei, Nick Banks
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D53229
2025-10-23 09:10:03 +02:00
Jaeyoon Choi 131dc2b7ad MAINTAINERS: Add myself to ufshci
Sponsored by:           Samsung Electronics
Reviewed By: 		imp (mentor)
Differential Revision: 	https://reviews.freebsd.org/D53253
2025-10-23 03:14:22 +00:00
Mark Johnston fa240b7ff0 packages: Update the METALOG when (un)installing the caroot package
There may be other issues here but this change certainly seems to
be necessary.

PR:	290394
Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D53263
2025-10-22 16:14:47 -07:00
Jose Luis Duran f7ccf05101 mtree: Remove stray an (Aironet) directory
Reviewed by:	imp
Fixes:	663b174b5b ("an: Remove driver")
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D53265
2025-10-22 22:41:53 +00:00
Jose Luis Duran f942a74654 mtree: Remove stray wi directory
Reviewed by:	imp, emaste
Fixes:	a21def4d56 ("pccard: Remove wi(4) driver")
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D53264
2025-10-22 22:41:03 +00:00
Rick Macklem 3b6d4c6cdf nfs: Add support for the NFSv4 archive attribute
The archive attribute (UF_ARCHIVE) is listed as deprecated
in RFC8881.  However, the Windows NFSv4.1 client folk disagree
with this and say they need support for it.

This patch adds support for it, in a manner similar to what
is done for UF_SYSTEM and UF_HIDDEN.

MFC after:	2 weeks
2025-10-22 14:16:48 -07:00
Jessica Clarke 34e7a57673 krb5: Include <features.h> on Linux so __GLIBC__ can be checked
__GLIBC__ is not pre-defined by the toolchain, it comes from features.h,
so we need to make sure that's included by this point.

Fixes:	4dd2b869cd ("krb5: Fix -Wint-conversion when bootstrapping on GNU/Linux")
2025-10-22 21:06:02 +01:00
Ed Maste 69415879e9 src.opts.mk: Enable LLDB for 32-bit arm
It was previously disabled when we built for older 32-bit arm targets
which lack 64-bit atomics.  As we now support armv7 at a minimum there
is no need to disable LLDB.

Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52668
2025-10-22 16:03:40 -04:00
Jessica Clarke 4dd2b869cd krb5: Fix -Wint-conversion when bootstrapping on GNU/Linux
This shows up in GitHub Actions as a warning, and some compilers can
default to it being an error.
2025-10-22 20:50:50 +01:00
David E. O'Brien 283699338c random: garbage collect the RANDOM_PURE_OCTEON entropy source
It was used for Octeon MIPS and all producers have been removed
from the source tree.

Reviewed by: emaste
Differential Revision:	https://reviews.freebsd.org/D53146
2025-10-22 11:37:23 -07:00
Jose Luis Duran 74921426d5 bsdinstall: jail: Fix DISTMENU items
The menu was incorrectly using the fourth column (distname) instead of
the first (dist) of the MANIFEST.

The actual file name is on the first column of the MANIFEST file.
Remove the .txz part of the name to build the menu options.

Reviewed by:	jamie
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D53177
2025-10-22 18:22:44 +00:00
Kirk McKusick 99bf680a84 Fix getmntpoint(3) to operate as it is documented in its manual page.
The -libutil function getmntpoint(3) is documented as accepting a device
name “with or without /dev/ prepended to it” but did not attempt to
prepend /dev/. This patch corrects the problem by prepending /dev/ to
names that do not begin with a '/'.

Reported-by: Dag-Erling Smørgrav
Differential Revision: https://reviews.freebsd.org/D53185
MFC-after:    1 week
Sponsored-by: Netflix
2025-10-22 11:01:37 -07:00
Jose Luis Duran 8e8ee8bbe2 mtree: Remove stray atm directory
ATM support for netgraph was removed in af0cc0b223 ("NgATM: Remove
netgraph ATM support")

Remove the directory from the mtree specification.

Reviewed by:	emaste
Fixes:	21735dfaeb ("include: Remove no longer existing netgraph/atm")
MFC after:	5 days
Differential Revision:	https://reviews.freebsd.org/D53260
2025-10-22 17:48:01 +00:00
Gleb Popov 62aef3f73f vfs_cluster.c: Do not propagate VOP_BMAP errors to the caller
The code that makes this VOP_BMAP call tries to perform a read-ahead I/O
operation. Failing to do that for any reason isn't fatal for `cluster_read()`,
because we still can return some data to the caller. This change is consistent
with other places within `cluster_read()`, where error returned by VOP_BMAP is
not returned to the caller - see the `if (nblks > 1)` block above the changed
lines and `if (reqbp)` at the end of the function.

PR:	264196
Approved by:	markj, kib
Differential Revision: https://reviews.freebsd.org/D51254
2025-10-22 19:59:21 +03:00
Mark Johnston 1dd66c6ac2 so_reuseport_lb_test: Add a test case for connected UDP sockets
Approved by:	so
2025-10-22 15:42:50 +00:00
Mark Johnston 320ad3dec5 inpcb: Ignore SO_REUSEPORT_LB on connected sockets
While TCP disallows connect()ing a socket with SO_REUSEPORT_LB, UDP does
not.  As a result, a connected UDP socket can be placed in the lbgroup
hash and thus receive datagrams from sources other than the connected
host.

Reported by:	Amit Klein <amit.klein@mail.huji.ac.il>
Reported by:	Omer Ben Simhon <omer.bensimhon@mail.huji.ac.il>
Reviewed by:	glebius
Approved by:	so
Security:	FreeBSD-SA-25:09.netinet
Security:	CVE-2025-24934
2025-10-22 15:42:49 +00:00
Alan Somers 6d0001d444 nvme: add support for DIOCGIDENT
Add support for the DIOCGIDENT ioctl to both nvme controller device
nodes and namespace device nodes.

This information was already available via the nda(4) device node.
However, mapping /dev/nvmeX to /dev/ndaY device nodes is not
straightforward, so it's better to get it directly from the /dev/nvme
device node.

PR:		290259
MFC after:	2 weeks
Sponsored by:	ConnectWise
Submitted by:	imp (mostly)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1875
2025-10-22 09:39:35 -06:00
Mitchell Horne fe7954d723 modules/allwinner: add nvmem_if.h to SRCS
Ensure the header is generated; it is a dependency for these drivers.
This fixes standalone module builds and riscv LINT.

Reported by:	zlei
Sponsored by:	The FreeBSD Foundation
Fixes:	5522519731 ("modules: enable allwinner kmods on riscv")
2025-10-22 11:35:25 -03:00
Mark Johnston 3e9ad70a30 linuxkpi: Fix the definition of BITS_PER_LONG
Don't use __LP64__ to decide the value, as it gives the wrong result on
CHERI platforms.  Just define it in terms of __SIZEOF_LONG__.  Make a
similar adjustment for BITS_PER_LONG_LONG while here.

Reviewed by:	bz, dumbbell, emaste
MFC after:	1 week
Sponsored by:	CHERI Research Centre (EPSRC grant UKRI3001)
Differential Revision:	https://reviews.freebsd.org/D53135
2025-10-22 14:04:46 +00:00
Robert Clausecker 5f2df8f831 committers-src: add self
With big thanks to Mark Johnston for mentoring me!

Approved by:	markj (mentor)
Differential Revision:	https://reviews.freebsd.org/D53258
2025-10-22 16:01:35 +02:00
Mateusz Piotrowski 0625f470e0 uio.9: Improve description of uio_rw flags
The direction of the data transfer in uio(9) can be confusing,
so state explicitly the difference between UIO_READ and UIO_WRITE.

Reviewed by:	ziaee
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D52996
2025-10-22 15:44:24 +02:00
Robert Clausecker a8079d40ae sys/arm: add fp[gs]et* prototypes to <ieeefp.h>
We have provided implementations for hard float of these for
a while now.  Add them to the header to make things official.
This is required for a bunch of legacy programs in ports.

Approved by:	markj (mentor)
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D53156
2025-10-22 15:41:54 +02:00
Christos Margiolis 4bab868a12 sound: Improve dsp_cdevsw style
Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
2025-10-22 14:31:16 +02:00
Robert Clausecker 1ca09538d9 sys/arm64: fix COMPAT_FREEBSD32 __syscall()
It seems like _QUAD_LOWWORD was incorrectly expanded into 1,
which is correct for big endian but not little endian.  This
means we always grab the padding word for the syscall number,
which is usually 0, causing SIGSYS to be delivered to the caller.
Reintroduce _QUAD_LOWWORD to fix the syscall.

PR:		290411
MFC after:	1 week
Discussed with:	jrtc27
Reviewed by:	cognet, emaste
Approved by:	markj (mentor)
Fixes:		8c9c3144cc
Differential Revision:	https://reviews.freebsd.org/D53250
2025-10-22 14:24:41 +02:00
Gordon Bergling 2b2a4f02e0 pmcstat(8): Fix a typo in a source code comment
- s/th/the/

MFC after:	3 days
2025-10-22 13:59:13 +02:00
Gordon Bergling 0a53e6d8bc kdb: Fix a typo in a source code comment
- s/th/the/

MFC after:	3 days
2025-10-22 13:57:57 +02:00
Christos Margiolis d6432907f6 snd_dummy.4: Use sound(4) instead of PCM
Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
Reviewed by:	ziaee
Differential Revision:	https://reviews.freebsd.org/D53257
2025-10-22 13:51:15 +02:00
Christos Margiolis 2693d6c7c9 snd_dummy: Create device alias
Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
Reviewed by:	emaste, ziaee
Differential Revision:	https://reviews.freebsd.org/D53237
2025-10-22 13:51:01 +02:00
Christos Margiolis 70b34fbdbe sndctl(8): Modify vchans only on supported directions
Currently mod_play_vchans() and mod_rec_vchans() run unconditionally,
even if the direction (playback, recording) is not supported by the
device. This results in the "autoconv" (see mod_autoconv()) control
failing when run on simplex devices, because we'll be trying to modify
vchans on an unsupported direction.

Test whether the direction is supported and silently move on if it
isn't.

Sponsored by:	The FreeBSD Foundation
MFC after:	4 days
Differential Revision:	https://reviews.freebsd.org/D53233
2025-10-22 13:50:55 +02:00
Peter Lei daac364e61 tcp: fix typo in comment
Reviewed by:	tuexen
MFC after:	3 days
Sponsored by:	Netflix, Inc.
2025-10-21 11:20:00 +02:00
David E. O'Brien 3a12982962 random: add RDSEED as a provably unique entropy source
NIST SP800-90B allows for only a single entropy source to be claimed
in a FIPS-140-3 certificate.  In addition, only hardware sources that
have a NIST Entropy Source Validation (ESV) certificate, backed by
a SP800-90B Entropy Assessment Report, are usable.  Intel has obtained
ESV certificates for several of their processors, so RDSEED is a
FIPS-140-3 suitable entropy source.

However, even though RDRAND is seeded by RDSEED internally, RDRAND
would need a RBG certificate and CAVP testing run on the DRBG in order
to use it for FIPS-140-3 (SP800-90B) purposes.  So we need to know
down in the CSPRNG-subsystem which source the entropy came from.

In light of the potential issues surrounding AMD Zen 5 CPU's RDSEED
implementation[*], allow RDSEED to be disabled in loader.conf.
[*] https://www.phoronix.com/news/AMD-EPYC-Turin-RDSEED-Bug

Reviewed by:	cem
MFC after:	3 days
Sponsored by:	Juniper Networks
Differential Revision:	https://reviews.freebsd.org/D53150
2025-10-21 23:59:59 -07:00
Maxim Konovalov cdc1990393 bsd-family-tree: add OpenBSD 7.8 release 2025-10-22 03:05:23 +00:00