FreeBSD/src a913f3a. .cirrus.yml

Cirrus-CI: bump Clang versions to 16 and 17

Clang/LLVM 17 is currently the in-tree default compiler, so use it as
the default Cirrus-CI toolchain.  Clang/LLVM 18 is coming soon and needs
to be added here, but I ran into trouble with llvm18-lite package
availability so will look at that later.

Reviewed by:    dim (earlier), Jose Luis Duran
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44162

(cherry picked from commit 51c6bf0478bd331225121eb4a0a60510cc3920b1)
(cherry picked from commit adc61137fdf7b31b5f32354b970a8d824347b0de)
DeltaFile
+14-14.cirrus.yml
+14-141 files

FreeBSD/src 1a4e512sys/dev/acpica acpi_battery.c

acpi_battery: avoid divide-by-zero when no devices have capacity info

On laptops with builtin batteries, disconnecting the battery may show up
as a battery without any capacity information. (The theory is that one
is disconnecting the cells but the electronics identifying the battery
are still connected.) As a result, the loop over all batteries in
acpi_battery_get_battinfo results in total_lfcap == 0.

So, just check that total_lfcap is non-zero to avoid a division by zero
(triggerable by sysctl hw.acpi.battery).

Reported by:    Stefano Marinelli
Tested by:      Stefano Marinelli
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D44818

(cherry picked from commit 2e850b832f5d2adb9b230d191277d67c00caaab9)
(cherry picked from commit 788987e034b1c73d779a3aa179f79f672bbdb366)
DeltaFile
+8-1sys/dev/acpica/acpi_battery.c
+8-11 files

FreeBSD/src 71b2ba9usr.sbin/bhyve bhyve.8

bhyve.8: Document arm64 support

- Mention the options that are amd64-only.
- Provide a minimal example for booting an arm64 guest.

Reviewed by:    corvink
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D44738
DeltaFile
+34-6usr.sbin/bhyve/bhyve.8
+34-61 files

FreeBSD/src 63d5f8cshare/examples/bhyve vmrun.sh

vmrun.sh: Stop passing -A to bhyve

It's a no-op now.

Sponsored by:   Innovate UK
DeltaFile
+1-1share/examples/bhyve/vmrun.sh
+1-11 files

FreeBSD/src 1075847usr.sbin/bhyve bhyve.8, usr.sbin/bhyve/amd64 bhyverun_machdep.c

bhyve.8: Remove mention of the -A flag

It is a no-op on amd64 now and is not implemented on arm64, so let's
remove mention of it altogether so as to reduce confusion for arm64
users.

Reviewed by:    corvink, jhb
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D44737
DeltaFile
+5-8usr.sbin/bhyve/bhyve.8
+1-2usr.sbin/bhyve/amd64/bhyverun_machdep.c
+6-102 files

FreeBSD/src 4b79491lib/geom/eli geli.8

geli.8: add some notes regarding performance tuning

MFC after:      1 week
Sponsored by:   Axcient
Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D44908
DeltaFile
+41-1lib/geom/eli/geli.8
+41-11 files

FreeBSD/src 8ef2c02sys/kern subr_busdma_bufalloc.c

busdma: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+0-4sys/kern/subr_busdma_bufalloc.c
+0-41 files

FreeBSD/src 1e607a0sys/kern kern_khelp.c

khelp: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+0-4sys/kern/kern_khelp.c
+0-41 files

FreeBSD/src 78c51dbsys/fs/udf udf_vfsops.c

udf: uma_zcreate() does not fail

While here remove an old comment regarding preallocation; it appears to
refer to an optimization that is almost certainly irrelevant at this
point.

No functional change intended.

MFC after:      1 week
DeltaFile
+0-11sys/fs/udf/udf_vfsops.c
+0-111 files

FreeBSD/src b6a0ed7sys/dev/wg if_wg.c wg_cookie.c

wg: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+3-3sys/dev/wg/if_wg.c
+2-3sys/dev/wg/wg_cookie.c
+5-62 files

FreeBSD/src 9640649sys/dev/dpaa if_dtsec_rm.c

dpaa: uma_zcreate() does not fail

No functional change intended.

MFC after:      1 week
DeltaFile
+0-4sys/dev/dpaa/if_dtsec_rm.c
+0-41 files

FreeBSD/src bb2ab7asys/netgraph ng_pipe.c

ng_pipe: Remove node when all hooks are disconnected

This is the behavior described in the man page.

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

Discussed with: glebius
Reviewed by:    markj
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+7-0sys/netgraph/ng_pipe.c
+7-01 files

FreeBSD/src a3ecf8csys/netgraph ng_pipe.c

ng_pipe: Replace deprecated random() with prng32_bounded()

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

MFC after:      2 weeks
Reviewed by:    markj
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+3-2sys/netgraph/ng_pipe.c
+3-21 files

FreeBSD/src d44c780sys/netgraph ng_pipe.c

ng_pipe: Do not panic when memory allocations fail

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

Reviewed by:    markj
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+30-15sys/netgraph/ng_pipe.c
+30-151 files

FreeBSD/src 8512311sys/netgraph ng_pipe.c

ng_pipe: Fix whitespace

Signed-off-by: Martin Vahlensieck <git at academicsolutions.ch>

Reviewed by:    markj
MFC after:      2 weeks
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
DeltaFile
+8-8sys/netgraph/ng_pipe.c
+8-81 files

FreeBSD/src b8e171bshare/misc organization.dot

organization.dot: Fix typos

MFC after:      3 days

(cherry picked from commit 806bd5e00658e66a5625397335cafa4748112f14)
DeltaFile
+2-2share/misc/organization.dot
+2-21 files

FreeBSD/src d7deb68sys/arm/arm gic.c

arm: Fix a typo in a KASSERT message

- s/resoure/resource/

(cherry picked from commit 178cf4b9db4bb6726e845b10923788cf4e7a5ef0)
DeltaFile
+1-1sys/arm/arm/gic.c
+1-11 files

FreeBSD/src d94c239sys/arm/freescale/vybrid vf_sai.c

freescale: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 26f6c148bce2d6734a07ea621616724f1e76e4fd)
DeltaFile
+1-1sys/arm/freescale/vybrid/vf_sai.c
+1-11 files

FreeBSD/src 87f5c26sys/geom geom_subr.c

geom(4): Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit c0a01ee83d3d4749ac9e7e46d8d47b991c65537f)
DeltaFile
+1-1sys/geom/geom_subr.c
+1-11 files

FreeBSD/src 656ec7bsys/kern uipc_domain.c

uipc_domain: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 9576fc16ca6cb360e085735dfaf891ae6d7f6181)
DeltaFile
+1-1sys/kern/uipc_domain.c
+1-11 files

FreeBSD/src e03c9c3sys/arm/arm gic.c

arm: Fix a typo in a KASSERT message

- s/resoure/resource/

(cherry picked from commit 178cf4b9db4bb6726e845b10923788cf4e7a5ef0)
DeltaFile
+1-1sys/arm/arm/gic.c
+1-11 files

FreeBSD/src c64f93bsys/arm/freescale/vybrid vf_sai.c

freescale: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 26f6c148bce2d6734a07ea621616724f1e76e4fd)
DeltaFile
+1-1sys/arm/freescale/vybrid/vf_sai.c
+1-11 files

FreeBSD/src 67e24edsys/geom geom_subr.c

geom(4): Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit c0a01ee83d3d4749ac9e7e46d8d47b991c65537f)
DeltaFile
+1-1sys/geom/geom_subr.c
+1-11 files

FreeBSD/src 64dfe0asys/kern uipc_domain.c

uipc_domain: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 9576fc16ca6cb360e085735dfaf891ae6d7f6181)
DeltaFile
+1-1sys/kern/uipc_domain.c
+1-11 files

FreeBSD/src a6ee6b6sys/arm/arm gic.c

arm: Fix a typo in a KASSERT message

- s/resoure/resource/

(cherry picked from commit 178cf4b9db4bb6726e845b10923788cf4e7a5ef0)
DeltaFile
+1-1sys/arm/arm/gic.c
+1-11 files

FreeBSD/src 87cf198sys/arm/freescale/vybrid vf_sai.c

freescale: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 26f6c148bce2d6734a07ea621616724f1e76e4fd)
DeltaFile
+1-1sys/arm/freescale/vybrid/vf_sai.c
+1-11 files

FreeBSD/src 956a99bsys/geom geom_subr.c

geom(4): Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit c0a01ee83d3d4749ac9e7e46d8d47b991c65537f)
DeltaFile
+1-1sys/geom/geom_subr.c
+1-11 files

FreeBSD/src 3b83e01sys/kern uipc_domain.c

uipc_domain: Fix a typo in a source code comment

- s/cant/can't/

(cherry picked from commit 9576fc16ca6cb360e085735dfaf891ae6d7f6181)
DeltaFile
+1-1sys/kern/uipc_domain.c
+1-11 files

FreeBSD/src a0d7d68crypto/heimdal/lib/hdb hdb-ldap.c

heimdal: Fix compiling hdb ldap as a module

Fix build when WITH_OPENLDAP defined.

PR:             278430
Obtained from:  Upstream c1c7da7f79
DeltaFile
+6-3crypto/heimdal/lib/hdb/hdb-ldap.c
+6-31 files

FreeBSD/src 9e248b7libexec/rc rc.conf, libexec/rc/rc.d kdc

kdc: Add restart option

Add a new kdc_restart rc variable that manages kdc (or krb5kdc) under
daemon(8). This automatically restarts the kdc should it fail, i.e.
when it's configured to use LDAP as a backend and cannot connect to its
LDAP directory.

Set kdc_restart="YES" to auto restart kdc on abnormal termination.

Set kdc_restart_delay="N" to the number of seconds to delay before
restarting the kdc. The daemon(8) default seconds applies when not set.

Reported by:            Lexi Winter <lexi.freebsd at le-fay.org>
PR:                     278395
Differential Revision:  https://reviews.freebsd.org/D44898
DeltaFile
+27-2libexec/rc/rc.d/kdc
+2-0libexec/rc/rc.conf
+29-22 files