]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoUpdate to version 3.1.1
Stefan Eßer [Tue, 7 Jul 2020 07:51:09 +0000 (07:51 +0000)]
Update to version 3.1.1

This version fixes a regression with regard to tradtional behavior of the
non-standard FreeBSD option "-e". In the previous version "-e quit" caused
bc to exit before any computations had been performed, since all -e option
parameters were concatenated and parsed as a whole, with quit causing the
program to exit as soon as it was parsed. This version parses and executes
commands passed with -e one by one and only exits after all prior commands
have been executed.

This commit is not a SVN merge, since the vendor import had been performed
after the import to contrib. Instead the contents of contrib/bc has been
removed and the new version is copied over unchanged from vendor/bc/dist.

3 years agoUpdate to release 3.1.1
Stefan Eßer [Tue, 7 Jul 2020 07:02:33 +0000 (07:02 +0000)]
Update to release 3.1.1

This release fixes a regression from traditional bc behavior in FreeBSD
with regard to "-e quit" being passed on the command line and add Spanish
message catalogs.

3 years agoFixup r362981: remove gzipped manual pages.
Gleb Smirnoff [Tue, 7 Jul 2020 02:43:53 +0000 (02:43 +0000)]
Fixup r362981: remove gzipped manual pages.

Pointy hat to: glebius

3 years agoFixup for r360574: install new mlinks for sglist(9) and remove old ones.
Gleb Smirnoff [Tue, 7 Jul 2020 02:41:51 +0000 (02:41 +0000)]
Fixup for r360574: install new mlinks for sglist(9) and remove old ones.

3 years agoAdd support for ext_pgs mbufs to nfsrvd_rephead().
Rick Macklem [Tue, 7 Jul 2020 00:42:23 +0000 (00:42 +0000)]
Add support for ext_pgs mbufs to nfsrvd_rephead().

This is another in the series of commits that add support to the NFS client
and server for building RPC messages in ext_pgs mbufs with anonymous pages.
This is useful so that the entire mbuf list does not need to be
copied before calling sosend() when NFS over TLS is enabled.

Since ND_EXTPG is never set yet, there is no semantic change at this time.

3 years agoFix a Wvoid-pointer-to-enum-cast warning missed in r359978.
Brooks Davis [Mon, 6 Jul 2020 22:39:42 +0000 (22:39 +0000)]
Fix a Wvoid-pointer-to-enum-cast warning missed in r359978.

This pattern is used in callbacks with void * data arguments and seems
both relatively uncommon and relatively harmless.  Silence the warning
by casting through uintptr_t.

This warning is on by default in Clang 11.

MFC after: 3 days
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24425

3 years agoFix cleandir target post r362973
Mitchell Horne [Mon, 6 Jul 2020 21:39:14 +0000 (21:39 +0000)]
Fix cleandir target post r362973

Reported by: mmacy

3 years agoriscv plic: Do not complete interrupts until the interrupt handler has run
Kristof Provost [Mon, 6 Jul 2020 21:29:50 +0000 (21:29 +0000)]
riscv plic: Do not complete interrupts until the interrupt handler has run

We cannot complete the interrupt (i.e. write to the claims/complete register
until the interrupt handler has actually run. We don't run the interrupt
handler immediately from intr_isrc_dispatch(), we only schedule it for later
execution.

If we immediately complete it (i.e. before the interrupt handler proper has
run) the interrupt may be triggered again if the interrupt source remains set.
From RISC-V Instruction Set Manual: Volume II: Priviliged Architecture, 7.4
Interrupt Gateways:

"If a level-sensitive interrupt source deasserts the interrupt after the PLIC
core accepts the request and before the interrupt is serviced, the interrupt
request remains present in the IP bit of the PLIC core and will be serviced by
a handler, which will then have to determine that the interrupt device no
longer requires service."

In other words, we may receive interrupts twice.

Avoid that by postponing the completion until after the interrupt handler has
run.

If the interrupt is handled by a filter rather than by scheduling an interrupt
thread we must also complete the interrupt, so set up a post_filter handler
(which is the same as the post_ithread handler).

Reviewed by: mhorne
Sponsored by: Axiado
Differential Revision: https://reviews.freebsd.org/D25531

3 years agoSplit nhop_ref_object().
Mark Johnston [Mon, 6 Jul 2020 21:20:57 +0000 (21:20 +0000)]
Split nhop_ref_object().

Now nhop_ref_object() unconditionally acquires a reference, and the new
nhop_try_ref_object() uses refcount_acquire_if_not_zero() to
conditionally acquire a reference.  Since the former is cheaper, use it
when we know that the initial counter value is non-zero.  No functional
change intended.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D25535

3 years agosrc.conf.5: regen after r362972, r362973, RISC-V EFI support
Mitchell Horne [Mon, 6 Jul 2020 18:43:00 +0000 (18:43 +0000)]
src.conf.5: regen after r362972, r362973, RISC-V EFI support

3 years agoRISC-V boot1.efi and loader.efi support
Mitchell Horne [Mon, 6 Jul 2020 18:19:42 +0000 (18:19 +0000)]
RISC-V boot1.efi and loader.efi support

This implementation doesn't have any major deviations from the other EFI
ports. I've copied the boilerplate from arm and arm64.

I've tested this with the following boot flows:
OpenSBI (M-mode) -> u-boot (S-mode) -> loader.efi -> FreeBSD
OpenSBI (M-mode) -> u-boot (S-mode) -> boot1.efi -> loader.efi -> FreeBSD

Due to the way that u-boot handles secondary CPUs, OpenSBI >= v0.7 is required,
as the HSM extension is needed to bring them up explicitly. Because of this,
using BBL as the SBI implementation will not be possible. Additionally, there
are a few recent u-boot changes that are required as well, all of which will be
present in the upcoming v2020.07 release.

Looks good: emaste
Differential Revision: https://reviews.freebsd.org/D25135

3 years agolibefivar: define MDE_CPU_RISCV64
Mitchell Horne [Mon, 6 Jul 2020 17:47:29 +0000 (17:47 +0000)]
libefivar: define MDE_CPU_RISCV64

The necessary definitions from EDK2 are present, so this allows the
library to be built on RISC-V.

3 years agoRegenerate.
Mark Johnston [Mon, 6 Jul 2020 16:34:49 +0000 (16:34 +0000)]
Regenerate.

Sponsored by: The FreeBSD Foundation

3 years agoPermit cpuset_(get|set)domain() in capability mode.
Mark Johnston [Mon, 6 Jul 2020 16:34:29 +0000 (16:34 +0000)]
Permit cpuset_(get|set)domain() in capability mode.

These system calls already perform validation of their parameters when
called in capability mode, identical to cpuset_(get|set)affinity().

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

3 years agokern.tty_info_kstacks: set compact format as default
Pawel Biernacki [Mon, 6 Jul 2020 16:34:15 +0000 (16:34 +0000)]
kern.tty_info_kstacks: set compact format as default

3 years agoAllow accesses of the caller's CPU and domain sets in capability mode.
Mark Johnston [Mon, 6 Jul 2020 16:34:09 +0000 (16:34 +0000)]
Allow accesses of the caller's CPU and domain sets in capability mode.

cpuset_(get|set)(affinity|domain)(2) permit a get or set of the calling
thread or process' CPU and domain set in capability mode, but only when
the thread or process ID is specified as -1.  Extend this to cover the
case where the ID actually matches the caller's TID or PID, since some
code, such as our pthread_attr_get_np() implementation, always provides
an explicit ID.

It was not and still is not permitted to access CPU and domain sets for
other threads in the same process when the process is in capability
mode.  This might change in the future.

Submitted by: Greg V <greg@unrelenting.technology> (original version)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25552

3 years agokern.tty_info_kstacks: add a compact format
Pawel Biernacki [Mon, 6 Jul 2020 16:33:28 +0000 (16:33 +0000)]
kern.tty_info_kstacks: add a compact format

Add a more compact display format for kern.tty_info_kstacks inspired by
procstat -kk. Set it as a default one.

# sysctl kern.tty_info_kstacks=1
kern.tty_info_kstacks: 0 -> 1
# sleep 2
^T
load: 0.17  cmd: sleep 623 [nanslp] 0.72r 0.00u 0.00s 0% 2124k
#0 0xffffffff80c4443e at mi_switch+0xbe
#1 0xffffffff80c98044 at sleepq_catch_signals+0x494
#2 0xffffffff80c982c2 at sleepq_timedwait_sig+0x12
#3 0xffffffff80c43af3 at _sleep+0x193
#4 0xffffffff80c50e31 at kern_clock_nanosleep+0x1a1
#5 0xffffffff80c5119b at sys_nanosleep+0x3b
#6 0xffffffff810ffc69 at amd64_syscall+0x119
#7 0xffffffff810d5520 at fast_syscall_common+0x101
sleep: about 1 second(s) left out of the original 2
^C
# sysctl kern.tty_info_kstacks=2
kern.tty_info_kstacks: 1 -> 2
# sleep 2
^T
load: 0.24  cmd: sleep 625 [nanslp] 0.81r 0.00u 0.00s 0% 2124k
mi_switch+0xbe sleepq_catch_signals+0x494 sleepq_timedwait_sig+0x12
sleep+0x193 kern_clock_nanosleep+0x1a1 sys_nanosleep+0x3b
amd64_syscall+0x119 fast_syscall_common+0x101
sleep: about 1 second(s) left out of the original 2
^C

Suggested by: avg
Reviewed by: mjg
Relnotes: yes
Sponsored by: Mysterious Code Ltd.
Differential Revision: https://reviews.freebsd.org/D25487

3 years agoLift cpuset Capsicum checks into a subroutine.
Mark Johnston [Mon, 6 Jul 2020 16:33:21 +0000 (16:33 +0000)]
Lift cpuset Capsicum checks into a subroutine.

Otherwise the same checks are duplicated across four different system
call implementations, cpuset_(get|set)(affinity|domain)().  No
functional change intended.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

3 years ago[PowerPC] XIVE dispatch tweaks
Brandon Bergren [Mon, 6 Jul 2020 15:15:37 +0000 (15:15 +0000)]
[PowerPC] XIVE dispatch tweaks

  * Only read the DPCPU pointer once per xive_dispatch call.
  * Optimize HE decoding for the common cases.

Reported by: jhibbits (in irc)
Reviewed by: jhibbits
Sponsored by: Tag1 Consulting, Inc.
Differential Revision: https://reviews.freebsd.org/D25545

3 years agoiflib: Fix some nits in the rx refill code.
Mark Johnston [Mon, 6 Jul 2020 14:52:21 +0000 (14:52 +0000)]
iflib: Fix some nits in the rx refill code.

- Get rid of the ifl_vm_addrs array.  It is not used by any existing
  consumer, so we are just dirtying a couple of cache lines for no
  reason.
- Use uma_zalloc(fl->ifl_zone) instead of m_cljget().  Otherwise
  m_cljget() is doing unnecessary work to look up the correct zone, when
  iflib already knows what that zone is.
- ifl_gen is only used when INVARIANTS is on, so make that more clear.
- Fix some style nits and inconsistencies.

Reviewed by: gallatin
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25490

3 years agoiflib: Fix handling of mbuf cluster allocation failures.
Mark Johnston [Mon, 6 Jul 2020 14:52:09 +0000 (14:52 +0000)]
iflib: Fix handling of mbuf cluster allocation failures.

When refilling an rx freelist, make sure we only update the hardware
producer index if at least one cluster was allocated.  Otherwise the
NIC is programmed to write a previously used cluster, typically
resulting in a use-after-free when packet data is written by the
hardware.

Also make sure that we don't update the fragment index cursor if the
last allocation attempt didn't succeed.  For at least Intel drivers,
iflib assumes that the consumer index and fragment index cursor stay in
lockstep, but this assumption was violated in the face of cluster
allocation failures.

Reported and tested by: pho
Reviewed by: gallatin, hselasky
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25489

3 years agoHandle non-PLT GNU IFUNC relocations in rtld
Leandro Lupori [Mon, 6 Jul 2020 11:57:59 +0000 (11:57 +0000)]
Handle non-PLT GNU IFUNC relocations in rtld

In the last IFUNC related changes to rtld, the code that handled non-PLT
GNU IFUNC relocations ended up getting lost. This could leave some
relocations unhandled, causing crashes or misbehavior. This change restores
the handling of these relocations, but now together with the other IFUNC
relocations, allowing resolvers to reference external symbols.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Eldorado Research Institute (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D25550

3 years agoFix description of the "\$" sequence for PS1
Mateusz Piotrowski [Mon, 6 Jul 2020 10:05:35 +0000 (10:05 +0000)]
Fix description of the "\$" sequence for PS1

The manual page documents "\$" to expand to either "$" or "#" followed by
a single space. In reality, the single space character is not appended.

PR: 247791
Submitted by: kd-dev@pm.me
MFC after: 7 days

3 years agoClean up cam.3
Mateusz Piotrowski [Mon, 6 Jul 2020 09:53:00 +0000 (09:53 +0000)]
Clean up cam.3

- Add a missing Pp [1]
- Remove uses of Tn
- Use "Xr open 2" when appropriate

PR: 247783 [1]
Submitted by: PauAmma <pauamma@gundo.com> [1]
MFC after: 3 days

3 years agoAdd a driver for bcm2838 PCI express controller
Andrew Turner [Mon, 6 Jul 2020 08:51:55 +0000 (08:51 +0000)]
Add a driver for bcm2838 PCI express controller

This adds support for the Broadcom bcm2711 PCI express controller, found
on the Raspberry Pi 4 (aka the bcm2838 SoC). The driver has only been
developed against the soldered-on VIA XHCI controller and not tested
with other end points.

Submitted by: Robert Crowston <crowston_protonmail.com>
Differential Revision: https://reviews.freebsd.org/D25068

3 years agoInfiniband clients must be attached and detached in a specific order in ibcore.
Hans Petter Selasky [Mon, 6 Jul 2020 08:50:11 +0000 (08:50 +0000)]
Infiniband clients must be attached and detached in a specific order in ibcore.

Currently the linking order of the infiniband, IB, modules decide in which
order the clients are attached and detached. For example one IB client may
use resources from another IB client. This can lead to a potential deadlock
at shutdown. For example if the ipoib is unregistered after the ib_multicast
client is detached, then if ipoib is using multicast addresses a deadlock may
happen, because ib_multicast will wait for all its resources to be freed before
returning from the remove method.

Fix this by using module_xxx_order() instead of module_xxx().

Differential Revision: https://reviews.freebsd.org/D23973
MFC after: 1 week
Sponsored by: Mellanox Technologies

3 years agoSilence ACPI RTC error/warning in Linux guests.
Peter Grehan [Mon, 6 Jul 2020 08:36:14 +0000 (08:36 +0000)]
Silence ACPI RTC error/warning in Linux guests.

Allow guests to set the RTC bit in the ACPI PM control register.
This eliminates an annoying (and harmless) Linux kernel boot message.

PR: 244721
Submitted by: Jose Luis Duran
MFC after: 1 week

3 years agovfs: expand on vhold_smr comment
Mateusz Guzik [Mon, 6 Jul 2020 02:00:35 +0000 (02:00 +0000)]
vfs: expand on vhold_smr comment

3 years agolockf: elide avoidable locking in lf_advlockasync
Mateusz Guzik [Sun, 5 Jul 2020 23:07:54 +0000 (23:07 +0000)]
lockf: elide avoidable locking in lf_advlockasync

While here assert on ls_threads state.

3 years agoAdd support for ext_pgs mbufs to nfsm_strtom().
Rick Macklem [Sun, 5 Jul 2020 21:55:16 +0000 (21:55 +0000)]
Add support for ext_pgs mbufs to nfsm_strtom().

Also, add a new function nfsm_add_ext_pgs() which will either add a page
or add a new ext_pgs mbuf with a page to the mbuf list. Used by nfsm_strtom().
This is another in the series of commits that add support to the NFS client
and server for building RPC messages in ext_pgs mbufs with anonymous pages.
This is useful so that the entire mbuf list does not need to be
copied before calling sosend() when NFS over TLS is enabled.

Since ND_EXTPG is never set yet, there is no semantic change at this time.

3 years agoFix typo.
Konstantin Belousov [Sun, 5 Jul 2020 20:54:01 +0000 (20:54 +0000)]
Fix typo.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

3 years agotruss: print more information about traced sysctls
Pawel Biernacki [Sun, 5 Jul 2020 19:53:54 +0000 (19:53 +0000)]
truss: print more information about traced sysctls

MFC after: 2 weeks
Sponsored by: Mysterious Code Ltd.

3 years agoFix include file order in io.h in the LinuxKPI.
Hans Petter Selasky [Sun, 5 Jul 2020 19:38:36 +0000 (19:38 +0000)]
Fix include file order in io.h in the LinuxKPI.
Make sure sys/types.h is included before machine/vm.h.

PR: 247775
Submitted by: pkubaj@
MFC after: 1 week
Sponsored by: Mellanox Technologies

3 years agoAdd a note regarding the introduction of the new bc and dc implementations
Stefan Eßer [Sun, 5 Jul 2020 14:43:14 +0000 (14:43 +0000)]
Add a note regarding the introduction of the new bc and dc implementations
that are built by default on -CURRENT after 2020-06-26.

3 years agoRerun kernel ifunc resolvers after all CPUs have started
Andrew Turner [Sun, 5 Jul 2020 14:38:22 +0000 (14:38 +0000)]
Rerun kernel ifunc resolvers after all CPUs have started

On architectures that use RELA relocations it is safe to rerun the ifunc
resolvers on after all CPUs have started, but while they are sill parked.

On arm64 with big.LITTLE this is needed as some SoCs have shipped with
different ID register values the big and little clusters meaning we were
unable to rely on the register values from the boot CPU.

Add support for rerunning the resolvers on arm64 and amd64 as these are
both RELA using architectures.

Reviewed by: kib
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D25455

3 years agoMake linux(4) man page also mention /compat/linux/dev.
Edward Tomasz Napierala [Sun, 5 Jul 2020 13:15:13 +0000 (13:15 +0000)]
Make linux(4) man page also mention /compat/linux/dev.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

3 years agoshutdown.8: Fix typo
Niclas Zeising [Sun, 5 Jul 2020 13:08:17 +0000 (13:08 +0000)]
shutdown.8: Fix typo

Fix a typo in shutdown.8, use ',' instead of '.' when listing items.

MFC after: 1 week

3 years agoFix Linux recvmsg(2) when msg_namelen returned is 0. Previously
Edward Tomasz Napierala [Sun, 5 Jul 2020 10:57:28 +0000 (10:57 +0000)]
Fix Linux recvmsg(2) when msg_namelen returned is 0.  Previously
it would fail with EINVAL, breaking some of the Python regression
tests.

While here, cap the user-controlled message length.

Note that the code doesn't seem to be copying out the new length
in either (success or failure) case. This will be addressed separately.

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

3 years agocxgbe(4): Fix a bug (introduced in r362905) where some tx traffic wasn't
Navdeep Parhar [Sun, 5 Jul 2020 05:14:33 +0000 (05:14 +0000)]
cxgbe(4): Fix a bug (introduced in r362905) where some tx traffic wasn't
being reported to BPF.

3 years agoUse KERN_MAXPHYS.
Xin LI [Sun, 5 Jul 2020 00:19:08 +0000 (00:19 +0000)]
Use KERN_MAXPHYS.

Suggested by: imp
Reviewed by: imp, cem (earlier version), emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D25563

3 years agoGather writes to larger chunks (MAXPHYS) instead of issuing them in
Xin LI [Sat, 4 Jul 2020 18:37:04 +0000 (18:37 +0000)]
Gather writes to larger chunks (MAXPHYS) instead of issuing them in
sectors.

On my SanDisk Cruzer Blade 16GB USB stick this made formatting much faster:

x before
+ after
+--------------------------------------------------------------------------+
|+                                                                         |
|+                                                                      x  |
|+                                                                      x x|
|A                                                                      MA||
+--------------------------------------------------------------------------+
    N           Min           Max        Median           Avg        Stddev
x   3         15.89         16.38            16         16.09     0.2570992
+   3          0.32          0.37          0.35    0.34666667   0.025166115
Difference at 95.0% confidence
-15.7433 +/- 0.414029
-97.8455% +/- 0.25668%
(Student's t, pooled s = 0.182665)

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

3 years agoMake the linux rc script use linrdlnk by default.
Edward Tomasz Napierala [Sat, 4 Jul 2020 18:01:29 +0000 (18:01 +0000)]
Make the linux rc script use linrdlnk by default.

This fixes Linux gettyname(3), with caveats (see PR).

PR: kern/240767
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25558

3 years agodev.ixl.<N>.debug: mark as MPSAFE
Pawel Biernacki [Sat, 4 Jul 2020 14:20:03 +0000 (14:20 +0000)]
dev.ixl.<N>.debug: mark as MPSAFE

This node provides no handler, it's implicitly MPSAFE.

Reviewed by: erj
Sponsored by: Mysterious Code Ltd.
Differential Revision: https://reviews.freebsd.org/D25408

3 years agoAdd /proc/sys/kernel/tainted to linprocfs(5). Helps LTP.
Edward Tomasz Napierala [Sat, 4 Jul 2020 11:26:03 +0000 (11:26 +0000)]
Add /proc/sys/kernel/tainted to linprocfs(5).  Helps LTP.

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

3 years agoMake linprocfs(5) create /proc/bus/pci/devices/, and linsysfs(5)
Edward Tomasz Napierala [Sat, 4 Jul 2020 11:22:35 +0000 (11:22 +0000)]
Make linprocfs(5) create /proc/bus/pci/devices/, and linsysfs(5)
create /sys/class/power_supply/.  This silences some warnings
from biology/linux-foldingathome.

Reported by: 0mp
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25557

3 years agodevfs: fix a vnode use-after-free in devfs_ioctl
Mateusz Guzik [Sat, 4 Jul 2020 06:27:28 +0000 (06:27 +0000)]
devfs: fix a vnode use-after-free in devfs_ioctl

The vnode to be replaced was read with a shared lock, meaning 2 racing threads
can find the same one.

While here clean it up a little bit.

3 years agolinux: fix ioctl performance for termios
Mateusz Guzik [Sat, 4 Jul 2020 06:25:41 +0000 (06:25 +0000)]
linux: fix ioctl performance for termios

TCGETS et al are frequently issued by Linux binaries while the previous code
avoidably ping-pongs a global sx lock and serializes on Giant.

Note that even with the fix the common case will serialize on a per-tty lock.

3 years agoAdd char and short types to kcsan
Mateusz Guzik [Sat, 4 Jul 2020 06:22:05 +0000 (06:22 +0000)]
Add char and short types to kcsan

3 years agoaudit: provide AUDITING_TD for !AUDIT case
Mateusz Guzik [Sat, 4 Jul 2020 06:21:20 +0000 (06:21 +0000)]
audit: provide AUDITING_TD for !AUDIT case

3 years agoAdd support for ext_pgs mbufs to nfscl_reqstart() and nfsm_set().
Rick Macklem [Sat, 4 Jul 2020 03:28:13 +0000 (03:28 +0000)]
Add support for ext_pgs mbufs to nfscl_reqstart() and nfsm_set().

This is another in the series of commits that add support to the NFS client
and server for building RPC messages in ext_pgs mbufs with anonymous pages.
This is useful so that the entire mbuf list does not need to be
copied before calling sosend() when NFS over TLS is enabled.

Since ND_EXTPG is never set yet, there is no semantic change at this time.

3 years agobc: disable -flto on powerpc64
Ed Maste [Fri, 3 Jul 2020 20:32:53 +0000 (20:32 +0000)]
bc: disable -flto on powerpc64

Previously bc segfaulted at start, on powerpc64.

PR: 247738
Submitted by: luporl
Reported by: pkubaj
MFC after: 1 week

3 years agoAdd domain policy allocation for amd64 fpu_kern_ctx
Conrad Meyer [Fri, 3 Jul 2020 14:54:46 +0000 (14:54 +0000)]
Add domain policy allocation for amd64 fpu_kern_ctx

Like other types of allocation, fpu_kern_ctx are frequently allocated per-cpu.
Provide the API and sketch some example consumers.

fpu_kern_alloc_ctx_domain() preferentially allocates memory from the
provided domain, and falls back to other domains if that one is empty
(DOMAINSET_PREF(domain) policy).

Maybe it makes more sense to just shove one of these in the DPCPU area
sooner or later -- left for future work.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D22053

3 years agoifdef out pg_jobc assertions added in r361967
Mateusz Guzik [Fri, 3 Jul 2020 09:23:11 +0000 (09:23 +0000)]
ifdef out pg_jobc assertions added in r361967

They trigger for some people, the bug is not obvious, there are no takers
for fixing it, the issue already had to be there for years beforehand and
is low priority.

3 years agoFix IPv6 regression introduced by r362900.
Alexander V. Chernikov [Fri, 3 Jul 2020 08:06:26 +0000 (08:06 +0000)]
Fix IPv6 regression introduced by r362900.

PR: kern/247729

3 years agoFix build breakage caused by r362903. Only pmap.h is needed now, but
Rick Macklem [Fri, 3 Jul 2020 05:21:05 +0000 (05:21 +0000)]
Fix build breakage caused by r362903. Only pmap.h is needed now, but
vm_page.h and vm_pageout.h is needed later, so put them in now.

Pointy hat goes on me.

3 years agocxgbe(4): changes in the Tx path to help increase tx coalescing.
Navdeep Parhar [Fri, 3 Jul 2020 04:44:23 +0000 (04:44 +0000)]
cxgbe(4): changes in the Tx path to help increase tx coalescing.

- Ask the firmware for the number of frames that can be stuffed in one
  work request.

- Modify mp_ring to increase the likelihood of tx coalescing when there
  are just one or two threads that are doing most of the tx.  Add teeth
  to the abdication mechanism by pushing the consumer lock into mp_ring.
  This reduces the likelihood that a consumer will get stuck with all
  the work even though it is above its budget.

- Add support for coalesced tx WR to the VF driver.  This, with the
  changes above, results in a 7x improvement in the tx pps of the VF
  driver for some common cases.  The firmware vets the L2 headers
  submitted by the VF driver and it's a big win if the checks are
  performed for a batch of packets and not each one individually.

Reviewed by: jhb@
MFC after: 2 weeks
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D25454

3 years agoTemporarily skip sys.netinet6.redirect.valid_redirect in CI
Li-Wen Hsu [Fri, 3 Jul 2020 02:02:34 +0000 (02:02 +0000)]
Temporarily skip sys.netinet6.redirect.valid_redirect in CI

PR: 247729
Sponsored by: The FreeBSD Foundation

3 years agoAdd support for ext_pgs mbufs to nfsm_build().
Rick Macklem [Fri, 3 Jul 2020 01:19:29 +0000 (01:19 +0000)]
Add support for ext_pgs mbufs to nfsm_build().

This is the first of a series of commits that add support to the NFS client
and server for building RPC messages in ext_pgs mbufs with anonymous pages.
This is useful so that the entire mbuf list does not need to be
copied before calling sosend() when NFS over TLS is enabled.

Since ND_EXTPG is never set yet, there is no semantic change at this time.

3 years agoConsolidate duplicated logic in csu Makefiles to lib/csu/Makefile.inc.
John Baldwin [Fri, 3 Jul 2020 00:09:41 +0000 (00:09 +0000)]
Consolidate duplicated logic in csu Makefiles to lib/csu/Makefile.inc.

Reviewed by: kib
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D25537

3 years agoUse canonical description for Schlacht bei Königgrätz, add year.
Greg Lehey [Thu, 2 Jul 2020 22:59:05 +0000 (22:59 +0000)]
Use canonical description for Schlacht bei Königgrätz, add year.

3 years agoComplete conversions from fib<4|6>_lookup_nh_<basic|ext> to fib<4|6>_lookup().
Alexander V. Chernikov [Thu, 2 Jul 2020 21:04:08 +0000 (21:04 +0000)]
Complete conversions from fib<4|6>_lookup_nh_<basic|ext> to fib<4|6>_lookup().

fib[46]_lookup_nh_ represents pre-epoch generation of fib api, providing less guarantees
 over pointer validness and requiring on-stack data copying.

With no callers remaining, remove fib[46]_lookup_nh_ functions.

Submitted by: Neel Chauhan <neel AT neelc DOT org>
Differential Revision: https://reviews.freebsd.org/D25445

3 years agoFix page fault in zfsctl_snapdir_getattr
Alan Somers [Thu, 2 Jul 2020 13:17:31 +0000 (13:17 +0000)]
Fix page fault in zfsctl_snapdir_getattr

Must acquire the z_teardown_lock before accessing the zfsvfs_t object. I
can't reproduce this panic on demand, but this looks like the correct
solution.

PR: 247668
Reviewed by: avg
MFC after: 2 weeks
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D25543

3 years agocred: add a prediction to crfree for td->td_realucred == cr
Mateusz Guzik [Thu, 2 Jul 2020 12:58:07 +0000 (12:58 +0000)]
cred: add a prediction to crfree for td->td_realucred == cr

This matches crhold and eliminates an assembly maze in the common case.

3 years agocache: add missing call to cache_ncp_invalid for negative hits
Mateusz Guzik [Thu, 2 Jul 2020 12:56:20 +0000 (12:56 +0000)]
cache: add missing call to cache_ncp_invalid for negative hits

Note the dtrace probe can fire even the entry is gone, but I don't think that's
worth fixing.

3 years agocache: fix misplaced fence in cache_ncp_invalidate
Mateusz Guzik [Thu, 2 Jul 2020 12:54:50 +0000 (12:54 +0000)]
cache: fix misplaced fence in cache_ncp_invalidate

The intent was to mark the entry as invalid before cache_zap starts messing
with it.

While here add some comments.

3 years agomlx5_core: remove unneccessary LFENCE instruction.
Konstantin Belousov [Thu, 2 Jul 2020 10:44:45 +0000 (10:44 +0000)]
mlx5_core: remove unneccessary LFENCE instruction.

Use fence instead of barrier, which is optimized to take advantage of
the x86 TSO memory model.

Reviewed by: hselasky
Sponsored by: Mellanox Technologies
MFC after: 1 week

3 years agolinuxkpi: improvements for linux_pid_task() and linux_get_pid_task().
Konstantin Belousov [Thu, 2 Jul 2020 10:42:58 +0000 (10:42 +0000)]
linuxkpi: improvements for linux_pid_task() and linux_get_pid_task().

Unify functions bodies.
Do not call tdfind() if pid is passed, and do not call pfind() if tid
is supplied.

Reviewed by: hselasky
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D25534

3 years agoUse tdfind() in pget().
Konstantin Belousov [Thu, 2 Jul 2020 10:40:47 +0000 (10:40 +0000)]
Use tdfind() in pget().

Reviewed by: jhb, hselasky
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D25532

3 years agoloader: zfs reader does not need BOOT2 bits
Toomas Soome [Thu, 2 Jul 2020 07:15:48 +0000 (07:15 +0000)]
loader: zfs reader does not need BOOT2 bits

After switching zfsloader to use full libsa, we do not need
spa_get_primary() and spa_get_primary_vdev() any more.

Sponsored by: Netflix, Klara Inc.

3 years agoloader: potential memory leak and check return values
Toomas Soome [Thu, 2 Jul 2020 07:03:15 +0000 (07:03 +0000)]
loader: potential memory leak and check return values

Need to free nvlist before return from vdev_from_nvlist().

Sponsored by: Netflix, Klara Inc.

3 years agoriscv pmap: zero reserved pte bits in ppn
Kristof Provost [Wed, 1 Jul 2020 19:15:43 +0000 (19:15 +0000)]
riscv pmap: zero reserved pte bits in ppn

The top 10 bits of a pte are reserved by specification[1] and are not part of
the PPN.

[1] 'Volume II: RISC-V Privileged Architectures V20190608-Priv-MSU-Ratified',
'4.4.1 Addressing and Memory Protection', page 72: "The PTE format for Sv39 is
shown in Figure 4.18. ... Bits 63–54 are reserved for future use and must be
zeroed by software for forward compatibility."

Submitted by: Nathaniel Filardo <nwf20@cl.cam.ac.uk>
Reviewed by: kp, mhorne
Differential Revision: https://reviews.freebsd.org/D25523

3 years agoriscv locore.S: load constant prior to loop
Kristof Provost [Wed, 1 Jul 2020 19:12:47 +0000 (19:12 +0000)]
riscv locore.S: load constant prior to loop

A very minor micro-optimization; t0 is not clobbered between the loop top and
bottom and there appear to be no other branches to this label.

Submitted by: Nathaniel Filardo <nwf20@cl.cam.ac.uk>
Reviewed by: mhorne
Differential Revision: https://reviews.freebsd.org/D25524

3 years agoriscv: Log missing registers in dump_regs()
Kristof Provost [Wed, 1 Jul 2020 19:11:02 +0000 (19:11 +0000)]
riscv: Log missing registers in dump_regs()

If we panic we dump the registers for debugging. This is very useful, but it
missed several registers (ra, sp, gp and tp).

Log these as well. Especially the return address value is extremely useful.

Sponsored by: Axiado

3 years agoFix the cleanup handling in a error path for TCP BBR.
Michael Tuexen [Wed, 1 Jul 2020 17:17:06 +0000 (17:17 +0000)]
Fix the cleanup handling in a error path for TCP BBR.

Reported by: syzbot+df7899c55c4cc52f5447@syzkaller.appspotmail.com
Reviewed by: rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D25486

3 years agoRead the CPU 0 arm64 ID registers early in initarm
Andrew Turner [Wed, 1 Jul 2020 16:57:57 +0000 (16:57 +0000)]
Read the CPU 0 arm64 ID registers early in initarm

We also update the kernel view early in the boot. This will allow the
use of the common kernel view in ifunc resolvers.

Sponsored by: Innovate UK

3 years agoprintf(1): Add EXAMPLES section
Fernando Apesteguía [Wed, 1 Jul 2020 16:33:32 +0000 (16:33 +0000)]
printf(1): Add EXAMPLES section

 * Small addition with four simple examples
 * While here, remove three obsolete .Tn macros

Approved by: manpages (gbe)
Differential Revision: https://reviews.freebsd.org/D25462

3 years agoMove ID reading signatures to a better header
Andrew Turner [Wed, 1 Jul 2020 16:17:51 +0000 (16:17 +0000)]
Move ID reading signatures to a better header

The functions to read the common user and kernel ID registers should be
in cpu.h rather than undefined.h as they are related to CPU details and
used by undefined instruction handlers.

Sponsored by: Innovate UK

3 years agoFix a possible next-hop refcount leak when handling IPSec traffic.
Mark Johnston [Wed, 1 Jul 2020 15:42:48 +0000 (15:42 +0000)]
Fix a possible next-hop refcount leak when handling IPSec traffic.

It may be possible to fix this by deferring the lookup, but let's
keep the initial change simple to make MFCs easier.

PR: 246951
Reviewed by: melifaro
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25519

3 years agoUpdate with the members of the 11th core team, core.xi
Muhammad Moinur Rahman [Wed, 1 Jul 2020 15:30:27 +0000 (15:30 +0000)]
Update with the members of the 11th core team, core.xi
- Update the core-secretary role.
- Update the comment to mention that the sorting is done based on FreeBSD
  login name

Reported by: bofh (with core-secretary@ hat on)
Reviewed by: bcr
Approved by: bcr
Differential Revision: https://reviews.freebsd.org/D25526

3 years agoRead the arm64 ID registers earlier in the boot process.
Andrew Turner [Wed, 1 Jul 2020 15:17:45 +0000 (15:17 +0000)]
Read the arm64 ID registers earlier in the boot process.

Also move parsing the registers to just after the secondary CPUs have
started. This means the kernel register view from all CPUs is available
after the CPU SYSINITs have finished, e.g. for use by ifunc resolvers.

Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D25505

3 years agoSimplify the flow when getting/setting an isrc
Andrew Turner [Wed, 1 Jul 2020 12:07:28 +0000 (12:07 +0000)]
Simplify the flow when getting/setting an isrc

Rather than unlocking and returning we can just perform the needed action
only when the interrupt source is valid and reuse the unlock in both the
valid irq and invalid irq cases.

Sponsored by: Innovate UK

3 years agoRework linux accept(2). This makes the code flow easier to follow,
Edward Tomasz Napierala [Wed, 1 Jul 2020 10:37:08 +0000 (10:37 +0000)]
Rework linux accept(2).  This makes the code flow easier to follow,
and fixes a bug where calling accept(2) could result in closing fd 0.

Note that the code still contains a number of problems: it makes
assumptions about l_sockaddr_in being the same as sockaddr_in,
the EFAULT-related code looks like it doesn't work at all, and the
socket type check is racy.  Those will be addressed later on;
I'm trying to work in small steps to avoid breaking one thing while
fixing another.

It fixes Redis, among other things.

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

3 years agoThe "pid" field in the LinuxKPI task struct is typically set to the thread ID
Hans Petter Selasky [Wed, 1 Jul 2020 08:23:57 +0000 (08:23 +0000)]
The "pid" field in the LinuxKPI task struct is typically set to the thread ID
and not the process ID. Make sure the linux_task_exiting() function uses tdfind()
to lookup the BSD procedure structure pointer by the "pid" field, and only
fallback to pfind() when no match is found! This makes linux_task_exiting()
in line with the rest of the code.

Differential Revision: https://reviews.freebsd.org/D25509
Submitted by: Greg V <greg@unrelenting.technology>
MFC after: 1 week
Sponsored by: Mellanox Technologies

3 years agocache: lockless forward lookup with smr
Mateusz Guzik [Wed, 1 Jul 2020 05:59:08 +0000 (05:59 +0000)]
cache: lockless forward lookup with smr

This eliminates the need to take bucket locks in the common case.

Concurrent lookup utilizng the same vnodes is still bottlenecked on referencing
and locking path components, this will be taken care of separately.

Reviewed by: kib
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D23913

3 years agovfs: protect vnodes with smr
Mateusz Guzik [Wed, 1 Jul 2020 05:56:29 +0000 (05:56 +0000)]
vfs: protect vnodes with smr

vget_prep_smr and vhold_smr can be used to ref a vnode while within vfs_smr
section, allowing consumers to get away without locking.

See vhold_smr and vdropl for comments explaining caveats.

Reviewed by: kib
Testec by: pho
Differential Revision: https://reviews.freebsd.org/D23913

3 years agoAllow some Bluetooth LE related HCI request to non-root user.
Takanori Watanabe [Wed, 1 Jul 2020 04:00:54 +0000 (04:00 +0000)]
Allow some Bluetooth LE related HCI request to non-root user.

PR: 247588
Reported by: Greg V (greg@unrelenting.technology)
Reviewed by: emax
Differential Revision: https://reviews.freebsd.org/D25516

3 years agolibifconfig: Add function to get bridge status
Ryan Moeller [Wed, 1 Jul 2020 02:32:41 +0000 (02:32 +0000)]
libifconfig: Add function to get bridge status

The new function operates similarly to ifconfig_lagg_get_lagg_status and
likewise is accompanied by a function to free the bridge status data structure.

I have included in this patch the relocation of some strings describing STP
parameters and the PV2ID macro from ifconfig into net/if_bridgevar.h as they
are useful for consumers of libifconfig.

Reviewed by: kp, melifaro, mmacy
Approved by: mmacy (mentor)
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D25460

3 years agogeom(4): Kill GEOM_PART_EBR_COMPAT option
Conrad Meyer [Wed, 1 Jul 2020 02:16:36 +0000 (02:16 +0000)]
geom(4): Kill GEOM_PART_EBR_COMPAT option

Take advantage of Warner's nice new real GEOM aliasing system and use it for
aliased partition names that actually work.

Our canonical EBR partition name is the weird, not-default-on-x86-prior-to-
this-revision "da1p4+00001234."  However, if compatibility mode (tunable
kern.geom.part.ebr.compat_aliases) is enabled (1, default), we continue to
provide the alias names like "da1p5" in addition to the weird canonical
names.

Naming partition providers was just one aspect of the COMPAT knob; in
addition it limited mutability, in part because it did not preserve existing
EBR header content aside from that of LBA 0.  This change saves the EBR
header for LBA 0, as well as for every EBR partition encountered.  That way,
when we write out the EBR partition table on modification, we can restore
any bootloader or other metadata in both LBA0 (the first data-containing EBR
may start after 0) as well as every logical EBR we read from the disk, and
only update the geometry metadata and linked list pointers that describe the
actual partitioning.

(This change does not add support for the 'bootcode' verb to EBR.)

PR: 232463
Reported by: Manish Jain <bourne.identity AT hotmail.com>
Discussed with: ae (no objection)
Relnotes: maybe
Differential Revision: https://reviews.freebsd.org/D24939

3 years agoReplace OPENSSL_NO_SSL3_METHODs with dummies
Conrad Meyer [Wed, 1 Jul 2020 00:59:28 +0000 (00:59 +0000)]
Replace OPENSSL_NO_SSL3_METHODs with dummies

SSLv3 has been deprecated since 2015 (and broken since 2014: "POODLE"); it
should not have shipped in FreeBSD 11 (2016) or 12 (2018).  No one should use
it, and if they must, they can use some implementation outside of base.

There are three symbols removed with OPENSSL_NO_SSL3_METHOD:

SSLv3_client_method
SSLv3_method
SSLv3_server_method

These symbols exist to request an explicit SSLv3 connection to a server.
There is no good reason for an application to link or invoke these symbols
instead of TLS_method(), et al (née SSLv23_method, et al).  Applications
that do so have broken cryptography.

Define these symbols for some pedantic definition of ABI stability, but
remove the functionality again (r361392) after r362620.

Reviewed by: gordon, jhb (earlier-but-equivalent version both)
Discussed with: bjk, kib
Differential Revision: https://reviews.freebsd.org/D25493

3 years agoAdd i.MX 8M Quad support
Oleksandr Tymoshenko [Wed, 1 Jul 2020 00:33:16 +0000 (00:33 +0000)]
Add i.MX 8M Quad support

- Add CCM driver and clocks implementations for i.MX 8M
- Add GPC driver for iMX8
- Add clock tree for i.MX 8M Quad
- Add clocks support and new compat strings (where required) for existing i.MX 6 UART, I2C, and GPIO drivers
- Enable aarch64-compatible drivers form i.MX 6 in arm64 GENERIC kernel config
- Add dtb/imx8 kernel module with DTBs for Nitrogen8M and iMX8MQ EVK

With this patch both Nitrogen8M and iMX8MQ EVK boot with NFS root up to multiuser login prompt

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D25274

3 years ago[net80211] Commit files missing in the previous commit
Adrian Chadd [Wed, 1 Jul 2020 00:24:55 +0000 (00:24 +0000)]
[net80211] Commit files missing in the previous commit

These belong to my previous commit, but apparently I typed ieee80211_vhf.[ch]
and forgot ht.h.  Le oops.

3 years ago[net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP...
Adrian Chadd [Wed, 1 Jul 2020 00:23:49 +0000 (00:23 +0000)]
[net80211] Migrate HT/legacy protection mode and preamble calculation to per-VAP flags

The later firmware devices (including iwn!) support multiple configuration
contexts for a lot of things, leaving it up to the firmware to decide
which channel and vap is active.  This allows for things like off-channel
p2p sta/ap operation and other weird things.

However, net80211 is still focused on a "net80211 drives all" when it comes to driving
the NIC, and as part of this history a lot of these options are global and not per-VAP.
This is fine when net80211 drives things and all VAPs share a single channel - these
parameters importantly really reflect the state of the channel! - but it will increasingly
be not fine when we start supporting more weird configurations and more recent NICs.
Yeah, recent like iwn/iwm.

Anyway - so, migrate all of the HT protection, legacy protection and preamble
stuff to be per-VAP.  The global flags are still there; they're now calculated
in a deferred taskqueue that mirrors the old behaviour.  Firmware based drivers
which have per-VAP configuration of these parameters can now just listen to the
per-VAP options.

What do I mean by per-channel? Well, the above configuration parameters really
are about interoperation with other devices on the same channel. Eg, HT protection
mode will flip to legacy/mixed if it hears ANY BSS that supports non-HT stations or
indicates it has non-HT stations associated.  So, these flags really should be
per-channel rather than per-VAP, and then for things like "do i need short preamble
or long preamble?" turn into a "do I need it for this current operating channel".
Then any VAP using it can query the channel that it's on, reflecting the real
required state.

This patch does none of the above paragraph just yet.

I'm also cheating a bit - I'm currently not using separate taskqueues for
the beacon updates and the per-VAP configuration updates.  I can always further
split it later if I need to but I didn't think it was SUPER important here.

So:

* Create vap taskqueue entries for ERP/protection, HT protection and short/long
  preamble;
* Migrate the HT station count, short/long slot station count, etc - into per-VAP
  variables rather than global;
* Fix a bug with my WME work from a while ago which made it per-VAP - do the WME
  beacon update /after/ the WME update taskqueue runs, not before;
* Any time the HT protmode configuration changes or the ERP protection mode
  config changes - schedule the task, which will call the driver without the
  net80211 lock held and all correctly serialised;
* Use the global flags for beacon IEs and VAP flags for probe responses and
  other IE situations.

The primary consumer of this is ath10k.  iwn could use it when sending RXON,
but we don't support IBSS or AP modes on it yet, and I'm not yet sure whether
it's required in STA mode (ie whether the firmware parses beacons to change
protection mode or whether we need to.)

Tested:

* AR9280, STA/AP
* AR9380, DWDS STA+STA/AP
* ath10k work, STA/AP
* Intel 6235, STA
* Various rtwn / run NICs, DWDS STA and STA configurations

3 years agoConvert cryptostats to a counter_u64 array.
Mark Johnston [Tue, 30 Jun 2020 22:01:21 +0000 (22:01 +0000)]
Convert cryptostats to a counter_u64 array.

The global counters were not SMP-friendly.  Use per-CPU counters
instead.

Reviewed by: jhb
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D25466

3 years agoFix a bug introduced in https://svnweb.freebsd.org/changeset/base/362173
Michael Tuexen [Tue, 30 Jun 2020 21:50:05 +0000 (21:50 +0000)]
Fix a bug introduced in https://svnweb.freebsd.org/changeset/base/362173

Reported by: syzbot+f3a6fccfa6ae9d3ded29@syzkaller.appspotmail.com
MFC after: 1 week

3 years agoboot1.efi: use malloc family from libsa
Toomas Soome [Tue, 30 Jun 2020 21:48:58 +0000 (21:48 +0000)]
boot1.efi: use malloc family from libsa

The zfs reader development did reach to the point where linking boot1,
we will get errors about duplicate symbols Malloc, Free, Calloc.

We can just use libsa version, just as loader.efi does. The only concern is,
libsa zalloc is using fixed size heap region, I did pick 64MB as other
stage instances are using, but this size is likely not optimal. In any case,
with limited memory setups, we should boot loader.efi directly.

Sponsored by: Netflix, Klara Inc.

3 years agoDecode APEI tables (BERT, EINJ, ERST, HEST).
Alexander Motin [Tue, 30 Jun 2020 21:40:34 +0000 (21:40 +0000)]
Decode APEI tables (BERT, EINJ, ERST, HEST).

MFC after: 2 weeks

3 years agoMention FreeBSD in the HISTORY sections of apropos(1) and makewhatis(8).
Gordon Bergling [Tue, 30 Jun 2020 18:08:59 +0000 (18:08 +0000)]
Mention FreeBSD in the HISTORY sections of apropos(1) and makewhatis(8).

PR: 223520, 223521
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D25521

3 years agoiovctl(8): Correct a typo in the manpage and correct the SYNOPSIS
Gordon Bergling [Tue, 30 Jun 2020 17:21:28 +0000 (17:21 +0000)]
iovctl(8): Correct a typo in the manpage and correct the SYNOPSIS

PR: 246831
Submitted by: Jose Luis Duran <jlduran at gmail dot com>
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
MFC after: 7 days

3 years agoFix misplaced voltages/temperatures labels in 'sesutil show'.
Edward Tomasz Napierala [Tue, 30 Jun 2020 16:49:43 +0000 (16:49 +0000)]
Fix misplaced voltages/temperatures labels in 'sesutil show'.

PR: bin/247384
Reported by: brd
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D25353

3 years agoMake linprocfs(5) create the /proc/<PID>/task/ directores.
Edward Tomasz Napierala [Tue, 30 Jun 2020 16:24:28 +0000 (16:24 +0000)]
Make linprocfs(5) create the /proc/<PID>/task/ directores.
This is to silence down some Chromium assertions.

PR: kern/240991
Analyzed by: Alex S <iwtcex@gmail.com>
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25256