]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 months agorandom(9): bump removal to FreeBSD 15.0
Ed Maste [Mon, 18 Mar 2024 20:02:08 +0000 (16:02 -0400)]
random(9): bump removal to FreeBSD 15.0

It has not yet been removed, and still has some in-tree consumers.

PR: 277655
Sponsored by: The FreeBSD Foundation

2 months agolib{c,sys}: really fix incremental builds
Brooks Davis [Mon, 18 Mar 2024 17:06:41 +0000 (17:06 +0000)]
lib{c,sys}: really fix incremental builds

Reported by: andrew
Fixes: a650ec0e55a9 lib{c,sys}: fix incremental builds

2 months agotcp_rack.4: Update the SEE ALSO section
Gordon Bergling [Mon, 18 Mar 2024 18:25:11 +0000 (19:25 +0100)]
tcp_rack.4: Update the SEE ALSO section

Correct the surname of one of authors of RFC 8985 and add RFC 5681 and
RFC 6937 (PRR: Proportional Rate Reduction for TCP).

Reviewed by: tuexen
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D44399

2 months agoktls: catch invalid parameters earlier
Richard Scheffenegger [Mon, 18 Mar 2024 01:55:59 +0000 (02:55 +0100)]
ktls: catch invalid parameters earlier

Move safety checks forward from ktls_session_create() to
ktls_copyin_tls_enable(). Prevents zero mallocs, and excessively
large kernel mallocs.

Reported-by: syzbot+72022fa9163fa958b66c@syzkaller.appspotmail.com
Reported-by: syzbot+8992893e13058ce0670a@syzkaller.appspotmail.com
Sponsored by: NetApp, Inc.
X-NetApp-PR: #79
Reviewed By: tuexen
Differential Revision: https://reviews.freebsd.org/D44364

2 months agoAdd myself (harti) to the calendar.
Hartmut Brandt [Mon, 18 Mar 2024 16:58:03 +0000 (17:58 +0100)]
Add myself (harti) to the calendar.

Reminded by:    mckusick

2 months agoarm64: Return all registers to gdb when able
Andrew Turner [Thu, 14 Mar 2024 17:31:39 +0000 (17:31 +0000)]
arm64: Return all registers to gdb when able

When the kdb thread is the current thread we read the registers from
the trap frame. As this contains all general purpose registers we can
use it to read these in the gdb stub. This allows us to include the
non-callee saved registers, e.g. function arguments.

Reviewed by: imp
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D44360

2 months agouart: Add uart_cpu_acpi_setup to setup the uart
Andrew Turner [Thu, 14 Mar 2024 16:43:28 +0000 (16:43 +0000)]
uart: Add uart_cpu_acpi_setup to setup the uart

In preperation for adding debug port support add a generic function
to setup the uart from ACPI tables.

Reviewed by: imp
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D44358

2 months agouart: Split out initilisation of the acpi devinfo
Andrew Turner [Tue, 12 Mar 2024 18:06:18 +0000 (18:06 +0000)]
uart: Split out initilisation of the acpi devinfo

Split out the common parts of building the uart devinfo from ACPI
tables from the SPCR parser. This will be used when we support the DBG2
table to find the debug uart to be used by the kernel gdb stub.

Reviewed by: imp
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D44357

2 months agoarm64: Rename drop_to_el1 to enter_kernel_el
Andrew Turner [Thu, 15 Feb 2024 14:48:54 +0000 (14:48 +0000)]
arm64: Rename drop_to_el1 to enter_kernel_el

In the future we may not drop to EL1, e.g. when we support FEAT_VHE
where the kernel runs in EL2.

Reviewed by: emaste, imp
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D43976

2 months agotcp: remove IS_FASTOPEN() macro
Gleb Smirnoff [Mon, 18 Mar 2024 15:56:17 +0000 (08:56 -0700)]
tcp: remove IS_FASTOPEN() macro

The macro is more obfuscating than helping as it just checks a single flag
of t_flags.  All other t_flags bits are checked without a macro.

A bigger problem was that declaration of the macro in tcp_var.h depended
on a kernel option.  It is a bad practice to create such definitions in
installable headers.

Reviewed by: rscheff, tuexen, kib
Differential Revision: https://reviews.freebsd.org/D44362

2 months agosockets: remove unused KPIs to manipulate sockets
Gleb Smirnoff [Mon, 18 Mar 2024 15:50:30 +0000 (08:50 -0700)]
sockets: remove unused KPIs to manipulate sockets

These KPIs were added in dd0e6c383a9f0 and through 15 years had zero use.
They slightly remind what IfAPI does for struct ifnet.  But IfAPI does
that for the sake of large collection of NIC drivers not being aware of
struct ifnet.  For the sockets it is unclear what could be a large
collection of externally written kernel modules that need extensively use
sockets and not be aware of their internals at the same time. This
isolation of a structure knowledge requires a lot of work, and just
throwing in a few KPIs isn't helpful.

Reviewed by: kib, olce, markj
Differential Revision: https://reviews.freebsd.org/D44311

2 months agoinpcb: remove unused KPIs to manipulate inpcbs
Gleb Smirnoff [Mon, 18 Mar 2024 15:49:39 +0000 (08:49 -0700)]
inpcb: remove unused KPIs to manipulate inpcbs

These KPIs were added in 9d29c635daa69 and through 15 years had zero use.
They slightly remind what IfAPI does for struct ifnet.  But IfAPI does
that for the sake of large collection of NIC drivers not being aware of
struct ifnet.  For the inpcb it is unclear what could be a large
collection of externally written kernel modules that need extensively use
inpcb and not be aware of its internals at the same time. This isolation
of a structure knowledge requires a lot of work, and just throwing in a
few KPIs isn't helpful.

Reviewed by: kib, bz, markj
Differential Revision: https://reviews.freebsd.org/D44310

2 months agossh: remove deprecated client VersionAddendum
Ed Maste [Mon, 18 Mar 2024 14:15:27 +0000 (10:15 -0400)]
ssh: remove deprecated client VersionAddendum

Support for a client VersionAddendum was removed in bffe60ead024, but
the option was retained (as oDeprecated) as a transition aid.
Sufficient time has passed that it can be removed.

Sponsored by: The FreeBSD Foundation

2 months agocalendars: Add myself to the FreeBSD calendar
Gabriel M. Dutra [Sun, 17 Mar 2024 06:36:07 +0000 (03:36 -0300)]
calendars: Add myself to the FreeBSD calendar

Reported by: mckusick
Approved by: dbaio (mentor)
Differential Revision: https://reviews.freebsd.org/D44396

2 months agossh: Update to OpenSSH 9.7p1
Ed Maste [Mon, 18 Mar 2024 14:00:57 +0000 (10:00 -0400)]
ssh: Update to OpenSSH 9.7p1

This release contains mostly bugfixes.

It also makes support for the DSA signature algorithm a compile-time
option, with plans to disable it upstream later this year and remove
support entirely in 2025.

Full release notes at https://www.openssh.com/txt/release-9.7

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

2 months agolibbe: Fix some markup issues.
Dag-Erling Smørgrav [Mon, 18 Mar 2024 13:49:27 +0000 (14:49 +0100)]
libbe: Fix some markup issues.

MFC after: 3 days
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44407

2 months agobectl: Simplify command aliases.
Dag-Erling Smørgrav [Mon, 18 Mar 2024 13:49:23 +0000 (14:49 +0100)]
bectl: Simplify command aliases.

MFC after: 3 days
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44406

2 months agobectl: Use geopt() and drop mention of -?.
Dag-Erling Smørgrav [Mon, 18 Mar 2024 13:49:18 +0000 (14:49 +0100)]
bectl: Use geopt() and drop mention of -?.

MFC after: 3 days
PR: 272260
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D44405

2 months agoRename VM_LAST to more appropriate VM_GUEST_LAST
Mateusz Guzik [Mon, 18 Mar 2024 10:48:10 +0000 (10:48 +0000)]
Rename VM_LAST to more appropriate VM_GUEST_LAST

NFC

Sponsored by: Rubicon Communications, LLC ("Netgate")

2 months agofreebsd-update: mark "cron" as fetched as "fetch" itself
Michael Osipov [Thu, 14 Mar 2024 16:39:47 +0000 (17:39 +0100)]
freebsd-update: mark "cron" as fetched as "fetch" itself

The change in 33bd05c3187d7b49c80cf1b0132b405c105d0833 was incomplete
because it did not mark "cron" as ISFETCHED=1 although it performs the
same operations as "install", but less output and does not perform a
hard exit. Mark result as such and make "install" know that updates have
been fetched.

PR: 277699
Approved by: jrm (mentor), emaste, cperciva
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D44356

2 months agorelease: add basic cloudinit images
Baptiste Daroussin [Fri, 15 Mar 2024 08:43:20 +0000 (09:43 +0100)]
release: add basic cloudinit images

Provide both zfs and ufs images which a 1MB partition reserved for the
config drive wearing a GPT Label "config-drive" to allow consumer to
know where they should push the config drive on the provided image.

2 formats available: qcow2 and raw

This has been tested on OVHCloud baremetal via "bring your own image"
Also tested on openstack

Reviewed by: emaste
Sponsored by: OVHCloud
Differential Revision: https://reviews.freebsd.org/D44369

2 months agolib/msun: Fix tgammal(3) on IEEE 128-bit platforms
Mark Murray [Fri, 1 Mar 2024 15:53:58 +0000 (15:53 +0000)]
lib/msun: Fix tgammal(3) on IEEE 128-bit platforms

Undo the 80-bit "stub" implementation of the 128-bit long double
tgammal(3) function. The latest (as of Feb 2024) version of the
src/contrib/arm-optimised-routines library includes a standalone,
full 128-bit replacement. This needs a small bit of wrapping to
fit it in, but is otherwise a drop-in replacement.

Testing this is hard, as most maths packages blow up as soon as
their 80-bit floating-point capability is exceeded. With 128-bit
tgammal(), this is easy to do, and this is the range that needs to
be checked the most carefully. Using my copy of Maple, I was able
to check that the output was within a few ULP of the correct answer,
right up to the point of 128-bit over- and underflow. Additionally,
the results are no worse, and indeed better than the 80-bit version.

Steve Kargl sent me his libm testing code, which I used to verify
that the excpetions for certain key values were correct. Tested in
this case were +-Inf, +-NaN, +-1 and +-0.

Differential Revision: https://reviews.freebsd.org/D44168
Reviewed by: theraven, andrew, imp

2 months agoAdd myself (michaelo) to the calendar
Michael Osipov [Mon, 18 Mar 2024 09:46:02 +0000 (10:46 +0100)]
Add myself (michaelo) to the calendar

Reminded by: mckusick

2 months agofreebsd-update: Don't provide copiable commands in output
Michael Osipov [Tue, 30 Jan 2024 16:24:45 +0000 (17:24 +0100)]
freebsd-update: Don't provide copiable commands in output

Previously, freebsd-update provided ready-to-go commands for copying and
pasting into the terminal. This causes problems as soon as options are
used and not supplied again by the user, e.g., '-b' or '-d'.
Stop making them copiable and force the user to construct a valid command
line by himself to avoid failures.

PR: 276102
Approved by: jrm (mentor), emaste
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D43700

2 months agoAdd myself (jfree) to calendar.freebsd
Jake Freeland [Sun, 17 Mar 2024 22:41:26 +0000 (17:41 -0500)]
Add myself (jfree) to calendar.freebsd

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44400

2 months agoAdd myself (nc) to the calendar
Neel Chauhan [Sun, 17 Mar 2024 22:34:59 +0000 (15:34 -0700)]
Add myself (nc) to the calendar

Reminded by: mckusick

2 months agoVendor import of OpenSSH 9.7p1
Ed Maste [Sun, 17 Mar 2024 17:47:10 +0000 (13:47 -0400)]
Vendor import of OpenSSH 9.7p1

2 months agoAdd myself (vvd) to the calendar
Vladimir Druzenko [Sun, 17 Mar 2024 15:53:07 +0000 (18:53 +0300)]
Add myself (vvd) to the calendar

Reported by: mckusick
Approved by: mckusick

2 months agoAdd myself (zlei) to the calendar
Zhenlei Huang [Sun, 17 Mar 2024 15:07:53 +0000 (23:07 +0800)]
Add myself (zlei) to the calendar

Reminded by: mckusick

2 months agorelease: remove binutils package data
Ed Maste [Sun, 17 Mar 2024 12:09:31 +0000 (08:09 -0400)]
release: remove binutils package data

GDB was the final GNU binutils component included in the base system,
but was removed in 2020.  Nothing provides a pkgbase binutils package
any longer.

Fixes: 1c0ea326aa6d ("Retire obsolete GDB 6.1.1")
Sponsored by: The FreeBSD Foundation

2 months agoAdd myself (dsl) to the calendar.freebsd
Dmitry Salychev [Sun, 17 Mar 2024 10:09:52 +0000 (11:09 +0100)]
Add myself (dsl) to the calendar.freebsd

2 months agounbound: Vendor import 1.19.3
Cy Schubert [Sun, 17 Mar 2024 00:13:09 +0000 (18:13 -0600)]
unbound: Vendor import 1.19.3

Release notes at
https://www.nlnetlabs.nl/news/2024/Mar/14/unbound-1.19.3-released/

MFC after: 1 week

Merge commit '5a33598e88ad8fbc0affa74dee0a2d8cc4010fbc' into main

2 months agojail: add the -C flag to clean up after a partially removed jail
Jamie Gritton [Sun, 17 Mar 2024 05:11:14 +0000 (22:11 -0700)]
jail: add the -C flag to clean up after a partially removed jail

Differential Revision: https://reviews.freebsd.org/D42670

2 months agounbound: Vendor import 1.19.3
Cy Schubert [Sat, 16 Mar 2024 23:58:33 +0000 (17:58 -0600)]
unbound: Vendor import 1.19.3

Release notes at
https://www.nlnetlabs.nl/news/2024/Mar/14/unbound-1.19.3-released/

2 months agokldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15
Jessica Clarke [Sat, 16 Mar 2024 01:50:21 +0000 (01:50 +0000)]
kldxref: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15

macOS, like Linux, does not include an outer const qualifier for its
fts_open callback arguments, so -Wincompatible-function-pointer-types
also picks this up and breaks the build now Clang 16 makes it an error
by default. Extend the existing Linux support to fix this.

MFC after: 1 week

2 months agojevents: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15
Jessica Clarke [Sat, 16 Mar 2024 01:50:20 +0000 (01:50 +0000)]
jevents: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15

macOS, like Linux, does not include an outer const qualifier for its
fts_open callback arguments, so -Wincompatible-function-pointer-types
also picks this up and breaks the build now Clang 16 makes it an error
by default. Extend the existing Linux support to fix this.

MFC after: 1 week

2 months agomandoc: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15
Jessica Clarke [Sat, 16 Mar 2024 01:50:20 +0000 (01:50 +0000)]
mandoc: Fix bootstrapping on macOS with Clang 16 / Apple Clang 15

macOS, like Linux, does not include an outer const qualifier for its
fts_open callback arguments, so -Wincompatible-function-pointer-types
also picks this up and breaks the build now Clang 16 makes it an error
by default. Extend the existing Linux support to fix this.

MFC after: 1 week

2 months agonfsd: Add a sysctl to limit NFSv4.2 Copy RPC size
Rick Macklem [Sat, 16 Mar 2024 01:04:37 +0000 (18:04 -0700)]
nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size

NFSv4.2 supports a Copy operation, which avoids file data being
read to the client and then written back to the server, if both
input and output files are on the same NFSv4.2 mount for
copy_file_range(2).

Unfortunately, this Copy operation can take a long time under
certain circumstances.  If this occurs concurrently with a RPC
that requires an exclusive lock on the nfsd such as ExchangeID
done for a new mount, the result can be an nfsd "stall" until
the Copy completes.

This patch adds a sysctl that can be set to limit the size of
a Copy operation or, if set to 0, disable Copy operations.

The use of this sysctl and other ways to avoid Copy operations
taking too long will be documented in the nfsd.4 man page by
a separate commit.

MFC after: 2 weeks

2 months agoAdd another commit to .git-blame-ignore-revs
Brooks Davis [Wed, 13 Mar 2024 19:02:14 +0000 (19:02 +0000)]
Add another commit to .git-blame-ignore-revs

2 months agobsd.opts.mk: drop transtion aid for NO_* options
Brooks Davis [Fri, 15 Mar 2024 23:00:46 +0000 (23:00 +0000)]
bsd.opts.mk: drop transtion aid for NO_* options

Setting NO_CTF, NO_DEBUG_FILES, NO_INSTALLLIB, NO_MAN, NO_PROFILE,
and NO_WARNS was deprecated in 2014 and made an error prior to the
13.0.0 release in commit d3a5bf95f2013af081607abd91b5175f6eafa563.
Likewise, NO_WERROR was made an error prior to 13.0.0 in commit
7fa2f2a62f04f095e1e27ad55aa22a8f59b1df8f.

Remove this transition aid making these variables no-ops as setting them
will result in an error on all supported releases.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44345

2 months agolib{c,sys}: correctly expose sched_getcpu
Brooks Davis [Fri, 15 Mar 2024 22:52:07 +0000 (22:52 +0000)]
lib{c,sys}: correctly expose sched_getcpu

When moving the implementation, I failed to move the symbol entry.

Reviewed by: kib
Fixes: 84dd0c080ba5 libc: libc/gen/sched_getcpu_gen.c -> libsys/
Differential Revision: https://reviews.freebsd.org/D44112

2 months agodiff(1) add FreeBSD HISTORY
David E. O'Brien [Fri, 15 Mar 2024 22:26:12 +0000 (15:26 -0700)]
diff(1) add FreeBSD HISTORY

2 months agoSYSCTL(9): correct typo
David E. O'Brien [Fri, 15 Mar 2024 21:48:17 +0000 (14:48 -0700)]
SYSCTL(9): correct typo

2 months agostrnlen(3): add HISTORY
David E. O'Brien [Tue, 30 Jan 2024 20:55:20 +0000 (12:55 -0800)]
strnlen(3): add HISTORY

Complete 4b7f35db's HISTORY's train of thought

2 months agoifconfig.8: add missing "be"
PauAmma [Fri, 15 Mar 2024 20:59:35 +0000 (13:59 -0700)]
ifconfig.8: add missing "be"

Reviewed by: allanjude, bjk
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44022

2 months agovnet: remove unneeded backslash
Gleb Smirnoff [Fri, 15 Mar 2024 19:17:04 +0000 (12:17 -0700)]
vnet: remove unneeded backslash

Fixes: 430e0e409ce94246bb252cbdddef866fc69dea95

2 months agoarm64: Use void pointers for arguments to arm64_get_writable_addr
John Baldwin [Fri, 15 Mar 2024 17:10:24 +0000 (10:10 -0700)]
arm64: Use void pointers for arguments to arm64_get_writable_addr

No functional change, but this reduces diffs with CheriBSD downstream.

Reviewed by: andrew
Sponsored by: University of Cambridge, Google, Inc.
Differential Revision: https://reviews.freebsd.org/D44344

2 months agoarm busdma: Fix parameter types to exclusion_bounce_check
John Baldwin [Fri, 15 Mar 2024 17:10:07 +0000 (10:10 -0700)]
arm busdma: Fix parameter types to exclusion_bounce_check

These are bus addresses not CPU virtual addresses.

Reviewed by: andrew
Sponsored by: University of Cambridge, Google, Inc.
Differential Revision: https://reviews.freebsd.org/D44343

2 months agoarm64: Switch the address argument to cpu_*cache* to a pointer
John Baldwin [Fri, 15 Mar 2024 17:09:49 +0000 (10:09 -0700)]
arm64: Switch the address argument to cpu_*cache* to a pointer

No functional change, but this reduces diffs with CheriBSD downstream.

Reviewed by: andrew
Sponsored by: University of Cambridge, Google, Inc.
Differential Revision: https://reviews.freebsd.org/D44342

2 months agoarm64 gicv3: Use void pointers instead of vm_offset_t
John Baldwin [Fri, 15 Mar 2024 17:09:29 +0000 (10:09 -0700)]
arm64 gicv3: Use void pointers instead of vm_offset_t

This removes the need for local diffs in CheriBSD where vm_offset_t
is an address and not the same as a uintptr_t.  No functional change.

Reviewed by: imp, andrew
Sponsored by: University of Cambridge, Google, Inc.
Differential Revision: https://reviews.freebsd.org/D44341

2 months agonvmecontrol: Update the test for a valid firmare revision slot
John Baldwin [Fri, 15 Mar 2024 15:18:47 +0000 (08:18 -0700)]
nvmecontrol: Update the test for a valid firmare revision slot

Reported by: Coverity Scan
CID: 1539214
Fixes: 7485926e09a0 nvme: Firmware revisions in the firmware slot info logpage are ASCII strings

2 months agoshare/mk: Don't install only differing in case files on case insensitive fs
Warner Losh [Fri, 15 Mar 2024 04:33:33 +0000 (22:33 -0600)]
share/mk: Don't install only differing in case files on case insensitive fs

MacOS has case insensitive filesystems by default. So trying to link
between foo.X and FOO.X causes an error of some sort since we unlink the
old foo file destroying the newly installed foo due to the insensitive
nature of the FS. Assume that this is true on darwin/macos, though it is
only try by default there.

Perhaps install should grow smarts to know when this is the case, though
that looked much trickier. There didn't seem to be a flag to check. This
would be better, imho, since we could still write the METALOG data
correctly (images created from these metalogs are imperfect due to this
relatively issue...).

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D44347

2 months agoscsi: Stop installing both cam.4 and CAM.4
Warner Losh [Fri, 15 Mar 2024 04:33:25 +0000 (22:33 -0600)]
scsi: Stop installing both cam.4 and CAM.4

There's no real benefit from installing both cam.4 and CAM.4. The latter
is not an kernel option. This hits a pathological case in mlinks: we're
trying to link to another file and the second link fails on
case-preserving, case-insensitive filesystems, like on MacOS by default.
Since we don't need both, avoid this pathological case.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D44346

2 months agonuageinit: be case insentive when looking got labels
Baptiste Daroussin [Fri, 15 Mar 2024 14:15:03 +0000 (15:15 +0100)]
nuageinit: be case insentive when looking got labels

Reported by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>

2 months agopkgbase: remove packages which do not exists anymore
Baptiste Daroussin [Fri, 15 Mar 2024 13:50:40 +0000 (14:50 +0100)]
pkgbase: remove packages which do not exists anymore

2 months agonuageinit: add missing comment and descriptions for the package
Baptiste Daroussin [Fri, 15 Mar 2024 10:39:20 +0000 (11:39 +0100)]
nuageinit: add missing comment and descriptions for the package

2 months agomtree: add the directory for the nuageinit tests
Baptiste Daroussin [Fri, 15 Mar 2024 09:42:53 +0000 (10:42 +0100)]
mtree: add the directory for the nuageinit tests

2 months agosrc.conf(5): regen after addition of nuageinit
Baptiste Daroussin [Fri, 15 Mar 2024 08:21:17 +0000 (09:21 +0100)]
src.conf(5): regen after addition of nuageinit

2 months agonuageinit: add basic support for cloudinit.
Baptiste Daroussin [Wed, 23 Nov 2022 19:00:39 +0000 (20:00 +0100)]
nuageinit: add basic support for cloudinit.

this is a very early script to support cloudinit, it does not intend to
be a full featured cloudinit client, but will support a good enough
subset to be viable in most case.

It support nocloud and openstack config-2 config drive mode (iso9660 or
msdosfs)

The following features are currently supported:
- adding users (including a default user named 'freebsd' with password
  'freebsd'
- adding groups
- adding ssh keys
- static ipv4, static ipv6, dynamic ipv4

With this one is able to use the 'bring your own image feature" out of
box.

It is expected that the script grows the support of other clouds
supporting cloud-init, contributions are welcomed.

It is designed to be only run once via the firstboot mecanism.

Sponsored by: OVHCloud
MFC After: 3 weeks
Differential Revision: https://reviews.freebsd.org/D44141

2 months agoif_wg: use proper barriers around pkt->p_state
Kyle Evans [Fri, 15 Mar 2024 01:19:18 +0000 (20:19 -0500)]
if_wg: use proper barriers around pkt->p_state

Without appropriate load-synchronization to pair with store barriers in
wg_encrypt() and wg_decrypt(), the compiler and hardware are often
allowed to reorder these loads in wg_deliver_out() and wg_deliver_in()
such that we end up with a garbage or intermediate mbuf that we try to
pass on.  The issue is particularly prevalent with the weaker
memory models of !x86 platforms.

Switch from the big-hammer wmb() to more explicit acq/rel atomics to
both make it obvious what we're syncing up with, and to avoid somewhat
hefty fences on platforms that don't necessarily need this.

With this patch, my dual-iperf3 reproducer is dramatically more stable
than it is without on aarch64.

PR: 264115
MFC after: 1 week
Reviewed by: andrew, zlei
Differential Revision: https://reviews.freebsd.org/D44283

2 months agovfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE
Rick Macklem [Fri, 15 Mar 2024 00:35:32 +0000 (17:35 -0700)]
vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE

vn_generic_copy_file_range() tries to maintain holes
in file ranges being copied, using SEEK_DATA/SEEK_HOLE
where possible,

Unfortunately SEEK_DATA/SEEK_HOLE operations can take
a long time under certain circumstances.
Although it is not currently possible to know if a file has
unallocated data regions, the case where va_bytes >= va_size
is a strong hint that there are no unallocated data regions.
This hint does not work well for file systems doing compression,
but since it is only a hint, it is still useful.

For the case of va_bytes >= va_size, avoid doing SEEK_DATA/SEEK_HOLE.

Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D44509

2 months agoOpenBSM: Remove $FreeSBD$ tags from the configuration files
Gordon Bergling [Thu, 14 Mar 2024 06:02:44 +0000 (07:02 +0100)]
OpenBSM: Remove $FreeSBD$ tags from the configuration files

In e61dc6cac4001f1abfc48ee27e4e623c2c044fa8 the configuration
files were taken off the vendor branch to help mergemaster
comparing them.

Since mergemaster will be deprecated and $FreeBSD$ tags aren't
used anymore, remove them.

While here, sync audit_filter with upstream commit 5e6da76 (typo).

Reviewed by: imp
Approved by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D44318

2 months agoUpdate dirdeps.mk et al
Simon J. Gerraty [Thu, 14 Mar 2024 05:51:08 +0000 (22:51 -0700)]
Update dirdeps.mk et al

bmake-20240309 includes updates to dirdeps and meta mode makefiles

2 months agobmake Makefile.config
Simon J. Gerraty [Thu, 14 Mar 2024 05:08:29 +0000 (22:08 -0700)]
bmake Makefile.config

2 months agobmake updated config.h
Simon J. Gerraty [Thu, 14 Mar 2024 05:03:50 +0000 (22:03 -0700)]
bmake updated config.h

2 months agoMerge bmake-20240309
Simon J. Gerraty [Thu, 14 Mar 2024 04:54:47 +0000 (21:54 -0700)]
Merge bmake-20240309

Merge commit '368b06ce6b0135d6de13f7265f6dcbaeb791b3bb'

2 months agorack: don't define TCPOUTFLAGS
Gleb Smirnoff [Thu, 14 Mar 2024 04:07:59 +0000 (21:07 -0700)]
rack: don't define TCPOUTFLAGS

as the code doesn't use tcp_outflags.  This should fix gcc builds.

2 months agoNeed a blank line after brief summary
Simon J. Gerraty [Thu, 14 Mar 2024 02:16:35 +0000 (19:16 -0700)]
Need a blank line after brief summary

2 months agoImport bmake-20240309
Simon J. Gerraty [Thu, 14 Mar 2024 02:14:41 +0000 (19:14 -0700)]
Import bmake-20240309

Intersting/relevant changes since bmake-20240108

ChangeLog since bmake-20240108

2024-03-10  Simon J Gerraty  <sjg@beast.crufty.net>

* boot-strap: tests can take a long time; use a cookie to
skip them if bmake has not been updated since tests last
ran successfully.

* Makefile: Cygwin handles MANTARGET man

* unit-tests/Makefile: set BROKEN_TESTS for Cygwin

2024-03-09  Simon J Gerraty  <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240309
Merge with NetBSD make, pick up
o set .ERROR_EXIT to the exit status of .ERROR_TARGET
this allows a .ERROR target to ignore the case of
.ERROR_EXIT==6 which just means that the build actually
failed somewhere else.

2024-03-04  Simon J Gerraty  <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240303

* var.c: on IRIX we need both inttypes.h and stdint.h

2024-03-01  Simon J Gerraty  <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240301
Merge with NetBSD make, pick up
o export variables with value from target scope
when appropriate.

2024-02-12  Simon J Gerraty  <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240212
Merge with NetBSD make, pick up
o remove unneeded conditional-compilation toggles
INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB,
GMAKEEXPORT NO_REGEX and SUNSHCMD

* configure.in: add check for regex.h

* var.c: replace use of NO_REGEX with HAVE_REGEX_H

2024-02-04  Simon J Gerraty  <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240204
Merge with NetBSD make, pick up
o var.c: fix some lint (-dL) mode parsing issues

2024-02-02  Simon J Gerraty  <sjg@beast.crufty.net>

* VERSION: (_MAKE_VERSION): 20240202
Merge with NetBSD make, pick up
o make.1: note that arg to :D and :U can be empty
o var.c: $$ is not a parse error when .MAKE.SAVE_DOLLARS=no

mk/ChangeLog since bmake-20240108

2024-03-09  Simon J Gerraty  <sjg@beast.crufty.net>

* install-mk (MK_VERSION): 20240309

* meta.sys.mk: _metaError: if .ERROR_EXIT == 6, we do not
want to save the .ERROR_META_FILE

2024-02-20  Simon J Gerraty  <sjg@beast.crufty.net>

* install-mk (MK_VERSION): 20240220

* sys.dirdeps.mk, dirdeps-targets.mk, init.mk:
do not set .MAIN: dirdeps in sys.dirdeps.mk
dirdeps-targets.mk will do that for top-level builds
and init.mk will do it for others.
This allows a Makefile which has no need of 'dirdeps' to
set .MAIN for itself and "just work".

2024-02-18  Simon J Gerraty  <sjg@beast.crufty.net>

* bsd.*.mk: for makefiles that get a bsd. symlink,
use _this in  multiple inclusion tags since .PARSEFILE will not
DTRT when such a makefile is included directly by Makefile and
automatically (without bsd. prefix).
Since we cannot guarantee that our sys.mk will be used, we provide
a default _this in each makefile that gets a bsd. prefix such that
the value is the same regardless of bsd. prefix.

* subdir.mk: drop the !target guard on $SUBDIR_TARGETS

2024-02-12  Simon J Gerraty  <sjg@beast.crufty.net>

* install-mk (MK_VERSION): 20240212

* SPDX-License-Identifier: BSD-2-Clause
Add SPDX-License-Identifier to inidicate that I consider
my copyright on any of these makefiles equivalent to BSD-2-Clause

* autoconf.mk: allow for configure.ac as currently recommended

* subdir.mk: support @auto
which is replaced with each subdir that
has a [Mm]akefile.

* subdir.mk: include local.subdir.mk if it exists.

* subdir.mk: rework to handle .WAIT

2024-02-11  Simon J Gerraty  <sjg@beast.crufty.net>

* subdir.mk: _SUBDIRUSE report the target we are entering subdirs for.

2024-02-10  Simon J Gerraty  <sjg@beast.crufty.net>

* prog.mk: treat empty SRCS the same as undefined

2024-02-02  Simon J Gerraty  <sjg@beast.crufty.net>

* Avoid undefined errors in lint (-dL) mode

* man.mk (CMT2DOC_FLAGS): note that -mm does mdoc(7)

2024-01-28  Simon J Gerraty  <sjg@beast.crufty.net>

* install-mk (MK_VERSION): 20240128

* FILES: add ccm.dep.mk for C++ modules
add suffixes.mk for common location for generic SUFFIX rules.

* auto.dep.mk autodep.mk meta.autodep.mk: include ccm.dep.mk
replace OBJ_EXTENSIONS with OBJ_SUFFIXES

* autodep.mk: leverage CXX_SUFFIXES for __depsrcs
and update style (spaces around = etc)

* init.mk: add OBJS_SRCS_FILTER to filter SRCS when
setting OBJS

* meta2deps.py: handle multiple ./ embedded in path better.

2 months agohyperv/hn: Don't return error when setting media to autoselect
Mark Peek [Wed, 13 Mar 2024 23:53:07 +0000 (16:53 -0700)]
hyperv/hn: Don't return error when setting media to autoselect

Setting media to autoselect would always return EOPNOTSUPP.
As autoselect is the only valid media, this change now returns
success instead.

PR: 264253
Reported by: Prakash Shiva <prakashs0234@gmail.com>
Reviewed by: Dexuan Cui <decui microsoft com>, whu
Approved by: whu
MFC after: 2 weeks

2 months agonetinet/tcp_var.h: always define IS_FASTOPEN() for kernel compilation env
Konstantin Belousov [Wed, 13 Mar 2024 11:54:50 +0000 (13:54 +0200)]
netinet/tcp_var.h: always define IS_FASTOPEN() for kernel compilation env

and drop the definition for userspace (which matched TCP_RFC7413) since
it depends on presence of the kernel option.

Reviewed by: glebius, rscheff
Sponsored by: NVIDIA networking
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D44349

2 months agoBump __FreeBSD_version for bus resource API change
John Baldwin [Wed, 13 Mar 2024 22:14:23 +0000 (15:14 -0700)]
Bump __FreeBSD_version for bus resource API change

Specifically, the change to remove redundant rid and type arguments
from bus_* when passing an allocated struct resource.

2 months agonew-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE
John Baldwin [Wed, 13 Mar 2024 22:05:54 +0000 (15:05 -0700)]
new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE

The public bus_release_resource() API still accepts both forms, but
the internal kobj method no longer passes the arguments.
Implementations which need the rid or type now use rman_get_rid() or
rman_get_type() to fetch the value from the allocated resource.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44131

2 months agonew-bus: Remove the 'rid' and 'type' arguments from BUS_*ACTIVATE_RESOURCE
John Baldwin [Wed, 13 Mar 2024 22:05:54 +0000 (15:05 -0700)]
new-bus: Remove the 'rid' and 'type' arguments from BUS_*ACTIVATE_RESOURCE

The public bus_activate/deactivate_resource() API still accepts both
forms, but the internal kobj methods no longer pass the arguments.
Implementations which need the rid or type now use rman_get_rid() or
rman_get_type() to fetch the value from the allocated resource.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44130

2 months agonew-bus: Remove the 'type' argument from BUS_MAP/UNMAP_RESOURCE
John Baldwin [Wed, 13 Mar 2024 22:05:54 +0000 (15:05 -0700)]
new-bus: Remove the 'type' argument from BUS_MAP/UNMAP_RESOURCE

The public bus_map/unmap_resource() API still accepts both forms, but
the internal kobj methods no longer pass the argument.
Implementations which need the type now use rman_get_type() to fetch
the value from the allocated resource.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44129

2 months agonew-bus: Remove the 'type' argument from BUS_ADJUST_RESOURCE
John Baldwin [Wed, 13 Mar 2024 22:05:54 +0000 (15:05 -0700)]
new-bus: Remove the 'type' argument from BUS_ADJUST_RESOURCE

The public bus_adjust_resource() API still accepts both forms, but the
internal kobj method no longer passes the argument.  Implementations
which need the type now use rman_get_type() to fetch the value from
the allocated resource.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44128

2 months agopcib: Use rman_get_type in internal functions
John Baldwin [Wed, 13 Mar 2024 22:05:54 +0000 (15:05 -0700)]
pcib: Use rman_get_type in internal functions

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44127

2 months agobhnd: Use rman_get_type in bhndb_find_resource_limits
John Baldwin [Wed, 13 Mar 2024 22:05:53 +0000 (15:05 -0700)]
bhnd: Use rman_get_type in bhndb_find_resource_limits

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44126

2 months agoacpi: Use rman_get_type in acpi_is_resource_managed
John Baldwin [Wed, 13 Mar 2024 22:05:53 +0000 (15:05 -0700)]
acpi: Use rman_get_type in acpi_is_resource_managed

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44125

2 months agonew-bus: Introduce a simpler bus API for managing resources
John Baldwin [Wed, 13 Mar 2024 22:05:53 +0000 (15:05 -0700)]
new-bus: Introduce a simpler bus API for managing resources

Remove the 'type' and 'rid' arguments from the wrapper bus API
functions (e.g. bus_release_resource) that accept a struct resource.
The "new" versions extract the 'type' and/or 'rid' from the passed in
resource object via rman_get_type and rman_get_rid.

This commit adds the new API as functions with a _new suffix.  Wrapper
macros choose between the old and new functions based on the number of
arguments provided to the macro.  This commit does not change the ABI
but can be safely MFCd to older branches so long as older kernels use
rman_set_type when allocating resources.

Future commits will push the removal of these extraneous arguments
through the bus implementation.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44124

2 months agosys: Set the type of allocated bus resources
John Baldwin [Wed, 13 Mar 2024 22:05:53 +0000 (15:05 -0700)]
sys: Set the type of allocated bus resources

Use rman_set_type to set the type of allocated resources everywhere
rman_set_rid is currently called.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44123

2 months agorman: Add rman_get/set_type
John Baldwin [Wed, 13 Mar 2024 22:05:53 +0000 (15:05 -0700)]
rman: Add rman_get/set_type

This permits associating a resource type (e.g. SYS_RES_MEMORY) with a
struct resource.

I considered adding a new field to struct rman to store the type and
only providing rman_get_type as an accessor.  However, changing
'struct rman' is an ABI breakage.  I might revisit this in main, but
the current approach is MFC'able.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D44122

2 months agoktls: deep copy tls_enable struct for in-kernel tcp consumers
Richard Scheffenegger [Wed, 13 Mar 2024 11:35:51 +0000 (12:35 +0100)]
ktls: deep copy tls_enable struct for in-kernel tcp consumers

Doing a deep copy of the keys early allows users of the
tls_enable structure to assume kernel memory.
This enables the socket options to be set by kernel threads.

Reviewed By: #transport, tuexen, jhb, rrs
Sponsored by: NetApp, Inc.
X-NetApp-PR: #79
Differential Revision: https://reviews.freebsd.org/D44250

2 months agolibc/softfloat: we don't export _fp[gs]et* symbols
Brooks Davis [Wed, 13 Mar 2024 20:34:46 +0000 (20:34 +0000)]
libc/softfloat: we don't export _fp[gs]et* symbols

Remove attempts to use NetBSD __weak_alias macros to export _-prefixed
versions of various fp[sg]et* symbols under softfloat.  __weak_alias
isn't defined so we didn't export them and thus the Symbol.map entries
were wrong.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D44327

2 months agoRevert "new-bus: Disable assertions for rman mismatches for activate/deactivate"
John Baldwin [Wed, 13 Mar 2024 20:19:10 +0000 (13:19 -0700)]
Revert "new-bus: Disable assertions for rman mismatches for activate/deactivate"

With recent fixes to the ACPI and pcib drivers to translate mapping
requests of child resources into mappings of sub-ranges of parent
resources these assertions should now be true.

This reverts commit ed88eef140a1c3d57d546f409c216806dd3da809.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D43691

2 months agolib{c,sys}: fix powerpcspe build
Brooks Davis [Wed, 13 Mar 2024 20:07:02 +0000 (20:07 +0000)]
lib{c,sys}: fix powerpcspe build

libsys/powerpc/Symbol.sys.map was removed due to all symbols moving to
libc.

Fixes: d7847a8d3514 lib{c,sys}: return wrapped syscall APIs to libc

2 months agotcp: move struct tcp_ifcap declaration under _KERNEL
Gleb Smirnoff [Wed, 13 Mar 2024 19:14:18 +0000 (12:14 -0700)]
tcp: move struct tcp_ifcap declaration under _KERNEL

Reviewed by: rscheff, tuexen, kib
Differential Revision: https://reviews.freebsd.org/D44340

2 months agolib{c,sys}: return wrapped syscall APIs to libc
Brooks Davis [Wed, 13 Mar 2024 17:42:01 +0000 (17:42 +0000)]
lib{c,sys}: return wrapped syscall APIs to libc

These provide standard APIs, but are implemented using another system
call (e.g., pipe implemented in terms of pipe2) or are interposed by the
threading library to support cancelation.

After discussion with kib (see D44111), I've concluded that it is
better to keep most public interfaces in libc with as little
as possible in libsys.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44241

2 months agolibsys: make __libsys_interposing static
Brooks Davis [Wed, 13 Mar 2024 17:31:48 +0000 (17:31 +0000)]
libsys: make __libsys_interposing static

Access __libsys_interposing with __libc_interposing_slot() in all
cases to support a move of these wrappers back to libc.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44239

2 months agolibsys: don't expose sigwait wrapper
Brooks Davis [Wed, 13 Mar 2024 17:04:07 +0000 (17:04 +0000)]
libsys: don't expose sigwait wrapper

Long ago (e129c18a83ef) __sys_sigwait was wrapped to prevent sigwait()
from returning with EINTR.  Through a series of changes this wrapper
become __libc_sigwait which was internal to libc and used solely in the
interposing table.  To support a move of sigwait back to libc, move this
wrapper into libsys and rename it with an __libsys_ prefix.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44238

2 months agolibc: remove remnants of __fcntl_compat
Brooks Davis [Wed, 13 Mar 2024 16:52:49 +0000 (16:52 +0000)]
libc: remove remnants of __fcntl_compat

Reviewed by: kib
Fixes: 60b2e2d3ee82 libc: stop exposing __fcntl_compat
Differential Revision: https://reviews.freebsd.org/D44326

2 months agoLinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM
Bjoern A. Zeeb [Mon, 4 Mar 2024 23:03:58 +0000 (23:03 +0000)]
LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM

In case of LKPI_80211_HW_CRYPTO we convert from LinuxKPI cipher_suites
to net80211 ic_cryptocaps fields. For WLAN_CIPHER_SUITE_CCMP we
accidentally returned the bit number instead of the shifted value
which leads to ieee80211_crypto_newkey() setting IEEE80211_KEY_SWCRYPT,
which in turned lead to us trying to decode the frame again despite
HW had already done it.  This was found out of a discussion in D43634.

MFC after: 3 days
Reviewed by: cc, adrian
Differential Revision: https://reviews.freebsd.org/D44208

2 months agoath_hal/ar9300: allow JUPITER cards to read eeprom
Bjoern A. Zeeb [Tue, 12 Mar 2024 21:22:36 +0000 (21:22 +0000)]
ath_hal/ar9300: allow JUPITER cards to read eeprom

Summary:
In ar9300_eeprom_read_word() also allow JUPITER cards read the eeprom
instead of returning an error.  While this will not help all the
9462, 9485, 9565 OEM cards to work, it will make debugging of the
next steps a lot easier.

While here fix a typo in the error message if we do not get CAL.

PR: 255337
Tested by: John Nielsen (john jnielsen net)
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D44328

2 months agolibthr: restore _pthread_cond_timedwait
Brooks Davis [Tue, 12 Mar 2024 21:01:47 +0000 (21:01 +0000)]
libthr: restore _pthread_cond_timedwait

The function was renamed to _thr_cond_timedwait in commit 0ab1bfc7b28f
and for some reason did not get the same __weak_reference treatment as
other _pthread_cond symbols.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44244

2 months agoping: Fix protocol selection with NOINET6 kernel.
Dag-Erling Smørgrav [Tue, 12 Mar 2024 19:40:36 +0000 (20:40 +0100)]
ping: Fix protocol selection with NOINET6 kernel.

A missing else caused the correct resolver hint (AF_INET) to be
overwritten with AF_UNSPEC when the kernel supports IPv4 but not
IPv6.

MFC after: 3 days
PR: 277592
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D44304

2 months agosqlite3: Vendor import of sqlite3 3.45.1
Cy Schubert [Tue, 12 Mar 2024 14:01:21 +0000 (08:01 -0600)]
sqlite3: Vendor import of sqlite3 3.45.1

Release notes at https://www.sqlite.org/releaselog/3_45_1.html.

Obtained from:  https://www.sqlite.org/2024/sqlite-autoconf-3450100.tar.gz
MFC after: 1 week

Merge commit '1e59a00476c9801952e7319719fcdb095a0cd007' into main

2 months agomkimg(1): process non-seekable output gracefully
Eugene Grosbein [Tue, 12 Mar 2024 15:55:42 +0000 (22:55 +0700)]
mkimg(1): process non-seekable output gracefully

mkimg may make severe load only to fail in the end
if output is non-seekable pipe, socket or FIFO
unless output format is raw disk image.

Check it out and fail early. Make it clear in the manual.

MFC after: 1 week

2 months agoRELNOTES: Add awk update from 2 weeks ago.
Warner Losh [Tue, 12 Mar 2024 15:24:39 +0000 (09:24 -0600)]
RELNOTES: Add awk update from 2 weeks ago.

Sponsored by: Netflix

2 months agomd5.1: Fix the GNU mode example when using a digest file
Gordon Bergling [Tue, 12 Mar 2024 14:44:48 +0000 (15:44 +0100)]
md5.1: Fix the GNU mode example when using a digest file

The last example in the manpage md5(1) wants to demonstrate
GNU mode (md5sum), but uses BSD mode (md5) instead.

In GNU mode, the -c option does not compare against a hash string
passed as parameter. Instead, it expects a digest file,
as created under the name digest for /boot/loader.conf in
the example above.

PR: 276560
Reviewed by: mhorne, des
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44098

2 months agosqlite3: Vendor import of sqlite3 3.45.1
Cy Schubert [Tue, 12 Mar 2024 13:54:12 +0000 (07:54 -0600)]
sqlite3: Vendor import of sqlite3 3.45.1

Release notes at https://www.sqlite.org/releaselog/3_45_1.html.

Obtained from:  https://www.sqlite.org/2024/sqlite-autoconf-3450100.tar.gz