Commit Graph

307139 Commits

Author SHA1 Message Date
Tuukka Pasanen f4eccc3add sleep: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55215
2026-02-18 10:50:22 -05:00
Tuukka Pasanen 632c73b4bf sh: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55213
2026-02-18 10:50:21 -05:00
Tuukka Pasanen 575e89cb17 setfacl: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55212
2026-02-18 10:50:21 -05:00
Tuukka Pasanen 0a1fd13e73 pwait: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55211
2026-02-18 10:50:21 -05:00
Tuukka Pasanen 5705d171da kenv: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55210
2026-02-18 10:50:21 -05:00
Tuukka Pasanen 6e8bb77b4c getfacl: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55209
2026-02-18 10:50:21 -05:00
Tuukka Pasanen 9eeab27c56 ed: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55208
2026-02-18 10:50:20 -05:00
Tuukka Pasanen 62269b2f23 date: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55207
2026-02-18 10:50:20 -05:00
Tuukka Pasanen 10a8680b4e csh: Add SPDX-License-Identifier tags
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55206
2026-02-18 10:50:20 -05:00
John Baldwin a346348e45 Use OLD_FILES for libtpool symlink and static libraries
Fixes:		b78806b156 ("Remove additional libtpool and libuutil-related files")
2026-02-18 10:47:18 -05:00
Ed Maste b20883e821 mitigations.7: Describe LASS
Reviewed by:	kib, markj
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55281
2026-02-18 10:22:14 -05:00
Andrew Turner f4d1a3ab02 arm64: Fix the ESR_ELx_EC_MASK definition
Sponsored by:	Arm Ltd
2026-02-18 15:15:41 +00:00
Andrew Turner bfb7c81f93 nvmecontrol: Remove an incorrect use of PAGE_SIZE
The mdts value is in terms of the nvme page size, not the host page
size. On many architectures these are both 4k, however on arm64 it is
possible to build a system with the host page size of 16k.

Use NVME_MPS_SHIFT to get the correct nvme page shift.

Reviewed by:	imp
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D55334
2026-02-18 15:15:41 +00:00
Andrew Turner a6ad3d4ca0 CODEOWNERS: Add myself for sys/arm64/vmm
Sponsored by:	Arm Ltd
2026-02-18 15:15:41 +00:00
Dag-Erling Smørgrav 73b82d1b0a libfetch: Restore timeout functionality
PR:		293124
MFC after:	1 week
Fixes:		792ef1ae7b ("Refactor fetch_connect() and fetch_bind() to improve readability and avoid repeating the same DNS lookups.")
Reverts:	8f8a7f6fff ("libfetch: apply timeout to SSL_read()")
Reviewed by:	eugen, imp
Differential Revision:	https://reviews.freebsd.org/D55293
2026-02-18 16:10:47 +01:00
Tuukka Pasanen f8517c21d5 nvmecontrol: Add SPDX-License-Identifier tags
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55275
2026-02-18 08:50:27 -05:00
Tuukka Pasanen 904e0dcd29 ipfw: Add SPDX-License-Identifier tag
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55273
2026-02-18 08:47:50 -05:00
Tuukka Pasanen 299d3e944a decryptcore: Add SPDX-License-Identifier tag
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55270
2026-02-18 08:46:07 -05:00
Tuukka Pasanen 8ac9926458 newfs_msdos: Add SPDX-License-Identifier tags
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55274
2026-02-18 08:43:58 -05:00
Tuukka Pasanen 25ed5ee654 camcontrol: Add SPDX-License-Identifier tag
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55269
2026-02-18 08:43:39 -05:00
Dag-Erling Smørgrav 32ec8e29a6 OptionalObsoleteFiles: Add missing dpv MLINK
MFC after:	3 days
2026-02-18 11:06:50 +01:00
ShengYi Hung e387d9438b smp: Use bitwise operation to count cpu number
Previously, we iterated over all CPUs using CPU_FOREACH and checked
individual bits to count valid CPUs. Refactor this to use a bitwise AND
and popcount to count the number of enabled bits directly.

Approved by:    markj (mentor)
MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D54474
2026-02-18 17:40:54 +08:00
Dag-Erling Smørgrav efcfba9b31 OptionalObsoleteFiles: Add missing figpar MLINKS
MFC after:	3 days
Fixes:		bc6c827078 ("OptionalObsoleteFiles: Add figpar to dialog section")
2026-02-18 09:13:28 +01:00
Konstantin Belousov 1443a455a9 libc: improve include usage for exterror sources
Include sys/types.h by exterr.h, since size_t is used.
Drop include of sys/exterr_cat.h, it is useless for the only prototype
provided.

Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55337
2026-02-18 09:54:01 +02:00
Konstantin Belousov a03f285afa libc: add man page for uexterr_gettext(3)
Reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D55336
2026-02-18 09:54:01 +02:00
Rick Macklem 935cf3284f vfs_mount.c: Don't call VFS_MOUNT() if only exports are being updated
PR#293198 reports a hang within ZFS when exports
are being updated concurrently with a VOP_SETEXTATTR().
The hang appears to be caused by mishandling of the
z_teardown_lock, but fixing handling of this lock appears
to be a major effort. Since the hang occurs when
VFS_MOUNT() acquires a write/exclusive z_teardown_lock,
which rarely occurs, except when exports are being updated,
this patch avoids the VFS_MOUNT() call for this case.

Avoiding a VFS_MOUNT() call fixes the hang for the case
reported by PR#293198 and is also an optimization.
As such, this patch avoids the VFS_MOUNT() call when only exports
are being updated similar to what was already being done
within vnet prisons.

PR:	293198
Reviewed by:	kib, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55318
2026-02-17 14:59:57 -08:00
Dag-Erling Smørgrav bc6c827078 OptionalObsoleteFiles: Add figpar to dialog section
MFC after:	3 days
Fixes:		15d781b532 ("lib: Gate libfigpar under MK_DIALOG")
Reviewed by:	jhb, emaste
Differential Revision:	https://reviews.freebsd.org/D55330
2026-02-17 23:58:43 +01:00
Dag-Erling Smørgrav f9f4a022a8 ObsoleteFiles: Deduplicate
Since we dropped support for profile libraries, all optional entries for
them are now non-optional.  Most of them were already duplicated there,
a few were not.

MFC after:	3 days
Reviewed by:	jhb, emaste
Differential Revision:	https://reviews.freebsd.org/D55329
2026-02-17 23:58:43 +01:00
John Baldwin 5a02f004fb sdt: Disable SDT probes in kernel modules for GCC on aarch64
For PIC code, the existing assembly constraints do compile on aarch64.
Some kernel modules build ok using the 'p' constraint with the 'a'
operand modifier, but not all.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D55166
2026-02-17 15:48:04 -05:00
John Baldwin 1101292a55 vchiq: Fix return type of vchiq_copy_from_user
Change the function definition to map the declaration and consistently
return an enum value.  This fixes the following error reported by GCC:

sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c:322:1: error: conflicting types for 'vchiq_copy_from_user' due to enum/integer mismatch; have 'int(void *, const void *, int)' [-Werror=enum-int-mismatch]
  322 | vchiq_copy_from_user(void *dst, const void *src, int size)
      | ^~~~~~~~~~~~~~~~~~~~
In file included from sys/contrib/vchiq/interface/vchiq_arm/vchiq_arm.h:38,
                 from sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c:61:
sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.h:647:1: note: previous declaration of 'vchiq_copy_from_user' with type 'VCHIQ_STATUS_T(void *, const void *, int)'
  647 | vchiq_copy_from_user(void *dst, const void *src, int size);
      | ^~~~~~~~~~~~~~~~~~~~

Differential Revision:	https://reviews.freebsd.org/D55163
2026-02-17 15:47:00 -05:00
John Baldwin c7f7b67411 arm bcm2835: Appease a warning from GCC
No code currently uses the vc_audio_msg_type_names array of strings.

Reported by:	-Wunused-variable
Differential Revision:	https://reviews.freebsd.org/D55162
2026-02-17 15:46:48 -05:00
John Baldwin 4092df8820 arm64: Explicitly use movz
This appeases GNU as which doesn't map the mov alias to movz.

Reviewed by:	andrew
Differential Revision:	https://reviews.freebsd.org/D55160
2026-02-17 15:46:35 -05:00
John Baldwin 87984eddde bus: Renumber global IVAR ranges
Use a more consistent scheme for allocating shared IVAR index ranges.

Differential Revision:	https://reviews.freebsd.org/D54161
2026-02-17 15:46:06 -05:00
John Baldwin dc47d99c50 arm gicv3: Use private IVAR range for GICV3 IVARs
Suggested by:	andrew
Differential Revision:	https://reviews.freebsd.org/D54191
2026-02-17 15:45:48 -05:00
John Baldwin 824ce81f74 bus: Drop a couple of unused IVAR indices
This changes the in-kernel ABI, but that is permitted across major
versions and is cleaner than leaving these around forever.

Differential Revision:	https://reviews.freebsd.org/D54160
2026-02-17 15:45:38 -05:00
John Baldwin e3d2108a6e bus: Change a few bus drivers to use consistent IVAR ranges
A few bus drivers used 1 instead of 0 as the starting index of their
private IVARs.  Fix those drivers to start at BUS_IVARS_PRIVATE for
consistency.

Differential Revision:	https://reviews.freebsd.org/D54934
2026-02-17 15:45:25 -05:00
John Baldwin 6cf4e30252 bus: Document special ranges of IVARs
Some IVAR indices are special in that they have global meaning across
multiple buses where as other IVARs are always private to the local bus.
Try to document this a bit and add constants for the various ranges to
avoid future conflicts.

This is a no-op, but IVAR indices are now generally defined as enums
as that makes it easier to define them in terms of ranges.

Reviewed by:	imp, royger, andrew
Differential Revision:	https://reviews.freebsd.org/D54159
2026-02-17 15:45:13 -05:00
John Baldwin b9f1e45e68 acpi_gpiobus: Reuse the existing IVAR index for an ACPI handle
ACPI_IVAR_HANDLE is a global index shared across multiple busses,
there is no need for a unique constant here.

Reviewed by:	vexeduxr, imp
Differential Revision:	https://reviews.freebsd.org/D54155
2026-02-17 15:44:58 -05:00
Mark Johnston 1eb727727a ndp tests: Fix flakiness in ndp_slaac_default_route
The test sends RAs in order to test SLAAC handling in another host.
The router needs to also set net.inet6.ip6.forwarding=1, otherwise NAs
sent from it have the ROUTER flag clear, and upon receiving such an NA
the host will automatically delete routes learned from the router.

Fixes:		feda329622 ("netinet6 tests: Add a regression test for default router handling")
MFC after:	1 week
Sponsored by:	Klara, Inc.
2026-02-17 20:22:05 +00:00
Mark Johnston eb425dfab1 ndp tests: Fix an assertion in ndp_prefix_lifetime_extend
Here we have two interface addresses sharing a v6 prefix with finite
lifetime.  The intent was to make sure that adding the second address
didn't cause the prefix's valid lifetime to drop from 20s to 10s, but of
course, while the test is running it may drop from 20s to 19s, causing
the test to fail spuriously.  Relax the check a bit to avoid this.

PR:		293152
Fixes:		74999aac5e ("in6: Modify address prefix lifetimes when updating address lifetimes")
MFC after:	1 week
Sponsored by:	Klara, Inc.
2026-02-17 20:22:05 +00:00
Mark Johnston afd64316c8 dtrace: Implement ustackdepth for arm64
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D52475
2026-02-17 20:22:05 +00:00
Konstantin Belousov ffbf959070 libc: print extended errors from warn(3) and vwarn(3)
Noted and reviewed by:	mckusick
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55327
2026-02-17 22:04:07 +02:00
Michael Osipov 93122ead72 mfi(4)/mrsas(4): Print driver versions consistently
Reviewed by:	ziaee, des
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D54519
2026-02-17 20:20:09 +01:00
Poul-Henning Kamp 0f2b7181ea bhyveload: If disk cannot be opened RW try RO. (=same as bhyve)
Not expecting it to turn into yak-shaving: kevans
2026-02-17 18:36:04 +00:00
Poul-Henning Kamp d7d0369ad3 recoverdisk: Ensure medium_read is multiple of small_read. 2026-02-17 18:33:41 +00:00
Brooks Davis c4130a8a84 OpenSSL: install EVP_CIPHER_CTX_get_app_data.3 once
A separate EVP_CIPHER_CTX_get_app_data.3 was added in the OpenSSL 3.5.5
import, but the link to EVP_EncryptInit.3 was still being installed
which stomped on the file and created inconsistent entries in the METALOG.

Reviewed by:	emaste
Found by:	package_check script in Cirrus-CI
Fixes:		1731fc70f7 ("OpenSSL: update vendor sources to match 3.5.5 content")
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D55332
2026-02-17 18:24:29 +00:00
Alexander Ziaee 960719762f trimdomain.3: Explain DISPLAY a bit more
MFC after:		3 days
Reported by:		jrtc27
Reviewed by:		des
Differential Revision:	https://reviews.freebsd.org/D54629
2026-02-17 12:28:25 -05:00
Mark Johnston 4c247f1204 krb5: Make the build a bit quieter
compile_et.sh is run during buildworld and prints a bunch of debug
output.  It's intrusive and probably not needed, at least by default, so
let's make the build output a bit cleaner.  This is an upstream script,
but it hasn't been modified in 15 years so the local modification is
unlikely to cause any pain.

Also remove a print that shows up in buildworld -s output.

Reviewed by:	cy
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D55317
2026-02-17 14:46:52 +00:00
Dag-Erling Smørgrav 507c611aea m4: Fix eval output width
According to POSIX, the optional third argument is the minimum number
of digits to print regardless of sign.  We interpreted it as the minimum
width of the output including the sign.  Additionally, the variable used
to hold this value was confusingly named “maxdigits”.

PR:		293214
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D55311
2026-02-17 15:01:42 +01:00
Baptiste Daroussin 62fba0054d ee: add unicode support
- Add native support for unicode everywhere.
- Remove Big5 specific code (and the menu entry)

PR:		291279
MFC After:	1 month
Tested by:	 Marek Zarychta
Differential Revision:	https://reviews.freebsd.org/D55303
2026-02-17 12:50:16 +01:00