]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
4 years agoFix dtrace test case after r351423 due to ping6(8) options changed
lwhsu [Sat, 31 Aug 2019 15:10:27 +0000 (15:10 +0000)]
Fix dtrace test case after r351423 due to ping6(8) options changed

Failure test case:
    cddl.usr.sbin.dtrace.common.ip.t_dtrace_contrib.tst_ipv6localicmp_ksh

Sponsored by: The FreeBSD Foundation

4 years agoFix tests use /etc/motd after r350184 by using an always existing file
lwhsu [Sat, 31 Aug 2019 14:41:58 +0000 (14:41 +0000)]
Fix tests use /etc/motd after r350184 by using an always existing file

Sponsored by: The FreeBSD Foundation

4 years agozfs: fix snapshot dir destruction after introducion of VOP_NEED_INACTIVE
mjg [Sat, 31 Aug 2019 13:24:22 +0000 (13:24 +0000)]
zfs: fix snapshot dir destruction after introducion of VOP_NEED_INACTIVE

Reported by: lwhsu
PR: 240221
Sponsored by: The FreeBSD Foundation

4 years agoImprove function definition.
tuexen [Sat, 31 Aug 2019 13:13:40 +0000 (13:13 +0000)]
Improve function definition.

MFC after: 3 days

4 years agoImprove the handling of illegal sequence number combinations in received
tuexen [Sat, 31 Aug 2019 08:18:49 +0000 (08:18 +0000)]
Improve the handling of illegal sequence number combinations in received
data chunks. Abort the association if there are data chunks with larger
fragement sequence numbers than the fragement sequence of the last
fragment.
Thanks to Mark Wodrich from Google who found this issue by fuzz testing
the userland stack and reporting this issue in
https://github.com/sctplab/usrsctp/issues/355

MFC after: 3 days

4 years agoloader.efi: use shift 16 in efipart as it is max ashift supported by zfs
tsoome [Sat, 31 Aug 2019 06:24:09 +0000 (06:24 +0000)]
loader.efi: use shift 16 in efipart as it is max ashift supported by zfs

4 years agovfs: add a missing VNODE_REFCOUNT_FENCE_REL to v_incr_usecount_locked
mjg [Fri, 30 Aug 2019 21:54:45 +0000 (21:54 +0000)]
vfs: add a missing VNODE_REFCOUNT_FENCE_REL to v_incr_usecount_locked

Sponsored by: The FreeBSD Foundation

4 years agoEarliest reference to /dev/null I can find is in v4 sh(1) and nulldev in
sevan [Fri, 30 Aug 2019 21:49:00 +0000 (21:49 +0000)]
Earliest reference to /dev/null I can find is in v4 sh(1) and nulldev in
nsys/ken/subr.c
via TUHS archive
https://minnie.tuhs.org/cgi-bin/utree.pl?file=V4

MFC after: 5 days

4 years agoqemu-system-aarch64 does list block device with very large block size
tsoome [Fri, 30 Aug 2019 20:54:30 +0000 (20:54 +0000)]
qemu-system-aarch64 does list block device with very large block size

Also insert Vendor device as "parent" disk (found in
qemu-system-aarch64 -cpu cortex-a57).

This does fix lsdev in loader.efi on this platform.

4 years agoWrap a vlan's parent's if_output in a separate function.
mjoras [Fri, 30 Aug 2019 20:19:43 +0000 (20:19 +0000)]
Wrap a vlan's parent's if_output in a separate function.

When a vlan interface is created, its if_output is set directly to the
parent interface's if_output. This is fine in the normal case but has an
unfortunate consequence if you end up with a certain combination of vlan
and lagg interfaces.

Consider you have a lagg interface with a single laggport member. When
an interface is added to a lagg its if_output is set to
lagg_port_output, which blackholes traffic from the normal networking
stack but not certain frames from BPF (pseudo_AF_HDRCMPLT). If you now
create a vlan with the laggport member (not the lagg interface) as its
parent, its if_output is set to lagg_port_output as well. While this is
confusing conceptually and likely represents a misconfigured system, it
is not itself a problem. The problem arises when you then remove the
lagg interface. Doing this resets the if_output of the laggport member
back to its original state, but the vlan's if_output is left pointing to
lagg_port_output. This gives rise to the possibility that the system
will panic when e.g. bpf is used to send any frames on the vlan
interface.

Fix this by creating a new function, vlan_output, which simply wraps the
parent's current if_output. That way when the parent's if_output is
restored there is no stale usage of lagg_port_output.

Reviewed by: rstone
Differential Revision: D21209

4 years agoUpdate and clean up the UMA man page.
markj [Fri, 30 Aug 2019 19:35:44 +0000 (19:35 +0000)]
Update and clean up the UMA man page.

- Fix warnings from igor and mandoc.
- Provide a brief description of the separation between zones and their
  backend slab allocators.
- Document cache zones and secondary zones.
- Document the kernel config options added in r350659.
- Document the uma_zalloc_pcpu() and uma_zfree_pcpu() wrappers.
- Document uma_zone_reserve(), uma_zone_reserve_kva() and
  uma_zone_prealloc().
- Document uma_zone_alloc() and uma_zone_freef().
- Add some missing MLINKs and Xrefs.

MFC after: 2 weeks

4 years agoavoid holding PCB mutex during copyin/copyout()
emax [Fri, 30 Aug 2019 16:35:31 +0000 (16:35 +0000)]
avoid holding PCB mutex during copyin/copyout()

Reported by: imp, mms dot vanbreukelingen at gmail dot com
Reviewed by: imp

4 years agoAdd entries for unmapped mbufs and KTLS.
jhb [Fri, 30 Aug 2019 16:30:09 +0000 (16:30 +0000)]
Add entries for unmapped mbufs and KTLS.

4 years agoProperly check for an interrupted cv_wait_sig().
markj [Fri, 30 Aug 2019 15:40:31 +0000 (15:40 +0000)]
Properly check for an interrupted cv_wait_sig().

The returned error number may be EINTR or ERESTART depending on
whether or not the signal is supposed to interrupt the system call.

Reported and tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

4 years agoRemove unneeded blank line. No functional change.
delphij [Fri, 30 Aug 2019 06:06:12 +0000 (06:06 +0000)]
Remove unneeded blank line.  No functional change.

MFC after: 2 weeks

4 years agovfs: tidy up assertions in vfs_subr
mjg [Fri, 30 Aug 2019 00:45:53 +0000 (00:45 +0000)]
vfs: tidy up assertions in vfs_subr

- assert unlocked vnode interlock in vref
- assert right counts in vputx
- print debug info for panic in vdrop

Sponsored by: The FreeBSD Foundation

4 years agoxdma: avoid NULL deref in error case
emaste [Fri, 30 Aug 2019 00:40:08 +0000 (00:40 +0000)]
xdma: avoid NULL deref in error case

Reported by: Dr Silvio Cesare of InfoSect
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

4 years agoqlxgbe: avoid NULL deref in error case
emaste [Fri, 30 Aug 2019 00:38:16 +0000 (00:38 +0000)]
qlxgbe: avoid NULL deref in error case

Reported by: Dr Silvio Cesare of InfoSect
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

4 years agoexynos5: avoid NULL deref in error case
emaste [Fri, 30 Aug 2019 00:36:17 +0000 (00:36 +0000)]
exynos5: avoid NULL deref in error case

Reported by: Dr Silvio Cesare of InfoSect
MFC after: 3 days
MFC with: r351618
Sponsored by: The FreeBSD Foundation

4 years agoexynos5: avoid NULL deref in error case
emaste [Fri, 30 Aug 2019 00:34:27 +0000 (00:34 +0000)]
exynos5: avoid NULL deref in error case

Reported by: Dr Silvio Cesare of InfoSect
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

4 years agonullfs: use VOP_NEED_INACTIVE
mjg [Fri, 30 Aug 2019 00:30:03 +0000 (00:30 +0000)]
nullfs: use VOP_NEED_INACTIVE

Reviewed by: kib
Tested by: pho (previous version)
Sponsored by: The FreeBSD Foundation

4 years agoUse mbuf queue instead of ifqueue in USB network drivers.
glebius [Fri, 30 Aug 2019 00:05:04 +0000 (00:05 +0000)]
Use mbuf queue instead of ifqueue in USB network drivers.

Reviewed by: stevek

4 years agoAllow mbuf queues to be unlimited.
glebius [Fri, 30 Aug 2019 00:03:41 +0000 (00:03 +0000)]
Allow mbuf queues to be unlimited.

There is number of legacy code that uses ifqueue without setting
a limit on it first. Easier to allow for that rather than improve
legacy drivers.

4 years ago- address missing whitespace for indent
jgh [Thu, 29 Aug 2019 23:23:12 +0000 (23:23 +0000)]
- address missing whitespace for indent

PR: 239727
Submitted by: gbergling@gmail.com
Reviewed by: 0mp@
MFC after: 1 week

4 years agoRemove unused VM page locking macros.
markj [Thu, 29 Aug 2019 22:13:15 +0000 (22:13 +0000)]
Remove unused VM page locking macros.

They were orphaned by r292373.

Reviewed by: asomers
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21469

4 years agoSimplify bhyve vlapic ESR logic.
jhb [Thu, 29 Aug 2019 18:23:38 +0000 (18:23 +0000)]
Simplify bhyve vlapic ESR logic.

The bhyve virtual local APIC uses an instance-global flag to indicate
when an error LVT is being delivered to prevent infinite recursion.
Use a function argument instead to reduce the amount of instance-global
state.

This was inspired by reviewing the bhyve save/restore work, which
saves a copy of the instance-global state for each vlapic.

Smart OS bug: https://smartos.org/bugview/OS-7777
Submitted by: Patrick Mooney
Reviewed by: markj, rgrimes
Obtained from: SmartOS / Joyent
Differential Revision: https://reviews.freebsd.org/D20365

4 years agoUse relative paths in ObsoleteFiles.inc
zeising [Thu, 29 Aug 2019 17:25:50 +0000 (17:25 +0000)]
Use relative paths in ObsoleteFiles.inc

Approved by: imp
Differential Revision: https://reviews.freebsd.org/D21467

4 years agopwm.9 symlink shouldn't be removed
zeising [Thu, 29 Aug 2019 17:17:39 +0000 (17:17 +0000)]
pwm.9 symlink shouldn't be removed

When the pwm.9 manual was removed, a symlink between pwmbus.9 and pwm.9 was
created, but there's an entry in ObsoleteFiles.inc to remove pwn.9, meaning
that on every installation pwm.9 is created, and make delete-old deletes it.

Remove the entry from ObsoleteFiles.inc, the symlink is clearly intentional
and shouldn't be removed.

Reviewed by: imp, ian
Approved by: imp (implicit, review OK)
Differential Revision: https://reviews.freebsd.org/D21198

4 years agoTake proper lock in ses_setphyspath_callback().
mav [Thu, 29 Aug 2019 17:02:02 +0000 (17:02 +0000)]
Take proper lock in ses_setphyspath_callback().

XPT_DEV_ADVINFO call should be protected by the lock of the specific
device it is addressed to, not the lock of SES device.  In some weird
case, probably with hardware violating standards, it sometimes caused
NULL dereference due to race.

To protect from it further, add lock assertion to *_dev_advinfo().

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

4 years agoMan page for AMD Non-Transparent Bridge (ntb_hw_amd) driver.
mav [Thu, 29 Aug 2019 13:46:54 +0000 (13:46 +0000)]
Man page for AMD Non-Transparent Bridge (ntb_hw_amd) driver.

Submitted by: Rajesh Kumar <rajesh1.kumar@amd.com>
Reviewed by: bcr
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D21462

4 years agoichsmb: defer smbus attach until interrupts are available
yuripv [Thu, 29 Aug 2019 12:49:21 +0000 (12:49 +0000)]
ichsmb: defer smbus attach until interrupts are available

This fixes a "timed sleep before timers are working" panic seen
while attaching jedec_dimm(4) instances too early in the boot.

Submitted by: ian
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D21452

4 years agovnic: avoid NULL deref in error case
emaste [Thu, 29 Aug 2019 12:05:06 +0000 (12:05 +0000)]
vnic: avoid NULL deref in error case

Reported by: Dr Silvio Cesare of InfoSect
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

4 years agoscsi_cd: whitespace cleanup
avg [Thu, 29 Aug 2019 08:26:40 +0000 (08:26 +0000)]
scsi_cd: whitespace cleanup

Remove trailing whitespace and fix mixed indentation.

MFC after: 3 weeks

4 years agoscsi_cd: ifdef out cdsize()
avg [Thu, 29 Aug 2019 08:19:11 +0000 (08:19 +0000)]
scsi_cd: ifdef out cdsize()

It was used only by the old cdcheckmedia().

MFC after: 3 weeks

4 years agoscsi_cd: make the media check asynchronous
avg [Thu, 29 Aug 2019 07:51:11 +0000 (07:51 +0000)]
scsi_cd: make the media check asynchronous

This makes the media check process asynchronous, so we no longer block
in cdstrategy() to check for media.

PR: 219857
Obtained from: ken
MFC after: 3 weeks

4 years agoRework v_object lifecycle for vnodes.
kib [Thu, 29 Aug 2019 07:50:25 +0000 (07:50 +0000)]
Rework v_object lifecycle for vnodes.

Current implementation of vnode_create_vobject() and
vnode_destroy_vobject() is written so that it prepared to handle the
vm object destruction for live vnode.  Practically, no filesystems use
this, except for some remnants that were present in UFS till today.
One of the consequences of that model is that each filesystem must
call vnode_destroy_vobject() in VOP_RECLAIM() or earlier, as result
all of them get rid of the v_object in reclaim.

Move the call to vnode_destroy_vobject() to vgonel() before
VOP_RECLAIM().  This makes v_object stable: either the object is NULL,
or it is valid vm object till the vnode reclamation.  Remove code from
vnode_create_vobject() to handle races with the parallel destruction.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D21412

4 years agoUFS: stop reusing the vnode for reallocated inode.
kib [Thu, 29 Aug 2019 07:45:23 +0000 (07:45 +0000)]
UFS: stop reusing the vnode for reallocated inode.

In ffs_valloc(), force reclaim existing vnode on inode reuse, instead
of trying to re-initialize the same vnode for new purposes.  This is
done in preparation of changes to the vp->v_object lifecycle handling.

A new FFSV_REPLACE flag to ffs_vgetf() directs the function to
vgone(9) the vnode if found in vfs hash, instead of returning it.

Reviewed by: markj, mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D21412

4 years agoFix qmath(3) build problems with GCC 8.
trasz [Thu, 29 Aug 2019 07:39:31 +0000 (07:39 +0000)]
Fix qmath(3) build problems with GCC 8.

Discussed with: asomers
Sponsored by: Klara Systems
Differential Revision: https://reviews.freebsd.org/D21442

4 years agoRemove useless redefinition of NSFBUFS in i386/vm_machdep.c.
kib [Thu, 29 Aug 2019 07:34:14 +0000 (07:34 +0000)]
Remove useless redefinition of NSFBUFS in i386/vm_machdep.c.

Sponsored by: The FreeBSD Foundation

4 years agoCentralize __pcpu definitions.
kib [Thu, 29 Aug 2019 07:25:27 +0000 (07:25 +0000)]
Centralize __pcpu definitions.

Many extern struct pcpu <something>__pcpu declarations were
copied/pasted in sources.  The issue is that the definition is MD, but
it cannot be provided by machine/pcpu.h due to actual struct pcpu
defined in sys/pcpu.h later than the inclusion of machine/pcpu.h.
This forced the copying when other code needed direct access to
__pcpu.  There is no way around it, due to machine/pcpu.h supplying
part of struct pcpu fields.

To work around the problem, add a new machine/pcpu_aux.h header, which
should fill any needed MD definitions after struct pcpu definition is
completed. This allows to remove copies of __pcpu spread around the
source.  Also on x86 it makes it possible to remove work arounds like
OFFSETOF_CURTHREAD or clang specific warnings supressions.

Reported and tested by: lwhsu, bcran
Reviewed by: imp, markj (previous version)
Discussed with: jhb
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D21418

4 years agozfs_ioc_snapshot: check user-prop permissions on snapshotted datasets
avg [Thu, 29 Aug 2019 07:19:06 +0000 (07:19 +0000)]
zfs_ioc_snapshot: check user-prop permissions on snapshotted datasets

Previously, the permissions were checked on the pool which was obviously
incorrect.

After this change, zfs_check_userprops() only validates the properties
without any permission checks.  The permissions are checked individually
for each snapshotted dataset.

This was also committed to ZoL: zfsonlinux/zfs@e6203d2

Reported by: CyberSecure
MFC after: 1 week
Sponsored by: CyberSecure

4 years agoFix address annotation in xml output from w
karels [Thu, 29 Aug 2019 02:44:18 +0000 (02:44 +0000)]
Fix address annotation in xml output from w

The libxo xml feature of adding an annotation with the "original"
address from the utmpx file if it is different than the final "from"
field was broken by r351379. This was pointed out by the gcc error
that save_p might be used uninitialized. Save the original address
as needed in each entry, don't just use the last one from the previous
loop.

Reviewed by: marcel@
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D21390

4 years agoUse get_pcpu() to fetch the current CPU's pcpu pointer.
jhb [Wed, 28 Aug 2019 23:40:57 +0000 (23:40 +0000)]
Use get_pcpu() to fetch the current CPU's pcpu pointer.

This avoids encoding knowledge about how pcpu objects are allocated and is
also a few instructions shorter.

MFC after: 2 weeks

4 years agocxgbe/t4_tom: Use the correct value of sndbuf in AIO Tx.
np [Wed, 28 Aug 2019 23:31:58 +0000 (23:31 +0000)]
cxgbe/t4_tom: Use the correct value of sndbuf in AIO Tx.

This should have been part of r351540.

Sponsored by: Chelsio Communications

4 years agoFix AHCI Enclosure Management, broken by r351356.
mav [Wed, 28 Aug 2019 22:04:04 +0000 (22:04 +0000)]
Fix AHCI Enclosure Management, broken by r351356.

ivars value of -1 was used to distinguish EM device, and r351356 left some
wrong checks for it.  Give EM device separate flag there instead.

4 years agoInstall all bzip2.1 MLINKs from the same place.
markj [Wed, 28 Aug 2019 21:01:51 +0000 (21:01 +0000)]
Install all bzip2.1 MLINKs from the same place.

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

4 years agotmpfs: use VOP_NEED_INACTIVE
mjg [Wed, 28 Aug 2019 20:35:23 +0000 (20:35 +0000)]
tmpfs: use VOP_NEED_INACTIVE

Reviewed by: kib
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21371

4 years agovfs: add VOP_NEED_INACTIVE
mjg [Wed, 28 Aug 2019 20:34:24 +0000 (20:34 +0000)]
vfs: add VOP_NEED_INACTIVE

vnode usecount drops to 0 all the time (e.g. for directories during path lookup).
When that happens the kernel would always lock the exclusive lock for the vnode
in order to call vinactive(). This blocks other threads who want to use the vnode
for looukp.

vinactive is very rarely needed and can be tested for without the vnode lock held.

This patch gives filesytems an opportunity to do it, sample total wait time for
tmpfs over 500 minutes of poudriere -j 104:

before: 557563641706 (lockmgr:tmpfs)
after:   46309603301 (lockmgr:tmpfs)

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21371

4 years agoamd64: clean up cpu_switch.S
mjg [Wed, 28 Aug 2019 19:40:57 +0000 (19:40 +0000)]
amd64: clean up cpu_switch.S

- LK macro (conditional on SMP for the lock prefix) is unused
- SETLK unnecessarily performs xchg. obtained value is never used and the
  implicit lock prefix adds avoidable cost. Barrier provided by it does
  not appear to be of any use.
- the lock waited for is almost never blocked, yet the loop starts with
  a pause. Move it out of the common case.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19563

4 years agovm: only lock tmpfs vnode shared in vm_object_deallocate
mjg [Wed, 28 Aug 2019 19:28:27 +0000 (19:28 +0000)]
vm: only lock tmpfs vnode shared in vm_object_deallocate

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21455

4 years agoAvoid direct accesses of the vm_page wire_count field.
markj [Wed, 28 Aug 2019 18:01:54 +0000 (18:01 +0000)]
Avoid direct accesses of the vm_page wire_count field.

No functional change intended.

Sponsored by: Netflix

4 years agoMFV/ZoL: Fix wrong assertion in libzfs diff error handling
mav [Wed, 28 Aug 2019 17:39:46 +0000 (17:39 +0000)]
MFV/ZoL: Fix wrong assertion in libzfs diff error handling

In compare(), all error cases set the error code to EPIPE, so when an
error is set, the correct assertion to make is that the error is EPIPE,
not EINVAL.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@freqlabs.com>
Closes #8743
zfsonlinux/zfs@9dc41a769df164875d974c2431b2453e70e16c41

Submitted by: Ryan Moeller <ryan@freqlabs.com>
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D20118

4 years agoDocument fetchReqHTTP().
markj [Wed, 28 Aug 2019 17:01:28 +0000 (17:01 +0000)]
Document fetchReqHTTP().

Submitted by: Farhan Khan <khanzf@gmail.com>
Reviewed by: 0mp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18788

4 years agoproc: eliminate the zombproc list
mjg [Wed, 28 Aug 2019 16:18:23 +0000 (16:18 +0000)]
proc: eliminate the zombproc list

It is not needed by anything in the kernel and it slightly drives up contention
on both proctree and allproc locks.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21447

4 years agoWire pages in vm_page_grab() when appropriate.
markj [Wed, 28 Aug 2019 16:08:06 +0000 (16:08 +0000)]
Wire pages in vm_page_grab() when appropriate.

uiomove_object_page() and exec_map_first_page() would previously wire a
page after having grabbed it.  Ask vm_page_grab() to perform the wiring
instead: this removes some redundant code, and is cheaper in the case
where the requested page is not resident since the page allocator can be
asked to initialize the page as wired, whereas a separate vm_page_wire()
call requires the page lock.

In vm_imgact_hold_page(), use vm_page_unwire_noq() instead of
vm_page_unwire(PQ_NONE).  The latter ensures that the page is dequeued
before returning, but this is unnecessary since vm_page_free() will
trigger a batched dequeue of the page.

Reviewed by: alc, kib
Tested by: pho (part of a larger patch)
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21440

4 years agoDocument ipf_nat_hashtab_add() return codes.
cy [Wed, 28 Aug 2019 04:55:17 +0000 (04:55 +0000)]
Document ipf_nat_hashtab_add() return codes.

MFC after: 3 days

4 years agoDestroy the mutex in case of error.
cy [Wed, 28 Aug 2019 04:55:03 +0000 (04:55 +0000)]
Destroy the mutex in case of error.

Obtained from: NetBSD ip_nat.c r1.7
MFC after: 3 days

4 years agoFixup typo in comment.
cy [Wed, 28 Aug 2019 04:54:26 +0000 (04:54 +0000)]
Fixup typo in comment.

Obtained from: NetBSD ip_nat.c r1.7
MFC after: 3 days

4 years agofusefs: Fix some bugs regarding the size of the LISTXATTR list
asomers [Wed, 28 Aug 2019 04:19:37 +0000 (04:19 +0000)]
fusefs: Fix some bugs regarding the size of the LISTXATTR list

* A small error in r338152 let to the returned size always being exactly
  eight bytes too large.

* The FUSE_LISTXATTR operation works like Linux's listxattr(2): if the
  caller does not provide enough space, then the server should return ERANGE
  rather than return a truncated list.  That's true even though in FUSE's
  case the kernel doesn't provide space to the client at all; it simply
  requests a maximum size for the list.  We previously weren't handling the
  case where the server returns ERANGE even though the kernel requested as
  much size as the server had told us it needs; that can happen due to a
  race.

* We also need to ensure that a pathological server that always returns
  ERANGE no matter what size we request in FUSE_LISTXATTR won't cause an
  infinite loop in the kernel.  As of this commit, it will instead cause an
  infinite loop that exits and enters the kernel on each iteration, allowing
  signals to be processed.

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

4 years agoproc: remove zpfind
mjg [Wed, 28 Aug 2019 01:22:21 +0000 (01:22 +0000)]
proc: remove zpfind

It is not used by anything. If someone wants it back it should be reimplemented
to use the proc hash.

Sponsored by: The FreeBSD Foundation

4 years agoOnly define the 'tls' member of sfio in KERN_TLS is defined.
jhb [Tue, 27 Aug 2019 22:21:18 +0000 (22:21 +0000)]
Only define the 'tls' member of sfio in KERN_TLS is defined.

This field was not initialized in the !KERN_TLS case triggering an
assertion failure when using sendfile(2).

Reported by: pho, asomers
Sponsored by: Netflix

4 years agoAdjust the deprecated warnings for /dev/crypto to be less noisy.
jhb [Tue, 27 Aug 2019 21:29:37 +0000 (21:29 +0000)]
Adjust the deprecated warnings for /dev/crypto to be less noisy.

Warn when actual operations are performed instead of when sessions are
created.  The /dev/crypto engine in OpenSSL 1.0.x tries to create
sessions for all possible algorithms each time it is initialized
resulting in spurious warnings.

Reported by: Mike Tancsa
MFC after: 3 days
Sponsored by: Chelsio Communications

4 years agounionfs: stop passing LK_INTERLOCK to VOP_UNLOCK
mjg [Tue, 27 Aug 2019 20:51:17 +0000 (20:51 +0000)]
unionfs: stop passing LK_INTERLOCK to VOP_UNLOCK

This is part of the preparation to remove flags argument from VOP_UNLOCK.
Also has a side effect of fixing stacking on top of nullfs broken by r351472.

Reported by: cy
Sponsored by: The FreeBSD Foundation

4 years agovfs: stop passing LK_INTERLOCK to VOP_UNLOCK
mjg [Tue, 27 Aug 2019 20:30:56 +0000 (20:30 +0000)]
vfs: stop passing LK_INTERLOCK to VOP_UNLOCK

The plan is to drop the flags argument. There is also a temporary bug
now that nullfs ignores the flag.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21252

4 years agoMFV r351553:
hrs [Tue, 27 Aug 2019 20:11:45 +0000 (20:11 +0000)]
MFV r351553:

Fix a problem which prevented -OServerSSLOptions or -OClientSSLOptions
specified in the command-line option from working.

This patch has been accepted by the upstream.

Reviewed by and discussed with: gshapiro

4 years agoarm64: rk3399: pinctrl: Add gpio banks and fix iomux
manu [Tue, 27 Aug 2019 18:00:01 +0000 (18:00 +0000)]
arm64: rk3399: pinctrl: Add gpio banks and fix iomux

Since r351187 the pinctrl driver need to know the gpio bank as it
directly attach the gpio driver to handle some setup that might
be present in the dts, add the gpio banks table for rk3399.
While here fix some IOMUX definition that prevented to boot
on RK3399 as pinctrl wasn't configured correctly.

Submitted by: mmel (original version)
MFC after: 2 weeks
MFC With: r351187

4 years agoarm64: rk3328: pinctrl: Add gpio banks and fix iomux
manu [Tue, 27 Aug 2019 17:59:09 +0000 (17:59 +0000)]
arm64: rk3328: pinctrl: Add gpio banks and fix iomux

Since r351187 the pinctrl driver need to know the gpio bank as it
directly attach the gpio driver to handle some setup that might
be present in the dts, add the gpio banks table for rk3328.
While here fix some IOMUX definition that prevented to boot
on RK3328 as pinctrl wasn't configured correctly.

Submitted by: mmel (original version)
MFC after: 2 weeks
MFC With: r351187

4 years agoAlways check cam_periph_error() status for ERESTART.
mav [Tue, 27 Aug 2019 16:41:06 +0000 (16:41 +0000)]
Always check cam_periph_error() status for ERESTART.

Even if we do not expect retries, we better be sure, since otherwise it
may result in use after free kernel panic.  I've noticed that it retries
SCSI_STATUS_BUSY even with SF_NO_RECOVERY | SF_NO_RETRY.

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

4 years agoRemove an extraneous + 1 in _domainset_create().
markj [Tue, 27 Aug 2019 15:42:08 +0000 (15:42 +0000)]
Remove an extraneous + 1 in _domainset_create().

DOMAINSET_FLS, like our fls(), is 1-indexed.

Reported by: alc
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

4 years agoping: raise WARNS level to 6
asomers [Tue, 27 Aug 2019 15:34:37 +0000 (15:34 +0000)]
ping: raise WARNS level to 6

Submitted by: Ján Sučan <sucanjan@gmail.com>
MFC after: 2 weeks
Sponsored by: Google LLC (Google Summer of Code 2019)
Differential Revision: https://reviews.freebsd.org/D21405

4 years agoFix several logic issues in domainset_empty_vm().
markj [Tue, 27 Aug 2019 14:06:34 +0000 (14:06 +0000)]
Fix several logic issues in domainset_empty_vm().

- Don't add 1 to the result of DOMAINSET_FLS.
- Do not modify domainsets containing only empty domains.
- Always flatten a _PREFER policy to _ROUNDROBIN if the preferred
  domain is empty.  Previously we were doing this only when ds_cnt > 1.

These bugs could cause hangs during boot if a VM domain is empty.

Tested by: hselasky
Reviewed by: hselasky, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21420

4 years agoRevert a part of r350883 that should never have gone in
jhibbits [Tue, 27 Aug 2019 14:04:32 +0000 (14:04 +0000)]
Revert a part of r350883 that should never have gone in

The wire_count change is not part of the unification, and doesn't even make
sense.

Reported by: markj

4 years agoFix build on 32 bit archs.
trasz [Tue, 27 Aug 2019 13:55:45 +0000 (13:55 +0000)]
Fix build on 32 bit archs.

4 years agoIntroduce <sys/qmath.h>, a fixed-point math library from Netflix.

trasz [Tue, 27 Aug 2019 11:46:22 +0000 (11:46 +0000)]
Introduce <sys/qmath.h>, a fixed-point math library from Netflix.

This makes it possible to perform mathematical operations
on
fractional values without using floating point. It operates on Q
numbers, which are integer-sized, opaque structures initialized
to hold a chosen number of integer and fractional
bits.


For a general description of the Q number system, see the "Fixed Point
Representation & Fractional Math" whitepaper[1]; for the actual
API see the qmath(3) man page.

This is one of dependencies for the upcoming stats(3) framework[2]
that will be applied to the TCP stack in a later commit.

1. https://www.superkits.net/whitepapers/Fixed%20Point%20Representation%20&%20Fractional%20Math.pdf
2. https://reviews.freebsd.org/D20477

Reviewed by: bcr (man pages, earlier version), sef (earlier version)
Discussed with: cem, dteske, imp, lstewart
Sponsored By: Klara Inc, Netflix
Obtained from: Netflix
Differential Revision: https://reviews.freebsd.org/D20116

4 years agoAdd support for RK3288 into existing RockChip drivers.
mmel [Tue, 27 Aug 2019 09:20:01 +0000 (09:20 +0000)]
Add support for RK3288 into existing RockChip drivers.
This patch ensures only minimal level of compatibility necessary to boot
on RK3288 based boards. GPIO and pinctrl interaction, missing in current
implementation, will be improved by own patch in the near future.

MFC after: 2 weeks
MFC with: r351452

4 years agovn_vget_ino_gen(): relock the lower vnode on error.
kib [Tue, 27 Aug 2019 08:28:38 +0000 (08:28 +0000)]
vn_vget_ino_gen(): relock the lower vnode on error.

The function' interface assumes that the lower vnode is passed and
returned locked always.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

4 years agocxgbe/t4_tom: Initialize all TOE connection parameters in one place.
np [Tue, 27 Aug 2019 04:19:40 +0000 (04:19 +0000)]
cxgbe/t4_tom: Initialize all TOE connection parameters in one place.
Remove now-redundant items from toepcb and synq_entry and the code to
support them.

Let the driver calculate tx_align, rx_coalesce, and sndbuf by default.

Reviewed by: jhb@
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D21387

4 years agocxgbe/t4_tom: Limit work requests with immediate payload to a single
np [Tue, 27 Aug 2019 01:16:02 +0000 (01:16 +0000)]
cxgbe/t4_tom: Limit work requests with immediate payload to a single
descriptor.  The per-tid tx credits are in demand during active Tx and
it's best not to use too many just for payload.

Sponsored by: Chelsio Communications

4 years agoAdd kernel-side support for in-kernel TLS.
jhb [Tue, 27 Aug 2019 00:01:56 +0000 (00:01 +0000)]
Add kernel-side support for in-kernel TLS.

KTLS adds support for in-kernel framing and encryption of Transport
Layer Security (1.0-1.2) data on TCP sockets.  KTLS only supports
offload of TLS for transmitted data.  Key negotation must still be
performed in userland.  Once completed, transmit session keys for a
connection are provided to the kernel via a new TCP_TXTLS_ENABLE
socket option.  All subsequent data transmitted on the socket is
placed into TLS frames and encrypted using the supplied keys.

Any data written to a KTLS-enabled socket via write(2), aio_write(2),
or sendfile(2) is assumed to be application data and is encoded in TLS
frames with an application data type.  Individual records can be sent
with a custom type (e.g. handshake messages) via sendmsg(2) with a new
control message (TLS_SET_RECORD_TYPE) specifying the record type.

At present, rekeying is not supported though the in-kernel framework
should support rekeying.

KTLS makes use of the recently added unmapped mbufs to store TLS
frames in the socket buffer.  Each TLS frame is described by a single
ext_pgs mbuf.  The ext_pgs structure contains the header of the TLS
record (and trailer for encrypted records) as well as references to
the associated TLS session.

KTLS supports two primary methods of encrypting TLS frames: software
TLS and ifnet TLS.

Software TLS marks mbufs holding socket data as not ready via
M_NOTREADY similar to sendfile(2) when TLS framing information is
added to an unmapped mbuf in ktls_frame().  ktls_enqueue() is then
called to schedule TLS frames for encryption.  In the case of
sendfile_iodone() calls ktls_enqueue() instead of pru_ready() leaving
the mbufs marked M_NOTREADY until encryption is completed.  For other
writes (vn_sendfile when pages are available, write(2), etc.), the
PRUS_NOTREADY is set when invoking pru_send() along with invoking
ktls_enqueue().

A pool of worker threads (the "KTLS" kernel process) encrypts TLS
frames queued via ktls_enqueue().  Each TLS frame is temporarily
mapped using the direct map and passed to a software encryption
backend to perform the actual encryption.

(Note: The use of PHYS_TO_DMAP could be replaced with sf_bufs if
someone wished to make this work on architectures without a direct
map.)

KTLS supports pluggable software encryption backends.  Internally,
Netflix uses proprietary pure-software backends.  This commit includes
a simple backend in a new ktls_ocf.ko module that uses the kernel's
OpenCrypto framework to provide AES-GCM encryption of TLS frames.  As
a result, software TLS is now a bit of a misnomer as it can make use
of hardware crypto accelerators.

Once software encryption has finished, the TLS frame mbufs are marked
ready via pru_ready().  At this point, the encrypted data appears as
regular payload to the TCP stack stored in unmapped mbufs.

ifnet TLS permits a NIC to offload the TLS encryption and TCP
segmentation.  In this mode, a new send tag type (IF_SND_TAG_TYPE_TLS)
is allocated on the interface a socket is routed over and associated
with a TLS session.  TLS records for a TLS session using ifnet TLS are
not marked M_NOTREADY but are passed down the stack unencrypted.  The
ip_output_send() and ip6_output_send() helper functions that apply
send tags to outbound IP packets verify that the send tag of the TLS
record matches the outbound interface.  If so, the packet is tagged
with the TLS send tag and sent to the interface.  The NIC device
driver must recognize packets with the TLS send tag and schedule them
for TLS encryption and TCP segmentation.  If the the outbound
interface does not match the interface in the TLS send tag, the packet
is dropped.  In addition, a task is scheduled to refresh the TLS send
tag for the TLS session.  If a new TLS send tag cannot be allocated,
the connection is dropped.  If a new TLS send tag is allocated,
however, subsequent packets will be tagged with the correct TLS send
tag.  (This latter case has been tested by configuring both ports of a
Chelsio T6 in a lagg and failing over from one port to another.  As
the connections migrated to the new port, new TLS send tags were
allocated for the new port and connections resumed without being
dropped.)

ifnet TLS can be enabled and disabled on supported network interfaces
via new '[-]txtls[46]' options to ifconfig(8).  ifnet TLS is supported
across both vlan devices and lagg interfaces using failover, lacp with
flowid enabled, or lacp with flowid enabled.

Applications may request the current KTLS mode of a connection via a
new TCP_TXTLS_MODE socket option.  They can also use this socket
option to toggle between software and ifnet TLS modes.

In addition, a testing tool is available in tools/tools/switch_tls.
This is modeled on tcpdrop and uses similar syntax.  However, instead
of dropping connections, -s is used to force KTLS connections to
switch to software TLS and -i is used to switch to ifnet TLS.

Various sysctls and counters are available under the kern.ipc.tls
sysctl node.  The kern.ipc.tls.enable node must be set to true to
enable KTLS (it is off by default).  The use of unmapped mbufs must
also be enabled via kern.ipc.mb_use_ext_pgs to enable KTLS.

KTLS is enabled via the KERN_TLS kernel option.

This patch is the culmination of years of work by several folks
including Scott Long and Randall Stewart for the original design and
implementation; Drew Gallatin for several optimizations including the
use of ext_pgs mbufs, the M_NOTREADY mechanism for TLS records
awaiting software encryption, and pluggable software crypto backends;
and John Baldwin for modifications to support hardware TLS offload.

Reviewed by: gallatin, hselasky, rrs
Obtained from: Netflix
Sponsored by: Netflix, Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D21277

4 years agoFix a few nits in vm_pqbatch_process_page().
markj [Mon, 26 Aug 2019 20:20:10 +0000 (20:20 +0000)]
Fix a few nits in vm_pqbatch_process_page().

- Don't bother masking off non-queue state flags when loading the
  page's atomic state, since it is only required for one of the
  function's assertions.  Update the assertion instead.
- Remove an incorrect comment regarding synchronization with the
  page daemon.  The page daemon only ever checks for PGA_ENQUEUED
  with the page queue lock held.
- When clearing requeue flags, only clear the flags that have been
  acted upon.

Reviewed by: kib (previous version)
Discussed with: alc
Tested by: pho (part of a larger patch)
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D21368

4 years agoAnnounce PCI Segment Groups supported to PCI host _OSC.
mav [Mon, 26 Aug 2019 17:54:19 +0000 (17:54 +0000)]
Announce PCI Segment Groups supported to PCI host _OSC.

According to ACPI 6.3 specification:
    The OS sets this bit to 1 if it supports PCI Segment Groups as defined
    by the _SEG object, and access to the configuration space of devices
    in PCI Segment Groups as described by this specification.  Otherwise,
    the OS sets this bit to 0.

As far as I see we support both of those as PCI domains for quite a while.

MFC after: 2 months

4 years agoDon't consider PCIe hot-plug command timeout fatal.
mav [Mon, 26 Aug 2019 17:27:36 +0000 (17:27 +0000)]
Don't consider PCIe hot-plug command timeout fatal.

According to my tests and errata to several generations of Intel CPUs,
PCIe hot-plug command completion reporting is not very reliable thing.
At least on my Supermicro X11DPi-NT board I never saw it reported.
Before this change timeout code detached devices and tried to disable
the slot, that in my case resulted in hot-plugged device being detached
just a second after it was successfully detected and attached.  This
change removes that, so in case of timeout it just prints the error and
continue operation.  Linux does the same.

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

4 years agoStop using des_cblock * for arguments to DES functions.
jhb [Mon, 26 Aug 2019 17:25:07 +0000 (17:25 +0000)]
Stop using des_cblock * for arguments to DES functions.

This amounts to a char ** since it is a char[8] *.  Evil casts mostly
resolved the fact that what was actually passed in were plain char *.
Instead, change the DES functions to use 'unsigned char *' for keys
and for input and output buffers.

Reviewed by: cem, imp
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D21389

4 years agoDon't hold the rs_mtx lock while calling malloc().
tuexen [Mon, 26 Aug 2019 16:23:47 +0000 (16:23 +0000)]
Don't hold the rs_mtx lock while calling malloc().

Reviewed by: rrs@
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D21416

4 years agoIdentify eMAG CPU used in Ampere Computing systems.
tuexen [Mon, 26 Aug 2019 16:12:14 +0000 (16:12 +0000)]
Identify eMAG CPU used in Ampere Computing systems.

Reviewed by: emaste@
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D21314

4 years agoMake it clear what the userland traces are in the ktrace(1) man page.
trasz [Mon, 26 Aug 2019 10:18:19 +0000 (10:18 +0000)]
Make it clear what the userland traces are in the ktrace(1) man page.

MFC after: 2 weeks

4 years ago.Xr ports(7) and development(7).
trasz [Mon, 26 Aug 2019 10:16:46 +0000 (10:16 +0000)]
.Xr ports(7) and development(7).

MFC after: 2 weeks

4 years agoComment boot block checks and perform additional sanity checks:
delphij [Mon, 26 Aug 2019 06:41:17 +0000 (06:41 +0000)]
Comment boot block checks and perform additional sanity checks:

The following checks are now being enforced:

 - bpbBytesPerSec: only accept 512, 1024, 2048 and 4096.
 - bpbSecPerClust: only accept 1, 2, 4, 8, 16, 32, 64 and 128.
 - bpbResSectors: require non-zero.
 - bpbFATs: require non-zero.
 - bpbSectors: require zero for FAT32.
 - bpbFATsmall: require zero for FAT32.
 - bpbHugeSectors: require non-zero for FAT32.

Bail out if the BPB contained values that do not meet these requirements.

We also require FATsecs * FATsecs to not overflow 32-bit unsigned
integer.

Check for backup boot block was removed because the checker does not take
corrective action, and msdosfs driver ignores it too.

4 years agoMFV r351500: Fix CLEAR_HASH macro to be usable as a single statement.
delphij [Mon, 26 Aug 2019 00:46:39 +0000 (00:46 +0000)]
MFV r351500:  Fix CLEAR_HASH macro to be usable as a single statement.

MFC after: 2 weeks

4 years agovfs: swap vop_unlock_post and vop_unlock_pre definitions to the logical order
mjg [Sun, 25 Aug 2019 22:30:18 +0000 (22:30 +0000)]
vfs: swap vop_unlock_post and vop_unlock_pre definitions to the logical order

The change is no-op.

Sponsored by: The FreeBSD Foundation

4 years agoReplace -Werror with ${WERROR} in pmcstudy
imp [Sun, 25 Aug 2019 22:06:26 +0000 (22:06 +0000)]
Replace -Werror with ${WERROR} in pmcstudy

4 years agoReplace -Werror with ${WERROR} in module builds
imp [Sun, 25 Aug 2019 22:06:17 +0000 (22:06 +0000)]
Replace -Werror with ${WERROR} in module builds

4 years agoHandle UMA_ANYDOMAIN in kstack_import().
markj [Sun, 25 Aug 2019 21:14:46 +0000 (21:14 +0000)]
Handle UMA_ANYDOMAIN in kstack_import().

The kernel thread stack zone performs first-touch allocations by
default, and must handle the case where the local memory domain
is empty.  For most UMA zones this is handled in the keg layer,
but cache zones currently must implement a policy for this case.
Simply use a round-robin policy if UMA_ANYDOMAIN is passed.

Reported and tested by: bcran
Reviewed by: kib
Sponsored by: The FreeBSD Foundation

4 years agoamd64: loose constraints on the APs dpcpu and nmi/dbg stack allocations.
kib [Sun, 25 Aug 2019 21:01:40 +0000 (21:01 +0000)]
amd64: loose constraints on the APs dpcpu and nmi/dbg stack allocations.

Use DOMAINSET_PREF() instead of DOMAINSET_FIXED(), to gracefully
fallback in case of memory-less domain.

Reported and tested by: bcran
Reviewed by: markj
Sponsored by: The FreeBSD Foundation

4 years agoamd64: If domain-local page for pcpu cannot be allocated, keep use
kib [Sun, 25 Aug 2019 20:57:39 +0000 (20:57 +0000)]
amd64: If domain-local page for pcpu cannot be allocated, keep use
existing one.

Allocation failure is possible for instance when cpu domain has no memory.

Reported and tested by: bcran
Reviewed by: markj
Sponsored by: The FreeBSD Foundation

4 years agonetmap: remove obsolete file
vmaffione [Sun, 25 Aug 2019 20:16:03 +0000 (20:16 +0000)]
netmap: remove obsolete file

The netmap_pt.c module has become obsolete after
the refactoring that added netmap_kloop.c.
Remove it and unlink it from the build system.

MFC after: 1 week

4 years agopowerpc/booke: Clean up pmap a little for 64-bit
jhibbits [Sun, 25 Aug 2019 20:11:35 +0000 (20:11 +0000)]
powerpc/booke: Clean up pmap a little for 64-bit

64-bit Book-E pmap doesn't need copy and zero bounce pages, nor the mutex.
Don't initialize them or reserve space for them.

4 years agopowerpc/booke: Use the DMAP if possible in pmap_map()
jhibbits [Sun, 25 Aug 2019 20:08:48 +0000 (20:08 +0000)]
powerpc/booke: Use the DMAP if possible in pmap_map()

This avoids unnecessary TLB usage for statically mapped regions, such as
vm_page_array.

4 years agoFix bogusly declared WERRORs in kernel build
imp [Sun, 25 Aug 2019 19:39:31 +0000 (19:39 +0000)]
Fix bogusly declared WERRORs in kernel build

Many arm kernel configs bogusly specified WERROR=-Werror. There's no
reason for this because the default is that and there's no reason to
override. These date from a time when we needed to add additional
warning->error suppression. They are obsolete and were cut and paste
propagated from file to file.

Comment out all the WERROR=.... lines in powerpc. They aren't bogus,
but were appropriate for the old defaults for gcc4.2.1. Now that we've
made the policy decision to suppress -Werror by default on these
platforms, it is appropriate to comment these out. People wishing to
fix these errors can still un-comment them out, or say WERROR=-Werror
on the command line.

Fix two instances (cut and paste propagation) of hard-coded -Werror
in x86 code. Replace with ${WERROR} instead. This is a no-op change
except for people who build WERROR=-Wno-error :).

This should fix tinderbox / CI breakage.

4 years agoFix build (r351481).
hrs [Sun, 25 Aug 2019 19:27:14 +0000 (19:27 +0000)]
Fix build (r351481).