Commit graph

289110 commits

Author SHA1 Message Date
Cy Schubert 91f78c32be rc.d/kdc: Support start of MIT krb5kdc
Some users wishing to use the MIT krb5kdc have discovered the
kdc script workaround applied to the MIT krb5 ports is insufficient.
Let's build into this rc script the smarts to determine whether
base or ports Hiemdal kdc is being invoked or the MIT krb5kdc.

While at it, remove kdc_start_precmd(). This will simplify a future
jail patch.

Suggested by:		netchild
Original patch:		netchild
Reviewed by:		emaste, netchild
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D43523
2024-01-21 16:06:26 -08:00
Warner Losh bf531bcc5f altq: Remove stale driver references
Remove xr to an(4) and npe(4) since they no longer exist in the tree.

Sponsored by:		Netflix
2024-01-21 10:01:45 -07:00
Warner Losh 5a1af07a04 firmware(9): Update example
Update the example to include a firmware module in the kernel from npe
to iwn. Npe was deleted 6 years ago so makes a poor example of how to
embed firmware in the kernel.

Sponsored by:		Netflix
2024-01-21 09:20:53 -07:00
Jamie Gritton 768149ff15 jail: make sure jail.conf parse errors exit, and not crash.
Reported by:	Mason Loring Bliss
2024-01-20 21:20:59 -08:00
John F. Carr deeb1d3402 fsck_msdosfs: do not call checksize() if the cluster is bad
PR:	276464
MFC after:	1 week
2024-01-21 01:20:24 +02:00
Jessica Clarke edec803c5b tools/build/make.py: Add missing comma to fix tinderbox and worlds
The missing comma meant this was interpreted as a single target called
"tinderboxworlds", and so neither tinderbox nor worlds were recognised
as being MI targets (i.e. still required TARGET(_ARCH) to be given).

Fixes:	5157b451c6 ("tools/build/make.py: Grow the list of MI targets")
2024-01-20 22:07:48 +00:00
Kristof Provost c3d7bb5aca netipsec: fix LINT-NOINET build
udp_ipsec_input() is used for INET6, so we need it even in NOINET
builds. Build the relevant file if either of INET or INET6 are set.
2024-01-20 22:22:21 +01:00
Gordon Bergling 54e047b13b aic7xxx: Fix a typo in a kernel message
- s/recevied/received/

MFC after:	5 days
2024-01-20 22:01:10 +01:00
Gordon Bergling b4c94968d1 if_llatbl: Fix a typo in a KASSERT message
- s/entires/entries/

MFC after:	5 days
2024-01-20 21:00:22 +01:00
Gordon Bergling 3fb6adb079 gjournal(8): Fix a typo in a sysctl description
- s/entires/entries/

MFC after:	5 days
2024-01-20 20:58:08 +01:00
Gordon Bergling bce295fcbe PCI_IOV_INIT.9: Fix a typo in the manual page
- s/infrastucture/infrastructure/

MFC after:	3 days
2024-01-20 20:20:32 +01:00
Gordon Bergling e1c0d368d6 bce(4): Fix a typo in a kernel message
- s/adddress/address/

MFC after:	5 days
2024-01-20 20:10:21 +01:00
Gordon Bergling 8593b5b2ad pkru.3: Fix a typo in the manual page
- s/successfull/successful/

MFC after:	3 days
2024-01-20 19:55:08 +01:00
Gordon Bergling a70008e95b sigfastblock.2: Fix a typo in the manual page
- s/successfull/successful/

MFC after:	3 days
2024-01-20 19:54:33 +01:00
Gordon Bergling 2b1e4e5be3 atse(4): Fix a typo in a source code comment
- s/addresss/address/

MFC after:	3 days
2024-01-20 17:35:51 +01:00
Gordon Bergling ced92d000a ciss(4): Fix a typo in a source code comment
- s/strucutre/structure/

MFC after:	3 days
2024-01-20 17:34:25 +01:00
Gordon Bergling 623848af60 vmware: Fix a typo in a source code comment
- s/withing/within/

MFC after:	3 days
2024-01-20 17:33:27 +01:00
Gordon Bergling f5e3329a5a usb: Fix two typos in source code comments
- s/bascially/basically/
- s/assistence/assistance/

MFC after:	3 days
2024-01-20 17:32:20 +01:00
Gordon Bergling 938918a9f4 netpfil: Fix two typos in source code comments
- s/withing/within/

MFC after:	3 days
2024-01-20 17:30:57 +01:00
Gordon Bergling ef0ac0a1ad tcp_hpts: Fix a typo of a function name in a comment
- s/tcp_ouput/tcp_output/

MFC after:	3 days
2024-01-20 17:29:28 +01:00
Gordon Bergling a2fcd3af5c net: Fix two typos in source code comments
- s/strucutres/structures/

MFC after:	3 days
2024-01-20 17:28:12 +01:00
Gordon Bergling b2ec175fca _umtx_op.2: Fix a typo in the manual page
- s/interpeted/interpreted/

MFC after:	3 days
2024-01-20 17:26:34 +01:00
Gordon Bergling 7cf293536e devfs(5): Fix a typo in a source code comment
- s/interpeted/interpreted/

MFC after:	3 days
2024-01-20 17:25:45 +01:00
Gordon Bergling 6f0da017c9 fusefs(5): Fix a typo in a SDT probe
- s/userpace/userspace/

MFC after:	5 days
2024-01-20 17:24:22 +01:00
Gordon Bergling 7037ebe63d netgraph: Fix two typos in source code comments
- s/bascially/basically/
- s/simpliest/simplest/

MFC after:	3 days
2024-01-20 17:22:28 +01:00
Konstantin Belousov 4b3ffc5918 msdosfs_remount_ro(): correct vfs_unbusy() loop
PR:	276408
Reported by:	 John F. Carr
Fixes:	13ccb04589
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2024-01-20 03:36:35 +02:00
Mark Johnston e0deb85065 makefs: Make it possible to silence warnings about duplicate paths
When generating a VM image from an installworld mtree manifest, makefs
spits out several thousand warnings about duplicate paths in the
manifest.  These are harmless and have been around for a long time (see
the phabricator revision for some more details), so let's at least have
a way to make makefs quieter.

Reviewed by:	brooks, imp, emaste
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D43513
2024-01-19 19:50:56 -05:00
Chuck Silvers 2f2da21740 mpi3mr: add missing terminator entry to mpi3mr_identifiers array
Reported by:	KASAN
Sponsored by:	Netflix
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D43519
2024-01-19 15:58:41 -08:00
Val Packett d9cb42da99
FreeBSD: Fix bootstrapping tools under Linux/musl
musl libc has deprecated LFS64 aliases, so bootstrapping FreeBSD tools
under musl distros has been failing with stat64 errors.

Apply the aliases under non-glibc Linux to fix this problem.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Val Packett <val@packett.cool>
Closes #15780
2024-01-19 13:01:26 -08:00
Alan Somers 39f5d8dd1b fusefs: fix some memory leaks in the tests
MFC after:	2 weeks
2024-01-19 10:44:32 -07:00
Richard Scheffenegger dfe30e4196 tcp: remove unused tcp_sack_output_debug() function
This debugging code has been lingering for years with
no known use.

No functional change.

Reviewed by:           tuexen, #transport
Sponsored by:          NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43511
2024-01-19 14:48:32 +01:00
Mark Johnston 47a6fb9d5a mlx5: Zero DMA memory mlx5_alloc_cmd_msg() and alloc_cmd_page()
These functions may map more memory for DMA than is actually used, since
the allocator operates on multiples of a 4KB page size.  Thus,
bus_dmamap_sync() can trigger KMSAN reports when the unused portion of
a page is not zero-ed.

Reported by:	KMSAN
Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	Klara, Inc.
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D43133
2024-01-18 16:52:17 -05:00
Gabriel M. Dutra 1abc64bfbd committers-ports.dot: add myself (dutra) as a new ports committer
Add entries about new ports committer (dutra)
Update Mentor and Mentee Information

Approved by:	dbaio(mentor), garga(mentor)
Differential Revision:	https://reviews.freebsd.org/D43502
2024-01-18 18:02:19 -03:00
Mitchell Horne 9c2e1a54f7 arm64: fix db_read_bytes() for size == 8
There is a mistake in the cast, resulting in a truncated read to tmp64.
Switch from int to uint64_t, and adjust the other casts for clarity.

Add a comment explaining why we do this at all.

Reported by:	dfr
Reviewed by:	dfr, mmel, emaste, jhb (all a previous version)
PR:		276406
MFC after:	3 days
Fixes:		a67687fcd8 ("Use native-sized accesses when accessing memory from kdb")
Differential Revision:	https://reviews.freebsd.org/D43479
2024-01-18 13:20:42 -04:00
Mitchell Horne a2544cc824 Revert "arm64: fix db_read_bytes() for size == 8"
I forgot to include the phabricator link in the commit message.

This reverts commit 2e297cbb4f.
2024-01-18 13:20:03 -04:00
Mitchell Horne 2e297cbb4f arm64: fix db_read_bytes() for size == 8
There is a mistake in the cast, resulting in a truncated read to tmp64.
Switch from int to uint64_t, and adjust the other casts for clarity.

Add a comment explaining why we do this at all.

Reported by:	dfr
Reviewed by:	dfr, mmel, emaste, jhb (all a previous version)
PR:		276406
MFC after:	3 days
Fixes:		a67687fcd8 ("Use native-sized accesses when accessing memory from kdb")
2024-01-18 13:00:07 -04:00
Konstantin Belousov 13ccb04589 msdosfs_integrity_error(): plug possible busy leak
If taskqueue_enqueue() returned error, unbusy().
Handle parallel calls to msdosfs_integrity_error() by unbusying in
msdosfs_remount_ro() up to pending times.

Noted and reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D43482
2024-01-18 18:48:05 +02:00
Konstantin Belousov 661db9b390 msdosfs_rename(): implement several XXXs about downgrading to ro
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D43482
2024-01-18 18:48:05 +02:00
Konstantin Belousov be0df84849 msdosfs_rename(): handle errors from msdosfs_lookup_ino()
Properly working storage and correct filesystem structure indeed only
allow the EJUSTRETURN return code, but since the called function needs
to read directory blocks and (re)parse the content, the assert is not
neccessary hold.

PR:	276408
Reported by:	John F. Carr
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D43482
2024-01-18 18:48:05 +02:00
Doug Rabson 9fac39c63c arm64: fix the handling of DDB symbols in early boot
The code which installs the kernel symbol table wasn't being compiled
because the file did not include opt_ddb.h

Reviewed by:	kevans emaste
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D43490
2024-01-18 16:41:02 +00:00
Muhammad Moinur Rahman 6b13d60bf4
contrib/kyua: Merge vendor import
* commit '5f174897f67783925f4ec69122673f9bad6ee6fe':
  vendor/kyua: Update to snapshot 84c8ec8
  Vendor import of freebsd/kyua@a0d44bb356
Approved by:    markj
Differential Revision:  https://reviews.freebsd.org/D43475
2024-01-18 17:26:13 +01:00
Cy Schubert 0990136ed1 kerberos5: Mitigate the possibility of using an old libcrypto
By using the full library name (libcrypto.so.30) we avoid the exposure
of using an old, possibly vulnerable, library.

Reported by: 		jrtc27
MFC after:		3 days
X-MFC with:		476d63e091
Fixes:			476d63e091
2024-01-18 07:12:14 -08:00
Fernando Apesteguía 70445a8061 cksum(1): Add EXAMPLES to manual page
Approved by:	bcr@
2024-01-18 14:04:25 +01:00
Cy Schubert 476d63e091 kerberos: Fix numerous segfaults when using weak crypto
Weak crypto is provided by the openssl legacy provider which is
not load by default. Load the legacy providers as needed.

When the legacy provider is loaded into the default context the default
provider will no longer be automatically loaded. Without the default
provider the various kerberos applicaions and functions will abort().

This is the second attempt at this patch. Instead of linking
secure/lib/libcrypto at build time we now link it at runtime, avoiding
buildworld failures under Linux and MacOS. This is because
TARGET_ENDIANNESS is undefined at pre-build time.

PR:		272835
MFC after:	3 days
X-MFC:		only to stable/14
Tested by:	netchild
		Joerg Pulz <Joerg.Pulz@frm2.tum.de> (previous version)
2024-01-17 23:46:57 -08:00
Aaron LI 7a4d1d1df0 if_wg: fix access to noise_local->l_has_identity and l_private
These members are protected by the identity lock, so rlock it in
noise_remote_alloc() and then assert that we have it held to some extent
in noise_precompute_ss().

PR:		276392
2024-01-17 17:29:54 -06:00
Aaron LI b891f61ef5 if_wg: fix erroneous calculation in calculate_padding() for p_mtu == 0
In practice this is harmless; only keepalive packets may realistically have
p_mtu == 0, and they'll also have no payload so the math works out the same
either way.  Still, let's prefer technical accuracy and calculate the amount
of padding needed rather than the padded length...

PR:		276363
2024-01-17 17:29:52 -06:00
Alan Somers 8bae22bbbe fusefs: prefer new/delete over malloc/free
MFC after:	2 weeks
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D43464
2024-01-17 15:49:41 -07:00
Martin Matuska 78ae60b447 zfs: merge openzfs/zfs@a0b2a93c4
Notable upstream pull request merges:
 #15660 66670ba9f fix(mount): do not truncate shares not zfs mount
 #15719 3bddc4dae spa: Fix FreeBSD sysctl handlers (already merged)
 #15719 5a703d136 spa: Let spa_taskq_param_get()'s addition of a newline
                  be optional
 #15721 6138af86b Stop wasting time on malloc in snprintf_zstd_header
 #15723 1f5bf9600 Make zdb -R a little more sane.
 #15726 20dd16d9f Make zdb -R scale less poorly
 #15737 d9885b377 fix: Uber block label not always found for aux vdevs
 #15737 2df2a58dc Extend aux label to add path information
 #15737 b64be1624 Add path handling for aux vdevs in `label_path`
 #15747 a1771d243 Fix "out of memory" error
 #15752 1a11ad9d2 Fix a potential use-after-free in zfs_setsecattr()
 #15772 f45dd90f3 Fix cloning into mmaped and cached file
 #15781 1494e8fba Autotrim High Load Average Fix

Obtained from:	OpenZFS
OpenZFS commit:	a0b2a93c41
2024-01-17 22:39:31 +01:00
Pawel Jakub Dawidek 41ac0b4ce0 Fix the build.
MFC after:	1 week
MFC with:	f1d0a0cbec
2024-01-17 10:59:26 -08:00
Robert Wing fdd1e1a564 bhyve: correct slirp_recv_disable()
Reviewed by:	corvink, markj
Differential Revision:	https://reviews.freebsd.org/D43472
2024-01-17 09:12:44 -09:00