]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
5 years agoMFC r336195: unbreak dhclient(8) option 26 processing
eugen [Wed, 18 Jul 2018 01:57:13 +0000 (01:57 +0000)]
MFC r336195: unbreak dhclient(8) option 26 processing

  Make dhclient(8) verify if new MTU (option 26) differs from current one
  and skip unneeded MTU change. This check eliminates infinite loop
  of MTU change / link flap / lease verification / MTU change / link flap etc.
  in case of some NIC drivers like em(4) or igb(4).

PR: 229432
Approved by: mav (mentor)

5 years agoMFC: r333645
rmacklem [Tue, 17 Jul 2018 19:10:15 +0000 (19:10 +0000)]
MFC: r333645
End grace for the NFSv4 server if all mounts do ReclaimComplete.

The NFSv4 protocol requires that the server only allow reclaim of state
and not issue any new open/lock state for a grace period after booting.
The NFSv4.0 protocol required this grace period to be greater than the
lease duration (over 2minutes). For NFSv4.1, the client tells the server
that it has done reclaiming state by doing a ReclaimComplete operation.
If all NFSv4 clients are NFSv4.1, the grace period can end once all the
clients have done ReclaimComplete, shortening the time period considerably.
This patch does this. If there are any NFSv4.0 mounts, the grace period
will still be over 2minutes.
This change is only an optimization and does not affect correct operation.

5 years agoRetrospectively document SVN branch points for stable-11 and its releases.
peterj [Tue, 17 Jul 2018 11:44:04 +0000 (11:44 +0000)]
Retrospectively document SVN branch points for stable-11 and its releases.

This is a direct commit to stable/11 because the releases are taken
from this branch.

Approved by: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D16264

5 years agoMFC r304910, r304912, r304915, r304952, r325019, r328164, r331094, r332664,
kevans [Mon, 16 Jul 2018 15:02:21 +0000 (15:02 +0000)]
MFC r304910, r304912, r304915, r304952, r325019, r328164, r331094, r332664,
r335341-r335345, r335347, r335379-r335380, r335382

r304910:
Introduce cnv man page.

r304912:
Add missed header file for cnv.h .

r304915:
Bump date in the man page.

r304952:
Remove duplicated declaration.

r325019:
Introduce cnvlist_name() and cnvlist_type() functions.

Those function can be used when we are iterating over nvlist to reduce
amount of extra variables we need to declare.

r328164:
libnv: Use mallocarray(9) for the nv_calloc.

r331094:
Fix formatting errors that resulted in apropos(1) output looking weird.

r332664:
Add missing argument in the cnv man page.

r335341:
libnv: change name of cookie from cookiep to cookie.

The name was inconsistent with rest of the library.
No functional change intended.

r335342:
libnv: add const to cookies arguments

r335343:
libnv: Remove nvlist argument from cnvlist_{take,free}_* functions.

All information which are need for those operations is already stored in
the cookie.

We decided not to bump libnv version because this API is not used yet in the
base system.

r335344:
libnv: clean parent in nvlist_array when removing it.

When we are removing element form the nvlist we should also clean parent,
because the array is not a part of the nvlist anymore.

r335345:
libnv: add regression test for r335344.

r335347:
libnv: Add nvlist_append_*_array() family of functions.

The nvlist_append_{bool,number,string,nvlist,descriptor}_array() functions
allows to dynamically extend array stored in the nvlist.

r335379:
Set prev to NULL so its garaunteed to have a value of some kind and
gcc doesn't explode.  Feel free to fix this correctly or whatever for
gcc builds.

This *should* quiesce tinderbox after r335347 for the gcc builds.

r335380:
style(9) fix, I was also going to silence gcc.

r335382:
Really fix the style.

5 years agoMFC r304908-r304909
kevans [Mon, 16 Jul 2018 14:56:30 +0000 (14:56 +0000)]
MFC r304908-r304909

r304908:
Add cnv API.

cnv API is a set of functions for managing name/value pairs by cookie.
The cookie can be obtained by nvlist_next(), nvlist_get_parent() or
nvlist_get_pararr() function. This patch also includes unit tests.

Submitted by: Adam Starak <starak.adam@gmail.com>

r304909:
Fix style issue in the cnv API.
Remove unused arguments in a macro.
Remove unused typedef.

5 years agoMFC r335757:
kevans [Mon, 16 Jul 2018 14:42:45 +0000 (14:42 +0000)]
MFC r335757:

ifconfig(8): Attempt to render non-printable sequences w/ UTF-8 Environment

Currently ifconfig(8) only prints the hex representation of ssid names
with non-ASCII characters. Many modern terminals are able to properly render
non-ASCII characters. This change checks if the terminal charmap is UTF-8,
and if so, will render the characters, rather than the hex value.

This behavior is circumvented by running ifconfig(8) in a non-UTF8 locale;
e.g. C or POSIX.

It was pointed out by kp@ during the review that APs have the option to
broadcast whether their SSIDs may be interpreted as UTF-8. Ideally, we would
honor this and only attempt this behavior if it's so-broadcasted by the AP.

However, a sample survey showed that hostapd will advertise this if
indicated in config but it doesn't seem to be so common in the AP market, so
this would be effectively useless as we'll rarely know if the SSID should be
renderable as UTF-8.

Despite this, it was decided to be OK with this anyways- there's a
straightforward path to doing it the right way based on advertisement by AP
if we need to go that route, and one can revert to old behavior easily
enough at runtime if we get it wrong.

5 years agoMFC r335652-r335654
kevans [Mon, 16 Jul 2018 14:38:57 +0000 (14:38 +0000)]
MFC r335652-r335654

r335652:
config(8): Make 'env' files consistent with other file-accepting options

Previously, only one 'env' file could be specified. Later 'env' directives
would overwrite earlier 'env' directives. This is inconsistent with every
other file-accepting directives which process files in order, including
hints.

A caveat applies to both hints and env that isn't mentioned: they're
concatenated in the order of appearance, so they're not actually applied in
the way one might think by supplying:

hints x
hints y

Hints in x will take precedence over same-name hints in y due to how
the kernel processes them, stopping at the first line that matches the hint
we're searching for. Future work will flip the order of concatenation so
that later files may still properly override earlier files.

In practice, this likely doesn't matter at all due to the nature of the
beast.

r335653:
config(8): Flip the order of concatenation for `hints` and `env`

As previously noted, kernel's processing of these means that the first
appearance of a hint/variable wins. Flipping the order of concatenation
means that later variables override earlier variables, as expected when one
does:

hints x
hints y

Where perhaps x is:

hint.aw_sid.0.disable=1

and y is:

hint.aw_sid.0.disable=0

The expectation would be that a later appearing variable would override an
earlier appearing variable, such as with `device`/`nodevice`, device.hints,
and other similarly structured data files.

r335654:
config(8): part of patch disappeared, don't close ifp at the end

5 years agoMFC r336238:
brooks [Mon, 16 Jul 2018 14:17:23 +0000 (14:17 +0000)]
MFC r336238:

Round down the location of execpathp to slightly improve copyout speed.

In practice, this moves the padding from below the canary to above
execpathp has no impact on stack consumption.

Submitted by: Wuyang-Chung (via github pull request #159)

5 years agoMFC r336257, r336258, r336263:
markj [Mon, 16 Jul 2018 13:21:49 +0000 (13:21 +0000)]
MFC r336257, r336258, r336263:
Use the MSR name.

5 years agoMFC r335795,335796:
ae [Mon, 16 Jul 2018 10:32:11 +0000 (10:32 +0000)]
MFC r335795,335796:
  Make debug output produced by `setkey -x` command a more human readable.

  Add text names of SADB message types and extension headers to the output.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D16036

5 years agoMFC r336227:
dim [Mon, 16 Jul 2018 05:36:42 +0000 (05:36 +0000)]
MFC r336227:

Pull in r336008 from upstream clang trunk:

  Request init/fini array on FreeBSD 12 and later

  Summary:

  It seems a bad idea to change the default in the middle of a release
  branch due to possible changes in global ctor / dtor ordering between
  .ctors and .init_array. With FreeBSD 11.0's release imminent lets
  change the default now for FreeBSD 12 (the current development
  stream) and later.

  FreeBSD rtld has supported .init_array / .fini_array for many years.
  As of Jan 1 2017 all supported FreeBSD releases and branches will
  have support.

  Reviewers: dim, brooks, arichardson

  Reviewed By: dim, brooks, arichardson

  Subscribers: bsdjhb, krytarowski, emaste, cfe-commits

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

Requested by: jhb

5 years agoMFC r333401 (by emaste):
dim [Mon, 16 Jul 2018 05:35:39 +0000 (05:35 +0000)]
MFC r333401 (by emaste):

lld: Omit PT_NOTE for SHT_NOTE without SHF_ALLOC

A non-alloc note section should not have a PT_NOTE program header.

Found while linking ghc (Haskell compiler) with lld on FreeBSD.  Haskell
emits a .debug-ghc-link-info note section (as the name suggests, it
contains link info) as a SHT_NOTE section without SHF_ALLOC set.

For this case ld.bfd does not emit a PT_NOTE segment for
.debug-ghc-link-info.  lld previously emitted a PT_NOTE with p_vaddr = 0
and FreeBSD's rtld segfaulted when trying to parse a note at address 0.

LLVM PR: https://llvm.org/pr37361
LLVM review: https://reviews.llvm.org/D46623

PR: 226872
Reviewed by: dim
Sponsored by: The FreeBSD Foundation

5 years agoMFC r332965 (by emaste):
dim [Mon, 16 Jul 2018 05:33:18 +0000 (05:33 +0000)]
MFC r332965 (by emaste):

lldb: remove assertion that target_arch is FreeBSD

The target is not necessarily a FreeBSD binary - for example, it may be
a Linux binary running under the linuxulator.  Basic ptrace (live)
debugging already worked in this case, except for the assertion.

Sponsored by: Turing Robotic Industries Inc.

5 years agoMFC r335189:
delphij [Mon, 16 Jul 2018 04:06:34 +0000 (04:06 +0000)]
MFC r335189:

Added option to cluster-align the start of the root directory.

Obtained from: Android
Obtained from: https://android.googlesource.com/platform/system/core/+/052f27562154d175267999106bd6bf18fc8c363e
Obtained from: https://android.googlesource.com/platform/system/core/+/8218b6aae9cd4a19fa074a8a8203fe9275b35447
Differential Revision: https://reviews.freebsd.org/D15672

5 years agoMFC r318355,318366: add -T (timestamp) option for reproducible builds
delphij [Mon, 16 Jul 2018 03:59:40 +0000 (03:59 +0000)]
MFC r318355,318366: add -T (timestamp) option for reproducible builds

5 years agoMFC r335874: Cut currdev dev and path fields for ZFS on the last colon.
mav [Mon, 16 Jul 2018 02:48:59 +0000 (02:48 +0000)]
MFC r335874: Cut currdev dev and path fields for ZFS on the last colon.

Previously the code cut those fields on second colon, that prevented
boot from boot environments with colon in their names.  This change
moves the limitation from dev field to path, which is empty by default.

5 years agoMFC r336113:
pfg [Mon, 16 Jul 2018 00:23:09 +0000 (00:23 +0000)]
MFC r336113:
gzip: fix for undefined behavior.

Unportable left shift reported with MKSANITIZER=yes
USE_SANITIZER=undefined:

# progress -zf ./games.tgz  tar -xp -C "./" -f -
/public/src.git/usr.bin/gzip/gzip.c:2126:33: runtime error: left shift of
251 by 24 places cannot be represented in type 'int'
100%
|****************************************************************************************************************|
44500 KiB  119.69 MiB/s    00:00 ETA

Refactor the following code into something that is more clear
and fix signed integer shift, by casting all buf[] elements to
(unsigned int):

unsigned char buf[8];
uint32_t usize;
[...]
else {
    usize = buf[4] | buf[5] << 8 |
            buf[6] << 16 | buf[7] << 24;
[...]

New version:

    usize = buf[4];
    usize |= (unsigned int)buf[5] << 8;
    usize |= (unsigned int)buf[6] << 16;
    usize |= (unsigned int)buf[7] << 24;

Only the "<< 24" part needs explicit cast, but for consistency make the
integer promotion explicit and clear to a code reader.

Sponsored by <The NetBSD Foundation>

Obtained from: NetBSD (CVS rev. 1.113)

5 years agoMFC r336115;
pfg [Mon, 16 Jul 2018 00:20:18 +0000 (00:20 +0000)]
MFC r336115;
libiconv: correct undefined behavior.

Detected on NetBSD:
# nm /usr/lib/libc.so|grep sanit
    /public/src.git/lib/libc/citrus/modules/citrus_mapper_std.c:173:8:
runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

Obtained from: NetBSD (CVS Rev. 1.11)

5 years agoMFC r336090:
markj [Sun, 15 Jul 2018 15:28:23 +0000 (15:28 +0000)]
MFC r336090:
Reduce diff between msun/src/e_pow.c and msun/src/e_powf.c.

PR: 229420

5 years agoMFC r336060:
ed [Sun, 15 Jul 2018 13:50:01 +0000 (13:50 +0000)]
MFC r336060:

  Allow the use of slashes in process names of RFC 3164 formatted messages.

  Tools such as Postfix use slashes in process names for hierarchy
  (postfix/qmgr). By allowing these slashes, syslogd is able to extract
  the process name and process ID nicely, so that they can be stored in
  RFC 5424 message fields.

5 years agoMFC r336199:
markj [Sat, 14 Jul 2018 15:32:36 +0000 (15:32 +0000)]
MFC r336199:
Remove a duplicate check.

PR: 229663

5 years agoMFC r335799:
dim [Sat, 14 Jul 2018 14:20:30 +0000 (14:20 +0000)]
MFC r335799:

Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
6.0.1 release (upstream r335540).

Relnotes: yes

MFC r335813:

Follow-up to r335799 (llvm/clang 6.0.1 update), by regenerating various
headers with new version information defines.

MFC r335819:

More follow-up to r335799 (llvm/clang 6.0.1 update), where I forgot to
update mtree files, ObsoleteFiles and a number of other paths.  Sorry
about all the breakage.

Pointy hat to: me

5 years agoMFC r335969,r335996,r335999,r336008,r336010:
kib [Fri, 13 Jul 2018 21:30:18 +0000 (21:30 +0000)]
MFC r335969,r335996,r335999,r336008,r336010:
Improvements to x86 pmap_extract_and_hold().

5 years agoMFC r336030:
kib [Fri, 13 Jul 2018 21:23:03 +0000 (21:23 +0000)]
MFC r336030:
Save a call to pmap_remove() if entry cannot have any pages mapped.

5 years agoMFC r336151:
cy [Fri, 13 Jul 2018 00:37:47 +0000 (00:37 +0000)]
MFC r336151:

Remove redundant space.

5 years agoMFC: r333579
rmacklem [Thu, 12 Jul 2018 22:53:37 +0000 (22:53 +0000)]
MFC: r333579
The NFSv4.1 server should return NFSERR_BACKCHANBUSY instead of NFS_OK.

When an NFSv4.1 session is busy due to a callback being in progress,
nfsrv_freesession() should return NFSERR_BACKCHANBUSY instead of NFS_OK.
The only effect this has is that the DestroySession operation will report
the failure for this case and this probably has little or no effect on a
client. Spotted by inspection and no failures related to this have been
reported.

5 years agoMFC r335696,r335697:
delphij [Thu, 12 Jul 2018 05:37:52 +0000 (05:37 +0000)]
MFC r335696,r335697:

Detect exFAT filesystems and abort if found and tighten BPB sanity
check.

Obtained from: Android https://android-review.googlesource.com/61827

5 years agoMFC r335287, r335290
asomers [Wed, 11 Jul 2018 20:11:06 +0000 (20:11 +0000)]
MFC r335287, r335290

r335287:
praudit(1): return 0 on success

Cherry pick https://github.com/openbsm/openbsm/commit/ed83bb3

Submitted by: aniketp
Reviewed by: rwatson, 0mp
Obtained from: OpenBSM
Sponsored by: Google, Inc. (GSoC 2018)
Pull Request: https://github.com/openbsm/openbsm/pull/32

r335290:
praudit(1): add tests

Submitted by: aniketp
X-MFC-With: 335287
Sponsored by: Google, Inc. (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D15751

5 years agoMFC r334547:
asomers [Wed, 11 Jul 2018 19:48:14 +0000 (19:48 +0000)]
MFC r334547:

pty.3: Add a HISTORY section

These functions were first added in 4.3 BSD-Reno, according to
http://unix.superglobalmegacorp.com/ and the CSRG svn repository.

Reviewed by: bcr, bjk
Differential Revision: https://reviews.freebsd.org/D15652

5 years agoMFC r334403:
asomers [Wed, 11 Jul 2018 19:46:56 +0000 (19:46 +0000)]
MFC r334403:

#include <bsm/audit.h> in security/audit/audit_ioctl.h

security/audit/audit_ioctl.h uses a type from bsm/audit.h, so needs to
include it.  And it needs to know the type's size, so it can't just
forward-declare.

PR: 228470
Submitted by: aniketp
Sponsored by: Google, Inc. (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D15561

5 years agoMFC r334394:
asomers [Wed, 11 Jul 2018 19:42:57 +0000 (19:42 +0000)]
MFC r334394:

auditpipe(4): fix some ioctl arguments in the man page

Fix the argument types for the AUDITPIPE_[GS]ET_PRESELECT_(NA)?FLAGS ioctls.
Also, fix some grammar.

[skip ci]

PR: 226713
Submitted by: aniketp
Sponsored by: Google, Inc. (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D15620

5 years agoMFC r334390:
asomers [Wed, 11 Jul 2018 19:41:23 +0000 (19:41 +0000)]
MFC r334390:

au_read_rec(3): correct return value in man page

Submitted by: aniketp
Reviewed by: csjp (earlier version)
Sponsored by: Google, Inc. (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D15618

5 years agoMFC r334296:
asomers [Wed, 11 Jul 2018 19:39:56 +0000 (19:39 +0000)]
MFC r334296:

Fix "Bad tailq" panic when auditing auditon(A_SETCLASS, ...)

Due to an oversight in r195280, auditon(A_SETCLASS, ...) would cause a tailq
element to get added to the tailq twice, resulting in a circular tailq. This
panics when INVARIANTS are on.

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

5 years agoMFC r335937:
kib [Wed, 11 Jul 2018 19:39:29 +0000 (19:39 +0000)]
MFC r335937:
top: do not fall to the thread name if kernel cache of the process
args is empty.

5 years agoMFC r335935:
kib [Wed, 11 Jul 2018 19:23:11 +0000 (19:23 +0000)]
MFC r335935:
Add a way for the process to request cleanup of the kernel cache of
the process arguments.

5 years agoMFC r335765, r335776, r336186:
dab [Wed, 11 Jul 2018 14:50:06 +0000 (14:50 +0000)]
MFC r335765, r335776, r336186:

Remove potential identifier conflict in the EV_SET macro.

PR43905 pointed out a problem with the EV_SET macro if the passed
struct kevent pointer were specified with an expression with side
effects (e.g., "kevp++"). This was fixed in rS110241, but by using a
local block that defined an internal variable (named "kevp") to get
the pointer value once. This worked, but could cause issues if an
existing variable named "kevp" is in scope. To avoid that issue,
jilles@ pointed out that "C99 compound literals and designated
initializers allow doing this cleanly using a macro". This change
incorporates that suggestion, essentially verbatim from jilles@
comment on PR43905, except retaining the old definition for pre-C99 or
non-STDC (e.g., C++) compilers.

PR: 43905
Submitted by: Jilles Tjoelker (jilles@)
Reported by: Lamont Granquist <lamont@scriptkiddie.org>
Sponsored by: Dell EMC

5 years agoMFC r336089:
markj [Wed, 11 Jul 2018 12:12:49 +0000 (12:12 +0000)]
MFC r336089:
Fix whitespace issues in bessel function routines.

PR: 229423

5 years agoMFC r335026:
araujo [Wed, 11 Jul 2018 07:33:19 +0000 (07:33 +0000)]
MFC r335026:

style(9) remove unnecessary blank tabs.

Obtained from: TrueOS
Sponsored by: iXsystems Inc.

5 years agoMFC r335027, r335050
araujo [Wed, 11 Jul 2018 07:22:05 +0000 (07:22 +0000)]
MFC r335027, r335050

r335027:
When this code was introduced at r300829 the author forgot to add
the BSD license header that is the same as in its C header file.

Sponsored by: iXsystems Inc.

r335050:
While I was investigating CID 1194192 related with a resource leak on mrp memory
allocation, I could identify that actually we use this pointer on pci_emul.c as
well as on vga.c source file.

I have reworked the logic here to make it more readable and also add a warn to
explicit show the function where the memory allocation error could happen,
also sort headers.

Also CID 1194192 was marked as "Intentional".

Obtained from: TrueOS
Sponsored by: iXsystems Inc.

5 years agoMFC r335030:
araujo [Wed, 11 Jul 2018 07:19:42 +0000 (07:19 +0000)]
MFC r335030:

Add SPDX tags to vmm(4).

Sponsored by: iXsystems Inc.

5 years agoMFC r335025:
araujo [Wed, 11 Jul 2018 07:16:13 +0000 (07:16 +0000)]
MFC r335025:

Add SPDX tags to bhyve(8).

Discussed with: rgrimes, pfg and mav.
Obtained from: TrueOS
Sponsored by: iXsystems Inc.

5 years agoMFC: r333508
rmacklem [Tue, 10 Jul 2018 19:28:16 +0000 (19:28 +0000)]
MFC: r333508
Add support for the TestStateID operation to the NFSv4.1 server.

The Linux client now uses the TestStateID operation, so this patch adds
support for it to the NFSv4.1 server. The FreeBSD client never uses this
operation, so it should not be affected.

5 years agoMFC r335886:
kp [Tue, 10 Jul 2018 07:29:51 +0000 (07:29 +0000)]
MFC r335886:

pfctl: Don't retrieve interface list if '-n' is set

If '-n' is set we don't use the list of skip interfaces, so don't retrieve it.
This fixes issues if 'pfctl -n' is used before the pf module is loaded. This
was broken by r333181.

Reported by: Jakub Chromy <hicks AT cgi.cz>

5 years agoMFC r334307, r335103-r335104
araujo [Tue, 10 Jul 2018 04:26:32 +0000 (04:26 +0000)]
MFC r334307, r335103-r335104

r334307:
Simplify macros EFPRINTF and EFFLUSH. [0]
Also stdarg(3) says that each invocation of va_start() must be paired
with a corresponding invocation of va_end() in the same function. [1]

Reported by: Coverity
CID: 1194318[0] and 1194332[1]
Discussed with: jhb
Sponsored by: iXsystems Inc.
Differential Revision: https://reviews.freebsd.org/D15548

r335103:
Fix style(9) space vs tab.

Reviewed by: jhb
Sponsored by: iXsystems Inc.
Differential Revision: https://reviews.freebsd.org/D15774

r335104:
Fix style(9) space vs tab.

Reviewed by: jhb
Sponsored by: iXsystems Inc.
Differential Revision: https://reviews.freebsd.org/D15768

5 years agoMFC r335655:
delphij [Tue, 10 Jul 2018 02:46:31 +0000 (02:46 +0000)]
MFC r335655:

Fix division by zero when reading boot block by postponing division
until it is necessary and after we validated bytes per sector is non-
zero.

Obtained from: Android https://android-review.googlesource.com/c/platform/external/fsck_msdos/+/36362

5 years agoMFC r328489, r329232, r331836
jah [Tue, 10 Jul 2018 01:06:43 +0000 (01:06 +0000)]
MFC r328489, r329232, r331836

r328489:

Remove system makefile path directives from env passed to PORTS_MODULES step

Previously, MAKESYSPATH as well as '-m' directives in MAKEFLAGS would cause
any port rebuilt during the PORTS_MODULES stage to consume system makefiles
from $(SRCROOT)/share/mk instead of those installed under /usr/share/mk.
For kernel modules that need to build against an updated src tree this
makes sense; less so for <bsd.port.mk> or  any userspace library or utility
the port may also happen to install.

Before 11.0, this probably didn't matter much in practice.  But the addition
of src.libnames.mk under $(SRCROOT)/share/mk in 11.0 breaks any consumer of
bsd.prog.mk and DPADD/LDADD during PORTS_MODULES.

Address the build breakage by removing MAKESYSPATH and any occurrence of
'-m' from MAKEFLAGS in the environment created for the port build.
Instead set SYSDIR so that any kmod built by the port will still consume
conf/kmod.mk from the updated src tree, assuming it uses <bsd.kmod.mk>

r329232 (by bdrewery):

ports modules: Don't leak AUTO_OBJ changes into the port builds.

This came about when r328489 made ports modules builds no longer use the
in-tree share/mk files, but didn't cleanup MAKEOBJDIR from the
environment.

This fixes "Variable OBJTOP is recursive".

r331836:

Remove MK_AUTO_OBJ from env passed to PORTS_MODULES

This fixes a failure to resolve object file paths seen when buildkernel
(which sets MK_AUTO_OBJ=yes) and installkernel (which sets MK_AUTO_OBJ=no)
are run as separate steps.  r329232 partially fixed this scenario by removing
MAKEOBJDIR, but it seems the AUTO_OBJ setting also needs to be on the same
page for the build and install steps.

5 years agoMFC r333004
davidcs [Mon, 9 Jul 2018 21:13:21 +0000 (21:13 +0000)]
MFC r333004
  Fix Issue with adding MultiCast Addresses. When multicast addresses are
  added/deleted, the delete the multicast addresses previously programmed
  in HW and reprogram the new set of multicast addresses.

Submitted by: Vaishali.Kulkarni@cavium.com

5 years agoMFC r336029:
kib [Mon, 9 Jul 2018 13:38:19 +0000 (13:38 +0000)]
MFC r336029:
Style.

5 years agoMFC r335559:
delphij [Mon, 9 Jul 2018 06:02:45 +0000 (06:02 +0000)]
MFC r335559:

Don't bail out when we find primary and secondary bootblocks miscompare.
We do not have code to fix this situation, and the mismatch does not
prevent the kernel driver from consuming the file system, and some factory
formatted SD cards seem to have a garbage backup block.

This makes the code match to its comments (replacing pfatal with pwarn).

Inspired by: NetBSD r1.13
Inspired by: https://android.googlesource.com/platform/external/fsck_msdos/+/b47b16353f3db228711dded9f7c975b820059ddc

5 years agoMFC r335469: Don't leak tmpstr.
delphij [Mon, 9 Jul 2018 05:56:13 +0000 (05:56 +0000)]
MFC r335469: Don't leak tmpstr.

5 years agoMFC r335660:
markj [Sun, 8 Jul 2018 16:37:50 +0000 (16:37 +0000)]
MFC r335660:
Add missing MLINK.

5 years agopflog/pfsync: Fix module build with VIMAGE=yes
kp [Sun, 8 Jul 2018 10:54:11 +0000 (10:54 +0000)]
pflog/pfsync: Fix module build with VIMAGE=yes

pflog and pfsync's module Makefile fails to include opt_global.h to SRCS
leading to build error for VIMAGE case.

Reproduced with:
cd /usr/src/sys/modules/pflog && make VIMAGE=yes

PR: 229404
Submitted by: eugen@

5 years agoMFC r335980:
kib [Sun, 8 Jul 2018 06:50:34 +0000 (06:50 +0000)]
MFC r335980:
Silence warnings about unused variables when RACCT is defined but RCTL
is not.

5 years agoMFC r335976:
kib [Sun, 8 Jul 2018 06:49:11 +0000 (06:49 +0000)]
MFC r335976:
Add a name for the MSR controlling standard extended features report on AMD.

5 years agoMFC r335975:
kib [Sun, 8 Jul 2018 06:47:51 +0000 (06:47 +0000)]
MFC r335975:
Order the portion of the AMD-specific MSRs names definitions numerically.

5 years agoMFC r335580:
markj [Sat, 7 Jul 2018 17:58:20 +0000 (17:58 +0000)]
MFC r335580:
Re-count available PV entries after reclaiming a PV chunk.

5 years agoMFC r335816:
kp [Sat, 7 Jul 2018 14:46:02 +0000 (14:46 +0000)]
MFC r335816:

pfsync: Fix state sync during initial bulk update

States learned via pfsync from a peer with the same ruleset checksum were not
getting assigned to rules like they should because pfsync_in_upd() wasn't
passing the PFSYNC_SI_CKSUM flag along to pfsync_state_import.

PR: 229092
Submitted by: Kajetan Staszkiewicz <vegeta tuxpowered.net>
Obtained from: OpenBSD
Sponsored by: InnoGames GmbH

5 years agoMFC r335862:
ed [Sat, 7 Jul 2018 11:39:20 +0000 (11:39 +0000)]
MFC r335862:

  Document that syslogd -v has no effect when RFC 5424 mode is enabled.

  The variable it sets, LogFacPri, is only used in the RFC 3164 formatting
  codepath.

PR: 229457

5 years agoMFC r335861:
ed [Sat, 7 Jul 2018 11:38:44 +0000 (11:38 +0000)]
MFC r335861:

  Restore the order in which RFC 3164 messages with fac/pri are formatted.

  The refactoring of the syslogd code to format messages using iovecs
  slightly altered the output of syslogd by placing the facility/priority
  after the hostname, as opposed to printing it right before. This change
  reverts the behaviour to be consistent with how it was before.

PR: 229457

5 years agoMFC r335921:
jamie [Fri, 6 Jul 2018 19:10:11 +0000 (19:10 +0000)]
MFC r335921:

  Allow jail names (not just IDs) to be specified for: cpuset(1), ipfw(8),
   sockstat(1), ugidfw(8)
  These are the last of the jail-aware userland utilities that didn't work
   with names.

PR: 229266
Differential Revision: D16047

5 years agoMFC r335283:
ian [Thu, 5 Jul 2018 16:15:17 +0000 (16:15 +0000)]
MFC r335283:

Build LOCAL_LIB_DIRS along with system lib dirs, rather than building them
in parallel with LOCAL_DIRS and all the other system post-libs stuff.

5 years agoMFC r333255, r333260
ian [Thu, 5 Jul 2018 16:12:48 +0000 (16:12 +0000)]
MFC r333255, r333260

r333255:
Make reading imx6 gpio pins work correctly whether the pin is in open-drain
mode or not.  An earlier attempt to make this work was done in r320456, by
always reading the pad status register (PSR) instead of the data register.
But it turns out the values in PSR only reflect the electrical level of an
output pin if the pad is configured with the SION (Set Input On) bit in the
pinmux config, and most output gpio pads are not configured that way.

So now a gpio read is done by returning the value from the data register,
which works right whether the pin is configured for input or output, unless
the pin has been set for OPENDRAIN mode, in which case the PSR is read
instead.  For this to work, the pin must also be configured with SION turned
on in the fdt pinmux data, which is a reasonable thing to require for the
unusual case of reading an open-drain output pin.

r333260:
Properly support the GPIO_PIN_PRESET_{LOW,HIGH} options when configuring
a gpio pin.  If neither of the options is specified, pre-set the pin's
output value to the pin's current input value, to achieve glitch-free
transitions to output mode on pins that are pulled up or down at reset
or via fdt pinctrl data.

5 years agoMFC r335759:
ae [Thu, 5 Jul 2018 15:36:49 +0000 (15:36 +0000)]
MFC r335759:
  Remove extra "ipfw" from example.

5 years agoMFC r335479, r335509
kevans [Thu, 5 Jul 2018 15:27:38 +0000 (15:27 +0000)]
MFC r335479, r335509

MFC r335479: subr_hints: simplify a little bit

Some complexity exists in these bits that isn't needed. The sysctl handler,
upon change to '2', runs through the current set of hints and sets them in
the kenv.

However, this isn't at all necessary if we're pulling hints from the kenv,
static or dynamic, as the former will get added to the latter in
init_dynamic_kenv (see: kern_environment.c). We can reduce this
configuration to just adding static_hints to the kenv if we were previously
using them.

The changes in res_find are minimal and based on the observation that once
use_kenv gets set to '1' it will never be reset to '0', and it gets set to
'1' as soon as we hit fallback mode. Later work will refactor res_find a
little bit and eliminate this now-local, because it's become clear that
there's some funkiness revolving around use_kenv=1 and it being used to
imply that we're certainly looking at the dynamic_kenv.

MFC r335509: subr_hints: Fix acpi unit hinting (at the very least)

The refactoring in r335479 overlooked the fact that the dynamic kenv can
also be switched to if hintmode == 0. This is problematic because the
checkmethod bits are only ever ran once, but it worked previously because
the use_kenv was a global state and the first lookup would enable it if
occurring after the dynamic environment has been setup.

Extending our local definition of use_kenv to include all non-STATIC
hintmodes as long as the dynamic_kenv is setup fixes this. We still have
potential issues if the dynamic kenv comes up while we're doing an anchored
search through the environment, but this is not much of a concern right now
because:

1.) The dynamic environment comes up super early in boot, just after kmem

2.) This is going to get rewritten to provide a safer mechanism for the
anchored searches, ensuring that we continue using the same environment
chain (dynamic env or static fallback) for all anchored search invocations

5 years agoMFC r306098 (br): Use kqueue(2) instead of select(2).
emaste [Wed, 4 Jul 2018 18:01:53 +0000 (18:01 +0000)]
MFC r306098 (br): Use kqueue(2) instead of select(2).

This helps to ensure we will not lose SIGINT sent by parent to child.

PR: 212562, 228492

5 years agoMFC r335595-r335596
ian [Wed, 4 Jul 2018 14:04:23 +0000 (14:04 +0000)]
MFC r335595-r335596

r335595:
Modernize usage of "restrict" keyword in ntp.conf

It is no longer necessary to specify a -4/-6 flag on any ntp.conf
keyword.  The address type is inferred from the address itself as
necessary.  "restrict default" statements always apply to both address
families regardless of any -4/-6 flag that may be present.

So this change just tidies up our default config by removing the redundant
restrict -6 statement and comment, and by removing the -6 flag from the
restrict keyword that allows access from localhost.

This change was inspired by the patches provided in PRs 201803 and 210245,
and included some contrib/ntp code inspection to verify that the -4/-6
keywords are basically no-ops in all contexts now.

PR: 201803 210245
Differential Revision: https://reviews.freebsd.org/D15974

r335596:
Fix a comment; the ntp leaplist file is updated periodically, but not weekly
(it's only updated when a check shows it's within 30 days of expiring).

PR: 207138

5 years agoMFC r335575, r335786-r335787
ian [Wed, 4 Jul 2018 14:01:56 +0000 (14:01 +0000)]
MFC r335575, r335786-r335787

r335575:
Use 'mv -f' in rc.d/ntpd to avoid spuriously halting the boot.

The final 'mv' to install a fetched leap-list file can fail (due to a
readonly fs, or schg flags, for example), and that leads to mv(1)
prompting the user, stopping the boot process.  Instead, use mv -f
to supress the prompting, and if verbose mode is on, emit a warning
that the existing file cannot be replaced.

PR: 219255

r335786:
Rename variable ntp_tmp_leapfile to have a leading underbar, to distinguish
it from variables with similar names which are set in rc.conf.  This will
make more sense as the script grows more similar-name local variables in
some upcoming changes.

r335787:
When being verbose about various leapfile versions, also mention expiration.

The expiration date is actually more of a version number than the version
date, because expiration changes twice a year, whereas the version only
changes when actual leap second events occur (except in USNO leapfiles,
which inappropriately bump the version with every expiration date change).

5 years agoMFC r335489:
ian [Wed, 4 Jul 2018 13:57:49 +0000 (13:57 +0000)]
MFC r335489:

Add some words clarifying that rename(2) does nothing when the 'from' and
'to' args are the same file.  Wording borrowed from POSIX.1-2017, but
the freebsd code to implement this behavior was added in 2002 (r103180).

5 years agoMFC r335486:
ian [Wed, 4 Jul 2018 13:56:01 +0000 (13:56 +0000)]
MFC r335486:

Add a note about using option VERBOSE_SYSINIT=0 to get the verbose code
compiled in but disabled by default.

5 years agoMFC SVN r335750: Fix typo in top-level Makefile
dteske [Wed, 4 Jul 2018 03:22:44 +0000 (03:22 +0000)]
MFC SVN r335750: Fix typo in top-level Makefile

Submitted by: Ben Widawsky <ben.widawsky@intel.com>
Sponsored by: Smule, Inc.
Differential Revision: https://reviews.freebsd.org/P186

5 years agoMFC r327317:
robak [Tue, 3 Jul 2018 14:40:19 +0000 (14:40 +0000)]
MFC r327317:

humanize_number(3): fix math edge case in rounding large numbers

Fix for remainder overflow, when in rare cases adding remainder to divider
exceeded 1 and turned the total to 1000 in final formatting, taking up
the space for the unit character.

The fix continues the division of the original number if the above case
happens -- added the appropriate check to the for loop performing
the division. This lowers the value shown, to make it fit into the buffer
space provided (1.0M for 4+1 character buffer, as used by ls).

Add test case for the reported bug and extend test program to support
providing buffer length (ls -lh uses 5, tests hard-coded 4).

PR: 224498

5 years agoMFC r335558:
dim [Mon, 2 Jul 2018 21:20:36 +0000 (21:20 +0000)]
MFC r335558:

Add support for selectively enabling LLVM targets

This makes it possible, through src.conf(5) settings, to select which
LLVM targets you want to build during buildworld.  The current list is:

* (WITH|WITHOUT)_LLVM_TARGET_AARCH64
* (WITH|WITHOUT)_LLVM_TARGET_ARM
* (WITH|WITHOUT)_LLVM_TARGET_MIPS
* (WITH|WITHOUT)_LLVM_TARGET_POWERPC
* (WITH|WITHOUT)_LLVM_TARGET_SPARC
* (WITH|WITHOUT)_LLVM_TARGET_X86

To not influence anything right now, all of these are on by default, in
situations where clang is enabled.

Selectively turning a few targets off manually should work.  Turning on
only one target should work too, even if that target does not correspond
to the build architecture.  (In that case, LLVM_NATIVE_ARCH will not be
defined, and you can only use the resulting clang executable for
cross-compiling.)

I performed a few measurements on one of the FreeBSD.org reference
machines, building clang from scratch, with all targets enabled, and
with only the x86 target enabled.  The latter was ~12% faster in real
time (on a 32-core box), and ~14% faster in user time.  For a full
buildworld the difference will probably be less pronounced, though.

Reviewed by: bdrewery
Differential Revision: https://reviews.freebsd.org/D11077

5 years agoMFC r335642, r335651: config(8) envvar support
kevans [Mon, 2 Jul 2018 13:08:27 +0000 (13:08 +0000)]
MFC r335642, r335651: config(8) envvar support

r335642:
config(8): Add `envvar` support

envvar allows adding individual environment variables to the kernel's static
environment without the overhead of pulling in a full file. envvar in a
config looks like:

envvar some_var=5

All envvar-provided variables will be added after the env file is processed,
so envvar keys that exist in the previous env will be overwritten by
whatever value is set here in the kernel configuration directly.

As an aside, envvar lines are intentionally tokenized differently from
basically every other line. We used a named state when ENVVAR is encountered
to gobble up the rest of the line, which will later be cleaned and validated
in post-processing by sanitize_envline. This turns out to be the simplest
and cleanest way to allow the flexibility that kenv does while not
compromising on silly hacks.

r335651:
config(8): Set envmode if we accept an envvar

5 years agoMFC r335635:
kib [Mon, 2 Jul 2018 07:58:57 +0000 (07:58 +0000)]
MFC r335635:
Do not leave stray qword on top of stack for interrupts and exceptions
without error code.  Doing so it mis-aligned the stack.

PR: 229222

5 years agoMFC r335553: Make CLOCK_PROCESS_CPUTIME_ID more accurate by including
cperciva [Sat, 30 Jun 2018 21:36:35 +0000 (21:36 +0000)]
MFC r335553: Make CLOCK_PROCESS_CPUTIME_ID more accurate by including
the current timeslice, matching the behaviour of CLOCK_VIRTUAL and
CLOCK_PROF.

5 years agoMFC r335253:
kib [Sat, 30 Jun 2018 20:09:43 +0000 (20:09 +0000)]
MFC r335253:
Rework ofed build.

Sponsored by: Mellanox Technologies

5 years agoMFC r335505:
kib [Sat, 30 Jun 2018 15:09:24 +0000 (15:09 +0000)]
MFC r335505:
linux_clone_thread: mark new thread as TDB_BORN.

5 years agoMFC r335504:
kib [Sat, 30 Jun 2018 15:07:44 +0000 (15:07 +0000)]
MFC r335504:
fork: avoid endless wait with PTRACE_FORK and RFSTOPPED.

5 years agoMFC r335503:
kib [Sat, 30 Jun 2018 15:03:06 +0000 (15:03 +0000)]
MFC r335503:
Update proc->p_ptevents annotation to reflect the actual locking.

5 years agoMFC r333087 (by cem):
kib [Sat, 30 Jun 2018 14:55:47 +0000 (14:55 +0000)]
MFC r333087 (by cem):
amd64/mp_machdep.c: Fix GCC build after r333059.

Noted by: bde

5 years agoMFC r335569:
kp [Fri, 29 Jun 2018 16:46:19 +0000 (16:46 +0000)]
MFC r335569:

pf: Support "return" statements in passing rules when they fail.

Normally pf rules are expected to do one of two things: pass the traffic or
block it. Blocking can be silent - "drop", or loud - "return", "return-rst",
"return-icmp". Yet there is a 3rd category of traffic passing through pf:
Packets matching a "pass" rule but when applying the rule fails. This happens
when redirection table is empty or when src node or state creation fails. Such
rules always fail silently without notifying the sender.

Allow users to configure this behaviour too, so that pf returns an error packet
in these cases.

PR: 226850
Submitted by: Kajetan Staszkiewicz <vegeta tuxpowered.net>
Sponsored by: InnoGames GmbH

5 years agoMFC r335641:
brooks [Thu, 28 Jun 2018 20:33:12 +0000 (20:33 +0000)]
MFC r335641:

Fix a stack overflow in mount_smbfs when hostname is too long.

The local hostname was blindly copied into the to the nn_name array.
When the hostname exceeded 16 bytes, it would overflow.  Truncate the
hostname to 15 bytes plus a 0 terminator which is the "workstation name"
suffix.

Use defensive strlcpy() when filling nn_name in all cases.

PR: 228354
Reported by: donald.buchholz@intel.com
Reviewed by: jpaetzel,  ian (prior version)
Discussed with: Security Officer (gtetlow)
Security: Stack overflow with the hostname.
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15936

5 years agoAdd an errata entry regarding Bugzilla 228536.
gjb [Thu, 28 Jun 2018 15:30:51 +0000 (15:30 +0000)]
Add an errata entry regarding Bugzilla 228536.

PR: 228536
Sponsored by: The FreeBSD Foundation

5 years agoMFC r335565:
ed [Thu, 28 Jun 2018 12:55:05 +0000 (12:55 +0000)]
MFC r335565:

  Still parse messages that don't contain an RFC 3164 timestamp.

  The changes made in r326573 required that messages always start with an
  RFC 3164 timestamp. It looks like certain devices, but also certain
  logging libraries (Python 3's "logging" package) simply don't generate
  RFC 3164 formatted messages containing a timestamp.

  Make timestamps optional again. When the timestamp is missing, also
  assume that the message contains no hostname. The first word of the
  message likely already belongs to the message payload.

PR: 229236

5 years agoMFC r334882, r334884-r334885: loader(8) boot flag <-> environment fixes
kevans [Thu, 28 Jun 2018 01:32:37 +0000 (01:32 +0000)]
MFC r334882, r334884-r334885: loader(8) boot flag <-> environment fixes

r334882:
stand: Consolidate checking for boot flags driven by environment vars

e.g. boot_mute, boot_single, boot_verbose, and friends; we checked for these
in multiple places, consolidate into common/ and allow a setting of "NO" for
any of these to turn them off. This allows systems with multiple
loader.conf(5) or loader.conf(5) overlay systems to easily turn off
variables in later processed files by setting it to NO.

Reported by: Nick Wolff @ iXsystems
Reviewed by: imp

r334884:
stand: Fix build after r334882

Not sure how this was not caught in Universe.

r334885:
stand: One more trivial consolidation (setting environment from howto)

5 years agoMFC r334878: libsa(3): Correct statement about FS Write-support, name change
kevans [Thu, 28 Jun 2018 01:30:03 +0000 (01:30 +0000)]
MFC r334878: libsa(3): Correct statement about FS Write-support, name change

- jhb implemented UFS write support a little over 16 years ago.
- Update the library name while we're here.

5 years agoMFC r335467: Don't remove loader.conf(5) when built WITHOUT_FORTH
kevans [Wed, 27 Jun 2018 23:02:18 +0000 (23:02 +0000)]
MFC r335467: Don't remove loader.conf(5) when built WITHOUT_FORTH

The new stand/ structure installs loader.conf(5) and defaults/loader.conf
regardless of interpreter. The only thing gating installation now is
MK_BOOT.

5 years agoMFC r330090:
bdrewery [Wed, 27 Jun 2018 22:52:32 +0000 (22:52 +0000)]
MFC r330090:

  Add 'usr.bin/seq' to tests mtree after r330086

PR: 217149

5 years agoMFC r332395 (ian): Use explicit_bzero() when cleaning values out of the kenv
kevans [Wed, 27 Jun 2018 21:22:48 +0000 (21:22 +0000)]
MFC r332395 (ian): Use explicit_bzero() when cleaning values out of the kenv

Sometimes the values contain geli passphrases being communicated from
loader(8) to the kernel, and some day the compiler may decide to start
eliding calls to memset() for a pointer which is not dereferenced again
before being passed to free().

5 years agoMFC r335458: Add debug.verbose_sysinit tunable for VERBOSE_SYSINIT
kevans [Wed, 27 Jun 2018 21:13:20 +0000 (21:13 +0000)]
MFC r335458: Add debug.verbose_sysinit tunable for VERBOSE_SYSINIT

VERBOSE_SYSINIT is currently an all-or-nothing option. debug.verbose_sysinit
adds an option to have the code compiled in but quiet by default so that
getting this information from a device in the field doesn't necessarily
require distributing a recompiled kernel.

Its default is VERBOSE_SYSINIT's value as defined in the kernconf. As such,
the default behavior for simply omitting or including this option is
unchanged.

5 years agoMFC r335404: sort(1): Fix -m when only implicit stdin is used for input
kevans [Wed, 27 Jun 2018 21:11:28 +0000 (21:11 +0000)]
MFC r335404: sort(1): Fix -m when only implicit stdin is used for input

Observe:

printf "a\nb\nc\n" > /tmp/foo
# Next command results in no output
cat /tmp/foo | sort -m
# Next command results in proper output
cat /tmp/foo | sort -m -
# Also works:
sort -m /tmp/foo

Some const'ification was done to simplify the actual solution of adding "-"
explicitly to the file list if we didn't have any file arguments left over.

PR: 190099

5 years agoMFC r333221: rsu(4) does not require legal.realtek.license_ack=1
kevans [Wed, 27 Jun 2018 21:09:55 +0000 (21:09 +0000)]
MFC r333221: rsu(4) does not require legal.realtek.license_ack=1

The rsu firmware license check has been disabled since r292756. Changes
rsu(4) since the license ack is no longer required.

While here, add `device rsufw` hint to the kernel configuration lines and
add/update paths to the installed license file in both rsu(4) and rsufw(4).

5 years agoMFC r333192: fcntl(2): Vaguely document that ENOTTY is possible + examples
kevans [Wed, 27 Jun 2018 21:04:29 +0000 (21:04 +0000)]
MFC r333192: fcntl(2): Vaguely document that ENOTTY is possible + examples

5 years agoMFC r330086, r333155: seq(1) improvements
kevans [Wed, 27 Jun 2018 21:03:05 +0000 (21:03 +0000)]
MFC r330086, r333155: seq(1) improvements

MFC r330086 (cem): seq(1): Consistently include 'last' for non-integers

The source of error is a rounded increment being too large and thus the loop
steps slightly past 'last'.  Perform a final comparison using the formatted
string values (truncated precision) to determine if we still need to print
the 'last' value.

MFC r333155: seq(1): Move long_opts up with globals

PR: 217149

5 years agoMFC r333157: cmp(1): Provide some long options
kevans [Wed, 27 Jun 2018 21:00:09 +0000 (21:00 +0000)]
MFC r333157: cmp(1): Provide some long options

These match GNU cmp(1) for compatibility where applicable.

Future work might implement the -i option from GNU cmp(1) to express skip
either in terms of both files or of the form "SKIP1:SKIP2" rather than
specifying them as additional arguments to cmp(1).

5 years agoMFC r333156: uniq(1): Add some long options
kevans [Wed, 27 Jun 2018 20:55:49 +0000 (20:55 +0000)]
MFC r333156: uniq(1): Add some long options

These match GNU uniq(1) where appropriate for compatibility's sake.

While here, re-sort options alphabetically by the short-option.

5 years agoMFC r333122: seq(1): Provide some long options
kevans [Wed, 27 Jun 2018 20:54:12 +0000 (20:54 +0000)]
MFC r333122: seq(1): Provide some long options

These match GNU seq(1) names where applicable for compatibility purposes.

5 years agoMFC r335607: check-password.4th(8): Fix manual [in]accuracy
dteske [Wed, 27 Jun 2018 20:50:23 +0000 (20:50 +0000)]
MFC r335607: check-password.4th(8): Fix manual [in]accuracy

SVN r280384 updated the maximum password length from 16 bytes to 255. The
manual was not updated to reflect this.

Sponsored by: Smule, Inc.

5 years agoMFC r335355:
cy [Wed, 27 Jun 2018 19:42:55 +0000 (19:42 +0000)]
MFC r335355:

Fix amq -i timestamp segmentation violation.

5 years agoAdd an entry about an incorrectly-listed driver name in the
gjb [Wed, 27 Jun 2018 17:29:27 +0000 (17:29 +0000)]
Add an entry about an incorrectly-listed driver name in the
11.2 announcement.

Sponsored by: The FreeBSD Foundation