1563 Commits
Author SHA1 Message Date
Dag-Erling Smørgrav 7399be2030 misc: Avoid use of Unicode closing single quote
The Unicode closing single quotation mark is classified as a homoglyph
and can trip automated code quality checks in downstream CI pipelines or
cause code review UIs to refuse to display a file.  If used as an
apostrophe, use the ASCII single quote instead.  If used as a closing
single quote, replace with double quotes or no quotes at all.

Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	ziaee, obiwac, olce
Differential Revision:	https://reviews.freebsd.org/D59911
2026-09-23 14:43:13 +02:00
Xin LI 4523eebc6c MFV: less v710.
MFC after:	1 week
2026-09-19 11:20:29 -07:00
Michael Osipov acdb2cdcd6 mfiutil(8)/mrsasutil(8): display/parse enclosure by device ID (EID)
mfi_drive_name() built the "Exx:Syy" drive location string using
struct mfi_pd_info's encl_index field, the enclosure's firmware-
internal position index. Broadcom's own storcli/MegaCli tooling
instead leads with the enclosure's Device ID (EID) in its primary
drive listing; encl_index only shows up as "Position" in a detailed
per-enclosure view. Both numbers are raw, unmodified firmware values
already fetched into struct mfi_pd_info/mfi_pd_address, but only
encl_index was ever displayed or accepted as input, leading to
confusion when cross-referencing drive locations against storcli
output.

Switch mfi_drive_name() and mfi_lookup_drive() to use encl_device_id
instead, aligning FreeBSD's enclosure numbering with Broadcom's own
utilities. Since mrsasutil(8) is the same binary as mfiutil(8) under
a different name, this applies to both mfi(4) and mrsas(4) alike.

This is a user-visible behavior change: the numeric value of "xx" in
"Exx:Syy" now differs from before for any enclosure whose EID and
position index don't match, affecting anyone scripting against the
previous numbering.

PR:		294353
Reviewed by:	imp
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D59654
2026-09-16 10:40:55 +02:00
Bjoern A. Zeeb e1ad124136 UPDATING: bump __FreeBSD_version to 1600026 for LinuxKPI changes
The size of multiple embedded structs have changed and may lead to
problems (pci_error_handlers in pci_driver, dev_pm_info in struct device).
Allow these changes to be detected by bumping __FreeBSD_version.

MFC after:	3 days
2026-09-14 19:06:34 +00:00
Baptiste Daroussin eaeb5f29bc sysrc: make independant from bsdconfig(8)
MFC After:	1 week
Approved by:	dteske
Reviewed by:	dteske
Differential Revision:	https://reviews.freebsd.org/D59658
2026-09-14 15:42:27 +02:00
Sumit Saxena 3c928ccadb iflib: Plumb per-packet RX hardware timestamps to mbufs
Add iri_rcv_tstmp to if_rxd_info so an isc_rxd_pkt_get() driver can
report a hardware RX timestamp.  Copy it into m_pkthdr.rcv_tstmp,
reusing the generic mbuf timestamp path.

Widen iri_flags from uint8_t to uint32_t and define the flags drivers
may supply.  Mask the flags before copying them into the mbuf so no
other mbuf state can leak through the driver callback.

Place the timestamp next to iri_frags to avoid an alignment hole, and
document its nanoseconds-since-boot representation and validity flags.
Bump __FreeBSD_version because changing if_rxd_info breaks KBI.

Reviewed by:	gallatin
Signed-off-by:	Sreekanth Reddy <[email protected]>
Differential Revision:	https://reviews.freebsd.org/D58638
2026-09-02 17:49:30 -07:00
Abdelkader Boudih 51c30180ea video: bump __FreeBSD_version for V4L2 cropping and overlay symbols
Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D59208
2026-08-27 20:04:47 +01:00
Olivier Certner b7cff2a8c4 UPDATING: Fix entry for getgroups(2)/setgroups(2)
Fix a typo, grammar, and generally rephrase for better clarity.

Fixes:          3463f02706 ("UPDATING: add an entry for [gs]etgroups")
MFC after:      1 day
MFC to:         stable/15
Sponsored by:   The FreeBSD Foundation
2026-08-27 15:00:06 +02:00
Roman Bogorodskiy 8bd30a72e7 bhyve: fix byte order for manually set NVMe eui64
Manually specified eui64 value gets converted to big endian twice:
first using htobe64() and then using be64enc(). On little-endian hosts
that results in a little-endian value instead of a big-endian.

Fix by removing htobe64() for a user submitted value.

Fixes:		409a80e5a4 ("bhyve: Create EUI64 for NVMe namespaces")
Reviewed by:	chuck
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D59080
2026-08-26 18:26:37 +02:00
ShengYi Hung 34bb38445b libusb: Bump version to 1.0.27
PR:             296234(exp-run)
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57772
2026-08-14 23:18:21 +08:00
Abdelkader Boudih f77fa28422 video: bump __FreeBSD_version for video(4) refactor
Reviewed by:	manu, adrian
Differential Revision:	https://reviews.freebsd.org/D58798
2026-08-12 09:52:36 -07:00
Kevin Bowling 100f7b8d39 UPDATING: Add entry for igbv driver split 2026-07-29 19:14:11 -07:00
Dag-Erling Smørgrav 9d852922f6 Bump dates
Fixes:		c8f5e6819d ("pwait: Optionally wait until process is reaped")
Fixes:		eddd8aa99c ("pwait: Add a SIGINFO handler")
Fixes:		356d0b79cf ("rc.subr: Fix premature return from wait_for_pids")
2026-07-27 12:26:41 +02:00
Dag-Erling Smørgrav 356d0b79cf rc.subr: Fix premature return from wait_for_pids
Use pwait's new -r option to wait until the target processes have not
only terminated, but also been reaped.

PR:		293183
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D58391
2026-07-27 12:15:47 +02:00
Alexander Ziaee 704db3fe98 Source upgrade doc: etcupdate no longer needs -B
Note: We confusingly have the instructions to build the system in the
build manual, the UPDATING file, and the Makefile. These will get out
of sync and will be harmful when they do.

Fixes:	ddf6fad029 ("etcupdate: Make nobuild the default")
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D57644
2026-06-21 13:54:17 -04:00
Piotr Kubaj 255538cd90 powerpc64le: switch long double to IEEE binary128
Change powerpc64le's long double from 64-bit double to IEEE 754
binary128 (quad, 113-bit mantissa), matching aarch64 and riscv64.

Gated on FreeBSD 16 and powerpc64le only.

Differential Revision: https://reviews.freebsd.org/D57388
Reviewed by:	adrian
Relnotes:	yes
2026-06-19 23:25:39 +02:00
Christos Margiolis a6aa95eba6 sound: Create all device nodes with GID_AUDIO
Commit 6024e3f99a ("Add audio group") introduced GID_AUDIO, initially
for virtual_oss(8) loopback devices. Now make all of them with
GID_AUDIO.

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
Reviewed by:	emaste
Pull-Request:	https://ron-dev.freebsd.org/FreeBSD/src/pulls/35
2026-06-15 18:03:48 +03:00
Alan Somers dc14ae4217 bsdinstall: do pkgbase installations with the "script" command
"bsdinstall script" will now do a pkgbase installation by default.  The
system components to install can be specified in the COMPONENTS
variable, and have the same names as those used in the interactive
installer.  bsdinstall will still do a legacy distset installation if
DISTRIBUTIONS is defined in the installerconfig file.

MFC:		1 week
PR:		290375
Sponsored by:	ConnectWise
Reviewed by:	ziaee, ivy, jduran
Differential Revision: https://reviews.freebsd.org/D56717
2026-05-12 08:13:16 -06:00
Aotian Cao 47a9af4b39 rc.d/NETWORKING: remove the NETWORK alias
NETWORKING is the documented placeholder, while
/etc/rc.d/NETWORKING still provides the legacy alias
NETWORK.

The NETWORKING script was originally introduced to avoid
conflicts with NetBSD's lowercase network script on
case-insensitive file systems.  The NETWORK alias was
retained for compatibility with older scripts.

Following the discussion in PR 293652, remove the legacy
NETWORK alias from 16-CURRENT.  Keeping both names adds
more confusion than value now that NETWORKING is the
documented placeholder and current base system and ports
tree uses are already clean.

Add an UPDATING entry to note that local RC scripts using
REQUIRE: NETWORK should be migrated to REQUIRE: NETWORKING.

PR:		293652
Reviewed by:	michaelo, jlduran
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D56300
2026-04-15 11:06:32 +02:00
Guido Falsi a2eb0894b7 sys/netinet6: switch net.inet6.ip6.use_stableaddr to on by default
This change switches to using RFC 7217 algorithm as the default to
generate SLAAC addresses for IPv6 interfaces configured with
accept_rtadv.

Reviewed by:		pouria, glebius, zlei
Approved by:		zlei
Relnotes:		yes
Differential Revision:	https://reviews.freebsd.org/D55138
2026-02-09 21:27:15 +01:00
Lexi Winter 9c401bf148 zstd: Move to a new zstd package
Zstd is a discrete, self-contained system component.  To match how we
package zlib, bzip2 and xz, move it to its own package, with a separate
lib package.

Add the new package to the minimal set, since this is a core component
that users expect to be installed.

This change adds a new package to the system so, until we have a proper
policy on how to handle this in release/stable branches, it should not
be MFC'd.

MFC after:	never
Reviewed by:	bapt
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53603
2026-01-06 04:24:59 +00:00
ykla 171f9cbbbf UPDATING: move entry to the correct place
Reviewed by:	vexeduxr
Signed-off-by:	ykla [email protected]
Sponsored by:	Chinese FreeBSD Community
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1917
2026-01-06 04:16:22 +02:00
Rick Macklem 60eb371c2b UPDATING: Add an entry for commit 9f49f436a9 2025-12-22 15:28:59 -08:00
Warner Losh 8ac7a3801c cam: Reduce overly long timeout values for initial device probing
Currently, we have very long timeouts for the initial probing
commands. However, these are not appropriate for modern (post 2010) SCSI
disks. Sandards since SPC3 state that these commands should not wait for
media access. Since we retry them several times during the initial bus
scan, these delays can delay the boot by minutes (5 minutes per errant
disk in our expereince). These delays don't help and only hurt, so
reduce the TESTUNITREADY, INQUIRY and MODESENSE commands (during the
initial probe). Provide sysctl/tuneables to change the time for these
and also the REPORTLUNS commands for people that might need to adjust
them for devices that violate this belief but none-the-less work with
longer timeouts.
	kern.cam.tur_timeout		(default was 60s, now 1s)
	kern.cam.inquiry_timeout	(default was 60s, now 1s)
	kern.cam.reportluns_timeout	(default is 60s)
	kern.cam.modesense_timeout	(default was 60s, now 1s)
This can be partially merged: the sysctls can, but the new defaults likely
shouldn't.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D52427
2025-12-11 12:07:17 -07:00
Ed Maste fad4c92b78 Revert "kernel linker: Disable local sym resolution by default"
I've received a report of a failure from resolving kern_kmq_open.
Revert for now as we are currently in stabweek.

This reverts commit 9562994a7a.

Reported by:	mav
2025-11-25 12:14:10 -05:00
Ed Maste 9562994a7a kernel linker: Disable local sym resolution by default
In 95c20faf11 and ecd8245e0d kib introduced support to have the
kernel linker stop resolving local symbols from other files, but did
not enable it by default to avoid surprises.  Flip the default now,
before FreeBSD 16.0.

The debug.link_elf_leak_locals and debug.link_elf_obj_leak_locals
sysctls are available to revert to the previous behaviour if necessary.

PR:		207898
Reviewed by:	bz
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47742
2025-11-25 08:49:20 -05:00
Colin Percival 6ccdd2fc23 UPDATING: Document FreeBSD-base pkg .conf shuffle
Reminded by:	yasu
MFC after:	3 days
2025-11-16 08:59:10 -08:00
Lexi Winter 560af6b43e libpam: Move to a new "pam" package
OpenPAM is a discrete, largely self-contained system component.
Users may not need PAM for many use-cases (e.g. jails, containers),
so move it to its own package.

Use LIB_PACKAGE to create a separate pam-lib package for libpam,
so that applications that support PAM don't need to bring in all
the PAM modules if PAM isn't actually in use.

Add pam to the minimal sets, since this is a core system component that
people expect to be installed.  This means all supported installation
methods will install the PAM modules by default, so don't add explicit
dependencies on the PAM modules from things that use PAM (e.g. runtime),
allowing custom/embedded systems to omit these easily.

This change adds a new package to the system so, until we have a proper
policy on how to handle this in release/stable branches, it should not
be MFC'd.

MFC after:	never
Reviewed by:	des, bapt
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53602
2025-11-10 11:05:37 +00:00
Kristof Provost f939619a2f UPDATING: mention pf's nat64 support
MFC after:	3 days
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2025-11-05 14:59:29 +01:00
Rick Macklem 088ced14a6 UPDATING: Add an entry for e5aa60d069 2025-11-02 16:20:26 -08:00
Lexi Winter 957715f877 flua: Move to a new flua package
flua is a standalone third-party component that deserves its own
package.  In particular, this means things can use flua without
having to depend on FreeBSD-utilities, which will be useful as
more base utilities use flua.

This saves ~500kB in FreeBSD-utilities for systems which don't
need flua.

MFC after:	3 days
Reviewed by:	kevans
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53161
2025-10-26 02:22:47 +00:00
Bjoern A. Zeeb 37ad1beaf5 UPDATING: bump __FreeBSD_version for LinuxKPI changes
The size of an embedded struct has changed and might possibly be a
problem.  Allow this change to be detected by bumping __FreeBSD_version.

MFC after:	3 days
2025-10-21 07:52:46 +00:00
Ed Maste 9f85cf09d4 UPDATING: Belatedly note OpenZFS sysctls moving
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52665
2025-10-16 14:43:01 -04:00
Lexi Winter bf84861460 packages: Rename unbound to local-unbound
This more accurately reflects its purpose, and its contents, since
everything in the package is prefixed with "local-".

While here, add a message on upgrade about regenerating the config.

MFC after:	3 seconds
Requested by:	des
Reviewed by:	des
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D53056
2025-10-15 13:29:18 +01:00
Jose Luis Duran 376508ef2f UPDATING: Fix typo objump should be objdump
Approved by:	emaste (mentor)
Fixes:		86edb11e74 ("Always install llvm-objdump as objdump")
MFC after:	1 day
2025-10-13 14:54:46 +00:00
Jose Luis Duran ffa8165009 blocklist: Add an UPDATING entry
Add an UPDATING entry about the renaming of blocklist.

Approved by:	emaste (mentor)
Fixes:	7238317403 ("blocklist: Rename blacklist to blocklist")
MFC after:	1 day
2025-10-13 14:42:45 +00:00
Lexi Winter 1b806e607f packages: Add a sound package
Put virtual_oss, /etc/devd/snd.conf and the other audio-related tools
into a new "sound" package.  Don't create a separate -lib package,
since it's unlikely someone will want mixer(3) without mixer(8).

Put the sound package in the optional set rather than minimal, since
it's not actually required for audio hardware support, and many systems
(including nearly all servers) won't want it installed.

MFC after:	3 seconds
Reviewed by:	christos
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D52823
2025-10-02 02:37:35 +01:00
Bjoern A. Zeeb 52ce810302 UPDATING: bump __FreeBSD_version for drm-kmod/nvidia-drm vs. LinuxLPI
Both drm-kmod and nvidia-drm were updated to keep compiling and/or
working after the latest LinuxKPI PCI changes.  Some of what should
have worked for a long time but did not or conflicted was hidden
behind native PCI calls instead of using LinuxKPI.  We cleaned this
up.  Bump __FreeBSD_version so that users will get the updated packages.

MFC after:	3 days
PR:		289647
2025-09-29 23:16:51 +00:00
Lexi Winter 614c8750ce Remove ftpd(8)
This was previously deprecated and is slated for removal in 15.0.
Users who still need ftpd(8) can install the ftp/freebsd-ftpd port.

Retain the ftp(d) PAM services since other FTP daemons use them.

Update /etc/inetd.conf to point to /usr/local.

Add ftpd to ObsoleteFiles, but do not list configuration files since
users may want to preserve these to use with the freebsd-ftpd port.

There is still some language in the manual referring to ftpd(8)
which is relevant to the port, which has been retained but updated
to reference the port.

MFC after:	3 days
Relnotes:	yes
Reviewed by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D52739
2025-09-29 22:53:34 +01:00
Lexi Winter 61ca69110f packages: Replace libbz2 package with a bzip2 package
Currently libbz2 is in the libbz2 package, while bzip2 itself is in
-utilities, which is inconsistent.  Move both the library and the
utility to a new -bzip2 package, and use LIB_PACKAGE to create a
separate -bzip2-lib package for runtime dependencies.

Add the bzip2 package to the minimal set, and since newsyslogd uses
bzip2 for logfile compression, add a dependency from there.

MFC after:	1 day
Reviewed by:	manu
Differential Revision:	https://reviews.freebsd.org/D52663
2025-09-23 23:06:33 +01:00
Lexi Winter 67c3c3a274 libpmc: Move libpmc and utils to a new pmc package
Due to the size of libpmc.so.5, this reduces the size of the -utilities
package by 10%.

MFC after:	1 day
Reviewed by:	manu, adrian, emaste
Differential Revision:	https://reviews.freebsd.org/D52662
2025-09-23 23:06:33 +01:00
Lexi Winter 5efd371bba packages: Move powerd to its own package
Nearly everyone wants powerd to manage CPU frequency scaling on real
hardware, even if -utilities isn't installed.  Conversely, very small
jails might want -utilities but don't need powerd.

Move it to its own package and add it to the minimal set.

MFC after:	1 day
Reviewed by:	manu, imp
Differential Revision:	https://reviews.freebsd.org/D52645
2025-09-23 23:06:32 +01:00
Lexi Winter ea5e50c298 packages: Add a mandoc package
Move mandoc to its own package so users can install it independently of
-utilities.  Put the package in the minimal set, since we also ship
manpages in minimal and "man" is a basic Unix utility.

Add a pkg-triggers(5) hook to run makewhatis when new manpages are
installed, so that apropos(1) works.  This depends on a new pkg(8)
feature expected to be in in the upcoming 2.3.2 release; in the mean
time, this is a no-op (i.e., having an older pkg doesn't break anything,
it just won't run the trigger).

MFC after:	3 seconds
Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D52564
2025-09-18 10:26:12 +01:00
Lexi Winter 9065390ddc packages: Remove the tests-dev package
We don't want a tests-dev package, because this means set-devel depends
on tests-dev, which transitively depends on tests, which means you can't
install set-devel without also getting tests.

The only real "dev" files in tests-dev are from ATF (libprivateatf),
so move that to its own package and add a dependency from tests.

Also move Kyua to its own package, since this might be useful for
running tests even when the user doesn't want the whole set of base
tests installed.

Add a dependency from -tests to both -atf and -kyua, and a dependency
on -set-base, since the tests won't work without the full base system
installed.

The remaining "dev" files in tests are actually test artifacts, not real
development libraries.  Add a new NO_DEV_PACKAGE option to bsd.lib.mk,
which causes dev files to be installed in the base package instead of
creating a -dev package, and set this option for everything that
installs test libraries.

While here, add a slightly more informative description for the tests
package.

MFC after:	3 seconds
Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D52597
2025-09-18 10:26:12 +01:00
Harry Fellowes e239f49146 UPDATING: fix typos
Fixed typos in UPDATING

Signed-off-by: Harry Fellowes <[email protected]>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1846
2025-09-14 21:07:13 -06:00
Dag-Erling Smørgrav ab2fea3f9a UPDATING: mention the src.conf change
Fixes:		dd8c666d8b ("src.sys.mk: Support src.conf in SRCTOP")
2025-09-12 19:16:48 +02:00
Lexi Winter a8a18eeb5e packages: Turn off MANSPLITPKG by default
Manpages are very small, and having a separate manpages package for
every base package is quite annoying for users.  Turn this option
off by default.

Discussed with:	bapt
Reviewed by:	manu, emaste
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D52417
2025-09-10 19:38:01 +01:00
Colin Percival 8b4e4c2737 Update main to 16
* Bumps to versions in lib/clang
* Bumps to sys/conf/newvers.sh and sys/sys/param.h
* Update to UPDATING

Approved by:	re (implicit)
Sponsored by:	https://www.patreon.com/cperciva
2025-09-04 16:06:47 -07:00
Ed Maste 92255335d9 sys: Rename BLOAT_KERNEL_WITH_EXTERR to EXTERR_STRINGS
There's no need for an implied value judgement.

Suggested by:	jhb
Reviewed by:	kib, jhb
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52351
2025-09-03 09:09:09 -04:00
Colin Percival e0bc44b589 Mention pkg repo renaming in UPDATING
Reported by:	rpokala
Fixes:		c83705a575 ("Rename FreeBSD* pkg repos to FreeBSD-ports*")
2025-08-27 10:59:17 -07:00