]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoMFC r362146:
Yuri Pankov [Sun, 26 Jul 2020 19:18:55 +0000 (19:18 +0000)]
MFC r362146:
locale: exit 1 if unknown keyword was specified

PR: 241906
Submitted by: Akos Somfai <akos.somfai@gmail.com>

3 years agoMFC r363052:
Mark Johnston [Sun, 26 Jul 2020 18:12:54 +0000 (18:12 +0000)]
MFC r363052:
whois: Handle referrals to rwhois servers.

PR: 243862

3 years agoRevert bridge epochification
Kristof Provost [Sun, 26 Jul 2020 17:44:03 +0000 (17:44 +0000)]
Revert bridge epochification

Revert r363492, r363491, r363430, r363429 and r362650.

The introduction of epoch in the network stack is incomplete in stable/12, and
there are simply too many limitations to make the bridge epoch code work there.

The final problem is capability configuration of the bridge member interfaces.
if_bridge needs to enable promiscuous mode, which for certain drivers (e1000
for example) can sleep. In stable/12 we may not sleep within epoch.

3 years agoMFC r362651:
Cy Schubert [Sun, 26 Jul 2020 13:07:09 +0000 (13:07 +0000)]
MFC r362651:

Add MATCH option for CONFIG_MATCH_IFACE.

If the interfaces on which wpa_supplicant is to run are not known or do
not exist, wpa_supplicant can match an interface when it arrives. Each
matched interface is separated with -M argument and the -i argument now
allows for pattern matching.

As an example, the following command would start wpa_supplicant for a
specific wired interface called lan0, any interface starting with wlan
and lastly any other interface. Each match has its own configuration
file, and for the wired interface a specific driver has also been given.

wpa_supplicant \
-M -c wpa_wired.conf -ilan0 -D wired \
-M -c wpa1.conf -iwlan* \
-M -c wpa2.conf

PR: 247177
Reported by: greg@unrelenting.technology
Related to: ports r540412

3 years agoMFC 359977:
Mateusz Piotrowski [Sun, 26 Jul 2020 11:16:43 +0000 (11:16 +0000)]
MFC 359977:

Fix a typo

Reported by: rgrimes

3 years agoMFC 363241:
Toomas Soome [Sun, 26 Jul 2020 10:59:32 +0000 (10:59 +0000)]
MFC 363241:

efibootmgr: typo in long option name

del-timout should be del-timeout

Reported by: mjg

3 years agoMFC 359504:
Mateusz Piotrowski [Sun, 26 Jul 2020 10:08:53 +0000 (10:08 +0000)]
MFC 359504:

Use proper mdoc(7) macros for literal text and do not use Tn

Tn is deprecated and upsets linters.

3 years agoMFC 359967:
Mateusz Piotrowski [Sun, 26 Jul 2020 10:04:02 +0000 (10:04 +0000)]
MFC 359967:

Document the exit status and the stdout message of nologin(8)

Reviewed by: debdrup (earlier version)
Differential Revision: https://reviews.freebsd.org/D24196

3 years agoMFC 359973:
Mateusz Piotrowski [Sun, 26 Jul 2020 10:01:27 +0000 (10:01 +0000)]
MFC 359973:

sshd: Warn about missing ssh-keygen only when necessary

The sshd service is using ssh-keygen to generate missing SSH keys.
If ssh-keygen is missing, it prints the following message:

> /etc/rc.d/sshd: WARNING: /usr/bin/ssh-keygen does not exist.

It makes sense when the key is not generated yet and
cannot be created because ssh-keygen is missing.

The problem is that even if the key is present on the host,
the sshd service would still warn about missing ssh-keygen
(even though it does not need it).

Reviewed by: emaste
Approved by: emaste (src)
Differential Revision: https://reviews.freebsd.org/D23911

3 years agoMFC 360187:
Mateusz Piotrowski [Sun, 26 Jul 2020 09:58:52 +0000 (09:58 +0000)]
MFC 360187:

Improve formatting of synopsis section

This patch is about sorting the arguments and using proper mdoc(7) macros
to stylize arguments and command modifiers for much better readability.

Further style fixes in other sections within the bhyve manual page are
going to be worked on in upcoming patches.

Reviewed by: rgrimes
Differential Revision: https://reviews.freebsd.org/D24526

3 years agoMFC 360283:
Mateusz Piotrowski [Sun, 26 Jul 2020 09:57:08 +0000 (09:57 +0000)]
MFC 360283:

Fix invalid use of macros and two typos

It turns out that currently mandoc(1) is not handling Fl in Ss
correctly (maybe it never was). Let's just replace "Fl S \&Ss ..."
with "-S ...". After all, this subsection title is stylized anyway, so Fl
is not that helpful.

3 years agoMFC 362956:
Mateusz Piotrowski [Sun, 26 Jul 2020 09:53:50 +0000 (09:53 +0000)]
MFC 362956:

Clean up cam.3

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

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

3 years agoMFC 362742:
Mateusz Piotrowski [Sun, 26 Jul 2020 09:52:04 +0000 (09:52 +0000)]
MFC 362742:

Do not use macros in the argument to -width

This patch improves the presentation of the FILES section dramatically.

3 years agoMFC 362741:
Mateusz Piotrowski [Sun, 26 Jul 2020 09:48:04 +0000 (09:48 +0000)]
MFC 362741:

Document that Intel Dual Band Wireless AC 8265 is supported by iwm(4)

3 years agoMFC 362957:
Mateusz Piotrowski [Sun, 26 Jul 2020 09:47:01 +0000 (09:47 +0000)]
MFC 362957:

Fix description of the "\$" sequence for PS1

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

PR: 247791
Submitted by: kd-dev@pm.me

3 years agoMFC r363448: Add missing newlines.
Alexander Motin [Sun, 26 Jul 2020 01:11:30 +0000 (01:11 +0000)]
MFC r363448: Add missing newlines.

3 years agoMFC r363329:
Konstantin Belousov [Sun, 26 Jul 2020 01:04:53 +0000 (01:04 +0000)]
MFC r363329:
Simplify non-pti syscall entry on amd64.

3 years agoMFC r362569 (by jkim):
Don Lewis [Sat, 25 Jul 2020 23:06:47 +0000 (23:06 +0000)]
MFC r362569 (by jkim):

    Fix build with recent byacc.

3 years agoMFC r363277-r363283
Cy Schubert [Sat, 25 Jul 2020 14:27:12 +0000 (14:27 +0000)]
MFC r363277-r363283

r363277:
Only use the use_inet6 variable when INET6 is a build option.

This is a prerequisite to upcoming argument processing cleanups which
will resolve consistency as was done with ippool previously.

PR: 247952

r363278:
fr_family (the protocol family) must be AF_INET or AF_INET6, as in
the kernel, not an arbitrary 4 or 6.

This only affected printing ipfilter stats and rules from a kernel
dump. (This is currently undocumented.)

PR: 247952

r363279:
Historically ipfstat listings and stats only listed IPv4 or IPv6 output.
ipfstat would list IPv4 outputs by default while -6 would produce IPv6
outputs. This commit combines the ipfstat -i and -o outputs into one
listing of IPv4 and IPv6 rules. The -4 option lists only IPv4 rules
(as the default before) while -6 continues to list only rules that affect
IPv6.

PR: 247952
Reported by: joeb1@a1poweruser.com

r363280:
ipfstat -t defaults to IPv4 output. Make consistent with ipfstat -i
and ipfstat -o where without an argument IPv4 and IPv6 states are
shown. Use -4 and -6 to limit the display to IPv4 or IPv6 respectively.

PR: 247952

r363281:
Make ipfstat -t header generic when IPv4 and IPv6 output are
displayed in the same display.

PR: 247952

r363282:
The output from usage() need not contain usage for -t when STATETOP
is not compiled in.

PR: 247952

3 years agoMFC r342576-342577,342645,342812,342881,343231,343399 (by trasz):
Piotr Pawel Stefaniak [Sat, 25 Jul 2020 11:57:39 +0000 (11:57 +0000)]
MFC r342576-342577,342645,342812,342881,343231,343399 (by trasz):

r342577 Make sh(1) collapse $HOME into "~" in PS1
r342576 Simplify the way we set the default sh(1) PS1
r342645 Add current working directory to the default sh prompt
r342812 Give sh(1) a proper default prompt instead of just "$".
r342881 Make sh(1) recognize the default $HOME
r343231 Don't mess with BLOCKSIZE in shell startup files
r343399 Make sh(1) support \u in PS1

3 years agoMFC r355228:
Mateusz Guzik [Sat, 25 Jul 2020 00:37:34 +0000 (00:37 +0000)]
MFC r355228:

    devfs: introduce a per-dev lock to protect ->si_devsw

3 years agoMFC r357208,r357309,r357239,r357310
Mateusz Guzik [Sat, 25 Jul 2020 00:24:11 +0000 (00:24 +0000)]
MFC r357208,r357309,r357239,r357310

    amd64: revamp memcmp
    amd64: speed up failing case for memcmp
    amd64: sync up libc memcmp with the kernel version (r357208)
    amd64: sync up libc memcmp with the kernel version (r357309)

3 years agoMFC r363297:
Mateusz Guzik [Sat, 25 Jul 2020 00:03:23 +0000 (00:03 +0000)]
MFC r363297:

    Short-circuit tdfind when looking for the calling thread.

3 years agoMFC r347503,r347505,r347510,r352177,r352178,r352183,r352612,r352617,
Mateusz Guzik [Sat, 25 Jul 2020 00:01:57 +0000 (00:01 +0000)]
MFC r347503,r347505,r347510,r352177,r352178,r352183,r352612,r352617,
    r352631,r352810,r352811,r352812,r352813,r354893,r355124,r355125,
    r356880,r356883,r356915

    cache: push sdt probes in cache_zap_locked to code doing the work
    cache: bump numcache on entry, while here fix lnumcache type
    cache: fix a brainfart in r347505
    cache: assorted cleanups
    cache: change the formula for calculating lock array sizes
    cache: avoid excessive relocking on entry removal during lookup
    cache: jump in negative success instead of positive
    cache: count evictions of negatve entries
    cache: tidy up handling of negative entries
    cache: stop recalculating upper limit each time a new entry is added
    cache: make negative list shrinking a little bit concurrent
    cache: stop requeuing negative entries on the hot list
    cache: decrease ncnegfactor to 5
    cache: minor stat cleanup
    cache: fix numcache accounting on entry
    cache: stop reusing .. entries on enter
    cache: convert numcachehv to counter(9) on 64-bit platforms
    cache: counter_u64_add_protected -> counter_u64_add
    cache: make numcachehv use counter(9) on all archs

3 years agoMFC r357282:
Mateusz Guzik [Fri, 24 Jul 2020 23:45:42 +0000 (23:45 +0000)]
MFC r357282:

    zfs: fix spurious lock contention during path lookup

3 years agoMFC r352874:
Mateusz Guzik [Fri, 24 Jul 2020 23:44:35 +0000 (23:44 +0000)]
MFC r352874:

    amd64 pmap: batch chunk removal in pmap_remove_pages

3 years agoMerge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
Dimitry Andric [Fri, 24 Jul 2020 20:48:06 +0000 (20:48 +0000)]
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
10.0.1 final (aka llvmorg-10.0.1-0-gef32c611aa2).

MFC r359582 (by emaste):

lldb: use lua as the default script language

In the FreeBSD base system we do not have Python support in lldb, but
will have Lua support.  Make Lua the default.

This needs to be made into a configure-time option; that is being
discussed upstream and will appear in a future lldb import.  For now
carry this change as a tiny patch to our copy of lldb.

MFC r359599 (by emaste):

lldb: add rule to generate LLDBWrapLua.cpp

Building lldb's lua/python bindings requires swig, but we do not want to
include it in the FreeBSD base system (as a build tool) because it has
non-trivial dependencies.  As a workaround, add a make rule to generate
LLDBWrapLua.cpp, and we will commit the generated file.

Requires the swig30 package.

Reviewed by: brooks
Discussed with: dim
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D24265

MFC r359600 (by emaste):

lldb: commit generated LLDBWrapLua.cpp

MFC r359606 (by emaste):

lldb: build and enable lua script bindings

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

MFC r360697:

In r358396 I merged llvm upstream commit 2e24219d3, which fixed "error:
unsupported relocation on symbol" when assembling arm 'adr' pseudo
instructions. However, the upstream commit did not take big-endian arm
into account.

Applying the same changes to the big-endian handling is straightforward,
thanks to Andrew Turner and Peter Smith for the hint. This will also be
submitted upstream.

MFC r360702:

Merge commit 4ca2cad94 from llvm git (by Justin Hibbits):

  [PowerPC] Add clang -msvr4-struct-return for 32-bit ELF

  Summary:

  Change the default ABI to be compatible with GCC. For 32-bit ELF
  targets other than Linux, Clang now returns small structs in
  registers r3/r4. This affects FreeBSD, NetBSD, OpenBSD. There is no
  change for 32-bit Linux, where Clang continues to return all structs
  in memory.

  Add clang options -maix-struct-return (to return structs in memory)
  and -msvr4-struct-return (to return structs in registers) to be
  compatible with gcc. These options are only for PPC32; reject them on
  PPC64 and other targets. The options are like -fpcc-struct-return and
  -freg-struct-return for X86_32, and use similar code.

  To actually return a struct in registers, coerce it to an integer of
  the same size. LLVM may optimize the code to remove unnecessary
  accesses to memory, and will return i32 in r3 or i64 in r3:r4.

  Fixes PR#40736

  Patch by George Koehler!

  Reviewed By: jhibbits, nemanjai
  Differential Revision: https://reviews.llvm.org/D73290

Requested by: jhibbits

MFC r361410:

Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
llvmorg-10.0.1-rc1-0-gf79cd71e145 (aka 10.0.1 rc1).

MFC r362235 (by kp):

llvm: Default to -mno-relax on RISC-V

Compiling on a RISC-V system fails with 'relocation R_RISCV_ALIGN
requires unimplemented linker relaxation; recompile with -mno-relax'.

Our default linker (ld.lld) doesn't support relaxation, so default to
no-relax so we don't generate object files the linker can't handle.

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

MFC r362445:

Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
llvmorg-10.0.0-97-g6f71678ecd2 (not quite 10.0.1 rc2, as more fixes are
still pending).

MFC r362587 (by cem):

Add WITH_CLANG_FORMAT option

clang-format is enabled conditional on either WITH_CLANG_EXTRAS or
WITH_CLANG_FORMAT.  Some sources in libclang are build conditional on
either rule, and obviously the clang-format binary itself depends on the
rule.

clang-format could still use a manual page.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D25427

MFC r362609:

Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
llvmorg-10.0.0-129-gd24d5c8e308. Getting closer to 10.0.1-rc2.

MFC r362679:

Regenerate ReStructuredText based manpages for llvm-project tools:

* bugpoint.1
* clang.1
* llc.1
* lldb.1
* lli.1
* llvm-ar.1
* llvm-as.1
* llvm-bcanalyzer.1
* llvm-cov.1
* llvm-diff.1
* llvm-dis.1
* llvm-dwarfdump.1
* llvm-extract.1
* llvm-link.1
* llvm-mca.1
* llvm-nm.1
* llvm-pdbutil.1
* llvm-profdata.1
* llvm-symbolizer.1
* llvm-tblgen.1
* opt.1

Add newly generated manpages for:

* llvm-addr2line.1 (this is an alias of llvm-symbolizer)
* llvm-cxxfilt.1
* llvm-objcopy.1
* llvm-ranlib.1 (this is an alias of llvm-ar)

Note that llvm-objdump.1 is an exception, as upstream has both a plain
.1 file, and a .rst variant. These will have to be reconciled upstream
first.

MFC r362680:

Follow-up to r362679, add more entries to OptionalObsoleteFiles.inc

MFC r362719:

Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
llvmorg-10.0.1-rc2-0-g77d76b71d7d.

Also add a few more llvm utilities under WITH_CLANG_EXTRAS:

* llvm-dwp, a utility for merging DWARF 5 Split DWARF .dwo files into
  .dwp (DWARF package files)
* llvm-size, a size(1) replacement
* llvm-strings, a strings(1) replacement

MFC r362733:

Remove older llvm-ranlib.1 entry from ObsoleteFiles.inc, as it has
gotten its own manpage now, and should be no longer be removed by "make
delete-old".

MFC r362734:

Fix llvm-strings.1 not installing, this was a copy/paste error.

MFC r363401:

Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
10.0.1 final (aka llvmorg-10.0.1-0-gef32c611aa2).

There were no changes since rc2, except in the upstream regression
tests, which we do not ship.

Relnotes: yes

3 years agobridge: Enter epoch for bridge_transmit()
Kristof Provost [Fri, 24 Jul 2020 20:10:27 +0000 (20:10 +0000)]
bridge: Enter epoch for bridge_transmit()

Just like the change done for bridge_input()/bridge_output() in r363430
we must enter epoch ourselves, because its coverage is not as wide as in
head.

This is a direct commit to stable/12.

PR: 248046

3 years agobridge: Fix mismerges from r360345
Kristof Provost [Fri, 24 Jul 2020 20:09:52 +0000 (20:09 +0000)]
bridge: Fix mismerges from r360345

In r362650 we merged r360345. This required manual changes due to the
differences in EPOCH macros between head and stable/12, and was done
imperfectly.

This is a direct commit to stable/12.

PR: 248046

3 years agoMFC r363014:
Alan Somers [Fri, 24 Jul 2020 18:19:25 +0000 (18:19 +0000)]
MFC r363014:

geli: enable direct dispatch

geli does all of its crypto operations in a separate thread pool, so
g_eli_start, g_eli_read_done, and g_eli_write_done don't actually do very
much work. Enabling direct dispatch eliminates the g_up/g_down bottlenecks,
doubling IOPs on my system. This change does not affect the thread pool.

Reviewed by: markj
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D25587

3 years agoMFC r362891:
Alan Somers [Fri, 24 Jul 2020 17:45:06 +0000 (17:45 +0000)]
MFC r362891:

Fix page fault in zfsctl_snapdir_getattr

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

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

3 years agoMFC r363287: iwm(4): Document limitations of the driver
Gordon Bergling [Fri, 24 Jul 2020 16:44:35 +0000 (16:44 +0000)]
MFC r363287: iwm(4): Document limitations of the driver

PR: 247874
Submitted by: Charles Ross <cwr at sdf dot org>
Reviewed by: brueffer, markj
Approved by: brueffer
Differential Revision: https://reviews.freebsd.org/D25666

3 years agoMFC r363288: mount_nfs(8): document alternate form of the gssname option
Gordon Bergling [Fri, 24 Jul 2020 16:41:15 +0000 (16:41 +0000)]
MFC r363288: mount_nfs(8): document alternate form of the gssname option

PR: 238506
Submitted by: Greg Veldman <freebsd at gregv dot net>
Reviewed by: 0mp, bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D25667

3 years agoMFC r363084:
Mark Johnston [Fri, 24 Jul 2020 14:51:28 +0000 (14:51 +0000)]
MFC r363084:
Add a --sctp flag to nc.

3 years agoMFC: Merge sendmail 8.16.1 to HEAD: See contrib/sendmail/RELEASE_NOTES for
Gregory Neil Shapiro [Fri, 24 Jul 2020 00:22:33 +0000 (00:22 +0000)]
MFC: Merge sendmail 8.16.1 to HEAD: See contrib/sendmail/RELEASE_NOTES for
details
     Includes build infrastructure & config updates required for changes
in 8.16.1

3 years agotuntap: drop redundant if_mtu assignment in tuncreate
Kyle Evans [Thu, 23 Jul 2020 03:25:31 +0000 (03:25 +0000)]
tuntap: drop redundant if_mtu assignment in tuncreate

ether_ifattach will immediately clobber if_mtu with ETHERMTU anyways, just
let it happen.

3 years agoMFC r363244: ether_ifattach: set mtu before calling if_attach()
Kyle Evans [Thu, 23 Jul 2020 03:24:35 +0000 (03:24 +0000)]
MFC r363244: ether_ifattach: set mtu before calling if_attach()

if_attach() -> if_attach_internal() will call if_attachdomain1(ifp) any time
an ethernet interface is setup *after*
SI_SUB_PROTO_IFATTACHDOMAIN/SI_ORDER_FIRST.  This eventually leads to
nd6_ifattach() -> nd6_setmtu0() stashing off ifp->if_mtu in ndi->maxmtu
*before* ifp->if_mtu has been properly set in some scenarios, e.g., USB
ethernet adapter plugged in later on.

For interfaces that are created in early boot, we don't have this issue as
domains aren't constructed enough for them to attach and thus it gets
deferred to domainifattach at SI_SUB_PROTO_IFATTACHDOMAIN/SI_ORDER_SECOND
*after* the mtu has been set earlier in ether_ifattach().

PR: 248005

3 years agoMFC r363061:
Cy Schubert [Thu, 23 Jul 2020 03:08:17 +0000 (03:08 +0000)]
MFC r363061:

Enable support for IEEE 802.11N, 802.11W, 802.11AC and 802.11.AX to
hostapd and wpa_supplicant.

Submitted by: bz
Relnotes: yes
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")

3 years agoMFC: r362509
Jung-uk Kim [Wed, 22 Jul 2020 21:17:02 +0000 (21:17 +0000)]
MFC: r362509

Assume all TSCs are synchronized for AMD Family 17h processors and later
when it has passed the synchronization test.

3 years agoMFC r363228:
Brooks Davis [Wed, 22 Jul 2020 21:06:32 +0000 (21:06 +0000)]
MFC r363228:

Don't imply that all action values can be OR'd.

This is neither POSIX compliant nor what the implementation does.
This could be allowed by changing the value of TCSAFLUSH from 2 to 3,
but that doesn't seem worthwhile after 25+ years.

Reviewed by: imp
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D25659

3 years agobridge: Enter epoch for bridge_input()/bridge_output()
Kristof Provost [Wed, 22 Jul 2020 20:13:12 +0000 (20:13 +0000)]
bridge: Enter epoch for bridge_input()/bridge_output()

In stable/12 epoch is not as wide as it is in head. The network stack isn't yet
in epoch when bridge_input()/bridge_output() get called, so rather than assert
this we must enter it ourselves.

This is a direct commit to stable/12.

PR: 248046
Differential Revision: https://reviews.freebsd.org/D25715

3 years agoMFC r363308:
Kristof Provost [Wed, 22 Jul 2020 19:43:55 +0000 (19:43 +0000)]
MFC r363308:

bridge: Don't sleep during epoch

While it doesn't trigger INVARIANTS or WITNESS on head it does in stable/12.
There's also no reason for it, as we can easily report the out of memory error
to the caller (i.e. userspace). All of these can already fail.

PR: 248046

3 years agoMFC r363181:
Mark Johnston [Wed, 22 Jul 2020 14:24:41 +0000 (14:24 +0000)]
MFC r363181:
Add safexcel(4) to cryptotest.

3 years agoMFC r363180, r363182, r363251:
Mark Johnston [Wed, 22 Jul 2020 14:22:35 +0000 (14:22 +0000)]
MFC r363180, r363182, r363251:
Add a driver for the SafeXcel EIP-97.

3 years agoMFC r363141:
Tom Jones [Wed, 22 Jul 2020 10:00:13 +0000 (10:00 +0000)]
MFC r363141:

Don't print VNET pointer when initializing dummynet

When dummynet initializes it prints a debug message with the current VNET
pointer unnecessarily revealing kernel memory layout. This appears to be left
over from when the first pieces of vimage support were added.

PR: 238658
Submitted by: huangfq.daxian@gmail.com
Reviewed by: markj, bz, gnn, kp, melifaro
Approved by: jtl (co-mentor), bz (co-mentor)
Event: July 2020 Bugathon
Differential Revision: https://reviews.freebsd.org/D25619

3 years agoMFC r350749, r362275
Tom Jones [Wed, 22 Jul 2020 06:47:38 +0000 (06:47 +0000)]
MFC r350749, r362275

r350749:
Rename IPPROTO 33 from SEP to DCCP

IPPROTO 33 is DCCP in the IANA Registry:
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

IPPROTO_SEP was added about 20 years ago in r33804. The entries were added
straight from RFC1700, without regard to whether they were used.

The reference in RFC1700 for SEP is '[JC120] <mystery contact>', this is an
indication that the protocol number was probably in use in a private network.

As RFC1700 is no longer the authoritative list of internet numbers and that
IANA assinged 33 to DCCP in RFC4340, change the header to the actual
authoritative source.

Reviewed by: Richard Scheffenegger, bz
Approved by: bz (mentor)
Differential Revision: https://reviews.freebsd.org/D21178

r362275:
Add header definition for RFC4340, Datagram Congestion Control Protocol

Add a header definition for DCCP as defined in RFC4340. This header definition
is required to perform validation when receiving and forwarding DCCP packets.
We do not currently support DCCP.

Reviewed by: gallatin, bz
Approved by: bz (co-mentor)
MFC with: 350749
Differential Revision: https://reviews.freebsd.org/D21179

3 years agoMFC r362541:
Tom Jones [Wed, 22 Jul 2020 06:45:24 +0000 (06:45 +0000)]
MFC r362541:

pkg: Provide a friendlier message when bootstrap fails due to address resolution

The current message when bootstapping pkg fails for any reason implies that pkg
is not available. We have the error code from fetch so if bootstrap failed due
to address resolution say so.

Reviewed by:    bapt, bz
Approved by:    bz (co-mentor)
Differential Revision:  https://reviews.freebsd.org/D25323

3 years agoMFC r363205:
Vladimir Kondratyev [Tue, 21 Jul 2020 23:36:18 +0000 (23:36 +0000)]
MFC r363205:

linuxkpi: Ignore NULL pointers passed to string parameter of kstr(n)dup

That follows Linux and fixes related drm-kmod-5.3 panic.

Reviewed by: imp, hselasky
Differential Revision: https://reviews.freebsd.org/D25657

3 years agoMFC of 362369 (by Lorenzo Salvadore) and 363192
Kirk McKusick [Tue, 21 Jul 2020 23:23:08 +0000 (23:23 +0000)]
MFC of 362369 (by Lorenzo Salvadore) and 363192

Refinement of /bin/ps rtprio output

3 years agoFix the powerpc build after r363389.
Mark Johnston [Tue, 21 Jul 2020 14:35:50 +0000 (14:35 +0000)]
Fix the powerpc build after r363389.

This is a direct commit to stable/12.

Reported by: Jenkins

3 years agoMFC r363266 (by cem):
Mark Johnston [Tue, 21 Jul 2020 14:17:35 +0000 (14:17 +0000)]
MFC r363266 (by cem):
Revert r240317 to prevent leaking pmap entries

3 years agoMFC r363193:
Konstantin Belousov [Tue, 21 Jul 2020 08:12:53 +0000 (08:12 +0000)]
MFC r363193:
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE >= 500.

PR: 247701

3 years agoMFC r340450,r340664,r346176 by imp: fix time conversions to and from sbt
Andriy Gapon [Tue, 21 Jul 2020 07:58:39 +0000 (07:58 +0000)]
MFC r340450,r340664,r346176 by imp: fix time conversions to and from sbt

Note that the PR is for a change elsewhere (ZFS) that expected the sane
behavior of nstosbt().

PR: 247829
Reported by: gbe, others
Tested by: gbe, others

3 years agoMFC r362958
Leandro Lupori [Mon, 20 Jul 2020 17:04:25 +0000 (17:04 +0000)]
MFC r362958

Handle non-PLT GNU IFUNC relocations in rtld

3 years agoMFC r363147: gethostname(3): Correct the reference of the undefined value HOST_NAME_MAX
Gordon Bergling [Mon, 20 Jul 2020 16:51:18 +0000 (16:51 +0000)]
MFC r363147: gethostname(3): Correct the reference of the undefined value HOST_NAME_MAX

PR: 143472
Submitted by: bcran@
Reported by: Jeremy Huddleston <jeremyhu at apple dot com>
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D25647

3 years agoMFC r363156: lseek(2): Document the seek behavior better and update the POSIX compliance
Gordon Bergling [Mon, 20 Jul 2020 16:48:46 +0000 (16:48 +0000)]
MFC r363156: lseek(2): Document the seek behavior better and update the POSIX compliance

PR: 162765
Submitted by: arundel@
Reported by: arundel@
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25646

3 years agoMFC r363146: arp(8) clarify the use of the '-a flag'
Gordon Bergling [Mon, 20 Jul 2020 16:45:44 +0000 (16:45 +0000)]
MFC r363146: arp(8) clarify the use of the '-a flag'

PR: 238146
Submitted by: Andrew Stevenson <andrew at ugh dot net dot au>
Reported by: Andrew Stevenson <andrew at ugh dot net dot au>
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25645

3 years agoMFC r363144, r363188: Add stepping to the kern.hwpmc.cpuid string on x86.
Alexander Motin [Mon, 20 Jul 2020 13:50:10 +0000 (13:50 +0000)]
MFC r363144, r363188: Add stepping to the kern.hwpmc.cpuid string on x86.

It follows the equivalent Linux change to be able to differentiate
skylakex and cascadelakex, sharing the same model but not stepping.

3 years agoMFC r363102:
Mark Johnston [Mon, 20 Jul 2020 13:37:14 +0000 (13:37 +0000)]
MFC r363102:
ping(8): Check for integer truncation when handling the value for -s.

PR: 239976

3 years agoMFC r363162:
Mark Johnston [Mon, 20 Jul 2020 13:30:42 +0000 (13:30 +0000)]
MFC r363162:
Print arm64 physmem info during boot.

PR: 243682

3 years agoMFC r362766 bhyve: fix NVMe Active Namespace list
Chuck Tuffli [Mon, 20 Jul 2020 00:44:27 +0000 (00:44 +0000)]
MFC r362766 bhyve: fix NVMe Active Namespace list

3 years agoMFC r362765 bhyve: NVMe handle zero length DSM ranges
Chuck Tuffli [Mon, 20 Jul 2020 00:42:34 +0000 (00:42 +0000)]
MFC r362765 bhyve: NVMe handle zero length DSM ranges

3 years agoMFC r362764 bhyve: fix NVMe Get Features, Predictable Latency
Chuck Tuffli [Mon, 20 Jul 2020 00:39:54 +0000 (00:39 +0000)]
MFC r362764 bhyve: fix NVMe Get Features, Predictable Latency

3 years agoMFC r362763 bhyve: add NVMe Feature Interrupt Vector Config
Chuck Tuffli [Mon, 20 Jul 2020 00:38:21 +0000 (00:38 +0000)]
MFC r362763 bhyve: add NVMe Feature Interrupt Vector Config

3 years agoMFC r362762 bhyve: add basic NVMe Firmware Commit support
Chuck Tuffli [Mon, 20 Jul 2020 00:35:42 +0000 (00:35 +0000)]
MFC r362762 bhyve: add basic NVMe Firmware Commit support

3 years agoMFC r362761 bhyve: Add AER support to NVMe emulation
Chuck Tuffli [Mon, 20 Jul 2020 00:33:16 +0000 (00:33 +0000)]
MFC r362761 bhyve: Add AER support to NVMe emulation

3 years agoMFC r362760 bhyve: validate the NVMe LBA start and count
Chuck Tuffli [Mon, 20 Jul 2020 00:20:55 +0000 (00:20 +0000)]
MFC r362760 bhyve: validate the NVMe LBA start and count

3 years agoUpdate to bmake-20200710
Simon J. Gerraty [Mon, 20 Jul 2020 00:17:08 +0000 (00:17 +0000)]
Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC of r361986, r363117

3 years agoMFC r362759 bhyve: implement NVMe SMART data I/O statistics
Chuck Tuffli [Sun, 19 Jul 2020 23:45:49 +0000 (23:45 +0000)]
MFC r362759 bhyve: implement NVMe SMART data I/O statistics

3 years agoMFC r362758 bhyve: validate NVMe deallocate range values
Chuck Tuffli [Sun, 19 Jul 2020 23:42:46 +0000 (23:42 +0000)]
MFC r362758 bhyve: validate NVMe deallocate range values

3 years agoMFC r362757 bhyve: base pci_nvme_ioreq size on advertised MDTS
Chuck Tuffli [Sun, 19 Jul 2020 23:40:34 +0000 (23:40 +0000)]
MFC r362757 bhyve: base pci_nvme_ioreq size on advertised MDTS

3 years agoMFC r362756 bhyve: refactor NVMe I/O read/write
Chuck Tuffli [Sun, 19 Jul 2020 23:37:19 +0000 (23:37 +0000)]
MFC r362756 bhyve: refactor NVMe I/O read/write

3 years agoMFC r362755 bhyve: implement NVMe Format NVM command
Chuck Tuffli [Sun, 19 Jul 2020 23:34:01 +0000 (23:34 +0000)]
MFC r362755 bhyve: implement NVMe Format NVM command

3 years agoMFC r362754 bhyve: make unsupported NVMe commands a debug message
Chuck Tuffli [Sun, 19 Jul 2020 23:29:34 +0000 (23:29 +0000)]
MFC r362754 bhyve: make unsupported NVMe commands a debug message

3 years agoMFC r362753 bhyve: add more compliant NVMe Get/Set Features
Chuck Tuffli [Sun, 19 Jul 2020 23:27:11 +0000 (23:27 +0000)]
MFC r362753 bhyve: add more compliant NVMe Get/Set Features

3 years agoMFC r362752 bhyve: fix NVMe queue creation and deletion
Chuck Tuffli [Sun, 19 Jul 2020 23:24:06 +0000 (23:24 +0000)]
MFC r362752 bhyve: fix NVMe queue creation and deletion

3 years agoMFC r362751 bhyve: fix NVMe Get Log Page command
Chuck Tuffli [Sun, 19 Jul 2020 23:20:57 +0000 (23:20 +0000)]
MFC r362751 bhyve: fix NVMe Get Log Page command

3 years agoMFC r362750 bhyve: implement NVMe Namespace Identification Descriptor
Chuck Tuffli [Sun, 19 Jul 2020 23:17:43 +0000 (23:17 +0000)]
MFC r362750 bhyve: implement NVMe Namespace Identification Descriptor

3 years agoMFC r362749 bhyve: Consolidate NVMe CQ update
Chuck Tuffli [Sun, 19 Jul 2020 22:58:11 +0000 (22:58 +0000)]
MFC r362749 bhyve: Consolidate NVMe CQ update

3 years agoMFC r362748 bhyve: add locks around NVMe queue accesses
Chuck Tuffli [Sun, 19 Jul 2020 22:55:52 +0000 (22:55 +0000)]
MFC r362748 bhyve: add locks around NVMe queue accesses

3 years agoMFC r362747 bhyve: add a comment explaining NVME dsm option
Chuck Tuffli [Sun, 19 Jul 2020 22:52:42 +0000 (22:52 +0000)]
MFC r362747 bhyve: add a comment explaining NVME dsm option

3 years agoMFC r362746 bhyve: implement NVMe Flush command
Chuck Tuffli [Sun, 19 Jul 2020 22:40:02 +0000 (22:40 +0000)]
MFC r362746 bhyve: implement NVMe Flush command

3 years agoMFC r362745 bhyve: refactor NVMe IO command handling
Chuck Tuffli [Sun, 19 Jul 2020 22:37:47 +0000 (22:37 +0000)]
MFC r362745 bhyve: refactor NVMe IO command handling

3 years agoMFC 362744 bhyve: convert NVMe logging statements
Chuck Tuffli [Sun, 19 Jul 2020 22:27:15 +0000 (22:27 +0000)]
MFC 362744 bhyve: convert NVMe logging statements

3 years agoMFC r362027 pci: loosen PCIe hot-plug requirements
Chuck Tuffli [Sun, 19 Jul 2020 22:23:54 +0000 (22:23 +0000)]
MFC r362027 pci: loosen PCIe hot-plug requirements

3 years agoMFC r362947
Pawel Biernacki [Sun, 19 Jul 2020 15:16:57 +0000 (15:16 +0000)]
MFC r362947

truss: print more information about traced sysctls

3 years agoMFC r362937: Use KERN_MAXPHYS.
Xin LI [Sun, 19 Jul 2020 01:59:56 +0000 (01:59 +0000)]
MFC r362937: Use KERN_MAXPHYS.

3 years agoMFC r362936: Gather writes to larger chunks (MAXPHYS) instead of issuing
Xin LI [Sat, 18 Jul 2020 23:05:16 +0000 (23:05 +0000)]
MFC r362936: Gather writes to larger chunks (MAXPHYS) instead of issuing
them in sectors.

3 years agoFix mismerge of r363038.
Konstantin Belousov [Sat, 18 Jul 2020 20:17:40 +0000 (20:17 +0000)]
Fix mismerge of r363038.

The reset of p to NULL for non-curproc was missed, cauing ESRCH error not
returned as it should be.

Reported by: lampa@fit.vutbr.cz
PR: 248070

3 years agoMFC r362708
Joerg Wunsch [Fri, 17 Jul 2020 22:04:58 +0000 (22:04 +0000)]
MFC r362708

Explain how to learn about possible recognized locale names

3 years agoMFC r363062: shmfd: make shm_size a vm_ooffset_t
Kyle Evans [Fri, 17 Jul 2020 14:17:13 +0000 (14:17 +0000)]
MFC r363062: shmfd: make shm_size a vm_ooffset_t

On 32-bit platforms, this expands the shm_size to a 64-bit quantity and
resolves a mismatch between the shmfd size and underlying vm_object size.
The implementation did not account for this kind of mismatch.

For compatibility's sake, the old shm_size has been replaced with
shm_oldsize (still popualted) and the new member appended to the end.

3 years agoMFC r363088: fix tests for install(1): add support for STRIPBIN's -o option.
Eugene Grosbein [Fri, 17 Jul 2020 06:52:03 +0000 (06:52 +0000)]
MFC r363088: fix tests for install(1): add support for STRIPBIN's -o option.

3 years agoFix a mismerge in r363243.
Mark Johnston [Thu, 16 Jul 2020 13:50:21 +0000 (13:50 +0000)]
Fix a mismerge in r363243.

This is a direct commit to stable/12.

Reported by: Jenkins

3 years agoMFC r363051, r363055:
Mark Johnston [Thu, 16 Jul 2020 13:38:20 +0000 (13:38 +0000)]
MFC r363051, r363055:
Avoid copying out kernel pointers from msgctl/semctl(IPC_STAT).

3 years agoMFC r363158:
Mark Johnston [Thu, 16 Jul 2020 13:37:11 +0000 (13:37 +0000)]
MFC r363158:
Add vm_map_valid_range_KBI().

3 years agoMFC r362952
Peter Grehan [Thu, 16 Jul 2020 03:05:10 +0000 (03:05 +0000)]
MFC r362952

Silence ACPI RTC error/warning in Linux guests.

3 years agoMFC r362644
Peter Grehan [Thu, 16 Jul 2020 02:53:13 +0000 (02:53 +0000)]
MFC r362644

Prevent calling USB backends multiple times.

3 years agoMFC r362233: newsyslog(8): make configuration parser more robust.
Eugene Grosbein [Wed, 15 Jul 2020 22:41:58 +0000 (22:41 +0000)]
MFC r362233: newsyslog(8): make configuration parser more robust.

3 years agoMFC r362634:
David Bright [Wed, 15 Jul 2020 17:34:08 +0000 (17:34 +0000)]
MFC r362634:

Add CAP_EVENT to pidfiles.

CAP_EVENT was omitted on pidfiles (in
pidfile_open()). There seems no reason why a process that creates
and writes a pidfile cannot monitor events on that file. This mod adds
the capability.

Sponsored by: Dell EMC Isilon

3 years agoMFC r363140:
Oleksandr Tymoshenko [Tue, 14 Jul 2020 18:31:00 +0000 (18:31 +0000)]
MFC r363140:

Fix invalid VHDX generation for image larger than 4Gb

- Part of BAT payload location was lost due to invalid
    BAT entry encoding type (32 bits instead of 64 bits)
- The sequence of PB/SB entries in BAT was broken due to
    off-by-one index check. It worked for smaller than
    4Gb because there were no SB entries in BAT.