FreeBSD/src 338897stable 11, stable/11/sys/amd64/amd64 trap.c

MFC r338699:
Remove unneeded new line from the panic string.

FreeBSD/src 338896projects/openssl111/crypto/openssl/crypto threads_pthread.c

Add a hack to build on ARMv4 and ARMv5.

FreeBSD/src 338895projects/nfsv42/sys/fs/nfs nfsproto.h nfs_commonsubs.c, projects/nfsv42/sys/fs/nfsserver nfs_nfsdserv.c nfs_nfsdsocket.c

Add the IO Advise operation to the NFSv4.2 server. At this time, it only
handles WILLNEED and DONTNEED, since those are the ones handled by
VOP_ADVISE().

FreeBSD/src 338894projects/openssl111/secure/lib/libcrypto Makefile

Connect an assembly file for aarch64 to build.

FreeBSD/src 338893head/share/mk src.opts.mk

Set the default loader for powerpc(32- and 64-bit) back to to forth.
There are some issues with the lua-loader. To be on the safe side, use a well
known and working loader.

Approved by: re (glen)

FreeBSD/src 338892head/sys/ufs/ffs ffs_softdep.c

Correct panic messages.

Reviewed by:    mckusick
Sponsored by:   The FreeBSD Foundation
Approved by:    re (rgrimes)
MFC after:      1 week

FreeBSD/src 338891head/sys/amd64/amd64 pmap.c

Further reorganize pmap_invalidate TLB code.

Split calculation of mask for shootdown IPI and local
invalidation. Reorder IPI before local.

Suggested by:   alc
Reviewed by:    alc, markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
Approved by:    re (rgrimes)
Differential revision:  https://reviews.freebsd.org/D17277

FreeBSD/src 338890head/sbin/ifconfig ifipsec.c

Update ifr_name before invoking IPSECSREQID ioctl, this fixes the case,
when `ifconfig ipsec create reqid N` command invoked without interface
unit number. The "name" global variable is updated after interface
cloning in the ifclonecreate() and contains actual interface name.

Reported by:    lev
Approved by:    re (kib)
MFC after:      1 week

FreeBSD/src 338889stable 11, stable/11/sys/amd64/amd64 pmap.c

MFC r338801:
amd64 pmap: remove tautological assert.

FreeBSD/src 338888head/sbin/devd devd.cc devd.hh

We don't need shell protection for when we're expanding matches.
Don't add it. This should fix when we do regepx matches against
variables we've set and fix wifi bring up.

PR: 231441
Approved by: re@ (kib)
Differential Revision: https://reviews.freebsd.org/D17267

FreeBSD/src 338887head/etc hosts.allow Makefile, head/lib/libwrap hosts.allow Makefile

Move hosts.allow to lib/libwrap/

This leverages CONFS to handle the install.

Approved by:    re (blanket, pkgbase), bapt (mentor)
Differential Revision:  https://reviews.freebsd.org/D17240

FreeBSD/src 338886head/stand/lua password.lua

Improve loader passwords:

1. Be clear about which password is being requested
2. Remove extraneous whitespace between the prompt and the cursor
3. Move the twiddle to where the prompt is, instead of two characters to the right
4. Fix erasing the 'incorrect password' message when retrying; previously it was erased 
partially
5. Remove the unneeded exclamation mark

Reviewed by:    kevans
Approved by:    re (gjb)
MFC after:      2 weeks
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D17236

FreeBSD/src 338885head/sys/sys signalvar.h

vfs: __predict common case in VFS_EPILOGUE/PROLOGUE

NFS is the only in-tree filesystem using the feature, but all ops test
for it.

Currently the resulting sigdefer calls have to be jumped over in the
common case.

This is a bandaid, longer term fix will move this feature away.

Approved by:    re (kib)

FreeBSD/src 338884projects/openssl111/secure/lib/libcrypto Makefile

Add missing ACFLAGS for aarch64.

FreeBSD/src 338883projects/openssl111/secure/lib/libcrypto Makefile.inc

Fix typos in the previous commit.

FreeBSD/src 338882projects/openssl111/secure/lib/libcrypto Makefile

Add a missing source file for SHA.

FreeBSD/src 338881projects/openssl111/secure/lib/libcrypto Makefile.inc

Add CFLAGS for aarch64/arm assembly files.

FreeBSD/src 338880projects/openssl111/secure/lib/libcrypto Makefile

Add another include directory for aarch64 and arm.

FreeBSD/src 338879projects/openssl111/secure/lib/libcrypto Makefile.asm, projects/openssl111/secure/lib/libcrypto/aarch64 arm64cpuid.S

Regen cpuid assembly files for aarch64 and arm.

FreeBSD/src 338878projects/openssl111/secure/lib/libcrypto Makefile

Connect assembly files for arm to build.

FreeBSD/src 338877projects/openssl111/secure/lib/libcrypto/arm ecp_nistz256-armv4.S keccak1600-armv4.S

Regen assembly files for arm.

FreeBSD/src 338876projects/openssl111/secure/lib/libcrypto Makefile

Connect assembly files for aarch64 to build.

FreeBSD/src 338875projects/openssl111/secure/lib/libcrypto/aarch64 ecp_nistz256-armv8.S chacha-armv8.S

Regen assemply files for aarch64.

FreeBSD/src 338874head/sys/dev/cxgbe t4_l2t.c t4_filter.c

cxgbe(4): Reuse existing "switching" L2T entries when possible.

Approved by:    re@ (rgrimes@)
Sponsored by:   Chelsio Communications

FreeBSD/src 338873stable 11, stable/11/sys/net iflib.h iflib.c

Revert MFC of r334231 in r338871.

It did not apply cleanly and was causing build errors.

FreeBSD/src 338872head/usr.sbin/cxgbetool cxgbetool.c cxgbetool.8

cxgbetool(8): The VLAN tag provided in the action for a filter must be prefixed
with either '=' or '+'.  Fix the description of the parameter in the man page
while here.

Approved by:    re@ (kib@)
Sponsored by:   Chelsio Communications

FreeBSD/src 338871stable 11, stable/11/sys/net if_media.h iflib.c

MFC r334231, r334779, r335322, and r338208 to stable/11 from head

These include:
r334231: iflib: Add new shared flag: IFLIB_ADMIN_ALWAYS_RUN
r334779: iflib: Record TCP checksum info in iflib when TCP checksum is requested
r335322: iflib: Style fixes
r338208: if_media: Add new 2.5G/5G/25G/40G/50G/100G/200G/400G media types

Sponsored by:   Intel Corporation

FreeBSD/src 338870projects/openssl111/secure/lib/libcrypto opensslconf-mips.h.in opensslconf-powerpc.h.in

Unify opensslconf.h templates.

There is no MD macro in this file any more.

FreeBSD/src 338869head/sys/cddl/contrib opensolaris, head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs spa.c

MFV r338866: 9700 ZFS resilvered mirror does not balance reads

illumos/illumos-gate at 82f63c3c2bf5e4378706e8dcfccf717d67371be9

Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni at nexenta.com>
Reviewed by: George Wilson <george.wilson at delphix.com>
Approved by: Matthew Ahrens <mahrens at delphix.com>
Author:     Jerry Jelinek <jerry.jelinek at joyent.com>

Approved by:    re (delphij)

FreeBSD/src 338868stable/11/usr.sbin/asf asf_kvm.c

Include stdbool.h so that we can use bool in linker.h.

As asf(8) is gone in head, this is a direct commit to stable/11.

FreeBSD/src 338867stable/11/sys/amd64/amd64 elf_machdep.c, stable/11/sys/i386/i386 elf_machdep.c

MFC r338211:
Prepare the kernel linker to handle PC-relative ifunc relocations.

FreeBSD/src 338866vendor-sys/illumos/dist/uts/common/fs/zfs spa.c

9700 ZFS resilvered mirror does not balance reads

illumos/illumos-gate at 82f63c3c2bf5e4378706e8dcfccf717d67371be9

Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni at nexenta.com>
Reviewed by: George Wilson <george.wilson at delphix.com>
Approved by: Matthew Ahrens <mahrens at delphix.com>
Author:     Jerry Jelinek <jerry.jelinek at joyent.com>

FreeBSD/src 338865vendor-sys/illumos/dist/uts/common/fs/zfs dmu.c, vendor-sys/illumos/dist/uts/common/fs/zfs/sys dmu_impl.h

9626 move 'static xuio_stats_t xuio_stats' to file where it use

illumos/illumos-gate at 857c96d257470e097e846ab8886580991b329c32

Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Approved by: Dan McDonald <danmcd at joyent.com>
Author:     Igor Kozhukhov <igor at dilos.org>

FreeBSD/src 338864vendor-sys/illumos/dist/uts/common/fs/zfs/sys zfs_ioctl.h

9672 Reserve a ZFS replication stream feature flag for ZSTD compression

illumos/illumos-gate at acd7f809f0376580771fe4df8aaeecebe4c40b2f

Author:     Allan Jude <allanjude at freebsd.org>
Reviewed by: Matt Ahrens <matt at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>

FreeBSD/src 338863head/sys/amd64/amd64 support.S

Use the GNU as-compatible .endm instead of .endmacro.

Approved by:    re (gjb)

FreeBSD/src 338862head/sys/amd64/amd64 pmap.c

Convert x86 TLB top-level invalidation functions to ifuncs.

Note that shootdown IPI handlers are already per-mode.

Suggested by:   alc
Reviewed by:    alc, markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
Approved by:    re (gjb)
Differential revision:  https://reviews.freebsd.org/D17184
DeltaFile
+234-131head/sys/amd64/amd64/pmap.c
+234-1311 files

FreeBSD/src 338861head/lib/libc Makefile

libc: require ifunc-capable linker for amd64/i386

We expect to introduce optimized libc routines in the near future,
which requires use of a linker that supports ifuncs.

Approved by:    re (gjb, kib)
Sponsored by:   The FreeBSD Foundation

FreeBSD/src 338860head/gnu/usr.bin/gdb/arch/arm config.h, head/gnu/usr.bin/gdb/arch/i386 config.h

Disable sbrk() use in GNU tools.

We're studing the possibility of deprecating sbrk().  To make it easier
we're removing unnecessicary uses in the base system.  None of these
tools require sbrk(), but they agressively prefer it for no good reason.

Reviewed by:    andrew
Approved by:    re (kib)
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D16141

FreeBSD/src 338859stable 11 10, stable/10/release/scripts pkg-stage.sh

MFC r338754:
 Update the pkg-stage.sh script used to populate packages on the
 dvd1.iso installation medium from including KDE4 to KDE5, as the
 KDE4-based ports have been marked as deprecated in the Ports
 Collection.

Sponsored by:   The FreeBSD Foundation

FreeBSD/src 338858head/sys/amd64/amd64 support.S

amd64: even up copyin/copyout with memcpy + other cleanup

- _fault handlers for both primitives are identical, provide just one
- change the copying scheme to match memcpy (in particular jump
avoidance for the most common case of multiply of 8)
- stop re-reading pcb address on exit, just store it locally (in r9)

Reviewed by:    kib
Approved by:    re (gjb)
Differential Revision:  https://reviews.freebsd.org/D17265

FreeBSD/src 338857head/sys/dev/ffec if_ffec.c

Fix possible NULL pointer dereference in ffec_alloc_mbufcl().

PR:            231514
Approved by:    re (kib)
MFC after:      1 week

FreeBSD/src 338856head/sys/conf newvers.sh

Include kernel ident in uname

In non-reproducible mode we have the kernel ident as a side effect of
including the build directory.  Explicitly add it to the ident string in
reproducible mode.

Reported by:    mjg
Approved by:    re (gjb)
Sponsored by:   The FreeBSD Foundation

FreeBSD/src 338855head/sys/kern sys_generic.c

select: stop doing zero-sized memsets

Approved by:    re (kib)

FreeBSD/src 338854head/sys/conf newvers.sh

remove double space between branch and version in kernel ident

Reported by:    dim
Approved by:    re (kib)
Sponsored by:   The FreeBSD Foundation

FreeBSD/src 338853head/sys/amd64/amd64 support.S

amd64: check for small size in memmove, memcpy and memset

If the size is 15 bytes or less avoid spinning up rep just to copy the 8
bytes. In my tests on EPYC and old Intel microarchs without ERMS (like
Westmere) it provided a nice win over the current version (e.g. for EPYC
memset with 15 bytes of size goes from 59712651 ops/s to 70600095) all
while almost not pessimizing the other cases.

Data collected during package building shows that < 16 sizes are pretty
common.

Verified with the glibc test suite.

Approved by:    re (kib)

FreeBSD/src 338852head/usr.sbin/bsdinstall/scripts hardening

Add an installer option to disable destructive dtrace.

Submitted by:          Jörg Pernfuß <code.jpe at gmail.com>
Approved by:           re (kib)
MFC after:             1 week
Differential Revision:  https://reviews.freebsd.org/D12474

FreeBSD/src 338851head/share/man/man4 ddb.4

Mention setting $lines to 0 in ddb can disable paging

Reviewed by:    bcr (earlier version), markj
Approved by:    re (kib), markj (mentor)
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D17068

FreeBSD/src 338850head/sys/net if_vlan.c if_var.h

fix vlan locking to permit sx acquisition in ioctl calls

- update vlan(9) to handle changes earlier this year in multicast locking

Tested by: np@, darkfiberu at gmail.com

PR:     230510
Reviewed by:    mjoras@, shurd@, sbruno@
Approved by:    re (gjb@)
Sponsored by:   Limelight Networks
Differential Revision:  https://reviews.freebsd.org/D16808

FreeBSD/src 338849head/sys/conf newvers.sh

Update head from ALPHA6 to ALPHA7 as part of the 12.0-RELEASE
cycle.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation

FreeBSD/src 338848projects/openssl111/secure/usr.bin/openssl Makefile

Remove pthread from LIBADD for openssl(1).

libcrypto is linked with pthread since r338816.