Commit graph

20796 commits

Author SHA1 Message Date
Ed Maste
afd67a1677 etcupdate(8): improve phrasing
Reported by:	igor(1)
2024-07-16 15:17:31 -04:00
Ed Maste
f2055611fe mergemaster: remove from the tree
Mergemaster has been deprecated for many years, replaced by
etcupdate(8).  Remove it now, in advance of FreeBSD 15.0.

PR:		252417
Reviewed by:	imp
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45622
2024-07-16 08:25:54 -04:00
Kyle Evans
db3a524c8a bsnmpd: FreeBSD has strlcpy(3)
Fixes the fortified build of bsnmp, which otherwise fails because of the
shadowed declaration.

Reviewed by:	kib (earlier version), markj
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
Differential Revision:	https://reviews.freebsd.org/D45976
2024-07-16 00:12:29 -05:00
Ed Maste
a39decd73f etcupdate: remove mergemaster cross-reference
It will be retired soon.

Sponsored by:	The FreeBSD Foundation
2024-07-15 21:37:14 -04:00
Warner Losh
e9ac41698b Remove residual blank line at start of Makefile
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
2024-07-15 16:43:39 -06:00
Mark Johnston
b387776788 ndp: Fix libxo formatting for the prefix expiry string
Fixes:	e1c7783e22 ("ndp(8): add structured output formatting via libxo")
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	Bell Tower Integration
2024-07-15 16:22:00 -04:00
Rick Macklem
bae19029ad rpcbind.8: Fix missing option entry in commit df3f247e46
Commit df3f247e46 added descriptions for the new command line
option "-I".  However, it failed to update the .Op line.

This is a content change.

Reviewed by:	Alexander Ziaee <concussious.bugzilla@runbox.com> (manpages)
Differential Revision:	https://reviews.freebsd.org/D45118
2024-07-11 13:03:42 -07:00
Joyu Liao
2e5c9eaf57 mountd.8: Update the man page for -N and -s
Commit 7c2901b08b added new command line options "-N" and "-s".
This patch updates the man page for this.

This is a content change.

Reviewed by:	Alexander Ziaee <concussious.bugzilla@runbox.com> (manpages)
Differential Revision:	https://reviews.freebsd.org/D45118
2024-07-11 12:50:46 -07:00
Joyu Liao
7c2901b08b mountd: Add options to disable daemon mode and setting localhost
In our products, we need those options to support our features.

Add daemon mode option for mountd, nfsd.
Add skip local host binding option for rpcd.
Add skip local host binding option for mountd.

Reviewed by:	rmacklem
Differential Revision:	https://reviews.freebsd.org/D45118
2024-07-11 12:38:04 -07:00
Joyu Liao
f7dc514c01 nfsd.8: Update the man page for -N
Commit 77439cd18f23 added a new command line option "-N".  This patch
updates the man page for this.

This is a content change.

Reviewed by:	Alexander Ziaee <concussious.bugzilla@runbox.com> (manpages)
Differential Revision:	https://reviews.freebsd.org/D45118
2024-07-09 12:50:26 -07:00
Joyu Liao
77439cd18f nfsd: Add option to disable going into daemon mode
In our products, we need those options to support our features.

Add daemon mode option for mountd, nfsd.
Add skip local host binding option for rpcd.
Add skip local host binding option for mountd.

Reviewed by:	rmacklem
Differential Revision:	https://reviews.freebsd.org/D45118
2024-07-09 12:44:38 -07:00
Ryan Libby
6bd85498ec bthidd: declare appropriate size bitstring
The bitstring declared on the stack was much too large, and gcc noticed
that we weren't memset()ing all of it.  This one was harmless.

Reported by:	GCC -Wmemset-elt-size
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D45900
2024-07-09 11:00:33 -07:00
Joyu Liao
df3f247e46 rpcbind.8: Update the man page for -I
Commit d8a99eaa1f added a new command line option "-I".  This patch
updates the man page for this.

This is a content change.

Reviewed by:	Alexander Ziaee <concussious.bugzilla@runbox.com> (manpages)
Differential Revision:	https://reviews.freebsd.org/D45118
2024-07-07 12:17:57 -07:00
Alexander Ziaee
de2ab11ff9 manuals/description: system video console utilitys
Update the man page descriptions so that apropos are more consistent for
console related man pages.

Motive:		apropos results: clarify consistently
MFC after:	3 days
Reviewed by:	emaste, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1275
2024-07-07 08:54:22 -06:00
Alexander Ziaee
580dc180c7 kbcontrol.1+kbdmap.1: improve manual descriptions
Update the man page descriptions so that apropos {console,keyboard}
finds more relevant man pages.

MFC after:	3 days
Reviewed by:	imp, emase
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1275
2024-07-07 08:54:17 -06:00
Jose Luis Duran
7220a45bcc freebsd-update: rsautl is deprecated, use pkeyutl
The command openssl-rsautl(1) has been deprecated in OpenSSL 3.0.  The
openssl-pkeyutl(1) command should be used instead.

Signed-off-by: Jose Luis Duran <jlduran@gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1309
2024-07-07 05:46:58 -06:00
Danilo Egea Gondolfo
12545b8583 fwget: add needed firmware for AMD Raphael GPUs
This GPU is found in Ryzen 7000 series CPUs.

For future reference, the list of firmware versions for amdgpu drivers
can be found in [1].

[1] - https://docs.kernel.org/gpu/amdgpu/driver-misc.html

Reviewed by: imp, Christos Longros
Pull Request: https://github.com/freebsd/freebsd-src/pull/1308
2024-07-07 05:45:37 -06:00
Joyu Liao
d8a99eaa1f rpcbind: Add option to disable local host binding
In our products, we need those options to support our features.

Add daemon mode option for mountd, nfsd.
Add skip local host binding option for rpcd.
Add skip local host binding option for mountd.

Reviewed by:	rmacklem
Differential Revision:	https://reviews.freebsd.org/D45118
2024-07-06 13:39:07 -07:00
Alan Somers
7f50027321 ctladm: don't require the use of "-p" with "port -r", part 2
* Remove a now superfluous FALLTHROUGH hint
* Don't specify "-p" with an empty argument in the tests

Reported by:	jhb
MFC after:	1 week
MFC with:	edbd489d09
2024-07-04 14:32:24 -06:00
Mariusz Zaborski
d3bb35d4e5 jail: allow adjustment of host time
Add a special permission to the jail to adjust and to set the host time.
This can be useful if we want to compartmentalize the NTP daemon
from the rest of the system.

Reviewed by:	olce, imp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45545
2024-06-28 12:23:31 +02:00
Alexander Ziaee
cfe55a8af8 fwget.8: polish
MFC after:	3 days
Reviewed by:	imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1269
2024-06-27 18:28:32 -06:00
Alexander Ziaee
18a27dd641 wpa_cli.8: describe better + tag spdx + linter nit
"how do I switch active wifi network on console"
"% apropos wifi"

MFC after:	3 days
Reviewed by:	mhorne, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1299
2024-06-27 11:55:41 -03:00
Mark Johnston
7d6932d20a ctladm: Fix a race when loading ctl.ko
If multiple ctladm processes try to load ctl.ko at the same time, only
one will succeed.  Handle this possibility by retrying the operation
(open /dev/cam/ctl) if kldload returns EEXIST, rather than bailing.
This at least helps ensure that ctladm tests can be run in parallel
when ctl.ko is not preloaded.

Reviewed by:	asomers
MFC after:	1 week
2024-06-25 15:29:03 -04:00
Jamie Gritton
63875db56b Document the zfs.mount_snapshot parameter in jail(8).
PR:		274263
Differential Revision:	https://reviews.freebsd.org/D45647
2024-06-24 13:03:45 -07:00
Alan Somers
a1608e8854 ctladm: add a copyright header to the port test
[skip ci]

MFC with:	9747d11d91
Reported by:	markj
Sponsored by:	Axcient
2024-06-24 09:17:27 -06:00
Andrew Turner
68f044de29 binmiscctl.8: Change the example to armv7
armv6 is in the process of being removed.

Reviewed by:	manu, imp, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45641
2024-06-20 09:26:18 +00:00
Xin LI
8a607939de Update leap-seconds to leap-seconds.3676924800
Obtained from:  ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.3676924800
MFC after:      3 days
2024-06-18 19:10:33 -07:00
Alan Somers
bb95fbf634 ctladm: deprecate the undocumented "port -l" option
It was mostly removed from the man page in
9c887a4f86, but left in the command.
Fully remove it from the man page, and warn if anybody uses it.  Remove
it entirely for FreeBSD 16.

PR:		279546
MFC after:	2 weeks
Reviewed by:	mav
Sponsored by:	Axcient
Differential Revision: https://reviews.freebsd.org/D45522
2024-06-18 15:13:44 -06:00
Ed Maste
c6030b3804 Revert "tzsetup: ask local/UTC question only on x86"
I am unsure if AArch64 Windows systems keep UTC or local time in the RTC
by default, so keep tzsetup consistent across architectures for now.

This reverts commit aa6fb1d277.

Reported by:	 Mark Millard
2024-06-17 13:04:40 -04:00
Kristof Provost
c57c261790 iovctl: allow vlan restrictions to be passed to the driver
Allow iovctl to create VFs that are restricted to specific VLAN IDs.

Reviewed by:	kib, np
MFC after:	2 weeks
Sponsored by:	Orange Business Services
Differential Revision:	https://reviews.freebsd.org/D45402
2024-06-17 10:50:15 +02:00
Navdeep Parhar
e827b61cac cxgbetool(8): Be flexible about the nexus name.
Use the name as-is but perform cxgbe specific ioctls on the device to
make sure that it is a Terminator device nexus.  Determine the chip
type, pf/vf, etc. from the device registers rather than the nexus name.

This allows cxgbetool to work with the VF driver.

MFC after:	1 week
Sponsored by:	Chelsio Communications
2024-06-16 18:54:02 -07:00
Alan Somers
2909ddd17c ctld: plug memory leaks
MFC after:	2 weeks
Reviewed by:	mav
Sponsored by:	Axcient
Reported by:	valgrind
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1288
2024-06-14 12:08:38 -06:00
Ed Maste
aa6fb1d277 tzsetup: ask local/UTC question only on x86
Storing local time in the RTC is a legacy of 1990s PCs; it's not
relevant on other platforms of interest to FreeBSD.

While here switch to C99 bool.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	allanjude (earlier), imp (earlier)
Differential Revision: https://reviews.freebsd.org/D45575
2024-06-14 12:15:48 -04:00
Ed Maste
70e3e1bde9 tzsetup: add detail for -s option
Skipping the UTC question via -s will not create or delete
/etc/wall_cmos_clock.

Reported by:	Tomoaki AOKI
Reviewed by:	imp, allanjude, jrm
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45576
2024-06-14 10:02:31 -04:00
Ed Maste
a16cb8709d tzsetup: Correct UTC description
UTC is Coordinated Universal Time, not Greenwich Mean Time.

Reviewed by:	imp, allanjude
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45573
2024-06-12 20:24:49 -04:00
Andrew Turner
9a4813e1dc bhyve: Fix the build with gcc
gcc doesn't like const and static to not be at the start of a variable
declaration. Update the gdb_regset arrays to make it more obvious they
are arrays of struct gdb_reg and to fix the gcc build.

Reviewed by:	corvink, markj
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45550
2024-06-11 13:12:43 +00:00
Alan Somers
edbd489d09 ctladm: don't require the use of "-p" with "port -r"
When removing a port, the ioctl frontend requires the "-p" argument.
But other frontends, like cfiscsi, do not.  So don't require that
argument in the ctladm command.  The frontend driver will report an
error if any required argument is missing.

MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1279
2024-06-10 10:01:25 -06:00
Alan Somers
afecc74cd7 ctladm: better documentation for adding and removing cfiscsi ports
MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1279
2024-06-10 10:01:25 -06:00
Alan Somers
591de7534f ctladm: print port number with a succesful "port -c" command
Make "ctladm port -c" print the port number of the newly successful
port.  This way it won't have to be guessed by a subsequent "ctladm
portlist" command.  That means it's safe to use it concurrently with
other ctladm processes.  In particular, this allows the tests to be run
in parallel.

MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1279
2024-06-10 10:01:25 -06:00
Alan Somers
9747d11d91 Add some ATF tests for ctladm
So far only "ctladm port -c" and "ctladm port -r" are covered.

MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:	mav
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1279
2024-06-10 10:01:25 -06:00
Kristof Provost
d9ab899931 pf: migrate DIOCGETLIMIT/DIOCSETLIMIT to netlink
Event:		Kitchener-Waterloo Hackathon 202406
2024-06-07 20:59:02 +02:00
Warner Losh
c0c066f86d config: Remove redundant code
since errx is marked dead2, we don't need this.

Noticed by:		jrtc27
Sponsored by:		Netflix
2024-06-06 15:48:38 -06:00
Alan Somers
60107d23d8 ctladm.8: fix several errors in the "port" section
* Document the "-d" option.
* Add the "-c" and "-r" options to the summary.
* Correct the list of required options.
* Clarify that the "-t" option is only for use with "-o", "-w", and "-W"
* Replace references to the nonexistent "-n" with "-p".

Also, fix a few related error strings in the ctladm command.

MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:	jhb
Differential Revision: https://reviews.freebsd.org/D45503
2024-06-06 11:22:06 -06:00
Mark Johnston
05704402ac bhyve: Add a stub VM_EXITCODE_REG_EMUL handler
This lets us print a few fields of interest before aborting the VM loop.

No functional change intended.

Reviewed by:	corvink, andrew
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D44741
2024-06-04 15:06:42 -04:00
Mark Johnston
a0ca4af945 bhyve: Add arm64 support to the gdb stub
- Add -G to the arm64 getopt handler.
- Add static register definitions and extensible XML definitions.
- Provide definitions for MD bits such as breakpoint encoding and
  length.
- Ensure that bhyve re-injects breakpoint exceptions that it is not
  responsible for.

Reviewed by:	andrew
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D44740
2024-06-04 15:03:17 -04:00
Corvin Köhne
e425e601b9
bhyve: verify OpRegion size
If the OpRegion size doesn't match the size of our igd_opregion struct, it's
using a different layout than we're expecting. To avoid strange issues, we
should exit hard. If we see any devices in the field with a different OpRegion
size, we can analyse it and fix it accordingly.

Reviewed by:		markj
MFC after:		1 week
Sponsored by:		Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D45335
2024-06-04 09:08:49 +02:00
Corvin Köhne
5e09c5a1ed
bhyve: use correct size to map the OpRegion
We're already converting the size reported by the OpRegion header from
kilobytes to bytes. We don't have to do that twice when mapping the OpRegion.

Reviewed by:		markj
MFC after:		1 week
Sponsored by:		Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D45334
2024-06-04 09:08:34 +02:00
Dapeng Gao
fbfdf57d65 Fix off-by-one bug in btpand
`ul` reaches `__arraycount(services)` before the bound-check happens, causing undefined behaviour.

Reviewed by:	imp, jrtc27
Fixes:		7718ced0ea ("Add btpand(8) daemon from NetBSD.")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45463
2024-06-03 20:30:36 +01:00
Dapeng Gao
5dda778db6 Use correct function declaration for yyerror
According to the POSIX standard at
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html
`yyerror` should return `int`. Add unreachable since errx never returns.

Reviewed by:	imp, kib
Differential Revision:	https://reviews.freebsd.org/D45447
2024-06-03 12:14:10 -06:00
Mark Johnston
be2f92a96b makefs/zfs: Add a helper function for adding ZAP entries
Some ZAPs are used to represent sets, in which keys and values are the
same.  Add a helper function for this case.  No functional change
intended.

MFC after:	1 week
2024-06-01 11:16:18 -04:00