]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agobhyve: validate e82545 checksum offset field
Mark Johnston [Tue, 5 Apr 2022 22:51:19 +0000 (22:51 +0000)]
bhyve: validate e82545 checksum offset field

Reported by: Mehdi Talbi, Synacktiv

(cherry picked from commit b0aa20bec5db244980a0248e24dd6b8e1e68c4d0)

2 years agoLinuxKPI: 802.11: fix RSSI (and NF)
Bjoern A. Zeeb [Fri, 1 Apr 2022 22:31:23 +0000 (22:31 +0000)]
LinuxKPI: 802.11: fix RSSI (and NF)

As in 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de nf and rss should be
signed and not unsigned.  Change the types in the header and while
here change a magic number to a define as done elsewhere (value does
not change).

When calculating c_rssi we need to make it relative so subtract nf.
And while here improve the debug output.

This will hopefully fix ifconfig wlanN list scan S:N output which
tools use to chose a BSSID and help net80211 internal calculations.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 60970a328e280b25b05f1d9a9de1ef91af573c4a)

2 years agonet80211: correct types for nf and rssi
Bjoern A. Zeeb [Fri, 1 Apr 2022 22:30:02 +0000 (22:30 +0000)]
net80211: correct types for nf and rssi

NF and RSSI should be signed and not unsigned to avoid problems.
Change the type accordingly.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de)

2 years agoLinuxKPI: 802.11: fix compat code for i386
Bjoern A. Zeeb [Thu, 31 Mar 2022 17:29:53 +0000 (17:29 +0000)]
LinuxKPI: 802.11: fix compat code for i386

Compiling another driver on i386 revealed two problems:
- ieee80211_tx_info.status.status_driver_data space needs to be
  calculated.  While a pointer is 32bit vm_paddr_t is 64 bit on i386
  so we didn't fit more than one of these in but needed more space.
- the arguments to ieee80211_txq_get_depth() are expected to
  unsigned long and not uint64_t.

No user noticable changes.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 86220d3cbd500b1018dcdabb0ba70644db438cfd)

2 years agolinuxkpi: move io_mapping_create_wc to .c
Warner Losh [Tue, 5 Apr 2022 05:06:37 +0000 (23:06 -0600)]
linuxkpi: move io_mapping_create_wc to .c

Move io_mapping_create_wc to .c because it encodes the size of struct
io_mapping so we move this from the client module to the linuxkpi
module.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34776

(cherry picked from commit 132b00f90613d8cc797137d4c3d2dcb99ba3c690)

2 years agolinuxkpi: Move lkpi_pcim_iomap_devres_find to .c file
Warner Losh [Tue, 5 Apr 2022 05:06:29 +0000 (23:06 -0600)]
linuxkpi: Move lkpi_pcim_iomap_devres_find to .c file

lkpi_pcim_iomap_devres_find encodes the size of struct pcim_iomap_devres
in the code, so move from .h to .c to move from client driver to
linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34775

(cherry picked from commit 2bf3361d56f70d87a19f5d2bc8d258d418fb7a24)

2 years agolinuxkpi: Move pci_alloc_irq_vectors to .c file
Warner Losh [Tue, 5 Apr 2022 05:06:21 +0000 (23:06 -0600)]
linuxkpi: Move pci_alloc_irq_vectors to .c file

pci_alloc_irq_vectors encodes the size of struct msix_entry
into its code. Move from .h to .c to move this knowledge from
client modules to linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34774

(cherry picked from commit 36b5c440028b44b22cfc0596125f575ca513656f)

2 years agolinuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c
Warner Losh [Tue, 5 Apr 2022 05:06:14 +0000 (23:06 -0600)]
linuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c

Both pci_request_region and _lkpi_pci_iomap encode the size of struct
pci_mmio_region into their code. Move from .h to .c files to move that
knowledge from the client drivers into the linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34773

(cherry picked from commit 1cdb25340f8ee5dd145b0dc370cbab1bd7bdca65)

2 years agolinuxkpi: Move lkpi_pci_devres_get_alloc into .c file
Warner Losh [Tue, 5 Apr 2022 05:06:06 +0000 (23:06 -0600)]
linuxkpi: Move lkpi_pci_devres_get_alloc into .c file

lkpi_pci_devres_get_alloc encodes the struct pci_devres into its
code. Move from .h file to .c file to move this knowledge into linuxkpi
module.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34772

(cherry picked from commit 3ea682e21eed92f31dcfb8a34409580d36c452f7)

2 years agolinuxkpi: Move cdev_alloc into .c file
Warner Losh [Tue, 5 Apr 2022 05:05:59 +0000 (23:05 -0600)]
linuxkpi: Move cdev_alloc into .c file

Move cdev_alloc into linux_compat.c since it encodes the size of struct
linux_cdev into the client modules otherwise.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34771

(cherry picked from commit aca0bcbca344b39f2a448e8c1c0d80bac8c0d6de)

2 years agolinuxkpi: Move class_create to .c file
Warner Losh [Tue, 5 Apr 2022 05:05:43 +0000 (23:05 -0600)]
linuxkpi: Move class_create to .c file

class_create encodes the size of struct class into the generated
code. Move from .h file to .c file to move this knowledge from the
client modules that call this into the linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34769

(cherry picked from commit 1341ac9f9c111bba4e1ca046c479f32f2d4989c0)

2 years agolinuxkpi: Move device_create_groups_vargs to linux_compat.c
Warner Losh [Tue, 5 Apr 2022 05:05:36 +0000 (23:05 -0600)]
linuxkpi: Move device_create_groups_vargs to linux_compat.c

device_create_groups_vargs encodes the size of struct device. Move
definition from .h to .c to move this size into the linuxkpi module
rather than encoding it in all client driver modules.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34768

(cherry picked from commit 702b6875035921252d0f2b72171c7662f28766fb)

2 years agolinuxkpi: move kobject_create to .c file
Warner Losh [Tue, 5 Apr 2022 05:05:26 +0000 (23:05 -0600)]
linuxkpi: move kobject_create to .c file

kobject_create knows the size of struct kobject. Move it to
linux_compat.c so this knowledge is confined to the loadable module and
not the clients.

Sponsored by: Netflix
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D34767

(cherry picked from commit 36929b55849c8f553a744d6e4fbc8b1a5ff73f66)

2 years agoCross-reference nextboot(8) and freebsd-update(8)
Mateusz Piotrowski [Tue, 29 Mar 2022 13:15:35 +0000 (15:15 +0200)]
Cross-reference nextboot(8) and freebsd-update(8)

MFC after: 1 week

(cherry picked from commit 075999d3f1cb013826e110c26af8528fef2c72ca)

2 years agofreebsd-update.8: Fix use of mdoc(8) macros
Mateusz Piotrowski [Tue, 29 Mar 2022 12:35:46 +0000 (14:35 +0200)]
freebsd-update.8: Fix use of mdoc(8) macros

- Use Ar for arguments.
- Use Cm for freebsd-update commands like "upgrade".
- Reference other manuals with Xr when possible.

MFC after: 1 week

(cherry picked from commit 15647a710641ea8327bcabfc95ff5b4ed8e68234)

2 years agoifconfig.8: Simplify -G & -g synopsis
Mateusz Piotrowski [Tue, 29 Mar 2022 16:50:55 +0000 (18:50 +0200)]
ifconfig.8: Simplify -G & -g synopsis

MFC after: 1 week

(cherry picked from commit d1d14f0428151e312b87fc03a73c469e4b612555)

2 years agolinuxkpi: add padding to struct pci_driver
Warner Losh [Tue, 5 Apr 2022 04:54:49 +0000 (22:54 -0600)]
linuxkpi: add padding to struct pci_driver

Add 32 or 64 bytes of padding to struct pci_driver at the end in the
_spare field like we should have done when we branched stable/13, but
neglected to do so since we didn't properly anticipate the need.

We cannot safely use these spare fields until after 13.0 EOL since
drivers compiled on 13.0 won't have that space reserved and we'll step
on something else using them. This isn't 100% KBI compatible through the
13.x release branch, but is compatible enough so that drm packages built
on the oldest supported release will work on the latest stable/13 and
any newer releases. It's not ideal, but makes the best of a bad
situation and is a pragmatic approach that belatedly builds in some
future proofing.

Direct commit to stable/13 because this is not relevant to main in this
exact form.

Sponsored by: Netflix
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D34754

2 years agolinuxkpi: Restore the KBI for struct pci_driver
Warner Losh [Sat, 2 Apr 2022 19:52:53 +0000 (13:52 -0600)]
linuxkpi: Restore the KBI for struct pci_driver

The size of the 13.0 version of struct pci_driver was 92 or 184 bytes on
32- or 64-bit systems respectively. We recently added bsd_probe_return
at the end of this struct, breaking the KBI on the stable/13 branch.

Fix this by removing the isdrm member. We don't need it because we can
do a strcmp in the few places that need it as they aren't performance
critical. Move the newly added bsd_probe_return to that slot. It's the
same size in all our supported KBIs as bool and fits into that slot due
to padding rules.

Direct commit to stable/13 because this is not relevant to main.

Sponsored by: Netflix
Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D34754

2 years agopowerpc: implement __clear_cache
Piotr Kubaj [Fri, 1 Apr 2022 19:13:13 +0000 (21:13 +0200)]
powerpc: implement __clear_cache

Merge LLVM commit 81f5c6270cdfcdf80e6296df216b696a7a37c8b5.

This fixes runtime of most notably pcre libraries (currently patched in ports),
and probably also other ports since currently __clear_cache() just calls
SIGABRT on powerpc.

Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D34736

(cherry picked from commit 57b6ac48a96c99e684ab4dc85b8a87097797dc9f)

2 years agosys/stdatomic.h: be nicer to c++
Konstantin Belousov [Sun, 27 Mar 2022 21:16:15 +0000 (00:16 +0300)]
sys/stdatomic.h: be nicer to c++

PR: 262683

(cherry picked from commit c1a24b9dbeade11bfeedc91996672582f6ea32f2)

2 years agoAdd release note about change to lowest address in IPv4 (sub)net.
Mike Karels [Mon, 4 Apr 2022 21:24:34 +0000 (16:24 -0500)]
Add release note about change to lowest address in IPv4 (sub)net.

This change was made earlier, note it now.
This is a direct commit.

2 years agolib/libz: remove ZLIBprivate_1.0 namespace.
Xin LI [Sun, 3 Apr 2022 18:32:47 +0000 (11:32 -0700)]
lib/libz: remove ZLIBprivate_1.0 namespace.

These symbols were hidden and no longer exposed, and were never exposed in headers.

MFC after: 3 days

(cherry picked from commit a7f127b653c939976ac492595a8283b5de08ed0d)

2 years agovfs: fixup WANTIOCTLCAPS on open
Mateusz Guzik [Sat, 2 Apr 2022 18:35:58 +0000 (20:35 +0200)]
vfs: fixup WANTIOCTLCAPS on open

In some cases vn_open_cred overwrites cn_flags, effectively nullifying
initialisation done in NDINIT. This will have to be fixed.

In the meantime make sure the flag is passed.

Reported by: jenkins
Noted by: Mathieu <sigsys@gmail.com>

(cherry picked from commit b7262756e2f471f6481070e2473af7853506b150)

2 years agovfs: fix memory leak on lookup with fds with ioctl caps
Mateusz Guzik [Thu, 24 Mar 2022 20:51:03 +0000 (21:51 +0100)]
vfs: fix memory leak on lookup with fds with ioctl caps

Reviewed by: markj
PR: 262515
Noted by: firk@cantconnect.ru
Differential Revision: https://reviews.freebsd.org/D34667

(cherry picked from commit 0c805718cbd3709e3ffc1a0d41612168c8242360)

2 years agouart(4): Add a concept of "unique" serial devices
Colin Percival [Tue, 29 Mar 2022 07:41:37 +0000 (00:41 -0700)]
uart(4): Add a concept of "unique" serial devices

FreeBSD detects serial ports twice: First, very early in the boot
process, in order to obtain a usable console; and second, during
the device probe/attach process.  When a UART is discovered during
device probing, FreeBSD attempts to determine whether it is a
device which was already being used as a console; without this,
the console doesn't work in userland.

Unfortunately it's possible for a UART to be mapped to a different
location in memory when it is discovered on a bus than it has when
it is announced via the ACPI SPCR table; this breaks the matching
process, which relies on comparing bus addresses.

To address this, we introduce a concept of "unique" serial devices,
i.e. devices which are guaranteed to be present *only once* on any
system.  If we discover one of these during device probing, we can
match it to a same-PCI-vendor-and-device-numbers console which was
announced via the ACPI SPCR table, regardless of the differing bus
addresses.

At present, the only unique serial device is the "Amazon PCI serial
device" (vendor 0x1d0f, device 0x8250) found in some EC2 instances.
This unbreaks the serial console on those systems.

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

(cherry picked from commit ad93649d230428561db983153c546b39336fa4f1)

2 years agosysctl(8): Mention CTLFLAG_SKIP
Colin Percival [Sun, 20 Mar 2022 17:41:03 +0000 (10:41 -0700)]
sysctl(8): Mention CTLFLAG_SKIP

`sysctl -a` does not print values with this flag.

Reviewed by: debdrup
Differential Revision: https://reviews.freebsd.org/D34615

(cherry picked from commit 1dee7c74d1ab4a3531ab560a2d3e76357280b6ff)

2 years agotslog: Add CTLFLAG_SKIP to sysctls
Colin Percival [Sun, 20 Mar 2022 17:41:58 +0000 (10:41 -0700)]
tslog: Add CTLFLAG_SKIP to sysctls

The timestamp logs are quite large (often much larger than all the
other sysctls combined) so it's unlikely anyone will want to have
them displayed by `sysctl -a`.

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

(cherry picked from commit 2406867f5b178a81c653b14524c0d5bad8189d2c)

2 years agocxgbe: fix enabling lro & rxtimestamps
Andrew Gallatin [Wed, 26 May 2021 13:54:26 +0000 (09:54 -0400)]
cxgbe: fix enabling lro & rxtimestamps

A recent change caused iq flags, like LRO, to be set before
init_iq(). However, init_iq() clears those flags, so they
became effectively impossible to set.   This change moves
the initializion of these flags to after the call to init_iq().
This fixes LRO.

Differential Revision: https://reviews.freebsd.org/D30460
Reviewed by: np, rrs
Sponsored by: Netflix
Fixes: 43bbae19483fbde0a91e61acad8a6e71e334c8b8
(cherry picked from commit df8437a93dd5268e5bfd06411c01a5cbdb38c6ac)

2 years agolocking.9: Reference lockstat(1) from this manual page
Mateusz Piotrowski [Tue, 29 Mar 2022 11:11:18 +0000 (13:11 +0200)]
locking.9: Reference lockstat(1) from this manual page

MFC after: 3 days

(cherry picked from commit fd126a732c434b42f3d23cfe5c7e166e5f1a45a4)

2 years agouefi.8: Document i386 and riscv EFI bootloader names
Mateusz Piotrowski [Fri, 18 Mar 2022 10:52:02 +0000 (11:52 +0100)]
uefi.8: Document i386 and riscv EFI bootloader names

Based on tools/boot/install-boot.sh.

MFC after: 2 weeks

(cherry picked from commit 12912d0e0ca2ca6e79d17b906a119147db66132f)

2 years agoloader.efi: Improve the manual page
Mateusz Piotrowski [Fri, 18 Mar 2022 08:54:23 +0000 (09:54 +0100)]
loader.efi: Improve the manual page

- Add SPDX tag
- Add a files section describing different locations related to the
  loader
- Add an example explaining how to install a new loader.efi to ESP
- Reference uefi(8)

Reviewed by: tsoome
Reviewed by: Pau Amma <pauamma@gundo.com>
Reviewed by: Jose Luis Duran <jlduran@gmail.com>
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D34592

(cherry picked from commit 9ecf6e0f9f257279bb3a7762bc26efb72471c6ea)

2 years agosys/contrib/zlib: Always define Z_U8 and Z_U4
Xin LI [Sun, 3 Apr 2022 18:45:38 +0000 (11:45 -0700)]
sys/contrib/zlib: Always define Z_U8 and Z_U4

This is a temporary hack for zlib to make sure that the library
still builds when building with Z_SOLO (used in kernel and loader),
as zlib is depending on limits.h which is only available in STDC
case.

PR: kern/262977
MFC after: 3 days

(cherry picked from commit 0a21252adf11f7e839eabeb530e75cd1f9cd5386)

Approved by: re (gjb, early MFC)

2 years agoMFV 7b495a2a7abf (zlib): Correct incorrect inputs provided to the CRC
Xin LI [Thu, 31 Mar 2022 22:35:58 +0000 (15:35 -0700)]
MFV 7b495a2a7abf (zlib): Correct incorrect inputs provided to the CRC
functions.

MFC after: 3 days

(cherry picked from commit c61bc1110c90cb67a60cb08c4f3bc24f75d0b385)

2 years agoMFV c144cc54795d: zlib 1.2.12.
Xin LI [Thu, 31 Mar 2022 14:25:53 +0000 (07:25 -0700)]
MFV c144cc54795d: zlib 1.2.12.

MFC after: 3 days
Relnotes: yes

(cherry picked from commit cd8822075a38d0734e74b1735e4b5dbef9789170)

2 years agoMake SHMMAXPGS an unsigned long
Andrew Turner [Tue, 15 Mar 2022 17:42:30 +0000 (17:42 +0000)]
Make SHMMAXPGS an unsigned long

This is used to calculate sizes that are then stored in unsigned long
fields. Make this unsigned long so the calculations use this type and
not an int that can lead to an integer overflow with a large PAGE_SIZE.

This allows building this on arm64 with PAGE_SIZE of 16k. Further work
will be needed if a 32-bit architecture tries to use a similar sized
page.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit cab496e16cb384de03010d9dea7399cbbfb3c3f9)

2 years agoRemove a redundant L1_BLOCK == L2_BLOCK check
Andrew Turner [Tue, 15 Mar 2022 14:02:38 +0000 (14:02 +0000)]
Remove a redundant L1_BLOCK == L2_BLOCK check

We have two checks for L1_BLOCK == L2_BLOCK. Remove one.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 51f5cafcdc47357596cac8c6166331beb264df39)

2 years agoFix calculating l0index in _pmap_alloc_l3 on arm64
Andrew Turner [Thu, 10 Mar 2022 14:40:38 +0000 (14:40 +0000)]
Fix calculating l0index in _pmap_alloc_l3 on arm64

When moving from the l1 index to l0 index we need to use the l1 shift
value not the l0 shift value. With 4k pages they are identical, however
with 16k pages we only have 2 l0 entries so the shift value is incorrect.

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

(cherry picked from commit 5e2f304cb4c7c2a8fdd8760ac53ed87d2df055f5)

2 years agoCorrect the location of the arm64 PMCR register
Andrew Turner [Fri, 11 Mar 2022 10:56:42 +0000 (10:56 +0000)]
Correct the location of the arm64 PMCR register

This was one of the last registers to not be in alphabetical order in
armreg.h. Fix this to make it easier to find.

Sponsored by: Innovate UK

(cherry picked from commit a1b4e4fa9a2f8bef9adff9e93cc5152e46a2ff4e)

2 years agoRemove an unneeded memset from the arm64 pmap
Andrew Turner [Thu, 10 Mar 2022 19:13:49 +0000 (19:13 +0000)]
Remove an unneeded memset from the arm64 pmap

There is no need to zero pagetable_dmap as we already did it when
creating the page tables in locore.S

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 5055ffaeba4f23dab22fba9dace11bf9f3286d74)

2 years agoSplit out creating the arm64 L2 dmap entries
Andrew Turner [Thu, 10 Mar 2022 18:00:40 +0000 (18:00 +0000)]
Split out creating the arm64 L2 dmap entries

When creating the DMAP region we may need to create level 2 page table
entries at the start and end of a block of memory. The code to do this
was almost identical so we can merge into a single function.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit ba3b60200191399c3c128e9acee47b5254514822)

2 years agoRemove l1ptfrom pmap_early_vtophys on arm64
Andrew Turner [Thu, 10 Mar 2022 18:10:40 +0000 (18:10 +0000)]
Remove l1ptfrom pmap_early_vtophys on arm64

The first argument was unused as we use an address translation
instruction to get the physical address.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 854d5a4f7277fcd32b8c92d552cd93d208f5fc64)

2 years agoFix the arm64 DMAP start address in a comment
Andrew Turner [Thu, 10 Mar 2022 11:00:44 +0000 (11:00 +0000)]
Fix the arm64 DMAP start address in a comment

Sponsored by: The FreeBSD Foundation

(cherry picked from commit a19acfd56c2f9e4259d924b26c38ce26dfe109ed)

2 years agoFix the TCR_TG0 values
Andrew Turner [Thu, 10 Mar 2022 10:54:39 +0000 (10:54 +0000)]
Fix the TCR_TG0 values

They are in a different order to the TCR_TG1 values but appear to have
been copied incorrectly.

While here use TCR_TG0_4K in locore.S to make it explicit the userspace
page size is 4K.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit f62e099ed51bf15ebafa20a044e106480547a0ad)

2 years agoFix the spelling of EFI_PAGE_SIZE
Andrew Turner [Wed, 9 Mar 2022 12:59:01 +0000 (12:59 +0000)]
Fix the spelling of EFI_PAGE_SIZE

We assume EFI_PAGE_SIZE is the same as PAGE_SIZE, however this may not
be the case. Use the former when working with a list of pages from the
UEFI firmware so the correct size is used.

This will be needed on arm64 where PAGE_SIZE could be 16k or 64k in the
future. The other architectures have been updated to be consistent.

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

(cherry picked from commit 9cf15aefb9d6f97687ae4a497917be36ac125558)

2 years agoAdd more arm64 PAC identification fields
Andrew Turner [Tue, 8 Mar 2022 12:46:47 +0000 (12:46 +0000)]
Add more arm64 PAC identification fields

Sponsored by: The FreeBSD Foundation

(cherry picked from commit e3f7087489c55decf54161b25a5db20c2c93ff42)

2 years agoPrint the instruction for the unknown exception
Andrew Turner [Tue, 8 Mar 2022 11:02:02 +0000 (11:02 +0000)]
Print the instruction for the unknown exception

The arm64 unknown exception will be raised when we execute an
instruction that id invalid or disabled. To help debug these print
the instruction that failed.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit e793a55a74eb34ae3225d620a9619554667efb30)

2 years agoAdd the char and short atomic operations on arm64
Andrew Turner [Wed, 12 Jan 2022 15:44:36 +0000 (15:44 +0000)]
Add the char and short atomic operations on arm64

Sponsored by: The FreeBSD Foundation

(cherry picked from commit ec1ecf78ae8accf93e3d3ac585ea4b24711d716d)

2 years agompr/mps/mpt: verify cfg page ioctl lengths
Ed Maste [Mon, 28 Mar 2022 13:33:54 +0000 (09:33 -0400)]
mpr/mps/mpt: verify cfg page ioctl lengths

*_CFG_PAGE ioctl handlers in the mpr, mps, and mpt drivers allocated a
buffer of a caller-specified size, but copied to it a fixed size header.
Add checks that the size is at least the required minimum.

Note that the device nodes are owned by root:operator with 0640
permissions so the ioctls are not available to unprivileged users.

This change includes suggestions from scottl, markj and mav.

Two of the mpt cases were reported by Lucas Leong (@_wmliang_) of
Trend Micro Zero Day Initiative; scottl reported the third case in mpt.
Same issue found in mpr and mps after discussion with imp.

Reported by: Lucas Leong (@_wmliang_), Trend Micro Zero Day Initiative
Reviewed by: imp, mav
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34692

(cherry picked from commit 8276c4149b5fc7c755d6b244fbbf6dae1939f087)

2 years agoinstallworld: handle ldd including preloaded objects
Ed Maste [Fri, 1 Apr 2022 13:58:47 +0000 (09:58 -0400)]
installworld: handle ldd including preloaded objects

The installworld target makes a temporary copy of binaries to be used
during the install.  Libraries that they depend on are also included,
found by using `ldd`.

After commit 0913953c9ed0 ldd started listing preloaded objects,
including [vdso], under a [preloaded] header.  Skip ldd output that is
enclosed in square brackets.

Reviewed by: cy, kib [earlier version]
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34734

(cherry picked from commit b3b462229f972e2ed24d450d7d2f8855cdd58a87)

2 years agopf: Initialize the table entry zone limit at initialization time
Mark Johnston [Wed, 30 Mar 2022 19:41:44 +0000 (15:41 -0400)]
pf: Initialize the table entry zone limit at initialization time

The limit may later be updated by the "set limit" directive in pf.conf.
UMA does not permit a limit to be set on a zone after any items have
been allocated from a zone.

Other UMA zones used by pf do not appear to be susceptible to this
problem: they either set a limit at zone creation time or never set one
at all.

PR: 260406
Reviewed by: kp
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 7d1ab866911a2b29e041d64bc83a93638533f957)

2 years agolibefivar(3): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:29:32 +0000 (18:29 +0200)]
libefivar(3): Fix a typo in a source code comment

- s/partiton/partition/

(cherry picked from commit b1c5f60ce87cc2f179dfb81de507d9b7bf59564c)

2 years agomlx5en(4): Fix a few typos in source code comments
Gordon Bergling [Sun, 27 Mar 2022 15:59:43 +0000 (17:59 +0200)]
mlx5en(4): Fix a few typos in source code comments

- s/persistant/persistent/

(cherry picked from commit 4a87beeccb04430a154da19721e1c4715e9ddd31)

2 years agopfctl(8): Fix a typo in a comment
Gordon Bergling [Sun, 27 Mar 2022 15:55:55 +0000 (17:55 +0200)]
pfctl(8): Fix a typo in a comment

- s/steping/stepping/

(cherry picked from commit 2fa6223aaa430935f6108e3250ab7f2f0f899ea2)

2 years agoffs(3): Fix a common typo in source code comments
Gordon Bergling [Sun, 27 Mar 2022 16:03:16 +0000 (18:03 +0200)]
ffs(3): Fix a common typo in source code comments

- s/quadradically/quadratically/

Obtained from: NetBSD

(cherry picked from commit 2733b242e4c69240fed52854682f0c3b0079be17)

2 years agovxlan(4): Fix two typos in sysctl descriptions
Gordon Bergling [Mon, 7 Feb 2022 17:23:35 +0000 (18:23 +0100)]
vxlan(4): Fix two typos in sysctl descriptions

- s/fowarding/forwarding/

(cherry picked from commit bef80a728561704d77772c5e270dbf14e7d2e855)

2 years agogpart(8): Fix two typos in source code comments
Gordon Bergling [Sun, 27 Mar 2022 16:01:55 +0000 (18:01 +0200)]
gpart(8): Fix two typos in source code comments

- s/partiton/partition/

(cherry picked from commit 81ed3cae6918ddbe7047e21646955c77c70bc47f)

2 years agostand: Fix a common typo in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:12:58 +0000 (18:12 +0100)]
stand: Fix a common typo in source code comments

- s/existance/existence/

(cherry picked from commit 9cd75b558897ae698583bb69ce3f21ca2a8577c8)

2 years agoxen(4): Fix a few typos in source code comments
Gordon Bergling [Sun, 27 Mar 2022 16:05:58 +0000 (18:05 +0200)]
xen(4): Fix a few typos in source code comments

- s/querried/queried/

(cherry picked from commit bba12ee45394dc5aea1162c9b354daa7b2d24363)

2 years agofstyp(8): Fix a few typos in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:20:48 +0000 (18:20 +0100)]
fstyp(8): Fix a few typos in source code comments

- s/mmaping/mapping/
- s/filesytem/filesystem/

(cherry picked from commit 4e12c7c5107f3a5a61903691a515f89af0f99632)

2 years agoxen(3): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:54:13 +0000 (18:54 +0200)]
xen(3): Fix a typo in a source code comment

- s/mmaping/mapping/

(cherry picked from commit 982015d2d2e7992b83eb6141e5a36c9774387ac2)

2 years agopkgbase: Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:56:58 +0000 (18:56 +0200)]
pkgbase: Fix a typo in a source code comment

- s/begining/beginning/

(cherry picked from commit eec4f5c034f649e873396125ec8d39826eb65135)

2 years agoipfilter(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:33:25 +0000 (18:33 +0200)]
ipfilter(4): Fix a typo in a source code comment

- s/existance/existence/

(cherry picked from commit fc48cc124c312db2e53ac08e5c6ab205a37035a4)

2 years agogeom(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:31:00 +0000 (18:31 +0200)]
geom(4): Fix a typo in a source code comment

- s/comand/command/

(cherry picked from commit 407a0eac799bd68f55b9a91087dcd4106226ebaf)

2 years agonetinet6: Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:52:38 +0000 (18:52 +0200)]
netinet6: Fix a typo in a source code comment

- s/maping/mapping/

(cherry picked from commit c55ecce1c1834cd026926fe4d1f21d7cef1c14f1)

2 years agoisci(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:42:11 +0000 (18:42 +0200)]
isci(4): Fix a typo in a source code comment

- s/recored/recorded/

(cherry picked from commit e4c1b3f0601997901f1d4aae4579763b03c44439)

2 years agoqlnxe(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:45:13 +0000 (18:45 +0200)]
qlnxe(4): Fix a typo in a source code comment

- s/existance/existence/

(cherry picked from commit a216b9c2e0bb789a9ce438564b699508a432960a)

2 years agodrm2: Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:36:32 +0000 (18:36 +0200)]
drm2: Fix a typo in a source code comment

- s/mmaping/mapping/

(cherry picked from commit 22ba115b49a2c266aa1967f6b192b7aa8f883b7d)

2 years agoextra_tcp_stacks: Fix two typos in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:14:22 +0000 (18:14 +0100)]
extra_tcp_stacks: Fix two typos in source code comments

- s/recusive/recursive/

(cherry picked from commit 75fdc440c8abf30f62bbaaae70a786e9d83311be)

2 years agopmc(3): Fix a common typo in json descriptions
Gordon Bergling [Sun, 6 Feb 2022 16:17:57 +0000 (17:17 +0100)]
pmc(3): Fix a common typo in json descriptions

- s/from from/from/

(cherry picked from commit 5c4aa6257210502c93ad65882a8a4842d984bae2)

2 years agoexca(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:39:36 +0000 (18:39 +0200)]
exca(4): Fix a typo in a source code comment

- s/maping/mapping/

(cherry picked from commit 9a9d901bf2c39d2c4df6d46915a8783a9c1762f9)

2 years agomount(8): Fix a typo in source code comments
Gordon Bergling [Mon, 7 Feb 2022 17:15:34 +0000 (18:15 +0100)]
mount(8): Fix a typo in source code comments

- s/filesytem/filesystem/

(cherry picked from commit c09770b2cd8005bb721c8d261a7d48ec3aa64f4f)

2 years agocxgbe(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:32:19 +0000 (18:32 +0200)]
cxgbe(4): Fix a typo in a source code comment

- s/begining/beginning/

(cherry picked from commit c9023cf7feb19694d433abe45cecedc3a2b99cb0)

2 years agonetgraph(3): Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:50:45 +0000 (18:50 +0200)]
netgraph(3): Fix a typo in a source code comment

- s/failes/fails/

(cherry picked from commit 79438267b3ae4fcf5bdefdee60d4f19defcd5ff1)

2 years agocxgbetool(8): Fix a typo in the man page
Gordon Bergling [Sun, 27 Mar 2022 16:58:52 +0000 (18:58 +0200)]
cxgbetool(8): Fix a typo in the man page

- s/begining/beginning/

(cherry picked from commit 28a6b24729c4e8f77c60834614c78dd890e64668)

2 years agolibc: Fix a typo in a source code comment
Gordon Bergling [Sun, 6 Feb 2022 16:25:59 +0000 (17:25 +0100)]
libc: Fix a typo in a source code comment

- s/compnent/component/

(cherry picked from commit 066e393f8f76156d9029e8ba6d16915a58d4cd67)

2 years agocxgbe(4): Handle FORCE_FEC in pcaps correctly.
Navdeep Parhar [Fri, 25 Mar 2022 07:34:54 +0000 (00:34 -0700)]
cxgbe(4): Handle FORCE_FEC in pcaps correctly.

The firmware doesn't report FORCE_FEC in pcaps if the transceiver
plugged in at that time does not support a speed that may use FEC.  It
is incorrect for the driver to assume that the FORCE_FEC value it read
during attach (in init_link_config) is permanent.  Instead, it should
check pcaps just before issuing the L1CFG command.

Sponsored by: Chelsio Communications

(cherry picked from commit 231f2112403229a1382be3f5f6ed50bffe3497e8)

2 years agocxgbe(4): Allow dump_cimla and dump_devlog to sleep.
Navdeep Parhar [Tue, 22 Mar 2022 20:13:56 +0000 (13:13 -0700)]
cxgbe(4): Allow dump_cimla and dump_devlog to sleep.

This has been safe since e9e7bc82505, which moved parts of error
handling from the ithread to a taskqueue.

Sponsored by: Chelsio Communications

(cherry picked from commit 41c4e1c7f738de2e88acb77911a22dbd57ad7d79)

2 years agoMFC cc68614, ac69e5d, 7ed8e14: Update contrib/expat to 2.4.7.
Xin LI [Mon, 28 Mar 2022 05:22:07 +0000 (22:22 -0700)]
MFC cc68614ac69e5d7ed8e14: Update contrib/expat to 2.4.7.

(cherry picked from commit cc68614da8232d8baaca0ae0d0dd8f890f06623e)
(cherry picked from commit ac69e5d471014c95070cd6294db315089a62725b)
(cherry picked from commit 7ed8e142a00d4b711dd2021b37b84a6e7f86516e)

2 years agobsd-family-tree: macOS 11 and macOS 12
Warner Losh [Fri, 1 Apr 2022 04:24:16 +0000 (22:24 -0600)]
bsd-family-tree: macOS 11 and macOS 12

Sponsored by: Netflix

(cherry picked from commit 4fc5a607fdf47ce5148e01d62ea474a4b6b0b238)

2 years agobsd-family-tree: Dragonfly 6.2.1 release
Warner Losh [Fri, 1 Apr 2022 04:14:56 +0000 (22:14 -0600)]
bsd-family-tree: Dragonfly 6.2.1 release

Sponsored by: Netflix

(cherry picked from commit d2cc7bff4d8874937a97f8b74024cce6aaa9a750)

2 years agobsd-family-tree: Add OpenBSD 7.0
Warner Losh [Fri, 1 Apr 2022 04:09:56 +0000 (22:09 -0600)]
bsd-family-tree: Add OpenBSD 7.0

Sponsored by: Netflix

(cherry picked from commit 754cf44d99f624d9e7888f6e074ae39e2eb26d8f)

2 years agobsd-family-tree: Add FreeBSD 12.3
Warner Losh [Fri, 1 Apr 2022 03:11:20 +0000 (21:11 -0600)]
bsd-family-tree: Add FreeBSD 12.3

FreeBSD 12.3 wasn't added when it was released. Add it now.

Sponsored by: Netflix

(cherry picked from commit 58e6bbc5acb2d8c623cfbec37bfdda8b03d15a1f)

2 years agobsd-family-tree: Add 2.8BSD relationship to Research 7th edition
Warner Losh [Fri, 25 Jun 2021 17:03:17 +0000 (11:03 -0600)]
bsd-family-tree: Add 2.8BSD relationship to Research 7th edition

In the 2BSD line, the 2.8BSD tapes were the first ones to include a
kernel, both source and a bootable tape. This was an AT&T V7 kernel,
with a number of bug fixes; new features in use at Berkeley; performance
enhancements that were circulating to V7 in the licensee community; and
build system changes. Based on the TUHS archives, it contains none of
the V32 changes, however.

In addition to the source code analysis, Mike Karels relates the story
of how his group lost a customizes to V6 on a PDP-11/40 due to a disk
crash. Since V7 just came out and Bill Jolitz had just brought that up
elsewhere, they replaced their customized V6 with a V7 system, and that
base would eventually become 2.8BSD. (Quarter Century of Unix)

Given both lines of evidence, add a direct line from V7 Unix to 2.8BSD.

Also confirmed that the V6 line to 1BSD and 2BSD was appropriate. 1BSD
and 2BSD included ashell(1) and ex(1). ashell(1) was derived from v6
hell. ex(1) was an enhanced v6 ed.  2.8BSD included process control and
user-land utilities from 4.1BSD

Discussed with: Clem Cole, Diomidis Spinellis (dds)
Differential Revision: https://reviews.freebsd.org/D30883

(cherry picked from commit 520a2401a65f94a2a6766d3a253baa2a1af0e54b)

2 years agobsd-family-tree: add DragonFly 6.0.0
Warner Losh [Thu, 24 Jun 2021 16:42:36 +0000 (10:42 -0600)]
bsd-family-tree: add DragonFly 6.0.0

Tagged on May 8, 2021.

Sponsored by: Netflix

(cherry picked from commit 779b70a2264fa187beb232dad2f018d41c31e34a)

2 years agobsd-family-tree: Add NetBSD 9.2
Warner Losh [Wed, 19 May 2021 21:29:11 +0000 (15:29 -0600)]
bsd-family-tree: Add NetBSD 9.2

NetBSD 9.2 was released on May 12, 2021

Submitted by: Martin Husemann
Sponsored by: Netflix

(cherry picked from commit 71a071be1c5ae971421a830d76ee30186ffdd199)

2 years agoReleases history update
Maxim Konovalov [Fri, 7 May 2021 19:50:10 +0000 (19:50 +0000)]
Releases history update

Add DragonFly 5.8.1, OpenBSD 6.7, FreeBSD 11.4, DragonFly 5.8.2,
DragonFly 5.8.3, OpenBSD 6.8, NetBSD 9.1, FreeBSD 13.0, OpenBSD 6.9.

(cherry picked from commit f0c914baacc7f0eefe9ff47ed04aeb500b7bdcd5)

2 years agofstyp: detect Raspberry Pi Pico boot filesystem as FAT
Ed Maste [Mon, 28 Mar 2022 21:03:10 +0000 (17:03 -0400)]
fstyp: detect Raspberry Pi Pico boot filesystem as FAT

fstyp looks for a 0x55 0xAA signature at offset 510, but this is not
required by specifications and is not proivded by the Raspberry Pi Pico
bootloader.

We should really remove the signature check and implement a more
comprehensive BPB validation instead, but it will require more
investigation and testing.  For now just add a special case for the
Raspberry Pi Pico bootloader, to avoid introducing regressions or new
false positives.

PR: 262896
Reviewed by: delphij
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34699

(cherry picked from commit 868c1b8431f297ade8deba5baf903f73cf5e11c6)
(cherry picked from commit 27c2f016b86744aa5d4c6031b4ef2fc16bbf6546)

2 years agox86: Defer early TSC timecounter calibration to SI_SUB_CPU
Mark Johnston [Sat, 5 Mar 2022 00:34:43 +0000 (19:34 -0500)]
x86: Defer early TSC timecounter calibration to SI_SUB_CPU

If we can't determine the TSC frequency using CPU registers, we need to
give a chance for Hyper-V drivers to register a timecounter (during
SI_SUB_HYPERVISOR) since an emulated 8254 might not be available.
Thus, split probe_tsc_freq() into early and late stages, and wait until
the latter to attempt calibration using a reference clock.

Fixes: 84369dd52369 ("x86: Probe the TSC frequency earlier")
Reported and tested by: khng, Shawn Webb
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 075e2779aca7cbd8f201ce0e1bb60318d0cbd8b8)

2 years agoamd64: Call clock_init() after finishidentcpu()
Mark Johnston [Sat, 5 Mar 2022 00:32:39 +0000 (19:32 -0500)]
amd64: Call clock_init() after finishidentcpu()

As in commit c3d830cf7c71, we should finalize CPU identification before
probing the TSC frequency.

Fixes: 84369dd52369 ("x86: Probe the TSC frequency earlier")
Reported by: khng

(cherry picked from commit f7a6dccf426676bdd8c6be25491e57dca830de25)

2 years agox86: Probe the TSC frequency earlier
Mark Johnston [Tue, 1 Mar 2022 14:39:35 +0000 (09:39 -0500)]
x86: Probe the TSC frequency earlier

This lets us use the TSC to implement early DELAY, limiting the use of
the sometimes-unreliable 8254 PIT.

PR: 262155
Reviewed by: emaste
Tested by: emaste, mike tancsa <mike@sentex.net>, Stefan Hegnauer <stefan.hegnauer@gmx.ch>
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 84369dd52369cbae28970dca20a53d3de1719907)

2 years agofile: Avoid a read-after-free of fd tables in sysctl handlers
Mark Johnston [Thu, 17 Mar 2022 16:54:37 +0000 (12:54 -0400)]
file: Avoid a read-after-free of fd tables in sysctl handlers

Some loops access the fd table of a different process, and drop the
filedesc lock while iterating, so they check the table's refcount.
However, we access the table before the first iteration, in order to get
the number of table entries, and this access can be a use-after-free.

Fix the problem by checking the refcount before we start iterating.

Reported by: pho
Reviewed by: mjg
Sponsored by: The FreeBSD Foundation

(cherry picked from commit c70224229205c756bf1c2007a6b96b37126eb047)

2 years agolibc: Restore fp state upon flush error in fputc
Mark Johnston [Fri, 25 Mar 2022 14:46:24 +0000 (10:46 -0400)]
libc: Restore fp state upon flush error in fputc

This is akin to commit bafaa70b6f9098d83d074968c8e6747ecec1e118.

Reported by: Guy Yur <guyyur@gmail.com>
Fixes: 86a16ada1ea6
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 6e13794fbe6e82c21365d0fd66769bf8b19c0197)

2 years agoTreat cache write as a read in arm64 data faults
Andrew Turner [Sat, 26 Mar 2022 15:59:34 +0000 (15:59 +0000)]
Treat cache write as a read in arm64 data faults

On arm64 we can ask the hardware to perform cache operations from
userspace. These require read permission however when the memory is
unmapped the kernel will receive a write exception. Add a check to
see if the cause of the exception is from the cache and pass a memory
read fault type to the vm subsystem.

PR: 262836
Reported by: dch
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 029c1c4828aab451ba262cd4e2e1d9362cf18b76)

2 years ago*: Do not use the no-op -r flag for bsdlabel(8)
Mateusz Piotrowski [Thu, 17 Mar 2022 10:21:06 +0000 (11:21 +0100)]
*: Do not use the no-op -r flag for bsdlabel(8)

The -r flag is ignored by the FreeBSD implementation of bsdlabel(8)
(also called disklabel(8) in the past). Remove its use from examples
and tests in the tree.

This commit does not touch historical documentation under share/doc/smm
and files under contrib/netbsd-tests.

Reviewed by: imp
MFC after: 2 weeks
Approved by: imp (src)
Fixes: 57dfbec57b6d More axe-work:
Differential Revision: https://reviews.freebsd.org/D34585

(cherry picked from commit fd061175257a577d13852be17e3b2506ad25b987)

2 years agorc.d: Chmod +x all the scripts for consistency
Mateusz Piotrowski [Thu, 17 Mar 2022 16:20:57 +0000 (17:20 +0100)]
rc.d: Chmod +x all the scripts for consistency

Reviewed by: lwhsu
Approved by: lwhsu (src)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D34589

(cherry picked from commit 7846554819d3be52816ca6ad60bf84f6409a0bf1)

2 years agortsx: Remove update of softc during probe and some var rename.
Henri Hennebert [Fri, 25 Mar 2022 19:23:59 +0000 (15:23 -0400)]
rtsx: Remove update of softc during probe and some var rename.

MFC after: 1 week

(cherry picked from commit 2e8830678637f5c1757a228ceb2605387c6f97ef)

2 years agortsx: Display error if rtsx_read()/rtsx_write() fail.
Henri Hennebert [Thu, 24 Mar 2022 01:01:00 +0000 (21:01 -0400)]
rtsx: Display error if rtsx_read()/rtsx_write() fail.

MFC after: 1 week

(cherry picked from commit 9b261d2e0a4490e436936c5f9209f7cc100b4787)

2 years agortsx: Don't detach during shutdown
Henri Hennebert [Thu, 24 Mar 2022 00:58:38 +0000 (20:58 -0400)]
rtsx: Don't detach during shutdown

MFC after: 1 week

(cherry picked from commit 6b7718377b8a1a3a5d3cfb98bd09dda5d55de1ed)

2 years agosound: test PCM_REGISTERED before PCM_DETACHING
Ed Maste [Mon, 21 Mar 2022 16:15:22 +0000 (12:15 -0400)]
sound: test PCM_REGISTERED before PCM_DETACHING

PCM_REGISTERED(d) tests that d is not NULL, so perform that check first
as we may have cases where devclass_get_softc has a null entry.

PR: 262671
Reviewed by: hselasky
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34648

(cherry picked from commit da03ac41c9bca270b491fcf4bf219c4108688a05)

2 years agoFix kernel build without INET6
Ed Maste [Thu, 30 Dec 2021 21:49:35 +0000 (16:49 -0500)]
Fix kernel build without INET6

Reported by: Gary Jennejohn
Fixes: ff3a85d32411 ("[lltable] Add per-family lltable ...")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 818952c638a72bd677345fd8ddd05c31b34a2aee)