Commit Graph

23798 Commits

Author SHA1 Message Date
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
Alexander Ziaee 473bc5778c bnxt.4: Adjust for recent HARDWARE
+ Adjust document description matching another terabit driver
+ Add BCM576XX family to DESCRIPTION, switch to XX notation
+ Add some model names, additional models, and improvements to HARDWARE

MFC after:		3 days
Reviewed by:		sumit.saxena_broadcom.com (previous)
Differential Revision:	https://reviews.freebsd.org/D54028
2025-12-10 21:10:56 -05:00
Simon J. Gerraty 9bbb08f905 Update share/mk files from bmake
Update to the latest makefiles etc from bmake.
Mostly this just replaces sjg license with an SPDX tag.

There are also some improvements to meta2deps* and optimizations
to leverage POSIX shell features in some target scripts.
Default isPOSIX_SHELL to ':' in sys.mk to enable these.

Use :sh1 in M_type if possible.

bsd.progs.mk has diverged too much to touch beyond making the
SPDX tag update.

Reviewed by:	stevek
Differential Revision:	https://reviews.freebsd.org/D54150
2025-12-09 21:06:31 -08:00
John Baldwin e2b8be511e nvmf_che: Add a manual page for the Chelsio NVMe/TCP PDU offload driver
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D53764
2025-12-09 10:57:44 -05:00
John Baldwin d8556d2bad nvmf_tcp.4: Don't quote the document description given to .Nd
Reported by:	ziaee
2025-12-09 10:57:16 -05:00
Jose Luis Duran 2cfd9fe87b locale: make install Unicode 17.0.0/CLDR 48
Unicode 17.0 adds 4803 characters, for a total of 159,801 characters.
The new additions include 4 new scripts:

- Sidetic
- Tolong Siki
- Beria Erfe
- Tai Yo

https://www.unicode.org/versions/Unicode17.0.0/
2025-12-08 18:44:21 +00:00
Seth Hoffert 0140dc4a68 man typos: Fix pf.conf.5 and jail.2 typos
MFC after:	3 days
Signed-off-by:	Seth Hoffert <seth.hoffert@gmail.com>
Closes:		https://github.com/freebsd/freebsd-src/pull/1919
2025-12-08 12:31:06 -05:00
Goran Mekić ebe7b24166 sound examples: Check if setting property was successful
MFC after:	1 week
Reviewed by:	christos
Differential Revision:	https://reviews.freebsd.org/D54038
2025-12-08 18:21:30 +01:00
Cy Schubert 0ff0c19e7f ipfilter: Disable ipfs(8) by default
At the moment ipfs(8) is a tool that can be easily abused. Though the
concept is sound the implementation needs some work.

ipfs(8) should be considered experimental at the moment.

This commit also makes ipfs support in the kernel optional.

Reviewed by:		emaste, glebius
MFC after:		1 week
Differential revision:	https://reviews.freebsd.org/D53787
2025-12-08 08:15:18 -08:00
Bjoern A. Zeeb f0ea859229 iwmfw(4): fix spelling of the iwm8000C firmware.
When migrating the firmware to be installed as plain firmware files
to /boot/firmware the iwm8000C firmware lost its "fw" suffix that
iwm(4) expects.
The follow-up change to defaults/loader.conf is also consistently
missing the "fw".

Fix both places, and add the wrongly spelt version to ObsoleteFiles.inc
(entirely untested).

PR:		291403
Reported by:	Augustin Hoffmann (avgwst tutanota.de)
Fixes:		af0a81b647
Fixes:		a0f06dfb0d
MFC after:	3 days
2025-12-08 03:16:00 +00:00
Martin Matuska 8b78d412ae zfs: world changes after 89f729dcc merge
Remove, unbind and obsolete libuutil and libtpool
Update zfs_configh and zfs_gitrev.h
2025-12-07 23:09:12 +01:00
Jose Luis Duran 36cfa8093d locale: make install
Reviewed by:	bapt
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53962
2025-12-06 12:20:18 +00:00
Jose Luis Duran 9df8243a2e locale: make posix
Run make posix to generate monetary definition files with the
international parameters missing from localeconv(3)'s lconv struct.

Manually convert the "frozen" non-unicode locales under share/monetdef.

Reviewed by:	bapt
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D53917
2025-12-06 12:20:17 +00:00
Lexi Winter ce8dc5b124 freebsd-base.7: Document the optional set
MFC after:	3 days
Reviewed by:	ziaee, emaste
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D54065
2025-12-05 02:43:51 +00:00
Robert Clausecker fc88be257e Revert "stddef.h: add unreachable() for C23 compliance"
Seems like a number of ports are *really* unhappy with this new
macro.  These ports will have to be fixed and the patch reworked
to perhaps not affect C++ (see D54041).  A general discussion on
how we expose new language features may also need to take place.

Reported by:	many people
Approved by:	markj (mentor)

This reverts commit b381d09802.
2025-12-05 00:25:10 +01:00
Rene Ladan 8102307c7b misc: retire tcberner from portmgr
Hat:	portmgr
2025-12-04 22:26:29 +01:00
Mitchell Horne 2ace05b65a pfind(9): follow-up fixes and improvements
(Found on a branch from a year ago.)

- Adjust NAMEs
- MLINKS: add pfind_any.9, pfind_any_locked.9; remove old zpfind.9
- Reword the description of pfind_any() so that it doesn't imply only
  zombie processes are returned
- Fix a comma
- Use .Dv for the macro PRS_ZOMBIE
- Move the (logically separate) final statement to a new paragraph
- .Xr to pget(9)

Reviewed by:	0mp
Fixes:	07d78399eb ("pfind(9): Update to recent behavior")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D53548
2025-12-04 14:37:18 -04:00
Timothy Pearson 84fd37f309 committers-src: add myself (tpearson@)
Add myself (tpearson@) as a new src committer with jhibbits@ as my mentor.

Approved by: jhibbits(mentor)
2025-12-03 08:58:32 -06:00
Sumit Saxena 35dd53a9e1 librdmacm/libibverbs: Statically bound libbnxtre.so.1 to rping
By default ibv_devices and rping are not statically bound to
libbnxtre.so.1. i.e. 'ldd /usr/bin/rping' command doesn't list
'libbnxtre.so.1' entry. So, statically bound the libbnxtre.so.1
library to rping & ibv_devices utils.

MFC-After:      3 days
Reviewed-by:    sumit.saxena@broadcom.com
Differential-Revision: https://reviews.freebsd.org/D49604
2025-12-03 11:33:40 +00:00
Sumit Saxena b42fda6be3 share/mk: Include libbnxtre entry in bsd.libnames.mk
Add libbnxtre entry in bsd.libnames.mk file.

MFC-After:	3 days
Reviewed-by:	sumit.saxena@broadcom.com
Differential-Revision: https://reviews.freebsd.org/D49603
2025-12-03 11:33:40 +00:00
Warner Losh 6183477474 kqueue(9): document f_copy
f_copy controls whether and how a knote is inherited by the child
process.

Sponsored by:		Netflix
Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D53845
2025-12-02 21:40:47 -07:00
Alexander Ziaee 39b2ca9ec9 freebsd-base.7: Rewrite table into a tagged list
The table is not playing nicely with
https://man.freebsd.org/freebsd-base

MFC after:		3 days
Reviewed by:		pauamma@gundo.com
Differential Revision:	https://reviews.freebsd.org/D54036
2025-12-02 14:46:53 -05:00
polyduekes df815450fb release.7: PKGBASE is now the default
Signed-off-by:	polyduekes-git <polyduekes@proton.me>
Reviewed by:	cperciva, emaste, ziaee
Closes:		https://github.com/freebsd/freebsd-src/pull/1913
2025-12-02 14:45:31 -05:00
Maxim Konovalov 7b44ab1c6a bsd-family-tree: add FreeBSD 15.0 2025-12-02 03:44:42 +00:00
Konstantin Belousov 1ecf01065b libuvmem: usermode port of vmem(9)
The quantum cache is disabled, there is no uma.

Intent is to use this for resource allocation in bhyve(8), for start.
Addition of -luvmem to bhyve linking was done to test changes to share/mk.

Reviewed by:	bnovkov, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D27220
2025-12-02 05:41:13 +02:00
Diane Bruce 791c531402 Fintek F81232 USB to serial driver
Driver for Feature Integration Technology Inc. (aka Fintek)
F81232 USB to serial driver.

Reviewed by:	thj,adrian,UB
Approved by:	adrian
Differential Revision:	https://reviews.freebsd.org/D53893
2025-12-01 20:15:37 -05:00
Vladimir Kondratyev b6cad334e6 hid: Make game controllers accessible to members of the game group
Their events have to be accessible by unprivileged users via e.g. libsdl.

MFC after:	1 month
2025-12-01 23:42:15 +03:00
Robert Clausecker 5bfdb66ad9 man/man3: add cross references to stdbit(3)
Add cross references to relevant stdbit man pages

Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision: https://reviews.freebsd.org/D53661
2025-11-30 20:21:52 +01:00
Robert Clausecker d39e310c7d man/man3: add stdbit.3
This is the overview man page for the <stdbit.h> functions.

Reviewed by:	pauamma@gundo.com, adrian
Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D53658
2025-11-30 20:21:52 +01:00
Robert Clausecker 233ddc56a7 unreachable.3: add missing brace in example
Reported by:	alc
Approved by:	markj (mentor)
MFC after:	1 month
Fixes:		b381d09802
See also:	D53967
2025-11-28 22:59:30 +01:00
Warner Losh 687ab0dc54 umass(4): Update to include pointers to quirks
umass(4), while much improved, still sometimes need quirks. Add a
pointer to usb_quirk(4) and usbconfig(8).

Sponsored by:		Netflix
2025-11-28 13:53:13 -07:00
Robert Clausecker b381d09802 stddef.h: add unreachable() for C23 compliance
unreachable() is a hint to the compiler that it is unreachable.
Add a new man page unreachable(3) to document this macro.

Reviewed by:	imp
Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D53967
2025-11-28 16:56:49 +01:00
Dag-Erling Smørgrav 330d4437f2 bus: Add device_has_children predicate
Add a device_has_children() function which can be used to check if a
device has children without allocating a list of them which we aren't
going to use, or even counting them.

Also modify device_get_children() so it can be used to query the count
without allocating a list.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	imp, markj
Differential Revision:	https://reviews.freebsd.org/D53918
2025-11-28 10:17:09 +01:00
Konstantin Belousov e60861eb41 bsd.lib.mk: document INTERNALLIB and PRIVATELIB
Reviewed by:	des, dim, emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D53948
2025-11-27 21:53:19 +02:00
Brooks Davis dca634d154 new type: ptraddr_t
ptraddr_t is an unsigned integer type that can hold the address of any
pointer.  It differes from uintptr_t in that it does not carry
provenance which is useful for CHERI in that it can disambigurate the
provenance of uintptr_t expressions.  It differes from size_t in that
some segmented architecture (not supported by FreeBSD) may have a size_t
that does not hold an address.

ptraddr_t is not yet standardized, but is currently proposed for
inclusion in C++2Y.

Prefer the compiler defined __PTRADDR_TYPE__ defintion where available
as this a new type and we don't need to worry about historical values.
Fall back to __size_t where unavailable.

Reviewed by:	kib, markj
Effort:		CHERI upstreaming
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D53817
2025-11-27 14:54:55 +00:00
ykla 5fd8a01e9b man: RealTek -> Realtek
Realtek changed how it styled its name 25 or so years ago, but the old
style persisted in many places. These products use the new styling in
their datasheets.

Signed-off-by: ykla yklaxds@gmail.com
Sponsored by: Chinese FreeBSD Community
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1901
2025-11-26 23:19:22 -07:00
Ed Maste 35232d8edb papers: Retire phkmalloc paper
It has not been installed since commit cdc3795316 ("In preparation for
the removal of the roff toolchain, disconnect the") and turned up in
a search for outdated MALLOC_OPTIONS settings.

The rendered paper is available at
https://papers.freebsd.org/1998/phk-malloc

PR:		287357
Reviewed by:	bapt
Event:		Kitchener-Waterloo Hackathon 202506
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50908
2025-11-26 19:21:08 -05:00
Goran Mekić ebf1d98d60 sound examples: Fix buffer mapping/allocation
The buffer in struct config should be allocated or mmap'ed. The code
without this patch allocates the buffer unconditionally, even for mmap
configs.

MFC after:	1 week
Reviewed by:	christos
Differential Revision:	https://reviews.freebsd.org/D53939
2025-11-26 20:33:05 +01:00
John Baldwin 7980cf5d6f Centralize definition of ZFSTOP
Define this helper variable in one place and make it available while
building the entire base system.

Reviewed by:	sjg
Obtained from:	CheriBSD (mostly)
Differential Revision:	https://reviews.freebsd.org/D53790
2025-11-24 10:46:56 -05:00
Gordon Tetlow 12ec49d8fa Add backup pkgbase signing key held by security-officer.
This key was generated by gordon@ (aka security-officer@) on an offline
system as a backup key should anything happen to the AWS Key
Management Service that is currently in use for signing pkgbase
repositories for FreeBSD 15.x.

Reviewed by:	cperciva
With hat:	so
2025-11-22 11:14:25 -08:00
Alexander Ziaee a8740ba860 vt.4: Document increasing scrollback size
MFC:			immediately as 2 llms say this is impossible
Reviewed by:		adrian, emaste
Differential Revision:	https://reviews.freebsd.org/D53860
2025-11-21 12:41:02 -05:00
Gordon Bergling 8158b813d9 isp.4: Fix a typo in the manual page
- s/Chanel/Channel/

MFC after:	3 days
2025-11-21 10:14:35 +01:00
Gordon Bergling bb3bfc7ca8 snd_dummy.4: Fix a typo in the manual page
- s/devic/device/

MFC after:	3 days
2025-11-21 10:13:39 +01:00
Ed Maste a4aa7df767 mgb.4, muge.4: Use standard HARDWARE introduction
Release notes are generated using this text.

I used "interfaces" not "adapters" in these pages as the listed devices
are the controller ICs, not end-user projects.

Reviewed by:	ziaee
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53846
2025-11-20 12:08:22 -05:00
Mark Johnston 39ee24182b rc.subr: Support setting the audit user when starting services
When an unprivileged user restarts a service using, e.g., sudo, the
service runs with the audit user ID set to that of the unprivileged
user.  This can have surprising effects: for instance, a user that
restarts a jail that is running sshd will end up with their UID attached
to all audit logs associated with users who log in via that sshd
instance.  (sshd will set the audit user, but this is disallowed in
jails by default.)

Add support for rc.conf directives which cause rc to override the audit
user.  Specifically, make <name>_audit_user=foo cause the audit user to
be set to "foo" for service <name>.  A plain audit_user=foo directive
causes all services to be started as foo.

Note, like other similar rc features, this feature is limited to rc
services which are run by executing a command.  Shell functions can't be
wrapped this way.

Reviewed by:	0mp
MFC after:	2 weeks
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D53747
2025-11-18 16:24:21 +00:00
Konstantin Belousov c0a38339fe exterror.9: explain buffers and bios usage of extended errors
Reviewed by:	pauamma_gundo.com
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D53798
2025-11-18 07:34:56 +02:00
Ed Maste bf2dc446d1 example.4: Bump deprecation example to FreeBSD 17
The deprecation notice should indicate that the driver or feature will
be removed in a future release, not one that's nearly EOL.

Sponsored by:	The FreeBSD Foundation
2025-11-17 10:13:17 -05:00
Ed Maste 4c736cfc69 Deprecate fdc(4) and floppy utilities
Floppies have been obsolete for over a decade.  Add a deprecation note
now and plan to remove fdc(4) support in 16.

Reviewed by:	ziaee
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41549
2025-11-16 17:46:12 -05:00
Ed Maste e1b027b276 fdc.4: Correct igor-reported warnings
Sponsored by:	The FreeBSD Foundation
2025-11-16 17:44:16 -05:00
Dag-Erling Smørgrav ebb0b48226 iwx.4: Follow the established style
Fixes:          b0c1ead2b9 ("iwx.4: Fix SYNOPSIS")
Reviewed by:	ziaee
Differential Revision:	https://reviews.freebsd.org/D53760
2025-11-16 20:10:44 +01:00