]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agotest-includes: update badfiles.inc
Kristof Provost [Thu, 16 Dec 2021 08:55:11 +0000 (09:55 +0100)]
test-includes: update badfiles.inc

Rebuild badfiles.inc after recent fixes.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33506

2 years agotest-includes: use the same header set for badfiles.inc as for testing
Kristof Provost [Thu, 16 Dec 2021 08:53:42 +0000 (09:53 +0100)]
test-includes: use the same header set for badfiles.inc as for testing

This ensures we don't end up listing files we've excluded (e.g. those
starting with _).
Add a slight hack to preserve the existing order (sys, then net) in
badfiles.inc.

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33505

2 years agosys: make filedesc.h self-contained
Kristof Provost [Thu, 16 Dec 2021 14:03:23 +0000 (15:03 +0100)]
sys: make filedesc.h self-contained

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

2 years agopf: make if_pfsync.h self-contained
Kristof Provost [Wed, 15 Dec 2021 19:59:38 +0000 (20:59 +0100)]
pf: make if_pfsync.h self-contained

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33504

2 years agopf: make if_pflog.h self-contained
Kristof Provost [Wed, 15 Dec 2021 19:54:19 +0000 (20:54 +0100)]
pf: make if_pflog.h self-contained

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33503

2 years agonet: make if_bridgevar.h self-contained
Kristof Provost [Wed, 15 Dec 2021 19:49:41 +0000 (20:49 +0100)]
net: make if_bridgevar.h self-contained

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33502

2 years agonet: make ethernet.h self-contained
Kristof Provost [Wed, 15 Dec 2021 19:44:23 +0000 (20:44 +0100)]
net: make ethernet.h self-contained

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33501

2 years agosys: make callout.h self-contained
Kristof Provost [Wed, 15 Dec 2021 19:22:41 +0000 (20:22 +0100)]
sys: make callout.h self-contained

Avoid including sys/types.h from sys/_callout.h (as we try to avoid having
headers starting with underscores depending on non-underscore headers)
by introducing __sbintime_t in sys/_types.h and including that header
instead.

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33500

2 years agopf: make pfvar.h self-contained
Kristof Provost [Wed, 15 Dec 2021 19:04:48 +0000 (20:04 +0100)]
pf: make pfvar.h self-contained

Ensure that the pfvar.h header can be included without including any
other headers.

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33499

2 years agoif_stf: make if_stf.h self-contained
Kristof Provost [Wed, 15 Dec 2021 18:50:28 +0000 (19:50 +0100)]
if_stf: make if_stf.h self-contained

Ensure that the if_stf.h header can be included without including any
other headers.

Reviewed by: imp
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33498

2 years agofollow up to 18679ab1, actually change size of mmc_sim::name to 16
Andriy Gapon [Fri, 17 Dec 2021 11:20:47 +0000 (13:20 +0200)]
follow up to 18679ab1, actually change size of mmc_sim::name to 16

The change was made locally but was not squashed into the commit.

Fixes: 18679ab1 mmc_sim: fix setting of the mutex name
MFC after: 8 days

2 years agosnd_uaudio(4): Loosen up the USB MIDI permissions.
Hans Petter Selasky [Fri, 17 Dec 2021 10:52:00 +0000 (11:52 +0100)]
snd_uaudio(4): Loosen up the USB MIDI permissions.

This makes USB MIDI more userfriendly for desktop users.

PR: 260489
MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agopcf85063: Set RTC device to work in 24h mode
Hubert Mazur [Thu, 16 Dec 2021 08:16:22 +0000 (09:16 +0100)]
pcf85063: Set RTC device to work in 24h mode

Sometimes the device did not set default hour mode setting correctly,
which lead to conversion errors. Explicitly set device to work in 24h
mode by clearing flag in register, instead of allowing defaults.

Reviewed by: imp
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D33497

2 years agotzsetup: Fix unicode support
Alfonso Siciliano [Fri, 17 Dec 2021 08:25:07 +0000 (09:25 +0100)]
tzsetup: Fix unicode support

Differential revision: https://reviews.freebsd.org/D33532

2 years agosched.h: Use pid_t type for pid argument
David CARLIER [Fri, 17 Dec 2021 06:22:21 +0000 (08:22 +0200)]
sched.h: Use pid_t type for pid argument

MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D33533

2 years agosched_get/setaffinity(3): pid 0 should designate current process
Math Ieu [Fri, 17 Dec 2021 05:31:09 +0000 (07:31 +0200)]
sched_get/setaffinity(3): pid 0 should designate current process

while FreeBSD' native sched_get/setaffinity use pid -1 for this.

PR: 260487
MFC after: 1 week

2 years agosysent: regenerate files every time
Kyle Evans [Thu, 9 Dec 2021 05:20:16 +0000 (23:20 -0600)]
sysent: regenerate files every time

This forces everything to be regenerated by marking makesyscalls.lua
as .PHONY, which may be helpful in, e.g., rebase scenarios, which may
have unexpected effects on mtimes but still really need a regen.

For now we apply this to the default sysent target, which is ran
manually and not as a part of buildkernel.  We can reconsider this if
someone manually running it has issues with the runtime, but the top
level sysent target can run each in parallel; I recommend -j4 or so.

Requested by: kib
Reviewed by: brooks, kib (both earlier version)
Differential Revision: https://reviews.freebsd.org/D33357

2 years agosysent: regenerate
Kyle Evans [Thu, 9 Dec 2021 04:42:43 +0000 (22:42 -0600)]
sysent: regenerate

2 years agosysent: move away from allowing all compat options for other ABIs
Kyle Evans [Thu, 9 Dec 2021 04:37:28 +0000 (22:37 -0600)]
sysent: move away from allowing all compat options for other ABIs

Notably, the current compat_options only makes sense for native and
freebsd32 ABIs.  For the others, it just adds cruft. Switch to having
sets of compat options, and default to the native set.  Setup the other
ABIs where it doesn't make sense to opt-out of the native set.

This removes some redundant COMPAT_FREEBSD* stuff from Linuxolator bits.

line_expr in makesyscalls.lua is fixed to allow empty strings to be
specified, since they're harmless.

Reviewed by: brooks, kib (both earlier version)
Differential Revision: https://reviews.freebsd.org/D33356

2 years agoinpcb: don't leak the port zone in in_pcbinfo_destroy()
Gleb Smirnoff [Thu, 16 Dec 2021 23:15:02 +0000 (15:15 -0800)]
inpcb: don't leak the port zone in in_pcbinfo_destroy()

2 years agonfscl: Partially revert commit 867c27c23a5c
Rick Macklem [Thu, 16 Dec 2021 22:30:37 +0000 (14:30 -0800)]
nfscl: Partially revert commit 867c27c23a5c

Commit 867c27c23a5c enabled the n_directio_opens code
in open/close, which sets/clears NNONCACHE, for
IO_APPEND. This code should not be enabled unless
newnfs_directio_enable is non-zero.

This patch reverts that part of commit 867c27c23a5c.

A future patch that fixes the case where the
file that is being written IO_APPEND is mmap()'d.

MFC after: 3 months

2 years agocryptocheck: Test Camellia-CBC cipher and RIPEMD-160 HMAC.
John Baldwin [Thu, 16 Dec 2021 21:48:39 +0000 (13:48 -0800)]
cryptocheck: Test Camellia-CBC cipher and RIPEMD-160 HMAC.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33518

2 years agocryptosoft: Remove CBC handling from swcr_encdec.
John Baldwin [Thu, 16 Dec 2021 21:48:15 +0000 (13:48 -0800)]
cryptosoft: Remove CBC handling from swcr_encdec.

All of the CBC ciphers now handle block chaining in the enc_xform.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33489

2 years agocrypto: Move CBC handling into enc_xform_camellia.
John Baldwin [Thu, 16 Dec 2021 21:48:02 +0000 (13:48 -0800)]
crypto: Move CBC handling into enc_xform_camellia.

Add an IV to the context that is initialized by the reinit hook.
Encrypt and decrypt operations handle cipher block chaining along with
updating the IV saved in the context.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33488

2 years agocrypto: Move CBC handling into enc_xform_aes_cbc.
John Baldwin [Thu, 16 Dec 2021 21:47:44 +0000 (13:47 -0800)]
crypto: Move CBC handling into enc_xform_aes_cbc.

Add an IV to the context that is initialized by the reinit hook.
Encrypt and decrypt operations handle cipher block chaining along with
updating the IV saved in the context.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33487

2 years agocrypto: Consistently use AES instead of Rijndael128 for the AES-CBC cipher.
John Baldwin [Thu, 16 Dec 2021 21:47:27 +0000 (13:47 -0800)]
crypto: Consistently use AES instead of Rijndael128 for the AES-CBC cipher.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33486

2 years agocrypto: Define POLY1305_BLOCK_LEN constant.
John Baldwin [Thu, 16 Dec 2021 21:47:16 +0000 (13:47 -0800)]
crypto: Define POLY1305_BLOCK_LEN constant.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33485

2 years agoSort libsodium sources by path in sys/modules/crypto/Makefile.
John Baldwin [Thu, 16 Dec 2021 21:47:03 +0000 (13:47 -0800)]
Sort libsodium sources by path in sys/modules/crypto/Makefile.

This matches the order used in sys/conf/files to make it easier to
keep these two files in sync.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33484

2 years agoSort libsodium entries by path in sys/conf/files.
John Baldwin [Thu, 16 Dec 2021 21:46:48 +0000 (13:46 -0800)]
Sort libsodium entries by path in sys/conf/files.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33483

2 years agoCorrect type size format error in KASSERT.
Doug Moore [Thu, 16 Dec 2021 19:48:58 +0000 (13:48 -0600)]
Correct type size format error in KASSERT.
Reported by: jenkins
Fixes: 6f1c8908272f vm: Don't break vm reserv that can't meet align reqs

2 years agoRemove 'All Rights Reserved' from xlocale FreeBSD Foundation copyrights
Ed Maste [Thu, 16 Dec 2021 19:28:19 +0000 (14:28 -0500)]
Remove 'All Rights Reserved' from xlocale FreeBSD Foundation copyrights

Sponsored by: The FreeBSD Foundation

2 years agovm: Don't break vm reserv that can't meet align reqs
Doug Moore [Thu, 16 Dec 2021 18:20:56 +0000 (12:20 -0600)]
vm: Don't break vm reserv that can't meet align reqs

Function vm_reserv_test_contig has incorrectly used its alignment
and boundary parameters to find a well-positioned range of empty pages
in a reservation.  Consequently, a reservation could be broken
mistakenly when it was unable to provide a satisfactory set of pages.

Rename the function, correct the errors, and add assertions to detect
the error in case it appears again.

Reviewed by: alc, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33344

2 years agoloader.efi: Do not use as frame buffer BLT-only GOPs.
Alexander Motin [Thu, 16 Dec 2021 16:44:34 +0000 (11:44 -0500)]
loader.efi: Do not use as frame buffer BLT-only GOPs.

Kernel needs physical frame buffer address and size, which Block
Transfer-only Graphics Output Protocol instances do not have.

Some recent ASUS boards like PRIME Z690M-PLUS D4 and PRIME H570-Plus
report two GOPs, out of which the second one support ConOut protocol,
that made it preferable, but is BLT-only, that made console unusable.

Discussed with: tsoome (previous version)
MFC after: 1 week

2 years agoipfilter: MSN RPC proxy is not complete
Cy Schubert [Thu, 16 Dec 2021 00:08:11 +0000 (16:08 -0800)]
ipfilter: MSN RPC proxy is not complete

The MSN RPC proxy is incomplete and does not do any address
translation. Remove it.

MFC after: 1 week

2 years agoOpenSSL: Do not remove symbolic links readded in 1.1.1m
Jung-uk Kim [Thu, 16 Dec 2021 14:31:46 +0000 (09:31 -0500)]
OpenSSL: Do not remove symbolic links readded in 1.1.1m

Reported by: Herbert J. Skuhra <herbert@mailbox.org>

2 years agoaesni: Fix an out-of-bounds read in AES_GCM_decrypt()
Mark Johnston [Thu, 16 Dec 2021 14:08:16 +0000 (09:08 -0500)]
aesni: Fix an out-of-bounds read in AES_GCM_decrypt()

This is the same as 4285655adb74 ("aesni: Avoid a potential
out-of-bounds load in AES_GCM_encrypt()") except for the decryption
path.

Reported by: Jenkins (KASAN job)
Reviewed by: cem
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33474

2 years agoudp: Fix a use-after-free in udp_multi_input()
Mark Johnston [Thu, 16 Dec 2021 14:08:47 +0000 (09:08 -0500)]
udp: Fix a use-after-free in udp_multi_input()

"ip" is a pointer into the input mbuf chain, so we shouldn't access it
after the chain is freed.

Fix style at the call site while here.

Reported by: syzbot+7c8258509722af1b6145@syzkaller.appspotmail.com
Reviewed by: tuexen, glebius
Fixes: de2d47842e88 ("SMR protection for inpcbs")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33473

2 years agozfs: merge openzfs/zfs@f291fa658 (master) into main
Martin Matuska [Thu, 16 Dec 2021 13:38:34 +0000 (14:38 +0100)]
zfs: merge openzfs/zfs@f291fa658 (master) into main

Notable upstream pull request merges:
  #11711 Vdev Properties Feature
  #12717 VOP_RENAME fixes for FreeBSD
  #12746 Enable strict hole reporting by default
  #12770 ZFS send/recv with ashift 9->12 leads to data corruption
  #12828 FreeBSD: Add vop_standard_writecount_nomsyn
  #12828 zfs: Fix a deadlock between page busy and the teardown lock
  #12828 FreeBSD: Catch up with more VFS changes

Obtained from: OpenZFS
OpenZFS commit: f291fa658efd146540b03ce386133632bde237bf

2 years agoida: plug set-but-not-used vars
Mateusz Guzik [Thu, 16 Dec 2021 13:23:30 +0000 (13:23 +0000)]
ida: plug set-but-not-used vars

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

2 years agotests: sys.netpfil.pf.pfsync.defer fails in CI
Kristof Provost [Thu, 16 Dec 2021 12:09:59 +0000 (13:09 +0100)]
tests: sys.netpfil.pf.pfsync.defer fails in CI

sys.netpfil.pf.pfsync.defer has been failing for a while in CI now.
Disable it for now.

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

2 years agoloader: lua: test that /boot exists first
Emmanuel Vadot [Mon, 13 Dec 2021 13:18:12 +0000 (14:18 +0100)]
loader: lua: test that /boot exists first

Otherwise on fs like tftp where no directory listing is possible we fail
on the .dir method.

Reviewed by: imp, kevans
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33414

2 years agoloader: bcache: Fix debug printf
Emmanuel Vadot [Mon, 13 Dec 2021 08:23:19 +0000 (09:23 +0100)]
loader: bcache: Fix debug printf

Use %j to it works on 64 and 32 bits system.

Reviewed by: imp, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33430

2 years agoloader: tftp: Add preload method
Emmanuel Vadot [Fri, 10 Dec 2021 09:37:01 +0000 (10:37 +0100)]
loader: tftp: Add preload method

The preload method will transfer the whole file in a buffer and cache it
so read/lseek operations are faster.

Reviewed by: imp, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33410

2 years agoloader: Add preload operation to fs_ops
Emmanuel Vadot [Fri, 10 Dec 2021 09:33:43 +0000 (10:33 +0100)]
loader: Add preload operation to fs_ops

When we load an ELF file (kernel or module) we do seek(2) a lot to
parse/load the different sections of the ELF file.
Protocol like TFTP suffers a lot from this as there is no resume or
a way to start the tranfer from a specified offset in the file.
fs_preload is added to help those protocol.
Call preload just after opening the ELF file that we need to load so
the underlying method can cache the hole file and then read/lseek operations
are faster.

Reviewed by: imp
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33409

2 years agoloader: ip: Do not call getsecs so much
Emmanuel Vadot [Thu, 9 Dec 2021 14:46:39 +0000 (15:46 +0100)]
loader: ip: Do not call getsecs so much

getsecs is very costly, reuse the values we got before.

Fetching a ~30MB kernel with the tftp command use to take ~26 seconds
and now it's ~18 seconds.

Reviewed by: imp, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33408

2 years agoloader: tftp: Don't let tftp timeout
Emmanuel Vadot [Mon, 13 Dec 2021 09:35:23 +0000 (10:35 +0100)]
loader: tftp: Don't let tftp timeout

When we load a kernel or module we open/close it a few times.
Since we're using the same port number each time and that we requested
the same file the ACK that we send are valid on the server side and the
server send us the file multiple times.
This makes tftp loading time very inconsistant due to the UDP "flood" that
we have to process.

Reviewed by: imp, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33407

2 years agoloader: Add a readtest command
Emmanuel Vadot [Thu, 9 Dec 2021 13:54:58 +0000 (14:54 +0100)]
loader: Add a readtest command

readtest will simply load the file in memory, useful for timing
loading on some filesystems.

Reviewed by: tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33411

2 years agoloader: tftp: Don't error on tftp error 0
Emmanuel Vadot [Wed, 8 Dec 2021 15:18:49 +0000 (16:18 +0100)]
loader: tftp: Don't error on tftp error 0

tftp-hpa sends NAK with tftp error set to 0 when trying to get
a directory and this is the first thing that loader tries to do
and this make it hangs.

Reviewed by: imp, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33406

2 years agoChange VOP_READDIR's cookies argument to a **uint64_t
Alan Somers [Tue, 14 Dec 2021 02:37:27 +0000 (19:37 -0700)]
Change VOP_READDIR's cookies argument to a **uint64_t

The cookies argument is only used by the NFS server.  NFSv2 defines the
cookie as 32 bits on the wire, but NFSv3 increased it to 64 bits.  Our
VOP_READDIR, however, has always defined it as u_long, which is 32 bits
on some architectures.  Change it to 64 bits on all architectures.  This
doesn't matter for any in-tree file systems, but it matters for some
FUSE file systems that use 64-bit directory cookies.

PR:             260375
Reviewed by:    rmacklem
Differential Revision: https://reviews.freebsd.org/D33404

2 years agonfs: don't truncate directory cookies to 32-bits in the NFS server
Alan Somers [Mon, 13 Dec 2021 03:57:14 +0000 (20:57 -0700)]
nfs: don't truncate directory cookies to 32-bits in the NFS server

In NFSv2, the directory cookie was 32-bits.  NFSv3 widened it to
64-bits and SVN r22521 widened the corresponding argument in
VOP_READDIR, but FreeBSD's NFS server continued to treat the cookies as
32-bits, and 0-extended to fill the field on the wire.  Nobody ever
noticed, because every in-tree file system generates cookies that fit
comfortably within 32-bits.

Also, have better type safety for txdr_hyper.  Turn it into an inline
function that type-checks its arguments.  Prevents warnings about
shift-count-overflow.

PR: 260375
MFC after: 2 weeks
Reviewed by: rmacklem
Differential Revision: https://reviews.freebsd.org/D33404

2 years agostand/module: skip is only used by veriexec
Warner Losh [Thu, 16 Dec 2021 02:52:29 +0000 (19:52 -0700)]
stand/module: skip is only used by veriexec

Sponsored by: Netflix

2 years agostand/userboot: Kill set but unused variables
Warner Losh [Thu, 16 Dec 2021 02:48:40 +0000 (19:48 -0700)]
stand/userboot: Kill set but unused variables

We never use 'dev' after fetching it from the varargs list. Skip the
whole bother of fetching it, or setting up the meachinery to fetch it.

Sponsored by: Netflix

2 years agostand/zfs: Mark pcount as unused
Warner Losh [Thu, 16 Dec 2021 02:47:48 +0000 (19:47 -0700)]
stand/zfs: Mark pcount as unused

pcount is unused in the sense that it's set but never used except in an
assert. But asserts are compiled out always, so just mark it as unused.

Sponsored by: Netflix

2 years agostand: netif kill set but unused variables
Warner Losh [Thu, 16 Dec 2021 02:44:28 +0000 (19:44 -0700)]
stand: netif kill set but unused variables

Sponsored by: Netflix

2 years agofsutil: forward declare struct fstab
Warner Losh [Thu, 16 Dec 2021 02:38:28 +0000 (19:38 -0700)]
fsutil: forward declare struct fstab

Fix the build by forward declaring struct fstab.

Sponsored by: Netflix

2 years agotests: sys.net.if_bridge_test.span is failing in CI
Warner Losh [Thu, 16 Dec 2021 01:30:41 +0000 (18:30 -0700)]
tests: sys.net.if_bridge_test.span is failing in CI

sys.net.if_bridge_test.span has been failing in CI for a while
now. Disable it until this can be resolved.

PR: 260461
Sponsored by: Netflix

2 years agotests: sys.netpfil.pf.forward.v6 fails in CI
Warner Losh [Thu, 16 Dec 2021 01:27:44 +0000 (18:27 -0700)]
tests: sys.netpfil.pf.forward.v6 fails in CI

sys.netpfil.pf.forward.v6 has been failing in CI. File a bug and disable
until it can be resolved.

PR: 260460
Sponsored by: Netflix

2 years agotests: sys.netpfil.pf.set_tos.v6 fails in CI
Warner Losh [Thu, 16 Dec 2021 01:23:35 +0000 (18:23 -0700)]
tests: sys.netpfil.pf.set_tos.v6 fails in CI

sys.netpfil.pf.set_tos.v6 has been failing for a while in CI now.  File
a bug and disable.

PR: 260459
Sponsored by: Netflix

2 years agotests: sys.netpfil.pf.killstate.v6 fails in CI
Warner Losh [Thu, 16 Dec 2021 01:20:10 +0000 (18:20 -0700)]
tests: sys.netpfil.pf.killstate.v6 fails in CI

sys.netpfil.pf.killstate.v6 has been failing in CI for a while, file a
bug and disable.

PR: 260458
Sponsored by: Netflix

2 years agoUpdate fsck(8) to ignore failures from a check program for a filesystem
Kirk McKusick [Thu, 16 Dec 2021 00:51:55 +0000 (16:51 -0800)]
Update fsck(8) to ignore failures from a check program for a filesystem
when the fstab(5) entry for the filesystem has the "failok" attribute.

Reviewed by:  kib
PR:           246201
MFC after:    2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D33424

2 years agonfscl: Handle CB_SEQUENCE not first op correctly
Rick Macklem [Thu, 16 Dec 2021 00:36:40 +0000 (16:36 -0800)]
nfscl: Handle CB_SEQUENCE not first op correctly

The check for "not first operation" in CB_SEQUENCE
was done after the slot, etc. was updated. This patch
moves the check to the beginning of CB_SEQUENCE
processing.

While here, also fix the check for "no CB_SEQUENCE operation first"
by moving the check to the beginning of callback operation parsing,
since the check was in a couple of the other operations, but
not all of them.

Reported by: rtm@lcs.mit.edu
Tested by: rtm@lcs.mit.edu
PR: 260412
MFC after: 2 weeks

2 years agoDocument 7f911abe's new functions came in 11.0
David E. O'Brien [Thu, 16 Dec 2021 00:14:16 +0000 (16:14 -0800)]
Document 7f911abe's new functions came in 11.0

Document that the 7f911abe "Add support to libkvm for reading vmcores
from other architectures." added functions appeared first in FreeBSD 11.0.

2 years agoroute(8): Remove obsolete information
Warner Losh [Wed, 15 Dec 2021 23:06:19 +0000 (16:06 -0700)]
route(8): Remove obsolete information

xns and osi are no longer relevant (or supported) so remove their
vestiges.

Noticed by: phk
Sponsored by: Netflix

2 years agotest-includes: Build a library instead of a binary
Warner Losh [Wed, 15 Dec 2021 22:34:47 +0000 (15:34 -0700)]
test-includes: Build a library instead of a binary

We need to build the .o's, but don't need to link. Build a static
library instead of a binary to accmoplish this. This removes the need to
have all the libc and crt stuff built, which is required for a
binary. In addition, trying to build a non-standard binary runs into
trouble with undefined symbols on arm related to EABI, even when using a
simplified startup with -nostdlib -e start.

Turn back on testing includes, now that it works.

Sponsored by: Netflix
Reviewed by: brooks, markj (prior version)
Differential Revision: https://reviews.freebsd.org/D33452

2 years agoipfilter: ipf_dstlist is a kernel source file
Cy Schubert [Wed, 15 Dec 2021 21:50:38 +0000 (13:50 -0800)]
ipfilter: ipf_dstlist is a kernel source file

Remove duplicate ipf_dstlist.* files. They live in sys/.

MFC after: 1 week

2 years agocryptosoft: Don't treat CRYPTO_NULL_HMAC as an hmac algorithm.
John Baldwin [Wed, 15 Dec 2021 21:28:30 +0000 (13:28 -0800)]
cryptosoft: Don't treat CRYPTO_NULL_HMAC as an hmac algorithm.

Despite it's name, CRYPTO_NULL_HMAC is actually an unkeyed digest
similar to plain SHA-1 rather than a keyed HMAC algorithm.

Reported by: syzbot+17d7c656f1a797b0faae@syzkaller.appspotmail.com
Discussed with: markj
Fixes: 6113a08b98e4 cryptosoft: Fully support per-operation keys for auth algorithms.
Sponsored by: The FreeBSD Foundation

2 years agoApply fix for clang incorrectly optimizing part of dns/bind916
Dimitry Andric [Wed, 15 Dec 2021 19:56:12 +0000 (20:56 +0100)]
Apply fix for clang incorrectly optimizing part of dns/bind916

Merge commit e5a8af7a90c6 from llvm git (by Gulfem Savrun Yeniceri):

  [Passes] Fix relative lookup table converter pass

  This patch fixes the relative table converter pass for the lookup table
  accesses that are resulted in an instruction sequence, where gep is not
  immediately followed by a load, such as gep being hoisted outside the loop
  or another instruction is inserted in between them. The fix inserts the
  call to load.relative.instrinsic in the original place of load instead of gep.
  Issue is reported by FreeBSD via https://bugs.freebsd.org/259921.

  Differential Revision: https://reviews.llvm.org/D115571

PR: 259921
Reported by: O. Hartmann <freebsd@walstatt-de.de>
MFC after: 3 days

2 years agorelease: riscv64 - increase GENERICSD image size
Glen Barber [Wed, 15 Dec 2021 20:26:22 +0000 (15:26 -0500)]
release: riscv64 - increase GENERICSD image size

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

2 years agocross-build: Add comment missing from 9e5b0d9eac5b
Jessica Clarke [Wed, 15 Dec 2021 19:45:31 +0000 (19:45 +0000)]
cross-build: Add comment missing from 9e5b0d9eac5b

Whilst the commit message documented some of the details, I had intended
to include this comment in the actual header, but failed to amend the
commit properly.

Fixes: 9e5b0d9eac5b ("cross-build: Fix bmake bootstrap with glibc 2.34")
MFC after: 1 week

2 years ago* lib/msun/Makefile b/lib/msun/Makefile:
Mark Murray [Tue, 14 Dec 2021 09:08:57 +0000 (09:08 +0000)]
* lib/msun/Makefile b/lib/msun/Makefile:
  . Disconnect imprecise.c from the build.  This file can be deleted.
  . Add b_tgammal.c to the build for ld80 and ld128 targets.  The ld128
    is a 'git mv' of imprecise.c to ld128/b_tgammal.c.

* lib/msun/ld80/b_expl.c:
  . New file.  Implement __exp__D for ld80 targets.  This is based on
    bsdsrc/b_exp.c.

* lib/msun/ld80/b_logl.c:
  . New file.  Implement __log__D for ld80 targets.  This is based on
    bsdsrc/b_log.c.

* lib/msun/ld80/b_tgammal.c b/lib/msun/ld80/b_tgammal.c
  . New file.  Implement tgammal(x) for ld80 targets.

Submitted by:           Steve Kargl
Differential Revision:  https://reviews.freebsd.org/D33444
Reviewed by:            pfg

2 years ago* lib/msun/Makefile:
Mark Murray [Tue, 14 Dec 2021 09:02:45 +0000 (09:02 +0000)]
* lib/msun/Makefile:
  . Disconnect b_exp.c and b_log.c from the build.

* lib/msun/bsdsrc/b_exp.c:
  . Replace scalb() usage with C99's ldexp().
  . Replace finite(x) usage with C99's isfinite().
  . Whitespace changes towards style(9).
  . Remove include of "mathimpl.h".  It is no longer needed.
  . Remove #if 0 ... #endif code, which has been present since svn r93211
    (2002-03-26).
  . New minimax polynomial coefficients.
  . Add comments to explain origins of some constants.
  . Use ansi-C prototype.  Remove K&R prototype.  Add static to prototype.

* lib/msun/bsdsrc/b_log.c:
  . Remove include of "mathimpl.h".  It is no longer needed.
  . Fix comments to actually describe the code.
  . Reduce minimax polynomial from degree 4 to degree 3.
    This uses newly computed coefficients.
  . Use ansi-C prototype.  Remove K&R prototype.  Add static to prototype.
  . Remove volatile in declaration of u1.
  . Alphabetize decalaration list.
  . Whitespace changes towards style(9).
  . In argument reduction of x to g and m, replace use of logb() and
    ldexp() with a single call to frexp().  Add code to get 1 <= g < 2.
  . Remove #if 0 ... #endif code, which has been present since svn r93211
    (2002-03-26).
  . The special case m == -1022, replace logb() with ilogb().

* lib/msun/bsdsrc/b_tgamma.c:
  . Update comments.  Fix comments where needed.
  . Add float.h to get LDBL_MANT_DIG for weak reference of tgammal to tgamma.
  . Remove include of "mathimpl.h".  It is no longer needed.
  . Use "math.h" instead of <math.h>.
  . Add '#include math_private.h"
  . Add struct Double from mathimpl.h and include b_log.c and b_exp.c.
  . Remove forward declarations of neg_gam(), small_gam(), smaller_gam,
    large_gam() and ratfun_gam() by re-arranging the code to move these
    function above their first reference.
  . New minimax coefficients for polynomial in large_gam().
  . New splitting of a0 into a0hi nd a0lo, which include additional
    bits of precision.
  . Use ansi-C prototype.  Remove K&R prototype.
  . Replace the TRUNC() macro with a simple cast of a double entities
    to float before assignment (functional changes).
  . Replace sin(M_PI*z) with sinpi(z) and cos(M_PI*(0.5-z)) with cospi(0.5-z).

Submitted by: Steve Kargl
Differential Revision: https://reviews.freebsd.org/D33444
Reviewed by: pfg

2 years agoamd64: Do not build sconfig
Emmanuel Vadot [Wed, 15 Dec 2021 16:38:33 +0000 (17:38 +0100)]
amd64: Do not build sconfig

We do not build the drivers for this arch so no need to build the
configuration tools.

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

2 years agonfscl: Change IO_APPEND writes to direct I/O
Rick Macklem [Wed, 15 Dec 2021 16:35:48 +0000 (08:35 -0800)]
nfscl: Change IO_APPEND writes to direct I/O

IO_APPEND writes have always been very slow over NFS, due to
the need to acquire an up to date file size after flushing
all writes to the NFS server.

This patch switches the IO_APPEND writes to use direct I/O,
bypassing the buffer cache.  As such, flushing of writes
normally only occurs when the open(..O_APPEND..) is done.
It does imply that all writes must be done synchronously
and must be committed to stable storage on the file server
(NFSWRITE_FILESYNC).

For a simple test program that does 10,000 IO_APPEND writes
in a loop, performance improved significantly with this patch.

For a UFS exported file system, the test ran 12x faster.
This drops to 3x faster when the open(2)/close(2) are done
for each loop iteration.
For a ZFS exported file system, the test ran 40% faster.

The much smaller improvement may have been because the ZFS
file system I tested against does not have a ZIL log and
does have "sync" enabled.

Note that IO_APPEND write performance is still much slower
than when done on local file systems.

Although this is a simple patch, it does result in a
significant semantics change, so I have given it a
large MFC time.

Tested by: otis
MFC after: 3 months

2 years agoipfilter fil.c: Fix two typos in comments
Cy Schubert [Wed, 15 Dec 2021 03:44:58 +0000 (19:44 -0800)]
ipfilter fil.c: Fix two typos in comments

MFC after: 3 days

2 years agotcp: Rack in a rare case we can get stuck sending a very small amount.
Randall Stewart [Wed, 15 Dec 2021 14:41:33 +0000 (09:41 -0500)]
tcp: Rack in a rare case we can get stuck sending a very small amount.

If a tlp sending new data fails, and then the peer starts
talking to us again, we can be in a situation where the
tlp_new_data count is set, we are not in recovery and
we always send one packet every RTT. The failure
has to occur when we send the TLP initially from the ip_output()
which is rare. But if it occurs you are basically stuck.

This fixes it so we use the new_data count and clear it so
we know it will be cleared. If a failure occurs the tlp timer
will regenerate a new amount anyway so it is un-needed to
carry the value on.

Reviewed by: Michael Tuexen
Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D33325

2 years agobsdinstall: zfsboot: Prompt user for zpool name if the pool already exists
Emmanuel Vadot [Wed, 8 Dec 2021 10:37:50 +0000 (11:37 +0100)]
bsdinstall: zfsboot: Prompt user for zpool name if the pool already exists

If one install FreeBSD on multiple disks (say 13 and CURRENT) the first created
pool will always be used.
Prompt the user for a new pool name if we detect that the default or supplied one
already exists.

Reviewed by: imp
MFC after:      2 weeks
Sponsored by:   Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33331

2 years agobsdinstall: bootconfig: Try to clean old efi boot entries
Emmanuel Vadot [Wed, 8 Dec 2021 09:37:54 +0000 (10:37 +0100)]
bsdinstall: bootconfig: Try to clean old efi boot entries

If one install FreeBSD on the same machine multiple times in a row or
on different harddrive they have a lot of 'FreeBSD' efi boot entries added.
With this patch we now do :
- If there is no 'FreeBSD' entry we add one like before
- If there is one or more entries we ask the user if they want to delete
  them all and add a new one
  - If they say yes we do that
  - If they say no we prompt them an inputbox so they can enter a different
    entry name if they want, it defaults to 'FreeBSD'

Reviewed by: bapt, imp
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33330

2 years agoxen: plug some of set-but-not-used vars
Mateusz Guzik [Wed, 15 Dec 2021 13:45:04 +0000 (13:45 +0000)]
xen: plug some of set-but-not-used vars

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

2 years agoMake hwpmc work for userspace binaries again
Andrew Gallatin [Wed, 15 Dec 2021 13:38:36 +0000 (08:38 -0500)]
Make hwpmc work for userspace binaries again

hwpmc has been utterly broken for userspace binaries, and has been
labeling all samples from userspace binaries as dubious frames. The
issues are that:

-The check for ph.p_offset & (-ph.p_align) == 0 was mostly bogus. The
 intent was to ignore all executable segments other than the first,
 which when using BFD appeared in the first page, but with current LLD
 a read-only data segment appears before the executable segment,
 pushing the latter into the second page or later. This meant no
 executable segment was ever found, and thus pi_vaddr remained
 0. Instead of relying on BFD's layout, track whether we've seen an
 executable segment explicitly with a local bool.

-Shared libraries were not parsing the segments to calculate pi_vaddr,
 resulting in it always being 0. Again, when using BFD, the executable
 segment started at the first page, and so pi_vaddr was genuinely
 meant to be 0, but not with LLD's current layout. This meant that
 pmcstat_image_link's offset calculation gave the base address of the
 segment in memory, rather than the base address of the whole library
 in memory, and so when adding that to pi_start/pi_end to get the
 range of the executable sections in memory it double-counted the
 offset of the first executable segment within the library. Thus we
 need to do the exact same parsing for ET_DYN as we do for ET_EXEC,
 which is simpler to write as special-casing ET_REL to not look for
 segments. Note that, whilst PT_INTERP isn't needed for shared
 libraries, it will be for PIEs, which pmcstat still fails to handle
 due to not knowing the base address of the PIE; we get the base
 address for libraries by MAP_IN events, and for rtld by virtue of the
 process's entry address being rtld's, but have no equivalent for the
 executable.

Fixes courtesy of jrtc27@.

Reviewed by: jrtc27, jhb (earlier version)
Differential Revision: https://reviews.freebsd.org/D33055
Sponsored by: Netflix

2 years agomwl: plug some of set-but-not-used vars
Mateusz Guzik [Wed, 15 Dec 2021 12:35:38 +0000 (12:35 +0000)]
mwl: plug some of set-but-not-used vars

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

2 years agong_pppoe: plug set-but-not-used vars
Mateusz Guzik [Wed, 15 Dec 2021 12:32:40 +0000 (12:32 +0000)]
ng_pppoe: plug set-but-not-used vars

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

2 years agopowerpc64: fix the calculation of Maxmem
Leandro Lupori [Wed, 15 Dec 2021 11:49:47 +0000 (08:49 -0300)]
powerpc64: fix the calculation of Maxmem

The calculation of Maxmem was skipping the last phys_avail segment,
because of a wrong stop condition.

This was detected when using QEMU/PowerNV with Radix MMU and low
memory (2G). In this case opal_pci would allocate a DMA window that
was too small to cover all physical memory, resulting in reading all
zeroes from disk when using memory that was not inside the allocated
window.

Reviewed by: jhibbits
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D33449
MFC after: 2 weeks

2 years agommc_sim: fix setting of the mutex name
Andriy Gapon [Wed, 15 Dec 2021 11:37:59 +0000 (13:37 +0200)]
mmc_sim: fix setting of the mutex name

To quote the manual:
 The pointer passed in as name and type is saved rather than the data
 it points to.  The data pointed to must remain stable until the mutex
 is destroyed.

It seems that the type is actually copied, but the name is stored as
a pointer indeed.
mmc_cam_sim_alloc used a name stored on stack.
So, a corrupt mutex name would be reported.
For example:
  lock order reversal: (sleepable after non-sleepable)
  1st 0xd7285b20 <8A><C0><C0>P@<C1><D0>P@<C1>^D^A (aw_mmc_sim, sleep mutex) @ sys/cam/cam_xpt.c:2804

This change moves the name to struct mmc_sim.
Also, that name is used as the sim name as well.
Unused mtx_name variable is removed too.
The name buffer is reduced to 16 characters.

Reviewed by: manu, bz
MFC after: 10 days
Differential Revision: https://reviews.freebsd.org/D33412

2 years agosys/queue.h: move trashing from SLIST_REMOVE to REMOVE_AFTER, REMOVE_HEAD
Andriy Gapon [Wed, 15 Dec 2021 11:27:49 +0000 (13:27 +0200)]
sys/queue.h: move trashing from SLIST_REMOVE to REMOVE_AFTER, REMOVE_HEAD

SLIST_REMOVE calls either REMOVE_AFTER or REMOVE_HEAD to do the job.
But those two macros can be used independently as well.

MFC after: 2 weeks

2 years agork_i2c_fill_tx: fixup previous commit
Andriy Gapon [Wed, 15 Dec 2021 11:20:08 +0000 (13:20 +0200)]
rk_i2c_fill_tx: fixup previous commit

I forgot to amend the previous commit where i was uninitialized.

Fixes: c6635459510c rk_i2c_fill_tx: fix a number of issues
MFC after: 1 week

2 years agork_i2c_fill_tx: fix a number of issues
Andriy Gapon [Wed, 15 Dec 2021 11:00:45 +0000 (13:00 +0200)]
rk_i2c_fill_tx: fix a number of issues

- maximum number of bytes that can be sent is 32, not 8;
- previous interface required callers to bump sc->msg->len in addition
  to setting sc->tx_slave_addr;
- because of the above there was an issue with writing one too many bytes
  because sc->cnt is not advanced when the slave address is written;
- the inetraction between outer and inner loops was confusing as the former
  was bounded on the number of bytes to write and the counter was
  incremented by one, but the inner loop advanced four bytes at a time;
- the return value was incorrect in the tx_slave_addr case; one call place
  had to use its own (and incorrect in some cases) notion of the write
  lenth.

All of the above issues should be fixed.
Some sanity asserts are added.
All callers use the return value to program RK_I2C_MTXCNT.
iic_msg::len no longer needs to be hacked.
A constant is added to reflect the maximum number of octets that can be
sent or received in one go (they are the same).

MFC after: 1 week

2 years agork_i2c_transfer: minor improvement to bit twiddling
Andriy Gapon [Wed, 15 Dec 2021 09:11:15 +0000 (11:11 +0200)]
rk_i2c_transfer: minor improvement to bit twiddling

No need to mask a uint8_t with 0xff, the mask covers the whole type.
Explcitly cast to uint32_t before bit shifting instead of relying on
the implicit promotion to signed int.

MFC after: 1 week

2 years agork_i2c: do not hide NACK condition from consumers
Andriy Gapon [Wed, 15 Dec 2021 08:59:22 +0000 (10:59 +0200)]
rk_i2c: do not hide NACK condition from consumers

Previously the driver would happily talk to addresses with no device
returning some garbage for reads and sending bits into the void for writes.

MFC after: 1 week

2 years agork_i2c: keep sending bytes until all bytes are sent
Andriy Gapon [Wed, 15 Dec 2021 08:51:24 +0000 (10:51 +0200)]
rk_i2c: keep sending bytes until all bytes are sent

Previously the code would decalre the transfer complete after sending
first 31 bytes (plus the slave address) of a larger I2C write transfer.

That was tested using a large write to an EEPROM with 32-byte write page
size and a 2-byte address type.  Such a transaction needed to send 34
bytes, 2 bytes for an offset and 32 bytes of actual data.

MFC after: 1 week

2 years agork_i2c_transfer: fix off-by-one in check for last message
Andriy Gapon [Wed, 15 Dec 2021 08:44:43 +0000 (10:44 +0200)]
rk_i2c_transfer: fix off-by-one in check for last message

This also fixes an access beyond msgs array.

MFC after: 1 week

2 years agork_i2c_drain_rx: remove useless arithmetic manipulations
Andriy Gapon [Wed, 15 Dec 2021 08:42:23 +0000 (10:42 +0200)]
rk_i2c_drain_rx: remove useless arithmetic manipulations

When i % 4 == 0 the result of (i / 4) * 4 is always i.

MFC after: 1 week

2 years agork_i2c: consistently treat booleans as such
Andriy Gapon [Wed, 15 Dec 2021 08:40:22 +0000 (10:40 +0200)]
rk_i2c: consistently treat booleans as such

MFC after: 1 week

2 years agork_i2c_transfer: use iicbus error codes instead of generic ones
Andriy Gapon [Wed, 15 Dec 2021 08:38:24 +0000 (10:38 +0200)]
rk_i2c_transfer: use iicbus error codes instead of generic ones

MFC after: 1 week

2 years agork_i2c: remove write-only softc field
Andriy Gapon [Wed, 15 Dec 2021 08:37:04 +0000 (10:37 +0200)]
rk_i2c: remove write-only softc field

MFC after: 1 week

2 years agostress2: Added new tests
Peter Holm [Wed, 15 Dec 2021 08:57:15 +0000 (08:57 +0000)]
stress2: Added new tests

2 years agocross-build: Fix bmake bootstrap with glibc 2.34
Jessica Clarke [Wed, 15 Dec 2021 05:52:13 +0000 (05:52 +0000)]
cross-build: Fix bmake bootstrap with glibc 2.34

As of glibc 2.34, our unistd.h wrapper's inclusion of stdlib.h exposes
fragility in glibc's sys/wait.h and corresponding part of stdlib.h,
leading to "error: use of undeclared identifier 'WNOHANG'" and similar
errors when bootstrapping bmake.

Work around this by wrapping sys/wait.h to force stdlib.h's inclusion
first before it's implicitly included during the problematic window in
sys/wait.h.

MFC after: 1 week

2 years agoRemove test-includes build
Warner Losh [Wed, 15 Dec 2021 04:40:01 +0000 (21:40 -0700)]
Remove test-includes build

This is making the CI red. I believe this is because we do a clean build
w/o metamode in the tinderbox, so none of the artifacts needed to build
a binary are present. However, I've not recreated the problem locally
yet to confirm. Remove this while I investigate. This partially reverts
dd55767b86bc. The rest of the commit causes no harm w/o the explicit
test here.

Sponsored by: Netflix

2 years agocross-build: Add __weak_symbol definition for libdwarf bootstrap
Jessica Clarke [Wed, 15 Dec 2021 04:36:11 +0000 (04:36 +0000)]
cross-build: Add __weak_symbol definition for libdwarf bootstrap

Fixes: 3aa0bc89c6a1 ("libdwarf: Add a weak uncompress() symbol")
MFC after: 1 week

2 years agostand/uboot: reorg
Warner Losh [Wed, 15 Dec 2021 04:09:53 +0000 (21:09 -0700)]
stand/uboot: reorg

Build uboot ubldr and friends like we build efi binaries
o move everything to be under stand/uboot
o md code goes in arch/$ARCH
o move everything over from the library
  - Had to rename console.c, disk.c and module.c due to conflicts
o update version to 1.5 to reflect the new way of building

This results in a more consistent build system and should represent no
functional change, apart from powerpc version getting new help
file. Also, moved to exlcuding uboot on powerpc64le by using
BROKEN_OPTION instead of the incidental exclusion we had before due to
Makefile reorgs.

Sponsored by: Netflix
Feedback by: stevek, jrtc27
Differential Revision: https://reviews.freebsd.org/D33362

2 years agotest-includes: add missing file
Warner Losh [Wed, 15 Dec 2021 04:05:27 +0000 (21:05 -0700)]
test-includes: add missing file

Fixes: dd55767b86bc
Sponsored by: Netflix