]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agolinux(4): Remove unused arm64 SDT declarations
Edward Tomasz Napierala [Tue, 21 Dec 2021 06:07:15 +0000 (06:07 +0000)]
linux(4): Remove unused arm64 SDT declarations

Those tracepoints have been removed somewhere in the past.

Sponsored By: EPSRC

2 years agopkgbase: Create a FreeBSD-csh package
Emmanuel Vadot [Wed, 15 Dec 2021 15:34:19 +0000 (16:34 +0100)]
pkgbase: Create a FreeBSD-csh package

Now that root uses /bin/sh as the default shell no need to have csh part
of runtime.
Put it in its own package.

MFC after: never
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33471

2 years agopkgbase: Add a FreeBSD-pkg-bootstrap package
Emmanuel Vadot [Wed, 15 Dec 2021 14:19:46 +0000 (15:19 +0100)]
pkgbase: Add a FreeBSD-pkg-bootstrap package

And put pkg and its keys in it.
It's easier for small image to depend on this package rather than the
larger utilities one.

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

2 years agopkgbase: Create a FreeBSD-fetch package
Emmanuel Vadot [Wed, 15 Dec 2021 11:00:47 +0000 (12:00 +0100)]
pkgbase: Create a FreeBSD-fetch package

It's useful for small image to fetch some data but we don't want to
install utilities nor bloat runtime.

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

2 years agopkgbase: Put certctl in the FreeBSD-caroot package
Emmanuel Vadot [Wed, 15 Dec 2021 10:38:18 +0000 (11:38 +0100)]
pkgbase: Put certctl in the FreeBSD-caroot package

There is no reason that this shouldn't be there.
Change the dependency of caroot from utilities to openssl as it's
the only command that it uses not in runtime.

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

2 years agopkgbase: Create a FreeBSD-newsyslog package
Emmanuel Vadot [Wed, 15 Dec 2021 09:46:00 +0000 (10:46 +0100)]
pkgbase: Create a FreeBSD-newsyslog package

This allow one to install it without having to install FreeBSD-utilities.
While here put some newsyslog.d file in their own package.

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

2 years agopkgbase: Create a FreeBSD-syslogd package
Emmanuel Vadot [Wed, 15 Dec 2021 09:34:00 +0000 (10:34 +0100)]
pkgbase: Create a FreeBSD-syslogd package

This allow one to not install syslogd and use syslog-ng or any other
syslog daemon.
While here put some syslog.d file in their own package.

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

2 years agopkgbase: Create a FreeBSD-periodic package
Emmanuel Vadot [Wed, 15 Dec 2021 09:08:20 +0000 (10:08 +0100)]
pkgbase: Create a FreeBSD-periodic package

While here put the periodic files for some utilities in their own
packages.

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

2 years agopkgbase: Create a FreeBSD-ftpd package
Emmanuel Vadot [Wed, 15 Dec 2021 08:53:54 +0000 (09:53 +0100)]
pkgbase: Create a FreeBSD-ftpd package

And put ftpd into it.

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

2 years agopkgbase: Create a FreeBSD-mtree package
Emmanuel Vadot [Tue, 14 Dec 2021 16:19:30 +0000 (17:19 +0100)]
pkgbase: Create a FreeBSD-mtree package

And put the mtree binary and files in it.
Useful to create small mfsroot using /etc/rc.d/var without
having to install FreeBSD-utilities.

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

2 years agopkgbase: Create a FreeBSD-tcpd package
Emmanuel Vadot [Tue, 14 Dec 2021 15:42:46 +0000 (16:42 +0100)]
pkgbase: Create a FreeBSD-tcpd package

And put the tcp-wrapper utilities in it.

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

2 years agopkgbase: Remove vital flags for FreeBSD-utilities
Emmanuel Vadot [Wed, 29 Sep 2021 16:07:06 +0000 (18:07 +0200)]
pkgbase: Remove vital flags for FreeBSD-utilities

Per the pkg-descr: "Non-vital programs and librairies"

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

2 years agopkgbase: Put more binaries/lib in runtime
Emmanuel Vadot [Tue, 14 Dec 2021 14:31:30 +0000 (15:31 +0100)]
pkgbase: Put more binaries/lib in runtime

Move some needed binaries/libs from FreeBSD-utilities to FreeBSD_runtime.
This is everything needed to boot to multiuser with FreeBSD-rc installed.

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

2 years agopkgbase: Put autofs config files in the FreeBSD-autofs package
Emmanuel Vadot [Wed, 29 Sep 2021 06:42:09 +0000 (08:42 +0200)]
pkgbase: Put autofs config files in the FreeBSD-autofs package

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

2 years agopkgbase: Put yellow pages programs to its own package
Emmanuel Vadot [Tue, 28 Sep 2021 09:49:50 +0000 (11:49 +0200)]
pkgbase: Put yellow pages programs to its own package

YP is less and less used, split them to users have the choice to not
install them.

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

2 years agopkgbase: Put sconfig in FreeBSD-utilities
Emmanuel Vadot [Tue, 21 Dec 2021 09:16:08 +0000 (10:16 +0100)]
pkgbase: Put sconfig in FreeBSD-utilities

There is no need to have it in runtime as it's not essential.

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

2 years agoRevert "amd64: Do not build sconfig"
Emmanuel Vadot [Tue, 21 Dec 2021 09:14:45 +0000 (10:14 +0100)]
Revert "amd64: Do not build sconfig"

This reverts commit a46856c3f9ec86bd8f0436c3f0736783c2f804db.

Requested by: glebius

2 years agoocs_fc: Populate subvendor and subdevice ids.
Ram Kishore Vegesna [Mon, 20 Dec 2021 12:25:13 +0000 (17:55 +0530)]
ocs_fc: Populate subvendor and subdevice ids.
Enable serialnumber reporting.

Reviewed by: mav
MFC after: 3 days

2 years agoperiodic: Use a deterministic $PATH for periodic.
Peter Wemm [Tue, 21 Dec 2021 01:08:04 +0000 (17:08 -0800)]
periodic: Use a deterministic $PATH for periodic.

Various tools can have alternate versions elsewhere, eg: the GNU
mailutils port (a dependency of emacs*) brings /usr/local/bin/mail.
Match the preset PATH in /etc/crontab for deterministic path searches
even when run manually with a different environment.

PR: 259265
Reported by: iandstanley@gmail.com

2 years agoFix dtrace SDT probe tcp:::debug-input
Robert Wing [Tue, 21 Dec 2021 02:15:43 +0000 (17:15 -0900)]
Fix dtrace SDT probe tcp:::debug-input

The tcp:::debug-input probe is passed an mbuf pointer, use the correct
translator for ipinfo_t when defining tcp:::debug-input.

Fixes: 82988b50a17c ("Add an mbuf to ipinfo_t translator to finish ...")
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D33066

2 years agolibnv: bump sysctl for nvlist_send_recv__send_many_fds__dgram test
Robert Wing [Tue, 21 Dec 2021 00:57:47 +0000 (15:57 -0900)]
libnv: bump sysctl for nvlist_send_recv__send_many_fds__dgram test

Increase sysctl net.local.dgram.recvspace to 1M.

Reported by:    Jenkins

2 years agousbconfig: actually set the exit code in usage()
Joerg Wunsch [Mon, 20 Dec 2021 21:25:19 +0000 (22:25 +0100)]
usbconfig: actually set the exit code in usage()

Oversight in previous commit: usage() had been turned to accept
an "exitcode" parameter, but it hasn't been used.

MFC after: 2 weeks

2 years agonfscl: Check for mmap(2)'d file before doing direct output
Rick Macklem [Mon, 20 Dec 2021 21:08:51 +0000 (13:08 -0800)]
nfscl: Check for mmap(2)'d file before doing direct output

Commit 867c27c23a5c modified the NFS client so that
it does IO_APPEND writes directly to the NFS server,
bypassing the buffer cache.  However, this could result
in stale data in client pages when the file is mmap(2)'d.
As such, the NFS client needs to call vm_object_is_active()
to check if the file is mmap(2)'d and only do direct
output if the file is not mmap(2)'d.

This patch adds this check.

Although a simple patch, I have given it a long MFC,
since the related commit 867c27c23a5c made a significant
semantics change and, as such, has a long MFC.

MFC after: 3 months

2 years agousbconfig: implement a -v option
Joerg Wunsch [Mon, 20 Dec 2021 19:33:05 +0000 (20:33 +0100)]
usbconfig: implement a -v option

Implement a -v option to usbconfig(8), as a shortcut for the most
frequently needed commands dump_device_desc, dump_curr_config_desc,
and show_ifdrv.

While here, implement a real -h option that has been promised by the
man page.

Use <sysexits.h> to declare the utility return codes.

Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D33586
MFC after: 2 weeks

2 years agotcp_twrespond: send signed segment when connection is TCP-MD5
Robert Wing [Mon, 20 Dec 2021 20:30:24 +0000 (11:30 -0900)]
tcp_twrespond: send signed segment when connection is TCP-MD5

When a connection is established to use TCP-MD5, tcp_twrespond() doesn't
respond with a signed segment. This results in the host performing the
active close to remain in a TIME_WAIT state and the other host in the
LAST_ACK state. Fix this by sending a signed segment when the connection
is established to use TCP-MD5.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D33490

2 years agolorder: add note that it is no longer required
Ed Maste [Mon, 20 Dec 2021 17:57:34 +0000 (12:57 -0500)]
lorder: add note that it is no longer required

Use of lorder(1) is not required by contemporary linkers.

The GNU coreutils manual[1] has a good description of the use of lorder
and tsort:

    This whole procedure has been obsolete since about 1980, because
    Unix archives now contain a symbol table (traditionally built by
    ranlib, now generally built by ar itself), and the Unix linker uses
    the symbol table to effectively make multiple passes over an archive
    file.

See 0e1e341b486c for some more details.

[1] https://www.gnu.org/software/coreutils/manual/html_node/tsort-background.html

PR: 259254 [exp-run]
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

2 years agoRevert "t_setrlimit: Adjust resource limit to 20M"
Marcin Wojtas [Mon, 20 Dec 2021 17:33:06 +0000 (18:33 +0100)]
Revert "t_setrlimit: Adjust resource limit to 20M"

This reverts commit 4f741801d86089a1c5d631ba1e0f1421cdcf7a7e.

As per discussion in PR: 260303 the reverted patch covered the
real issue with a fixed address of the top of the stack.

2 years agonanobsd: sync base system ssh config files
Ed Maste [Mon, 20 Dec 2021 16:11:00 +0000 (11:11 -0500)]
nanobsd: sync base system ssh config files

Fixes: e9e8876a4d6a ("ssh: update to OpenSSH v8.8p1")
Sponsored by: The FreeBSD Foundation

2 years agoipfilter: Remove remaining unused bits
Cy Schubert [Thu, 16 Dec 2021 04:52:48 +0000 (20:52 -0800)]
ipfilter: Remove remaining unused bits

Remove the remaining unused source files. These were never used.

This is the last of a three commit series to move ipfilter.

Discussed with: glebius
Reviewed by: glebius, kp (for #network)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33510

2 years agoipfilter: Move userland bits to sbin
Cy Schubert [Wed, 15 Dec 2021 21:45:47 +0000 (13:45 -0800)]
ipfilter: Move userland bits to sbin

Through fixes and improvements our ipfilter sources have diverged
enough to warrant move from contrib into sbin/ipf. Now that I'm
planning on implementing MSS clamping as in iptables it makes more
sense to move ipfilter to sbin.

This is the second of three commits of the ipfilter move.

Suggested by glebius on two occaions.

Suggested by and discussed with: glebius
Reviewed by: glebius, kp (for #network)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33510

2 years agoipfilter: Move kernel bits to netpfil
Cy Schubert [Wed, 15 Dec 2021 16:28:18 +0000 (08:28 -0800)]
ipfilter: Move kernel bits to netpfil

Through fixes and improvements our ipfilter sources have diverged
enough to warrant move from contrib into sys/netpil. Now that I'm
planning on implementing MSS clamping as in iptables it makes more
sense to move ipfilter to netpfil.

This is the first of three commits the ipfilter move.

Suggested by glebius on two occaions.

Suggested by and discussed with: glebius
Reviewed by: glebius, kp (for #network)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33510

2 years agoAdd an loader command on arm64 to sync the cache
Andrew Turner [Mon, 20 Dec 2021 13:42:15 +0000 (13:42 +0000)]
Add an loader command on arm64 to sync the cache

On boot we don't need to perform any CPU cache management when the IDC
and DIC fields in the ctr_el0 register are set. Add a command to tell
loader to ignore these fields. This could be useful, for example, if the
hardware is misreporting the values and we are missing a quirk to enable
it.

It is not expected this will be needed, but is only intended as a
workaround to ensure the kernel can still boot.

Sponsored by: The FreeBSD Foundation

2 years agoDon't sync the I/D caches when they are coherent
Andrew Turner [Fri, 17 Dec 2021 09:33:57 +0000 (09:33 +0000)]
Don't sync the I/D caches when they are coherent

In the arm64 loader we need to syncronise the I and D caches. On some
newer CPUs the I and D caches are coherent so we don't need to perform
these operations.

While here remove the arguments to cpu_inval_icache as they are unneeded.

Reported by: cperciva
Tested by: cperciva
Sponsored by: Innovate UK

2 years agousbconfig: documentation fixes, mainly for -i option
Joerg Wunsch [Mon, 20 Dec 2021 09:17:57 +0000 (10:17 +0100)]
usbconfig: documentation fixes, mainly for -i option

* in usage(), clearly mark -i interface as optional
* both, -u busnum and -a devaddr are optional as well
* various minor man page fixes
* clearly mark those two commands that actually use -i ifaceidx
* remove unused bitfield tag got_iface
* fix indentation level according to review comment

Differential Revision: https://reviews.freebsd.org/D33579/
Reviewed by: hselasky
MFC after: 2 weeks

2 years agousbconfig: use getopt(3) for option handling
Joerg Wunsch [Sun, 19 Dec 2021 22:49:23 +0000 (23:49 +0100)]
usbconfig: use getopt(3) for option handling

This makes option handling consistent with other utilities as well as
Posix rules. By that, it's no longer important whether option name and
its argument are separated by a space or not, so -d5.3 works the same
as -d 5.3.

Also, recognize either /dev/ugen or ugen as prefix to the -d argument.

Note that this removes the undocumented feature that allowed to
specify multiple -d n.m options interleaved with commands referring to
that particular device in a single run.

2 years agofirewire(4): Fix "set but not used" warnings
Edward Tomasz Napierala [Sat, 18 Dec 2021 15:10:45 +0000 (15:10 +0000)]
firewire(4): Fix "set but not used" warnings

Sponsored By: EPSRC

2 years agoaw_spi: improve I/O stability
Andriy Gapon [Mon, 20 Dec 2021 10:40:17 +0000 (12:40 +0200)]
aw_spi: improve I/O stability

This driver does not use DMA at the moment, so some care is needed to
prevent TX FIFO underruns and RX FIFO overflows.
Several improvements are done in oder to minimize chances of those.

First, the interrupt handling is moved to a filter to minimize latency.
Second, FIFO trigger thresholds are configured for both FIFOs.
The TX FIFO threshold is set to 3/4-th of its size and the RX FIFO
threshold is set to 1/4-th of its size.
The interrupt conditions are changed from the empty FIFO and full FIFO
for the TX and RX correspondingly to going below and above the thresholds.

While here I renamed AW_SPI_IER_RF_ERQ to AW_SPI_IER_RF_RDY which is
closer to what the documentation uses, RF_RDY_INT_EN in the interrupt
control register and RX_RDY in the interrupt status register.

Reviewed by: manu
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D33558

2 years agotests/libalias: Make inline functions static inline
Dimitry Andric [Mon, 20 Dec 2021 09:52:02 +0000 (10:52 +0100)]
tests/libalias: Make inline functions static inline

In C, plain inline functions should never be used: they should be
declared either static inline or extern inline. In this case, they are
clearly meant to be static inline.

MFC after: 3 days

2 years agocam: don't send scsi commands on shutdown when reboot method RB_NOSYNC
Wojciech Macek [Mon, 20 Dec 2021 05:32:51 +0000 (06:32 +0100)]
cam: don't send scsi commands on shutdown when reboot method RB_NOSYNC

Don't send the SCSI comand SYNCHRONIZE CACHE on devices that are still
open when RB_NOSYNC is the reboot method. This may avoid recursive panics
when doadump is called due to a SCSI/CAM/USB error/bug.

Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: imp
Differential revision: https://reviews.freebsd.org/D31549

2 years agot_setrlimit: Adjust resource limit to 20M
Dawid Gorecki [Mon, 20 Dec 2021 05:27:12 +0000 (06:27 +0100)]
t_setrlimit: Adjust resource limit to 20M

With ASLR enabled by default, RLIMIT_STACK test fails due to the fact
that default stack gap can be as big as 15M. Because of that the
resource limit of 4M results in test program receiving SIGSEGV
immediately after exiting the setrlimit syscall. Since the idea of this
test is to check if rlim_cur does not extend past rlim_max, adjusting
the resource limit to 20M should not invalidate the test results.

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

2 years agoEliminate key press requirement "show vmopag" command output.
Stephen J. Kiernan [Fri, 17 Dec 2021 21:39:51 +0000 (16:39 -0500)]
Eliminate key press requirement "show vmopag" command output.

Summary:
One was required to press a key to continue after every 18 lines of
output. This requirement had been in the "show vmopag" command since it
was introduced, which was many years before paging was added to DDB.
With paging, this explict key check is no longer necessary.

Obtained from: Juniper Networks, Inc.
MFC after: 1 week

Test Plan:
Run "show vmopag" from db> prompt and see that it does not need additional
keypresses other than the ones needed for the pager.

Subscribers: imp, #contributor_reviews_base

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

2 years agovm_object: Make is_object_active() global
Rick Macklem [Mon, 20 Dec 2021 00:11:44 +0000 (16:11 -0800)]
vm_object: Make is_object_active() global

Commit 867c27c23a5c modified the NFS client so that
it does IO_APPEND writes directly to the NFS server,
bypassing the buffer cache.  However, this could result
in stale data in client pages when the file is mmap(2)'d.
As such, the NFS client needs to call is_object_active()
to check if the file is mmap(2)'d.

This patch renames is_object_active() to vm_object_is_active(),
moves it to sys/vm/vm_object.c and makes it global, so that
the NFS client can call it in a future commit.

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

2 years agotcptw: count how many times a tcptw was actually useful
Gleb Smirnoff [Sun, 19 Dec 2021 16:22:12 +0000 (08:22 -0800)]
tcptw: count how many times a tcptw was actually useful

This will allow a sysadmin to lower net.inet.tcp.msl and
see how long tcptw are actually useful.

2 years agotcptw: remove unused fields
Gleb Smirnoff [Sun, 19 Dec 2021 16:22:12 +0000 (08:22 -0800)]
tcptw: remove unused fields

The structure goes away anyway, but it would be interesting to know
how much memory we used to save with it.  So for the record, structure
size with this revision is 64 bytes.

2 years agossh: disable RSA/SHA-1 signatures
Ed Maste [Sun, 19 Dec 2021 02:51:01 +0000 (21:51 -0500)]
ssh: disable RSA/SHA-1 signatures

From OpenSSH 8.8p1's release notes:

---

Potentially-incompatible changes
================================

This release disables RSA signatures using the SHA-1 hash algorithm
by default. This change has been made as the SHA-1 hash algorithm is
cryptographically broken, and it is possible to create chosen-prefix
hash collisions for <USD$50K [1]

For most users, this change should be invisible and there is
no need to replace ssh-rsa keys. OpenSSH has supported RFC8332
RSA/SHA-256/512 signatures since release 7.2 and existing ssh-rsa keys
will automatically use the stronger algorithm where possible.

Incompatibility is more likely when connecting to older SSH
implementations that have not been upgraded or have not closely tracked
improvements in the SSH protocol. For these cases, it may be necessary
to selectively re-enable RSA/SHA1 to allow connection and/or user
authentication via the HostkeyAlgorithms and PubkeyAcceptedAlgorithms
options. For example, the following stanza in ~/.ssh/config will enable
RSA/SHA1 for host and user authentication for a single destination host:

    Host old-host
        HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

We recommend enabling RSA/SHA1 only as a stopgap measure until legacy
implementations can be upgraded or reconfigured with another key type
(such as ECDSA or Ed25519).

[1] "SHA-1 is a Shambles: First Chosen-Prefix Collision on SHA-1 and
    Application to the PGP Web of Trust" Leurent, G and Peyrin, T
    (2020) https://eprint.iacr.org/2020/014.pdf

---

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

2 years agossh: update to OpenSSH v8.8p1
Ed Maste [Sun, 19 Dec 2021 16:02:02 +0000 (11:02 -0500)]
ssh: update to OpenSSH v8.8p1

OpenSSH v8.8p1 was motivated primarily by a security update and
deprecation of RSA/SHA1 signatures.  It also has a few minor bug fixes.

The security update was already applied to FreeBSD as an independent
change, and the RSA/SHA1 deprecation is excluded from this commit but
will immediately follow.

MFC after: 1 month
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

2 years agoinet6: fix a LOR between rip and rawinp
Mateusz Guzik [Thu, 16 Dec 2021 14:11:42 +0000 (15:11 +0100)]
inet6: fix a LOR between rip and rawinp

Running sys/netpfil/pf/fragmentation v6 results in:

lock order reversal:
 1st 0xfffffe00050429a8 rip (rip, sleep mutex) @ /usr/src/sys/netinet6/raw_ip6.c:803
 2nd 0xfffff8009491e1d0 rawinp (rawinp, rw) @ /usr/src/sys/netinet6/raw_ip6.c:804
lock order rawinp -> rip established at:
0xffffffff8068e26a at witness_lock_order_add+0x28a
0xffffffff8068d087 at witness_checkorder+0x627
0xffffffff805a9f05 at __mtx_lock_flags+0x205
0xffffffff808102e4 at in_pcballoc+0x204
0xffffffff808d53c6 at rip6_attach+0x116
0xffffffff806dc4e8 at socreate+0x368
0xffffffff806eaedc at kern_socket+0xfc
0xffffffff806eadcd at sys_socket+0x2d
0xffffffff80abc774 at syscallenter+0x5c4
0xffffffff80abbeeb at amd64_syscall+0x1b
 0xffffffff80a8044b at fast_syscall_common+0xf8
lock order rip -> rawinp attempted at:
0xffffffff8068dc2a at witness_checkorder+0x11ca
0xffffffff805d1b7f at _rw_wlock_cookie+0x18f
0xffffffff808d596c at rip6_connect+0x19c
0xffffffff806e0842 at soconnectat+0x142
0xffffffff806ebe36 at kern_connectat+0x136
0xffffffff806ebcdf at sys_connect+0x4f
0xffffffff80abc774 at syscallenter+0x5c4
0xffffffff80abbeeb at amd64_syscall+0x1b
0xffffffff80a8044b at fast_syscall_common+0xf8

Reviewed by: glebius
Fixes: de2d47842e880281 ("SMR protection for inpcbs")
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33508

2 years agoTry to fix syntax of "strht" instruction so that clang is happy.
Hans Petter Selasky [Sun, 19 Dec 2021 12:51:37 +0000 (13:51 +0100)]
Try to fix syntax of "strht" instruction so that clang is happy.

This fixes compilation of usb(4) after 0ec590d24e415dd36e38648630a0b963412ad87e .

MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agomips: Implement suword16
Jessica Clarke [Sun, 19 Dec 2021 12:48:49 +0000 (12:48 +0000)]
mips: Implement suword16

This fixes building USB-using kernels after 0ec590d24e41.

Fixes: 0ec590d24e41 ("usb: add 32-bit compat for FIFOs")

2 years agoImplement suword16() for 32-bit and 64-bit PowerPC architecture.
Hans Petter Selasky [Sun, 19 Dec 2021 12:16:59 +0000 (13:16 +0100)]
Implement suword16() for 32-bit and 64-bit PowerPC architecture.

This fixes compilation of usb(4) after 0ec590d24e415dd36e38648630a0b963412ad87e .

MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agoImplement suword16() for the 32/64-bit PowerPC architecture.
Hans Petter Selasky [Sun, 19 Dec 2021 11:19:53 +0000 (12:19 +0100)]
Implement suword16() for the 32/64-bit PowerPC architecture.

This fixes compilation of usb(4) after 0ec590d24e415dd36e38648630a0b963412ad87e .

MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agoImplement suword16() for the 32-bit ARMv6/v7 architecture.
Hans Petter Selasky [Sun, 19 Dec 2021 11:12:58 +0000 (12:12 +0100)]
Implement suword16() for the 32-bit ARMv6/v7 architecture.

This fixes compilation of usb(4) after 0ec590d24e415dd36e38648630a0b963412ad87e .

MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agotwsi: use twsi_error() to handle wrong bus status when starting
Andriy Gapon [Sun, 19 Dec 2021 09:28:02 +0000 (11:28 +0200)]
twsi: use twsi_error() to handle wrong bus status when starting

MFC after: 1 week

2 years agotwsi: fix handling of consecuitve write messages in transaction
Andriy Gapon [Sun, 19 Dec 2021 09:26:40 +0000 (11:26 +0200)]
twsi: fix handling of consecuitve write messages in transaction

Make sure to reset 'message_done' flag when jumping from a message to the
next one within the same interrupt handler call.  This happens only when
a write with no-stop flag message is followed by a write with no-start
flag message.
Without this fix the second message would be prematurely "completed"
without waiting for an ACK (or NACK) for its first byte and without
sending subsequent bytes (if any).

Fixes: ff1e8581 twsi: support more message combinations in transfers
MFC after: 4 days

2 years agocarp: fix send error demotion recovery
Gleb Smirnoff [Sun, 19 Dec 2021 01:19:26 +0000 (17:19 -0800)]
carp: fix send error demotion recovery

The problem is that carp(4) would clear the error counter on first
successful send, and stop counting successes after that.  Fix this
logic and document it in human language.

PR: 260499
Differential revision: https://reviews.freebsd.org/D33536

2 years agoMove ve_check_hash prototype to libsecureboot-priv.h
Simon J. Gerraty [Sun, 19 Dec 2021 00:34:58 +0000 (16:34 -0800)]
Move ve_check_hash prototype to libsecureboot-priv.h

Reviewed by: stevek

2 years agoif_oce: fix epoch handling
Michael Tuexen [Sat, 18 Dec 2021 22:43:00 +0000 (23:43 +0100)]
if_oce: fix epoch handling

Thanks to gallatin@ for suggesting the patch.

PR: 260330
Reported by: Vincent Milum Jr.
Reviewed by: gallatin, glebius
Tested by: Vincent Milum Jr.
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D33395

2 years agoUpdate dirdeps.mk et al to 20211212 versions
Simon J. Gerraty [Sat, 18 Dec 2021 21:37:07 +0000 (13:37 -0800)]
Update dirdeps.mk et al to 20211212 versions

dirdeps.mk: simplify computation of qualified vs unqualified dirdeps.
Note the importance of avoiding unresolved variables in DIRDEPS
Fix DIRDEP_LOADAVG_REPORT - expr(1) fails if expression evaluates to 0
Trim ${SRCTOP}/ from debug etc messages to make comparison easier.
Include number of DIRDEPS in debug output.
Trim ${SRCTOP}/ when exporting to env while building DIRDEPS_CACHE
to help avoid env exhaustion.
Use DIRDEPS_ALL_MACHINES_FILTER to better handle ALL_MACHINES
in complex build environments.

dirdeps-options.mk: use separate .undef for each variable

dirdeps-targets.mk: allow for '.' in DIRDEPS_TARGETS_DIRS

meta.autodep.mk: leverage ${.SUFFIXES} if we can.

meta.sys.mk: allow use in META_MODE vs DIRDEPS_BUILD

meta2deps.py: compute a list of dirdep extensions that map to current
TARGET_SPEC to avoid confusion.

Reviewed by: stevek

2 years agousb(4): Fix build on 32-bit platforms after 0ec590d24e415dd36e38648630a0b963412ad87e.
Hans Petter Selasky [Sat, 18 Dec 2021 20:29:26 +0000 (21:29 +0100)]
usb(4): Fix build on 32-bit platforms after 0ec590d24e415dd36e38648630a0b963412ad87e.

Cast pointer to "long" for now, to match the fueword() prototype.

MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agousb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101.
Hans Petter Selasky [Sat, 18 Dec 2021 20:26:57 +0000 (21:26 +0100)]
usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101.

Make sure local variable is initialized when COMPAT_32BIT is not defined.

MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agoAfter-import bmake-20211212
Simon J. Gerraty [Sat, 18 Dec 2021 18:14:39 +0000 (10:14 -0800)]
After-import bmake-20211212

2 years agoMerge bmake-20211212
Simon J. Gerraty [Sat, 18 Dec 2021 18:09:14 +0000 (10:09 -0800)]
Merge bmake-20211212

commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'

2 years agoman: Remove obsolete meteor.4
Marius Strobl [Sat, 18 Dec 2021 13:56:16 +0000 (14:56 +0100)]
man: Remove obsolete meteor.4

The corresponding interface has been deorbited as part of
daba5ace03e83a930c128ae644afd186e1fe4341.

2 years agosafexcel: plug set-but-not-used vars
Mateusz Guzik [Sat, 18 Dec 2021 13:29:32 +0000 (13:29 +0000)]
safexcel: plug set-but-not-used vars

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

2 years agoipfw: plug set-but-not-used vars
Mateusz Guzik [Sat, 18 Dec 2021 13:21:03 +0000 (13:21 +0000)]
ipfw: plug set-but-not-used vars

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

2 years agoiicbus: plug set-but-not-used vars
Mateusz Guzik [Sat, 18 Dec 2021 13:14:04 +0000 (13:14 +0000)]
iicbus: plug set-but-not-used vars

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

2 years agolinux: plug set-but-not-used vars
Mateusz Guzik [Sat, 18 Dec 2021 13:12:15 +0000 (13:12 +0000)]
linux: plug set-but-not-used vars

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

2 years agointro(3): Fix formatting
Edward Tomasz Napierala [Sat, 18 Dec 2021 11:51:42 +0000 (11:51 +0000)]
intro(3): Fix formatting

This makes the left column narrower, leaving more space for the text.

Reviewed By: debdrup, 0mp
Differential Revision: https://reviews.freebsd.org/D33385

2 years agohier(7): add some new Xrs, remove some unrelated ones
Edward Tomasz Napierala [Sat, 18 Dec 2021 11:50:07 +0000 (11:50 +0000)]
hier(7): add some new Xrs, remove some unrelated ones

Reviewed By: debdrup, imp, 0mp
Differential Revision: https://reviews.freebsd.org/D33386

2 years agogeom(4): Fix some of the "set but not used" warnings
Edward Tomasz Napierala [Mon, 13 Dec 2021 15:19:56 +0000 (15:19 +0000)]
geom(4): Fix some of the "set but not used" warnings

The few I've left in place look like potential bugs.

Sponsored By: EPSRC

2 years agoImport bmake-20211212
Simon J. Gerraty [Sat, 18 Dec 2021 07:27:22 +0000 (23:27 -0800)]
Import bmake-20211212

Relevant changes see ChangeLog for details:

Add support for ${.SUFFIXES} as read-only variable.

Fix memory leak in cond.c

Punt on write errors - ENOSPC etc.

Lots of code refactoring, rework to reduce memory allocations.

More unit-tests.

2 years agocrypto: Encrypt the XORed input block for Camellia-CBC.
John Baldwin [Sat, 18 Dec 2021 00:46:09 +0000 (16:46 -0800)]
crypto: Encrypt the XORed input block for Camellia-CBC.

This fixes a regression in the previous change to move CBC chaining
into enc_xform_camellia which passed the raw input into the encrypt
function (thus not actually doing the chaining).  This still works
when using the same buffer for input and output which is why my
initial testing with cryptocheck didn't catch it.

Fixes: f84d708b484b crypto: Move CBC handling into enc_xform_camellia.
Sponsored by: The FreeBSD Foundation

2 years agocryptosoft: Use POLY1305_BLOCK_LEN instead of a magic number.
John Baldwin [Fri, 17 Dec 2021 21:58:59 +0000 (13:58 -0800)]
cryptosoft: Use POLY1305_BLOCK_LEN instead of a magic number.

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

2 years agocryptosoft: Consolidate calls to explicit_bzero.
John Baldwin [Fri, 17 Dec 2021 21:58:58 +0000 (13:58 -0800)]
cryptosoft: Consolidate calls to explicit_bzero.

Group sensitive on-stack variables into anonymous structs so that they
can be cleared with a single call to explicit_bzero rather than
multiple calls.

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

2 years agocryptosoft: Reuse 'blk' to hold the initial nonce in swcr_gmac.
John Baldwin [Fri, 17 Dec 2021 21:58:58 +0000 (13:58 -0800)]
cryptosoft: Reuse 'blk' to hold the initial nonce in swcr_gmac.

Reusing the storage removes the need for an additional explicit_bzero.

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

2 years agocryptosoft: Remove unused 'iv' in swcr_ccm_cbc_mac.
John Baldwin [Fri, 17 Dec 2021 21:58:58 +0000 (13:58 -0800)]
cryptosoft: Remove unused 'iv' in swcr_ccm_cbc_mac.

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

2 years agousb: remove COMPAT_32BIT ifdefs
Brooks Davis [Fri, 17 Dec 2021 21:28:14 +0000 (21:28 +0000)]
usb: remove COMPAT_32BIT ifdefs

Now that we have proper 32-bit compat support, remove COMPAT_32BIT
ifdefs to allow 32-bit code to use the 64-bit layout of USB ioctl
structs and struct usb_fs_endpoint.

This includes the removal of redundant alignment directives that had
no effect in practice.

Reviewed by: hselasky, jrtc27 (prior version)

2 years agolibusb: remove use of COMPAT_32BIT
Brooks Davis [Fri, 17 Dec 2021 21:28:14 +0000 (21:28 +0000)]
libusb: remove use of COMPAT_32BIT

This codepath used uint64_t's in place of pointers in structs and
arrays to allow 32-bit code to use 64-bit version of ioctls.  Now
that we support 32-bit compat natively this is no longer needed.

Reviewed by: hselasky, jrtc27 (prior version)

2 years agousb: add 32-bit compat for FIFOs
Brooks Davis [Fri, 17 Dec 2021 21:28:14 +0000 (21:28 +0000)]
usb: add 32-bit compat for FIFOs

Unlike most 32-bit compatability code, this isn't just a simple thunk
in the ioctl code.  An ioctl (USB_FS_INIT) is used to install a
pointer to an array of usb_fs_endpoint structs which are then used
by the ugen fifo code.  These struct contains an array of pointers
which requires translation.  We change the interfaces around
struct usb_fs_endpoint as follows:
 - We store the size of struct usb_fs_endpoint in struct usb_fifo
   in the USB_FS_INIT handler so we know the ABI of the userspace
   array.
 - APIs to manipulate userspace struct usb_fs_endpoint objects now
   take a struct usb_fifo and an index rather than a pointer to
   the object.  This allows most code to remain oblivious to the
   different struct usb_fs_endpoint sizes.
 - Add ugen_fs_copyin() which copies the struct usb_fs_endpoint
   from userspace, thunking it to the native size if required.
 - Uses of struct usb_fs_endpoint's ppBuffer member are now
   via ugen_fs_getbuffer() which produces a native pointer.
 - Updates to userspace are now handled by ugen_fs_update().

For clarity, single, fixed-sized members now are accessed with
fueword/suword rather than copyin/copyout.

Reviewed by: hselasky, jrtc27 (prior version)

2 years agousb: real freebsd32 support for most ioctls
Brooks Davis [Fri, 17 Dec 2021 21:28:13 +0000 (21:28 +0000)]
usb: real freebsd32 support for most ioctls

Use thunks or alternative access methods to support ioctls without
the COMPAT_32BIT hacks that store pointers in uint64_t's on 32-bit
platforms.  This should allow a normal i386 libusb to work.

On CheriBSD, the sizes of the structs will differ between CheriABI
(the default) and freebsd64 no matter what so we need proper compat
support there.  This change paves the way.

Reviewed by: hselasky, jrtc27 (prior version)

2 years agopci: add missing PCI id of Coffee Lake GPU
Corvin Köhne [Fri, 17 Dec 2021 21:09:32 +0000 (23:09 +0200)]
pci: add missing PCI id of Coffee Lake GPU

The PCI id of an UHD Graphics 630 for Coffee Lake GPUs is missing in
the PCI id list of all Intel GPUs.

You can take a look at
https://dgpu-docs.intel.com/devices/hardware-table.html to check that
this device id exists.  Or check the linux code:
https://github.com/torvalds/linux/commit/d0e062ebb3a44b56a7e672da568334c76f763552

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

2 years agoahci(4): Allow enclosure emulation without hardware.
Alexander Motin [Fri, 17 Dec 2021 20:24:56 +0000 (15:24 -0500)]
ahci(4): Allow enclosure emulation without hardware.

After 53f5ac1310e allowed SATA device mapping to enclosure slots,
it may have sense to provide enclosure device emulation even without
real hardware interface like SGPIO just for purposes of physical
device location tracking (still assuming straight cabling).

MFC after: 1 week
Sponsored by: iXsystems, Inc.

2 years agotcp: allocate statistics in the main tcp_init()
Gleb Smirnoff [Fri, 17 Dec 2021 18:50:56 +0000 (10:50 -0800)]
tcp: allocate statistics in the main tcp_init()

No reason to have a separate SYSINIT.

2 years agotests: Add some regression tests for a couple of KERN_PROC_* sysctls
Mark Johnston [Thu, 16 Dec 2021 21:06:55 +0000 (16:06 -0500)]
tests: Add some regression tests for a couple of KERN_PROC_* sysctls

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

2 years agofd: Avoid truncating output buffers for KERN_PROC_{CWD,FILEDESC}
Mark Johnston [Thu, 16 Dec 2021 21:07:04 +0000 (16:07 -0500)]
fd: Avoid truncating output buffers for KERN_PROC_{CWD,FILEDESC}

These sysctls failed to return an error if the caller had provided too
short an output buffer.  Change them to return ENOMEM instead, to ensure
that callers can detect truncation in the face of a concurrently
changing fd table.

PR: 228432
Discussed with: cem, jhb
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D15607

2 years agofd: Initialize more export_fd_buf fields in kern_proc_cwd_out()
Mark Johnston [Thu, 16 Dec 2021 21:53:59 +0000 (16:53 -0500)]
fd: Initialize more export_fd_buf fields in kern_proc_cwd_out()

In particular, we need to initialize efbuf->flags, since
export_vnode_to_sb() loads that field.  This was mostly harmless since
the flag only determines whether the output kinfo_file is packed, and
KERN_PROC_CWD only ever emits a single kinfo_file anyway.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

2 years agoqat: Address -Wunused-but-set-variable warnings
Mark Johnston [Fri, 10 Dec 2021 15:52:30 +0000 (10:52 -0500)]
qat: Address -Wunused-but-set-variable warnings

MFC after: 1 week

2 years agodtrace: Disable getf() as it is broken on FreeBSD
Domagoj Stolfa [Fri, 17 Dec 2021 16:01:54 +0000 (11:01 -0500)]
dtrace: Disable getf() as it is broken on FreeBSD

getf() on FreeBSD calls _sx_slock(), _sx_sunlock() and fget_locked().
Furthermore, it does not set the per-core fault flag, meaning it
usually ends up in a double fault panic once getf() does get called,
especially from fbt.

Reviewing the DTrace Toolkit + a number of other scripts scattered
around FreeBSD, I have not been able to find one use of getf(). Given
how broken the implementation currently is, we disable it until it
can be implemented properly.

Also comment out a test in aggs/tst.subr.d for getf().

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

2 years agoktls: Add a regression test to exercise socket error handling
Mark Johnston [Fri, 17 Dec 2021 16:00:19 +0000 (11:00 -0500)]
ktls: Add a regression test to exercise socket error handling

Prior to commit 916c61a5ed37 ("Fix handling of errors from
pru_send(PRUS_NOTREADY)") this test triggered a kernel panic due to an
mbuf double free.

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

2 years agounix: Increase the default datagram recv buffer size
Mark Johnston [Fri, 17 Dec 2021 15:59:29 +0000 (10:59 -0500)]
unix: Increase the default datagram recv buffer size

syslog(3) was recently change to support larger messages, up to 8KB.
Our syslogd handles this fine, as it adjusts /dev/log's recv buffer to a
large size.  rsyslog, however, uses the system default of 4KB.  This
leads to problems since our syslog(3) retries indefinitely when a send()
returns ENOBUFS, but if the message is large enough this will never
succeed.

Increase the default recv buffer size for datagram sockets to support
8KB syslog messages without requiring the logging daemon to adjust its
buffers.

PR: 260126
Reviewed by: asomers
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33380

2 years agobhyve: Only snapshot initialized VirtIO queues
Vitaliy Gusev [Thu, 16 Dec 2021 16:06:08 +0000 (11:06 -0500)]
bhyve: Only snapshot initialized VirtIO queues

If the virtio device is not fully initialized, then suspend fails with:

  vi_pci_snapshot_queues: invalid address: vq->vq_desc
  Failed to snapshot virtio-rnd; ret=14

MFC after: 1 week
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D26268

2 years agonetinet6: ip6_setpktopt() requires NET_EPOCH
Kristof Provost [Wed, 15 Dec 2021 13:53:41 +0000 (14:53 +0100)]
netinet6: ip6_setpktopt() requires NET_EPOCH

ip6_setpktopt() can call ifnet_byindex() which requires epoch. Mark the
function as requiring NET_EPOCH, and ensure we enter it priot to calling
it.

Reported-by: syzbot+92526116441688fea8a3@syzkaller.appspotmail.com
Reviewed by: glebius
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33462

2 years agoREADME.md: update gnu directory description
Ed Maste [Fri, 17 Dec 2021 13:43:47 +0000 (08:43 -0500)]
README.md: update gnu directory description

(At this point in main we have just LGPL libdialog and dialog, and GPL
diff3, left in gnu/.)

Reported by: bapt
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

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