]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 months agocpuset(8): move to /bin/
Enji Cooper [Thu, 11 May 2023 05:54:51 +0000 (22:54 -0700)]
cpuset(8): move to /bin/

Summary:
This change moves /usr/bin/cpuset to /bin/cpuset so it is more readily
available on hosts where the /usr partition might not be mounted at the
time / has been mounted.

Remove some complexity from rc.subr(8) since /bin is assumed to always
be present if/when / is mounted.

MFC after: 2 weeks
MFC with: 0661f93892a2271d552379af

Test Plan:
- Test out rc.subr change.
- Confirm that the installation logic does what's needed.

Relnotes: yes (moving cpuset may impact strict file permissions/mode checking)
Reviewers: kevans
Subscribers: imp
Differential Revision: https://reviews.freebsd.org/D40057

10 months agoOpenSSL: regen opensslv.h for OpenSSL 3.0.10
Jung-uk Kim [Fri, 11 Aug 2023 00:17:23 +0000 (20:17 -0400)]
OpenSSL: regen opensslv.h for OpenSSL 3.0.10

10 months agorelease: update main to ALPHA1
Glen Barber [Fri, 11 Aug 2023 00:02:11 +0000 (20:02 -0400)]
release: update main to ALPHA1

Update CURRENT to ALPHA1 as part of the 14.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: GoFundMe https://www.gofundme.com/f/gjbbsd
Sponsored by: PayPal https://paypal.me/gjbbsd

10 months agoMakefile.libcompat: Fix DTRACE variable
Jessica Clarke [Thu, 10 Aug 2023 23:48:01 +0000 (00:48 +0100)]
Makefile.libcompat: Fix DTRACE variable

Back when Makefile.lib32 was turned into Makefile.libcompat, a typo was
introduced; it should have been LIBCOMPATDTRACE, but instead gained a
dollar sign in it as LIB$COMPATDTRACE (and with COMPATDTRACE not being
defined, was equivalent to ${LIB:U${DTRACE}}). This then meant it was
not converted to LIB${_LIBCOMPAT}DTRACE in 91d7edd549f5 ("Generalise
libcompat to be a list rather than a single option") and instead left
broken. Belatedly fix this long-standing seemingly-inconsequential bug.

Fixes: dba75e9fa5a9 ("Move Makefile.lib32 to Makefile.libcompat and generalize it.")

10 months agoUnbreak usr.bin/dc with OpenSSL 3
Enji Cooper [Fri, 11 Aug 2023 03:36:48 +0000 (20:36 -0700)]
Unbreak usr.bin/dc with OpenSSL 3

OpenSSL's BN_zero API has had a void return value since 1.1.x: chase the
change to unbreak the build on OpenSSL 3.x with MK_GH_BC == no.

MFC after: 2 weeks
Reviewed by: emaste, kevans
Differential Revision: https://reviews.freebsd.org/D41410

10 months agomountd: Fix type of signal variable
Rick Macklem [Thu, 10 Aug 2023 19:50:35 +0000 (12:50 -0700)]
mountd: Fix type of signal variable

Without this patch got_sighup(), which is the SIGHUP handler,
would set a variable of type int.

This would appear to be incorrect, although it has worked reliably.
This patch changes the type to "_Atomic(int)", which appears
to be all that is needed to correct it.

Reported by: pen@lysator.lui.se
Reviewed by: theraven, karels (prev version), kevans (prev version)
Differential Revision: https://reviews.freebsd.org/D41265

10 months agonetlink: Align allocations on __max_align_t, not uint64_t.
John Baldwin [Thu, 10 Aug 2023 18:12:52 +0000 (11:12 -0700)]
netlink: Align allocations on __max_align_t, not uint64_t.

uint64_t is not sufficient alignment for allocators on all platforms.
On a CHERI platform pointers require 16 byte alignment, but also if a
type contained a uint128_t or long double it would not be aligned
correctly either.  C11 added max_align_t precisely to provide a
portable type for allocators to use.

Reviewed by: melifaro
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D41301

10 months agokern: osd: avoid dereferencing freed slots
Kyle Evans [Thu, 10 Aug 2023 17:32:33 +0000 (12:32 -0500)]
kern: osd: avoid dereferencing freed slots

If a slot is freed that isn't the last one, we'll set its destructor to
NULL to indicate that it's been freed and leave a hole in the slot map.
Check osd_destructors in osd_call() to avoid dereferencing a method that
is potentially from a module that's been unloaded.

This scenario would most commonly surface when two modules are loaded
that osd_register(), then the earlier one deregisters and an osd_call()
is made after the fact.  In the specific report that triggered the
investigation, kldload if_wg -> kldload linux* -> kldunload if_wg ->
destroy a jail -> panic.

Noted in the review, but left for follow-up work, is that the realloc
that may happen in osd_deregister() should likely go away and the
assumption that reallocating to a smaller size cannot fail is actually
not correct.

Reported by: dim
Reviewed by: markj, jamie
Differential Revision: https://reviews.freebsd.org/D41404

10 months agoUFS: panic rather than forcibly unmount the root fs
Chuck Silvers [Thu, 10 Aug 2023 16:55:47 +0000 (09:55 -0700)]
UFS: panic rather than forcibly unmount the root fs

If the root fs is forcibly unmounted then basically every process
will die with a SEGV as soon as it tries to run again because libc.so
is gone, which leaves the system basically hung.  It seems better
to just panic instead, so let's do that.

Requested-by: karels
Reviewed-by: imp, mckusick, karels
Sponsored-by: Netflix
Differential Revision: https://reviews.freebsd.org/D41387

10 months agoOpenSSL: update to 3.0.10
Pierre Pronchery [Thu, 10 Aug 2023 16:07:32 +0000 (12:07 -0400)]
OpenSSL: update to 3.0.10

OpenSSL 3.0.10 addresses:
- CVE-2023-3817
- CVE-2023-3446
- CVE-2023-2975

(Note that the vendor branch commit incorrectly referenced 3.0.9.)

Relnotes: Yes
Pull request: https://github.com/freebsd/freebsd-src/pull/808
Sponsored by: The FreeBSD Foundation

10 months agoixl.4: update link to intel-nvmupdate ports
Alan Somers [Wed, 2 Aug 2023 00:04:12 +0000 (18:04 -0600)]
ixl.4: update link to intel-nvmupdate ports

MFC after: 2 weeks
Sponsored by: Axcient
Reviewed by: pkubaj
Differential Revision: https://reviews.freebsd.org/D41288

10 months agotcopy: Pick up max blocksize from sysctl kern.maxphys
Poul-Henning Kamp [Thu, 10 Aug 2023 14:56:53 +0000 (14:56 +0000)]
tcopy: Pick up max blocksize from sysctl kern.maxphys

10 months agoigc: sync srrctl buffer sizing with e1000
Kevin Bowling [Thu, 10 Aug 2023 14:41:21 +0000 (07:41 -0700)]
igc: sync srrctl buffer sizing with e1000

Approved by: grehan
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31493

10 months agoix: Fix accessing wrong register
Piotr Pietruszewski [Thu, 10 Aug 2023 13:43:21 +0000 (15:43 +0200)]
ix: Fix accessing wrong register

Use IXGBE_GRC_BY_MAC(hw) macro instead of IXGBE_GRC as IXGBE_GRC's
address is different on Denverton platform.

This patch is part of change made in NetBSD kernel
by Masanobu Saitoh, NetBSD maintainer.

Differential Revision: https://reviews.freebsd.org/D19175
Approved by: erj

10 months agozfs: cherry-pick fix from openzfs
Martin Matuska [Thu, 10 Aug 2023 07:59:39 +0000 (09:59 +0200)]
zfs: cherry-pick fix from openzfs

Vendor PR:
  #15103 Remove zl_issuer_lock from zil_suspend()

Obtained from: OpenZFS
OpenZFS commit: 2848de11e516a2ef2e6baa574a60d77a6fb47023

Note: full vendor imports will continue when stable/14 has been branched

10 months agozfs: cherry-pick fix from openzfs
Martin Matuska [Thu, 10 Aug 2023 07:55:42 +0000 (09:55 +0200)]
zfs: cherry-pick fix from openzfs

Vendor PR:
  #15080 ZIL: Fix config lock deadlock

Obtained from: OpenZFS
OpenZFS commit: 2cb992a99ccadb78d97049b40bd442eb4fdc549d

Note: full vendor imports will continue when stable/14 has been branched

10 months agobhyve: emulate TPM passthru by accessing /dev/tpmX
Corvin Köhne [Mon, 29 Aug 2022 10:10:45 +0000 (12:10 +0200)]
bhyve: emulate TPM passthru by accessing /dev/tpmX

To send commands to the TPM device, bhyve can use the host TPM driver by
reading and writing from /dev/tpmX. Using this approach, only the host
TPM driver has to detect and interact with the physical TPM interface.
This simplifies bhyve's code much. As the host TPM driver has to
interact with the TPM regardless of bhyve making use of it or not, makes
it a good approach.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D40460

10 months agobhyve: add emulation for CRB register of TPM devices
Corvin Köhne [Mon, 29 Aug 2022 10:10:44 +0000 (12:10 +0200)]
bhyve: add emulation for CRB register of TPM devices

Trap accesses to the CRB MMIO range and emulate them properly.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D40459

10 months agosdhci: Add support for disable-wp
Emmanuel Vadot [Thu, 29 Sep 2022 11:58:08 +0000 (13:58 +0200)]
sdhci: Add support for disable-wp

Some platform needs it when the WP pin is broken.

Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: 2 weeks

10 months agosdhci: xilinx: Add compatible and quirks for ZynqMP
Emmanuel Vadot [Thu, 29 Sep 2022 08:49:05 +0000 (10:49 +0200)]
sdhci: xilinx: Add compatible and quirks for ZynqMP

Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: 2 weeks

10 months agoarm64: xilinx: gpio: Add support for ZynqMP SoC
Emmanuel Vadot [Thu, 29 Sep 2022 08:41:24 +0000 (10:41 +0200)]
arm64: xilinx: gpio: Add support for ZynqMP SoC

Add support for the gpio controller found in the ZynqMP SoC.
The registers are the same as the Zynq 7000, just the number of
banks/pins per banks differs.

Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: 2 weeks

10 months agoarm: xilinx: gpio: Make the driver more generic
Emmanuel Vadot [Thu, 29 Sep 2022 08:05:19 +0000 (10:05 +0200)]
arm: xilinx: gpio: Make the driver more generic

All other Zynq SoCs have the same GPIO controller, the only difference
is the number of banks/pins so make this driver more generic to add
other SoCs more easily.
No functional changes intended.

Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: 2 weeks

10 months agoUpdate comment describing struct vm_map
Konstantin Belousov [Thu, 10 Aug 2023 05:01:39 +0000 (08:01 +0300)]
Update comment describing struct vm_map

There is no list connecting all entries any more, and correspondingly no
order on the list entries.

Reviewed by: dougm
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D41405

10 months agofusefs tests: handle -Wdeprecated* issues with GoogleTest 1.14.0
Enji Cooper [Tue, 8 Aug 2023 13:42:07 +0000 (06:42 -0700)]
fusefs tests: handle -Wdeprecated* issues with GoogleTest 1.14.0

`INSTANTIATE_TEST_CASE_P` has been replaced with `INSTANTIATE_TEST_SUITE_P`.
Replace all uses of the former macro with the latter macro.

While here, address the fact that the latter macro doesn't permit some
of the constructions that the former macro did, e.g., empty parameters,
etc.

MFC after: 2 weeks
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D41398

10 months agoImport GoogleTest 1.14.0
Enji Cooper [Tue, 8 Aug 2023 06:17:32 +0000 (23:17 -0700)]
Import GoogleTest 1.14.0

GoogleTest 1.14.0 now requires C++14 to build. Change
`googletest.test.inc.mk` to reflect this requirement.

Adjust the build integration logic to handle the new version of
GoogleTest (add/remove headers/sources as needed).

Tighten down warnings via `CXXFLAGS.clang` instead of ignoring all
warnings. Some new warnings snuck in after I did my last round of fix
submissions upstream.

Also address some overlinking added in the previous version import by
removing superfluous libraries.

===============================

Expect WhenDynamicCastToTest.AmbiguousCast to fail

This change reapplies the expected failure from 1.10.0.

Ref: https://github.com/google/googletest/issues/2172

MFC after: 2 weeks
Reviewed by: asomers, emaste
Differential Revision: https://reviews.freebsd.org/D41399

Merge commit '8ef491440fcaec96f899d73e08873426c78583a4' into googletest-v1.14.0-import

10 months agoixgbe: Add support for 82599 LS
Kevin Bowling [Thu, 10 Aug 2023 01:30:15 +0000 (18:30 -0700)]
ixgbe: Add support for 82599 LS

Obtained from: DPDK 549ccd3dc01539e060597b503f2b65b272de3347
MFC after: 1 week

10 months agoixgbe: Check for fw_recovery
Kevin Bowling [Thu, 10 Aug 2023 00:31:49 +0000 (17:31 -0700)]
ixgbe: Check for fw_recovery

The x550 uses an upgradable flash code.  Check for recovery condition
like other flashable intel cards do in case of fw errors.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31869

10 months agoLinuxKPI: add page pool skeleton
Bjoern A. Zeeb [Tue, 23 May 2023 23:15:57 +0000 (23:15 +0000)]
LinuxKPI: add page pool skeleton

Add the page pool skeleton based on a wireless driver.  We have to
sort out some struct page problems first before we can start
implementing this but that should happen independent of all other
changes.

MFC after: 10 days
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D40250

10 months agoRemove a partial UFS/FFS snapshot if it fails to build successfully.
Kirk McKusick [Wed, 9 Aug 2023 23:43:41 +0000 (16:43 -0700)]
Remove a partial UFS/FFS snapshot if it fails to build successfully.

When taking a UFS/FFS snapshot, it may not succeed for example if the
filesystem is too full to hold it. When a snapshot is unable to be
successfully taken, the partial snapshot should be removed.

Reported-by: Peter Holm
Tested-by: Peter Holm
MFC-after:    1 week
Sponsored-by: The FreeBSD Foundation
10 months agoEC2: Build and upload AMIs for both UFS and ZFS
Colin Percival [Mon, 7 Aug 2023 01:56:18 +0000 (18:56 -0700)]
EC2: Build and upload AMIs for both UFS and ZFS

The pre-existing "ec2ami" target builds and uploads a single AMI
(with filesystem determined by ${VMFS}) as before; a new "ec2amis"
target does both UFS and ZFS.

Reviewed by: gjb
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D41343

10 months agoEC2: Respect ${VMFS}
Colin Percival [Mon, 7 Aug 2023 01:55:37 +0000 (18:55 -0700)]
EC2: Respect ${VMFS}

Prior to this commit, ${VMFS} controlled the filesystem used for
building EC2 images, but the AMIs were recorded with SSM Parameter
paths which indicated that they were UFS.

This commit (a) uses ${VMFS} in the SSM parameter path instead of
a hard-coded "ufs", and (b) adds the filesystem to the AMI name.

Reviewed by: gjb
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D41342

10 months agorelease: Build cloudware with multiple FS types
Colin Percival [Mon, 7 Aug 2023 01:54:39 +0000 (18:54 -0700)]
release: Build cloudware with multiple FS types

New ${CW}_FSLIST settings control the list of filesystem types with which
each cloudware image will be built; currently these are all set to "ufs",
i.e. no change from previous.

The cloudware images have their filesystem type as part of their file
name; for backwards compatibilty the ${VMFS} image is linked to the
previously used file name.  This compatibility can be removed once all
the cloudware uploading/publishing code has been updated to use the new
image names (possibly more than one of them).

Reviewed by: gjb
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D41341

10 months agorelease: Build UFS and ZFS VM images
Colin Percival [Mon, 7 Aug 2023 01:53:16 +0000 (18:53 -0700)]
release: Build UFS and ZFS VM images

A new option 'VMFSLIST' controls the list of filesystems for which VM
images will be built; the default is to build both UFS and ZFS.

The vm-install target installs these as ${OSRELEASE}-${FS}.${FORMAT},
e.g. FreeBSD-14.0-CURRENT-amd64-zfs.vmdk.  For backwards compatibility,
the ${VMFS} image is linked to the previously used ${OSRELEASE}.${FORMAT}
name.

Cloudware building will be updated in a later commit.

Reviewed by: gjb
Reviewed by: emaste, markj (previous version)
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D41340

10 months agomsi: report error for attempt to use APIC ID > 255
Ed Maste [Tue, 8 Aug 2023 23:42:09 +0000 (19:42 -0400)]
msi: report error for attempt to use APIC ID > 255

The MSI/MSI-X address includes 8 bits to encode the Destination ID.
Previously IDs over 255 overlapped with the fixed portion of the
address, resulting in an invalid value (and a nonfunctional interrupt).

Instead, print an error message and return EINVAL.  The interrupt will
still not work, but the user will have a clue as to why.

PR: 273022
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41395

10 months agoe1000: Enable TSO on 82574
Kevin Bowling [Wed, 9 Aug 2023 17:18:37 +0000 (10:18 -0700)]
e1000: Enable TSO on 82574

Further testing indicates something wrong with particular reciever,
enabling TSO 82574 for wider testing.

Tested by: karels
MFC after: 3 months

10 months agoarswitch(4): Remove support for AR{7240,9340} found in MIPS SoCs only
Marius Strobl [Tue, 8 Aug 2023 20:35:02 +0000 (22:35 +0200)]
arswitch(4): Remove support for AR{7240,9340} found in MIPS SoCs only

With the general removal of MIPS support there's no longer a need to
support these integrated switches.

Approved by: adrian
Differential Revision: https://reviews.freebsd.org/D41394

10 months agoath(4): Remove MIPS SoC build glue and AR9130 from FreeBSD HAL
Marius Strobl [Mon, 7 Aug 2023 19:16:11 +0000 (21:16 +0200)]
ath(4): Remove MIPS SoC build glue and AR9130 from FreeBSD HAL

All of these are obsoleted by the general removal of MIPS support.

Actually, corresponding to the removed AH_SUPPORT_x, there is more
superfluous support sprinkled across the HAL source. However, that
code is left in place for now in order to ease a sync to NetBSD.

Reviewed by: emaste (w/ man page fix)
Approved by: adrian
Differential Revision: https://reviews.freebsd.org/D41355

10 months agodts: Bump the freebsd branding version to 6.4
Emmanuel Vadot [Wed, 9 Aug 2023 13:36:55 +0000 (15:36 +0200)]
dts: Bump the freebsd branding version to 6.4

Sponsored by: Beckhoff Automation GmbH & Co. KG

10 months agoImport device-tree files from Linux 6.4
Emmanuel Vadot [Wed, 9 Aug 2023 13:32:31 +0000 (15:32 +0200)]
Import device-tree files from Linux 6.4

Sponsored by:   Beckhoff Automation GmbH & Co. KG

10 months agoImport device-tree files from Linux 6.4
Emmanuel Vadot [Wed, 9 Aug 2023 13:31:58 +0000 (15:31 +0200)]
Import device-tree files from Linux 6.4

10 months agoImport device-tree files from Linux 6.3
Emmanuel Vadot [Wed, 9 Aug 2023 13:30:56 +0000 (15:30 +0200)]
Import device-tree files from Linux 6.3

Sponsored by:   Beckhoff Automation GmbH & Co. KG

10 months agoImport device-tree files from Linux 6.3
Emmanuel Vadot [Wed, 9 Aug 2023 13:30:20 +0000 (15:30 +0200)]
Import device-tree files from Linux 6.3

10 months agoImport device-tree files from Linux 6.2
Emmanuel Vadot [Wed, 9 Aug 2023 13:29:14 +0000 (15:29 +0200)]
Import device-tree files from Linux 6.2

Sponsored by:   Beckhoff Automation GmbH & Co. KG

10 months agoImport device-tree files from Linux 6.2
Emmanuel Vadot [Wed, 9 Aug 2023 13:28:30 +0000 (15:28 +0200)]
Import device-tree files from Linux 6.2

10 months agoImport device-tree files from Linux 6.1
Emmanuel Vadot [Wed, 9 Aug 2023 13:27:37 +0000 (15:27 +0200)]
Import device-tree files from Linux 6.1

Sponsored by:   Beckhoff Automation GmbH & Co. KG

10 months agoImport device-tree files from Linux 6.1
Emmanuel Vadot [Wed, 9 Aug 2023 13:06:51 +0000 (15:06 +0200)]
Import device-tree files from Linux 6.1

10 months agoman4: Remove stale MLINK to ath_pci.4
Marius Strobl [Wed, 9 Aug 2023 12:35:25 +0000 (14:35 +0200)]
man4: Remove stale MLINK to ath_pci.4

Reported by: Jose Luis Duran
Fixes: 37c8ee8847fa ath(4): Remove MIPS AHB frontend and join PCI one w/ main support again

10 months agovfs: retire NAMEI_DIAGNOSTIC
Mateusz Guzik [Wed, 9 Aug 2023 10:37:13 +0000 (10:37 +0000)]
vfs: retire NAMEI_DIAGNOSTIC

It is too spammy and information-deficient for practical use.

Also see https://reviews.freebsd.org/D41207

10 months agoarm64: rockchip: rk_i2c: Probe again at ORDER_LATE
Emmanuel Vadot [Wed, 9 Aug 2023 08:45:19 +0000 (10:45 +0200)]
arm64: rockchip: rk_i2c: Probe again at ORDER_LATE

The gic driver is also probed at this pass and depending on the order of
the nodes in the dts rk_i2c can be probed first and will fail, this is the
case for the rk3328 SoC.
The PMIC drivers are also probed at this pass but on the iicbus which is created
in rk_i2c so there is no order conflict here.

Fixes: ddefad7c4f48 ("arm64: rockchip: Tweak i2c, pmic and iodomain order")
Sponsored by: Beckhoff Automation GmbH & Co. KG

10 months agosctp: another cleanup
Michael Tuexen [Wed, 9 Aug 2023 02:17:52 +0000 (04:17 +0200)]
sctp: another cleanup

No functional change intended.

MFC after: 1 week

10 months agorangesets: use PCTRIE_DEFINE
Doug Moore [Wed, 9 Aug 2023 07:26:25 +0000 (02:26 -0500)]
rangesets: use PCTRIE_DEFINE

subr_rangeset.c is the only source file that calls functions like
pctrie_insert and pctrie_remove directly; other users of pctries use
the PCTRIE_DEFINE macro to define interfaces to pctrie that let them
ignore issues of offsets within structs and uint64_t return values.

Change subr_rangeset.c to use PCTRIE_DEFINE too. And change pctrie.h
to mark the lookup function as unused, to avoid warnings when
compiling files, like subr_rangeset.c, that don't invoke lookup().

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

10 months agoRevert "exit1(): Revert sparc64 workaround"
Konstantin Belousov [Wed, 9 Aug 2023 05:56:58 +0000 (08:56 +0300)]
Revert "exit1(): Revert sparc64 workaround"

This reverts commit 96c76d930656f13d3c041dc8d8f2fc3dd1e5e05a.

There are other relatively common reasons why init might get killed
during reboot, the workaround was really not sparc64-specific.

Discussed with: marius
Sponsored by: The FreeBSD Foundation

10 months agolibc dlfcn.c: make dl_iterate_phdr() from libc more useful
Konstantin Belousov [Wed, 9 Aug 2023 05:07:05 +0000 (08:07 +0300)]
libc dlfcn.c: make dl_iterate_phdr() from libc more useful

Apparently there are applications that resolve dl_iterate_phdr from libc
and try to call the symbol. Our libc only provides stubs for dl* to
satisfy static linker or statically linked binaries, and is not prepared
to this situation.

Add a code to dso libc to find real dl_iterate_phdr and redirect the
call to it.

Reported by: yuri
PR: 272992
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 months agotmpfs: add a knob to enable pgcache read for mount
Konstantin Belousov [Sun, 6 Aug 2023 01:35:36 +0000 (04:35 +0300)]
tmpfs: add a knob to enable pgcache read for mount

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D41334

10 months agovnode io: request range-locking when pgcache reads are enabled
Konstantin Belousov [Sun, 6 Aug 2023 01:23:35 +0000 (04:23 +0300)]
vnode io: request range-locking when pgcache reads are enabled

PR: 272678
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D41334

10 months agoRevert "vnode read(2)/write(2): acquire rangelock regardless of do_vn_io_fault()"
Konstantin Belousov [Sun, 6 Aug 2023 01:23:42 +0000 (04:23 +0300)]
Revert "vnode read(2)/write(2): acquire rangelock regardless of do_vn_io_fault()"

This reverts commit 5b353925ff61b9ddb97bb453ba75278b578ed7d9.

The reason is the lesser scalability of the vnode' rangelock comparing
with the vnode lock.

Requested by: mjg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D41334

10 months agosoxstack: silence GCC warning
Ed Maste [Wed, 9 Aug 2023 01:13:20 +0000 (21:13 -0400)]
soxstack: silence GCC warning

Add parens around _STACK_FLAG_GROWS expression to fix GCC warning about
arithmetic in operand of '|'.

Sponsored by: The FreeBSD Foundation

10 months agoRate limit kernel UFS/FFS cylinder group check-hash error messages.
Kirk McKusick [Wed, 9 Aug 2023 00:10:07 +0000 (17:10 -0700)]
Rate limit kernel UFS/FFS cylinder group check-hash error messages.

When a large file is deleted or a large number of files are deleted,
even a single cylinder group with a bad check hash can generate
thousands of check-hash warnings. As with other filesystem messages
such as out-of-space, print a maximum of one check-hash error per
second. Note the limit is per filesystem. If two filesystems have
cylinder group(s) with a bad check hash, each will print a maximum
of one check-hash error message per second.

MFC-after:    1 week
Sponsored-by: The FreeBSD Foundation
10 months agotests: Fix build after 8920c5f2
Dmitry Chagin [Tue, 8 Aug 2023 21:39:35 +0000 (00:39 +0300)]
tests: Fix build after 8920c5f2

MFC after: 2 weeks

10 months agoping: use the in6_addr buffer when parsing src address as AF_INET6
R. Christian McDonald [Tue, 8 Aug 2023 18:40:02 +0000 (14:40 -0400)]
ping: use the in6_addr buffer when parsing src address as AF_INET6

Reviewed by: kp
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

10 months agoObsoleteFiles.inc: Correct typo
Marius Strobl [Tue, 8 Aug 2023 20:52:16 +0000 (22:52 +0200)]
ObsoleteFiles.inc: Correct typo

Fixes: 37c8ee8847fa ath(4): Remove MIPS AHB frontend and join PCI one w/ main support again

10 months agoath(4): Remove MIPS AHB frontend and join PCI one w/ main support again
Marius Strobl [Mon, 7 Aug 2023 16:39:24 +0000 (18:39 +0200)]
ath(4): Remove MIPS AHB frontend and join PCI one w/ main support again

Following the removal of general MIPS support, there's no longer a need
to have the AHB bus-frontend in place, which according to Linux sources
also isn't used with any non-MIPS SoCs. For simplicity, PCI bus support
is only made conditional on the main one again, i. e. device ath_pci is
removed, and built into the main module, i. e. if_ath_pci.ko obsoleted,
respectively.
Effectively, this reverts the following commits and associated changes:
dba9c8597747c6c9bf3d2ec68f7eb90552878dc7
e849bb3ecbb1963344a22ae77fc96f89fbebf40c

Approved by: adrian
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D41354

10 months agolocal.sys.dirdeps.mk: Allow CROSS_TARGET_FLAGS to be overridden
Stephen J. Kiernan [Tue, 8 Aug 2023 20:11:27 +0000 (16:11 -0400)]
local.sys.dirdeps.mk: Allow CROSS_TARGET_FLAGS to be overridden

Use ?= when setting CROSS_TARGET_FLAGS so we do not override it
if another file already has set it.

Reviewed by: sjg
Obtained from: Juniper Networks, Inc.

10 months agonvme: Move bools to fill hole
Warner Losh [Tue, 8 Aug 2023 16:55:43 +0000 (10:55 -0600)]
nvme: Move bools to fill hole

The two bools in nvme_request create a 6 byte hole today. Move them to
after retires to fill the 4 byte hole there and add a spare[2] to make
nvme_request 8 bytes smaller. spare[2] isn't strictly necessary, but
documents how many bytes we have left in that hole, as the number of
booleans will increase shortly.

Suggested by: chuck
Sponsored by: Netflix

10 months agomodules: Use MACHINE_CPUARCH more
Warner Losh [Tue, 8 Aug 2023 16:50:39 +0000 (10:50 -0600)]
modules: Use MACHINE_CPUARCH more

Replace two cases of MACHINE_ARCH with MACHINE_CPUARCH and also use
`aarch64` instead of the improper `arm64` for that test.

Noticed by: Mark Millard
Sponsored by: Netflix

10 months agolibc: fix some overflow scenarios in vis(3)
Kyle Evans [Tue, 8 Aug 2023 17:01:28 +0000 (12:01 -0500)]
libc: fix some overflow scenarios in vis(3)

The previous incarnation of this would call wcrtomb() on the destination
buffer, and only check for overflow *after* it's happened.
Additionally, the conversion error / VIS_NOLOCALE path also didn't check
for overflow, and the overflow check at the end didn't account for the
fact that we still need to write a NUL terminator afterward.

Start by only doing the multibyte conversion into mbdst directly if we
have enough buffer space to guarantee it'll fit.  An additional
MB_CUR_MAX buffer has been stashed on the stack to write into if we're
cutting it close at the end of the buffer, since we don't really have a
good way to determine the length of the wchar_t without just doing the
conversion.  We'll do the conversion into the buffer that's guaranteed
to fit, then copy it over if the copy won't overflow.

The byte-for-byte overflow is a little bit easier, as we simply check
for overflow with each byte written and make sure we can still NUL
terminate after.

Tests added to exercise these edge cases.

Reviewed by: des
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D41328

10 months agotests: Add stack grows tests
Dmitry Chagin [Tue, 8 Aug 2023 15:12:09 +0000 (18:12 +0300)]
tests: Add stack grows tests

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

10 months agomd driver compat32: fix structure padding for arm, powerpc
Mike Karels [Tue, 8 Aug 2023 14:09:03 +0000 (09:09 -0500)]
md driver compat32: fix structure padding for arm, powerpc

Because the 32-bit md_ioctl structure contains 64-bit members, arm
and powerpc add padding to a multiple of 8.  i386 doesn't do this.
The md_ioctl32 definition was correct for amd64/i386 without padding,
but wrong for arm64 and powerpc64.  Make __packed__ conditional on
__amd64__, and test for the expected size on non-amd64.  Note that
mdconfig is used in the ATF test suite.  Note, I verified the
structure size for powerpc, but was unable to test.

MFC after: 1 week
Reviewed by: jrtc27
Differential Revision: https://reviews.freebsd.org/D41339
Discussed with: jhibbits

10 months agoarm64: rockchip: Tweak i2c, pmic and iodomain order
Emmanuel Vadot [Tue, 8 Aug 2023 13:24:33 +0000 (15:24 +0200)]
arm64: rockchip: Tweak i2c, pmic and iodomain order

We need i2c first to set it to MIDDLE, then we need one of the pmics
so set them to LATE, only then we can attach iodomain which needs some
regulators exposed by the pmic so set it to LAST.

Sponsored by: Beckhoff Automation GmbH & Co. KG

10 months agoarm64: intel: Remove firmware driver
Emmanuel Vadot [Tue, 6 Dec 2022 11:07:58 +0000 (12:07 +0100)]
arm64: intel: Remove firmware driver

This is now covered by ofw_firmware.

Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37613

10 months agoofw: Add a ofw_firmware driver
Emmanuel Vadot [Tue, 6 Dec 2022 10:57:37 +0000 (11:57 +0100)]
ofw: Add a ofw_firmware driver

Some SoCs have an external firmware doing power management, clock
and other stuffs. (Xilinx, ARM Juno etc ...)
The way it is represent in the DTB is usually having a 'firmware' node
under the root node and have some nodes under it with the correct
compatible strings.
The firmware node itself doesn't have any compatible strings.
This driver is simple subclassed from simplebus and attaches at
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE so early drivers (like clock drivers)
can still have a change to attach early.

Reviewed by: andrew
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37612

10 months agosctp: remove duplicate code
Michael Tuexen [Tue, 8 Aug 2023 11:05:39 +0000 (13:05 +0200)]
sctp: remove duplicate code

No functional change intended.

MFC after: 1 week

10 months agosctp: cleanup
Michael Tuexen [Tue, 8 Aug 2023 10:40:51 +0000 (12:40 +0200)]
sctp: cleanup

No functional change intended.

MFC after: 1 week

10 months agocarp: delete interface routes on link loss.
Andrey V. Elsukov [Wed, 2 Aug 2023 07:40:34 +0000 (10:40 +0300)]
carp: delete interface routes on link loss.

Obtained from: Yandex LLC
MFC after: 10 days
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D41290

10 months agoetherswitch/arswitch: correct version detection
Michael Zhilin [Tue, 8 Aug 2023 08:02:09 +0000 (11:02 +0300)]
etherswitch/arswitch: correct version detection

During porting of etherswitch to NetBSD mistypo was discovered in
Atheros switch version detection.

Reported by:    Hiroki Mori yamori813@yahoo.co.jp
MFC after: 1 week

10 months agoHandle UFS/FFS file deletion from cylinder groups with check-hash failure.
Kirk McKusick [Mon, 7 Aug 2023 23:27:39 +0000 (16:27 -0700)]
Handle UFS/FFS file deletion from cylinder groups with check-hash failure.

When a file is deleted, its blocks need to be put back in the free
block list and its inode needs to be put back in the inode free list.
These lists reside in cylinder-group maps. If either some of its blocks
or its inode reside in a cylinder-group map with a bad check hash
it is not possible to free the associated resource. Since the cylinder
group cannot be repaired until the filesystem is unmounted these
resources cannot be freed. They simply accumulate in memory. And
any attempt to unmount the filesystem loops forever trying to flush them.

With this change, the resource update claims to succeed so that the
file deletion can successfully complete. The filesystem is marked as
requiring an fsck so that before the next time that the filesystem is
mounted, the offending cylinder groups are reconstructed causing the
lost resources to be reclaimed.

A better solution would be to downgrade the filesystem to read-only,
but that capability is not currently implemented.

Reported-by: Peter Holm
Tested-by: Peter Holm
MFC-after:    1 week
Sponsored-by: The FreeBSD Foundation
10 months agoiflib: Remove redundant variable
Eric Joyner [Fri, 4 Aug 2023 17:57:11 +0000 (10:57 -0700)]
iflib: Remove redundant variable

In iflib_init_locked(), sctx and scctx both point to the same value,
which is the ifc_softc_ctx field in the iflib softc. Remove the
declaration and assignment to sctx since scctx can be used instead, and
the name of scctx follows the naming convention used for local variables
that point to ifc_softc_ctx.

In theory there should be no functional impact with this change.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
Reviewed by: kbowling@
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D41325

10 months agoiflib: Fix white space and reduce some line lengths
Eric Joyner [Fri, 4 Aug 2023 17:53:29 +0000 (10:53 -0700)]
iflib: Fix white space and reduce some line lengths

This helps align some of the code with the rest of the style used in
iflib, but as marius@ points out, this is not style(9).

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
Reviewed by: kbowling@
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D41324

10 months agonvme: Directly lookup op code
Warner Losh [Mon, 7 Aug 2023 22:36:45 +0000 (16:36 -0600)]
nvme: Directly lookup op code

Rather than have a table to walk through, use a sparse array.

Suggested by: jhb
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D41353

10 months agonvme: Update comment
Warner Losh [Mon, 7 Aug 2023 22:36:25 +0000 (16:36 -0600)]
nvme: Update comment

Fix comment to note we should grab additional data from the error log
page, but don't currently (it's inclear if we should do that here
and other places in nvd that want it, or if we should let nvd / the
nda periph make the request).

Sponsored by: Netflix
Reviewed by: chuck, mav, jhb
Differential Revision: https://reviews.freebsd.org/D41315

10 months agonvme: Add comments about other fields in status
Warner Losh [Mon, 7 Aug 2023 22:36:14 +0000 (16:36 -0600)]
nvme: Add comments about other fields in status

When manually completing an I/O, we do so because we have no status back
from the card. Note M, CRD and P are all 0 because this is an artificial
event (and phase isn't checked when it's completed this way). There's no
MORE information in the error log page and there's no delayed retry
(CRD=0) and we don't currently request CRD to be set to anything other
than 0 and thus don't implement delayed retry.

Sponsored by: Netflix
Reviewed by: chuck, mav, jhb
Differential Revision: https://reviews.freebsd.org/D41314

10 months agonvme: Be less verbose when cancelling I/O or admin commands
Warner Losh [Mon, 7 Aug 2023 22:35:48 +0000 (16:35 -0600)]
nvme: Be less verbose when cancelling I/O or admin commands

When we're resetting, and there's outstanding I/O that we're cancelling,
only report we're cancelling the I/O once rather than once per
I/O. Likewise when we reschedule the I/O. We don't need to say for each
one that we're cancelling/rescheduling something, and then report the
I/O that we're doing. Likewise with cancelling admin commands (we never
retry them here, so a similar change isn't needed).

Sponsored by: Netflix
Reviewed by: chuck, mav
Differential Revision: https://reviews.freebsd.org/D41313

10 months agonvme: Add more NVME Base Spec 2.0 and NVME Command Set Spec 1.0a
Warner Losh [Mon, 7 Aug 2023 22:35:38 +0000 (16:35 -0600)]
nvme: Add more NVME Base Spec 2.0 and NVME Command Set Spec 1.0a

Add admin commands capacity management, lockdown and fabrics commands.
Add I/O copy command.

Sponsored by: Netflix
Reviewed by: chuck, mav, jhb
Differential Revision: https://reviews.freebsd.org/D41311

10 months agonvme: Eliminate redundant code
Warner Losh [Mon, 7 Aug 2023 22:35:15 +0000 (16:35 -0600)]
nvme: Eliminate redundant code

get_admin_opcode_string and get_io_opcode_string are identical, but
start with different tables. Use a helper routine that takes an argument
to implement these instead. A future commit will refine this further.

Sponsored by: Netflix
Reviewed by: chuck, mav, jhb
Differential Revision: https://reviews.freebsd.org/D41310

10 months agonvme: Remove duplicate command printing routine
Warner Losh [Mon, 7 Aug 2023 22:34:54 +0000 (16:34 -0600)]
nvme: Remove duplicate command printing routine

Both nvme_dump_command and nvme_qpair_print_command print nvme
commands. The former latter better. Recode the one call to
nvme_dump_command to use nvme_qpair_print_command and delete the
former. No sense having two nearly identical routines. A future commit
will convert to sbuf.

Sponsored by: Netflix
Reviewed by: chuck, mav, jhb
Differential Revision: https://reviews.freebsd.org/D41309

10 months agonvme: Remove duplicate completion printing routine
Warner Losh [Mon, 7 Aug 2023 22:34:25 +0000 (16:34 -0600)]
nvme: Remove duplicate completion printing routine

Both nvme_dump_completion and nvme_qpair_print_completion print
completions. The latter is better. Recode the two instances of
nvme_dump_completion to use nvme_qpair_print_completion and delete the
former. No sense having two nearly identical routines. A future commit
will convert this to sbuf.

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D41308

10 months agopfctl: optionally clarify which anchors are layer 3 and which are Ethernet
Kristof Provost [Mon, 7 Aug 2023 17:45:22 +0000 (19:45 +0200)]
pfctl: optionally clarify which anchors are layer 3 and which are Ethernet

When listing anchors pfctl lists both 'regular' layer 3 anchors and
Ethernet anchors. It's possible to have the same anchor name in both,
which can be confusing.

Mitigate this a little by explicitly marking where the Ethernet anchors
start. Avoid breaking scripts by only doing this at the second level
of verbosity.

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

10 months agoFirecracker: Make root disk configurable
Colin Percival [Fri, 14 Jul 2023 22:11:22 +0000 (15:11 -0700)]
Firecracker: Make root disk configurable

Add a FCROOTFSSZ variable which defaults to "1g" which controls the
size of the Firecracker root filesystem; it can be set as low as "300m"
at present.

Allow WITHOUTS to be overridden if users want to build a root disk with
more -- or fewer -- parts of the FreeBSD base system.

Reviewed by: gjb
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D41041

10 months agoossl: Add missing labels to bsaes-armv7.S
Mark Johnston [Mon, 7 Aug 2023 14:17:16 +0000 (10:17 -0400)]
ossl: Add missing labels to bsaes-armv7.S

There is a bug in the OpenSSL script which generates this file; the bug
is in the process of being fixed upstream.

Specifically, when generating the output, bsaes-armv7.pl strips some
labels that are used when the output asm is compiled with __KERNEL__
defined, resulting in a build error.  As a step towards adding armv7
support to ossl(4), manually patch the generated asm.  The upstream fix
will be imported later.

Reviewed by: andrew, jhb, emaste
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D41303

10 months agomd5: extend capabilites
Mariusz Zaborski [Mon, 7 Aug 2023 12:16:03 +0000 (14:16 +0200)]
md5: extend capabilites

In 4849767cb16a4, we did a large refactor of the md5(1) source code.
One of them is that instead of reading data using read(2) syscall, we
are using binary stream input (fread(3)).

fread(3) requires additional Capsicum capabilities:
sha256 CAP operation requires CAP_FSTAT, descriptor holds CAP_READ
sha256 RET fstat -1 errno 93 Capabilities insufficient

Reviewed by: des
Differential Revision: https://reviews.freebsd.org/D41348

10 months agolib/libc/amd64/string/strchrnul.S: fix wrong indentation
Robert Clausecker [Mon, 7 Aug 2023 12:03:28 +0000 (14:03 +0200)]
lib/libc/amd64/string/strchrnul.S: fix wrong indentation

Uses spaces instead of tabs for this line by accident.

Reported by: jrtc27, kib
Approved by: kib

10 months agopatch: don't run off the end of path if it ends in '/'.
Pedro F. Giffuni [Mon, 7 Aug 2023 03:27:27 +0000 (22:27 -0500)]
patch: don't run off the end of path if it ends in '/'.

Found by fuzzing (afl) in OpenBSD.

Obtained from: OpenBSD (CVS 1.65)

10 months agoOCI: Bump image size to 6 GB
Colin Percival [Mon, 7 Aug 2023 01:51:35 +0000 (18:51 -0700)]
OCI: Bump image size to 6 GB

5 GB is no longer enough.

Sponsored by: https://www.patreon.com/cperciva

10 months agonet80211: Radiotap: add two more EHT defines
Bjoern A. Zeeb [Wed, 26 Jul 2023 02:57:17 +0000 (02:57 +0000)]
net80211: Radiotap: add two more EHT defines

An updated iwlwifi needs further radiotap updates for EHT.

Sponsored by: The FreeBSD Foundation
MFC after: 10 days

10 months agoLinuxKPI: replace vtophys+PHYS_TO_VM_PAGE with virt_to_page
Bjoern A. Zeeb [Mon, 31 Jul 2023 05:28:42 +0000 (05:28 +0000)]
LinuxKPI: replace vtophys+PHYS_TO_VM_PAGE with virt_to_page

Rather than using the FreeBSD internal calls vtophys() and
PHYS_TO_VM_PAGE() use the already existing LinuxKPI abstraction for
this called virt_to_page().  This reduces the amount of compat code
to maintain and will allow further work on struct [vm_]page.

This should be a NOP.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D41257

10 months agoLinuxKPI: cleanup internal calls to VM_PAGE_TO_PHYS
Bjoern A. Zeeb [Mon, 31 Jul 2023 03:15:29 +0000 (03:15 +0000)]
LinuxKPI: cleanup internal calls to VM_PAGE_TO_PHYS

Replace FreeBSD native VM_PAGE_TO_PHYS() calls with page_to_phys()
allowing us to work on a struct page in the future using the one
single public Linux KPI interface to map to a native FreeBSD vm_page.

This should be a NOP.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D41256

10 months agoLinuxKPI: reduce usage of struct vm_page and vm_page_t
Bjoern A. Zeeb [Mon, 31 Jul 2023 02:03:39 +0000 (02:03 +0000)]
LinuxKPI: reduce usage of struct vm_page and vm_page_t

We currently define (Linux) page to (FreeBSD) vm_page.
Cleanup some of the direct struct vm_page and vm_page_t declarations
and usages in the Linux KPI and make them 'struct page' or
'struct page *' to prepare for more upcoming work.

This should be a NOP.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D41255

10 months agoLinuxKPI: pci.h add more constants
Bjoern A. Zeeb [Wed, 26 Jul 2023 02:58:35 +0000 (02:58 +0000)]
LinuxKPI: pci.h add more constants

Add two more PCI_EXP_LNKSTA_CLS constants to the compat defines
needed by wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 10 days
Reviewed by: manu, emaste
Differential Revision: https://reviews.freebsd.org/D41258

10 months agoLinuxKPI: implement get_random_u32_inclusive()
Bjoern A. Zeeb [Tue, 16 May 2023 21:03:30 +0000 (21:03 +0000)]
LinuxKPI: implement get_random_u32_inclusive()

Implementation of get_random_u32_inclusive().
This is needed by an update for wireless drivers.

Sponsored by: The FreeBSD Foundation
MFC after: 10 days
Differential Revision: https://reviews.freebsd.org/D40121

10 months agoacpi_spibus.c: fix i386 build
Konstantin Belousov [Sun, 6 Aug 2023 21:08:35 +0000 (00:08 +0300)]
acpi_spibus.c: fix i386 build

intmax_t requires %j format specifier, %z is for size_t.

Fixes: 7d380b986a1808164846cfd9afb5ae3f99921fcf
Sponsored by: The FreeBSD Foundation