BSD DOM REP
Buen Dia
Bitcoin Exchange CEX.IO

Actualizaciones de FreeBSD

Base/Head · Ports/Head · Doc/Head · Fecha/Hora en UTC

Secuencia
Revisi├│n
Repositorio/Grupo
Autor
Detalle
14/12/2018
4:14 pm
base/head
mw
in head/sys: conf dev/tpm
Adicional:
head/sys/dev/tpm/tpm20.c (contents, props changed)
head/sys/dev/tpm/tpm20.h (contents, props changed)
head/sys/dev/tpm/tpm_crb.c (contents, props changed)
head/sys/dev/tpm/tpm_tis.c (contents, props changed)
Modificado:
head/sys/conf/files.amd64
Log:
Introduce driver for TPM 2.0 in CRB and FIFO (TIS) modes

It was written basing on:
TCG PC Client Platform TPM Profile (PTP) Specification Version 22, Revision 1.03.
It only supports Locality 0. Interrupts are only supported in FIFO mode.

The driver in FIFO mode was tested on x86 with Infineon SLB9665 discrete TPM chip.
Driver in both modes was also tested on qemu with swtpm running on host.

Submitted by: Kornel Duleba
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D18048
14/12/2018
10:49 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas_cam.c
Log:
Compilation failure on ppc and mips due to Revision 342066.
Adding extra memset on chain frame.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
10:26 am
base/head
manu
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/axp81x.c
Log:
arm64: allwinner: axp81x: Fix double invertion for FLDO1

This fix booting on A64 boards when disabling the unused regulators at boot.
We did disable all the regulator handled by register 0x13 which of course contain
mandatory regulators for the board to be up.

Reported by: Mark Millard
X-MFC-With: r340848
14/12/2018
9:30 am
base/head
avg
head/sys/dev/ichwd
Modificado:
head/sys/dev/ichwd/ichwd.c
head/sys/dev/ichwd/ichwd.h
Log:
ichwd: add Sunrise Point-LP ID

Submitted by: Tetsuya Uemura
Tested by: Tetsuya Uemura
MFC after: 2 weeks
Relnotes: maybe
14/12/2018
9:28 am
base/head
avg
head/sys/dev/ichwd
Modificado:
head/sys/dev/ichwd/ichwd.c
head/sys/dev/ichwd/ichwd.h
Log:
ichwd: add support for clearing No Reboot bit in TCOv4

This is based on a patch developed by
Tetsuya Uemura .
Many thanks!

Submitted by: Tetsuya Uemura (earlier version)
Tested by: Tetsuya Uemura
MFC after: 2 weeks
14/12/2018
9:24 am
base/head
eugen
head/share/man/man4
Modificado:
head/share/man/man4/ng_bpf.4
Log:
ng_bpf.4: fix EXAMPLES: do not activate promiscuous mode

PR: 102719
MFC after: 3 days
14/12/2018
8:06 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.h
Log:
Driver version upgrade 07.708.02.00-fbsd

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:05 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
Log:
This patch will increase debug level as current logging level has
very minimal prints and even few important messages will not get logged.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:05 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
Log:
Change IOC INIT wait time to 180 secs to keep it inline with timeout
used by internal DCMDs.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:04 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
head/sys/dev/mrsas/mrsas_cam.c
head/sys/dev/mrsas/mrsas_fp.c
Log:
This patch will add support for NVME PRPs creation by driver for fastpath
capable IOs. NVME specification supports specific type of scatter gather list
called as PRP (Physical Region Page) for IO data buffers. Since NVME drive is
connected behind SAS3.5 tri-mode adapter, MegaRAID driver/firmware has to convert
OS SGLs in native NVMe PRP format. For IOs sent to firmware, MegaRAID firmware
does this job of OS SGLs to PRP translation and send PRPs to backend NVME device.
For fastpath IOs, driver will do this OS SGLs to PRP translation.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:03 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
Log:
This patch will add support for new DCMD to get PD information and a single data structure
to specify LD and JBOD.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:02 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
head/sys/dev/mrsas/mrsas_cam.c
head/sys/dev/mrsas/mrsas_fp.c
Log:
To improve RAID 1/10 Write performance, OS drivers need to issue the
required Write IOs as Fast Path IOs (after the appropriate checks
allowing Fast Path to be used) to the appropriate physical drives
(translated from the OS logical IO) and wait for all Write IOs to complete.

Design: A write IO on RAID volume will be examined if it can be sent in
Fast Path based on IO size and starting LBA and ending LBA falling on to
a Physical Drive boundary. If the underlying RAID volume is a RAID 1/10,
driver issues two fast path write IOs one for each corresponding physical
drive after computing the corresponding start LBA for each physical drive.
Both write IOs will have the same payload and are posted to HW such that
replies land in the same reply queue.

If there are no resources available for sending two IOs, driver will send
the original IO from upper layer to RAID volume through the Firmware.

When both IOs are completed by HW, the resources will be released
and SCSI IO completion handler will be called.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:01 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
head/sys/dev/mrsas/mrsas_cam.c
head/sys/dev/mrsas/mrsas_fp.c
Log:
Detect sequential Write IOs and pass the hint that it is part of sequential
stream to help HBA Firmware do the Full Stripe Writes. For read IOs on
certain RAID volumes like Read Ahead volumes,this will help driver to
send it to Firmware even if the IOs can potentially be sent to
hardware directly (called fast path) bypassing firmware.

Design: 8 streams are maintained per RAID volume as per the combined
firmware/driver design. When there is no stream detected the LRU stream
is used for next potential stream and LRU/MRU map is updated to make this
as MRU stream. Every time a stream is detected the MRU map
is updated to make the current stream as MRU stream.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:00 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
head/sys/dev/mrsas/mrsas_cam.c
Log:
This patch will add new interface to support more than 256 JBODs.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
8:00 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
head/sys/dev/mrsas/mrsas_cam.c
head/sys/dev/mrsas/mrsas_fp.c
Log:
This patch will add support for divert bitmap in RAID map. Divert bitmap is supported for
SAS3.5 adapters only.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
7:59 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
head/sys/dev/mrsas/mrsas_fp.c
Log:
This patch will add support for new Dynamic RaidMap to have different sizes
for different number of supported VDs for SAS3.5 MegaRAID adapters.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
7:57 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
head/sys/dev/mrsas/mrsas.h
head/sys/dev/mrsas/mrsas_cam.c
head/sys/dev/mrsas/mrsas_fp.c
Log:
This patch will add support for next generation(SAS3.5) of Tri mode(SAS, SATA, NVMe)
MegaRAID adapters.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
14/12/2018
3:55 am
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_descrip.c
head/sys/kern/vfs_lookup.c
head/sys/sys/filedesc.h
Log:
vfs: mostly depessimize NDINIT_ALL

1) filecaps_init was unnecesarily a function call
2) an asignment at the end was preventing tail calling of cap_rights_init

Sponsored by: The FreeBSD Foundation
14/12/2018
1:06 am
base/head
jkim
head/crypto/openssl/crypto/engine
Modificado:
head/crypto/openssl/crypto/engine/eng_devcrypto.c
Log:
Do not complain when /dev/crypto does not exist.

Now the new devcrypto engine is enabled since r342009, many users started
seeing "Could not open /dev/crypto: No such file or directory". Disable
the annoying error message as it is not very useful anyway.

Note the patch was submitted upstream.

https://github.com/openssl/openssl/pull/7896
14/12/2018
12:40 am
base/head
jkim
in head/sys/contrib/dev/acpica: . common compiler
Modificado:
head/sys/contrib/dev/acpica/changes.txt
head/sys/contrib/dev/acpica/common/ahpredef.c
head/sys/contrib/dev/acpica/common/dmswitch.c
head/sys/contrib/dev/acpica/compiler/aslcodegen.c
head/sys/contrib/dev/acpica/compiler/aslcompile.c
head/sys/contrib/dev/acpica/compiler/aslcompiler.h
head/sys/contrib/dev/acpica/compiler/aslerror.c
head/sys/contrib/dev/acpica/compiler/aslglobal.h
head/sys/contrib/dev/acpica/compiler/aslhelp.c
head/sys/contrib/dev/acpica/compiler/asllength.c
head/sys/contrib/dev/acpica/compiler/aslopcodes.c
head/sys/contrib/dev/acpica/compiler/asloptions.c
head/sys/contrib/dev/acpica/compiler/asltransform.c
head/sys/contrib/dev/acpica/components/dispatcher/dsmethod.c
head/sys/contrib/dev/acpica/components/dispatcher/dsobject.c
head/sys/contrib/dev/acpica/components/dispatcher/dspkginit.c
head/sys/contrib/dev/acpica/components/dispatcher/dsutils.c
head/sys/contrib/dev/acpica/components/dispatcher/dswload.c
head/sys/contrib/dev/acpica/components/dispatcher/dswload2.c
head/sys/contrib/dev/acpica/components/dispatcher/dswstate.c
head/sys/contrib/dev/acpica/components/executer/exconvrt.c
head/sys/contrib/dev/acpica/components/executer/excreate.c
head/sys/contrib/dev/acpica/components/executer/exoparg2.c
head/sys/contrib/dev/acpica/components/executer/exserial.c
head/sys/contrib/dev/acpica/components/executer/exutils.c
head/sys/contrib/dev/acpica/components/namespace/nseval.c
head/sys/contrib/dev/acpica/components/namespace/nsload.c
head/sys/contrib/dev/acpica/components/namespace/nsparse.c
head/sys/contrib/dev/acpica/components/parser/psloop.c
head/sys/contrib/dev/acpica/components/parser/psparse.c
head/sys/contrib/dev/acpica/components/parser/psxface.c
head/sys/contrib/dev/acpica/components/utilities/utglobal.c
head/sys/contrib/dev/acpica/components/utilities/utmisc.c
head/sys/contrib/dev/acpica/components/utilities/utosi.c
head/sys/contrib/dev/acpica/include/acglobal.h
head/sys/contrib/dev/acpica/include/acoutput.h
head/sys/contrib/dev/acpica/include/acpixf.h
head/sys/contrib/dev/acpica/include/acstruct.h
head/sys/contrib/dev/acpica/include/actbl.h
head/sys/contrib/dev/acpica/include/actypes.h
Directory Properties:
head/sys/contrib/dev/acpica/ (props changed)
Log:
MFV: r342049

Merge ACPICA 20181213.
13/12/2018
11:49 pm
base/head
bcran
head/stand/efi/loader
Modificado:
head/stand/efi/loader/efi_main.c
Log:
Cast error message in efi_main.c to CHAR16* to avoid build error
13/12/2018
11:20 pm
base/head
bcran
head/stand/efi/loader
Modificado:
head/stand/efi/loader/efi_main.c
Log:
Print an error message in efi_main.c if we can't allocate memory for the heap

With the default Qemu parameters, only 128MB RAM gets given to a VM. This causes
the loader to be unable to allocate the 64MB it needs for the heap. This change
makes the cause of the error more obvious.

Differential Revision: https://reviews.freebsd.org/D17958
13/12/2018
8:09 pm
base/head
mjg
head/sys/cddl/dev/dtrace/amd64
Modificado:
head/sys/cddl/dev/dtrace/amd64/dtrace_asm.S
head/sys/cddl/dev/dtrace/amd64/dtrace_isa.c
Log:
dtrace: fix userspace access on boxes with SMAP

dtrace has its own routines which were not updated after SMAP support got
implemented. Use ifunc just like for other routines.

This in particular fixes ustack().

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18542
13/12/2018
1:25 pm
base/head
chuck
in head/sys: cam/nvme dev/nvme
Modificado:
head/sys/cam/nvme/nvme_da.c
head/sys/dev/nvme/nvme.h
head/sys/dev/nvme/nvme_ns.c
Log:
nda(4) fix check for Dataset Management support

In the nda(4) driver, only set DISKFLAG_CANDELETE (a.k.a. can support
BIO_DELETE) if the drive supports Dataset Management. There are reports
that without this check, VMWare Workstation does not work reliably.

Fix is to check the ONCS field in the NVMe Controller Data structure for
support. This check previously existed but did not survive the
big-endian changes.

Reported by: yuripv@yuripv.net
Reviewed by: imp, mav, jimharris
Approved by: imp (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18493
13/12/2018
12:58 pm
base/head
des
head/etc/mtree
Modificado:
head/etc/mtree/BSD.root.dist
Log:
Create /etc/authpf, used by authpf(8) and authpf-noip(8).

MFC after: 1 week
13/12/2018
11:18 am
base/head
mm
in head/contrib/libarchive/libarchive: . test
Modificado:
head/contrib/libarchive/libarchive/archive_acl.c
head/contrib/libarchive/libarchive/archive_read_support_format_rar.c
head/contrib/libarchive/libarchive/archive_read_support_format_rar5.c
head/contrib/libarchive/libarchive/archive_read_support_format_warc.c
head/contrib/libarchive/libarchive/test/test_read_format_rar5.c
Directory Properties:
head/contrib/libarchive/ (props changed)
Log:
MFV r341771,342040,342041:
Sync libarchive with vendor.

Relevant vendor changes:
PR #1102: RAR5 reader - fix big-endian problems
PR #1105: Fix various crash, memory corruption and infinite loop conditions
PR #1107: RAR5 reader: removed an unused function: bf_is_last_block

MFC after: 1 week
13/12/2018
8:59 am
base/head
ae
head/sys/opencrypto
Modificado:
head/sys/opencrypto/cryptosoft.c
Log:
Plug memory leak for AES_*_NIST_GMAC algorithms.

swcr_newsession() allocates sw_ictx for these algorithms, thus we need
to free() it in swcr_freesession().

PR: 233907
MFC after: 1 week
13/12/2018
6:59 am
base/head
dim
head
Modificado:
head/ObsoleteFiles.inc
head/UPDATING
Log:
Fix dates that I set into the future incorrectly.

Noticed by: ler
13/12/2018
5:07 am
base/head
jhibbits
head/sys/powerpc/include
Modificado:
head/sys/powerpc/include/vmparam.h
Log:
powerpc/booke: Change KERNBASE to be physical load address

Previous commits have made VM_MIN_KERNEL_ADDRESS its own separate entity,
and rebased the kernel around that address instead of KERNBASE. This commit
pulls the trigger to rebase KERNBASE to a physical load address. The
eventual goal is to align the address with the AIM KERNBASE, but at this
time that's not an option.

Currently a Book-E kernel must be loaded on a 64MB boundary, due to size
issues. The common load address is at the 64MB mark (0x04000000), so simply
make that the default KERNBASE.

As of this commit, Book-E kernels can be loaded and booted with ubldr.

MFC after: 3 weeks
13/12/2018
4:48 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/spe.c
Log:
powerpcspe: Fix GPR handling in SPE exception handler

Optimize the exception handler to only save and load the upper word of the
GPRs used in the emulating instruction. This reduces the save/load
overhead, and as a side effect does not overwrite the upper word of any
temporary register.

With this commit I am now able to run editors/abiword and math/gnumeric on a
e500-based system.

MFC after: 1 week
MFC With: r341752,r341751
13/12/2018
4:40 am
base/head
mmacy
in head/sys: crypto/aesni opencrypto
Modificado:
head/sys/crypto/aesni/aesni.c
head/sys/opencrypto/criov.c
head/sys/opencrypto/cryptodev.h
Log:
Generalize AES iov optimization

Right now, aesni_cipher_alloc does a bit of special-casing
for CRYPTO_F_IOV, to not do any allocation if the first uio
is large enough for the requested size. While working on ZFS
crypto port, I ran into horrible performance because the code
uses scatter-gather, and many of the times the data to encrypt
was in the second entry. This code looks through the list, and
tries to see if there is a single uio that can contain the
requested data, and, if so, uses that.

This has a slight impact on the current consumers, in that the
check is a little more complicated for the ones that use
CRYPTO_F_IOV -- but none of them meet the criteria for testing
more than one.

Submitted by: sef at ixsystems.com
Reviewed by: cem@
MFC after: 3 days
Sponsored by: iX Systems
Differential Revision: https://reviews.freebsd.org/D18522
13/12/2018
12:42 am
base/head
imp
head/sys/mips/include
Modificado:
head/sys/mips/include/atomic.h
Log:
Correctly implemenet atomic_swap_long for mips64.

MIPS64 has 64-bit longs, so use uint64_t for it, otherwise uint32_t.
sizeof(long) == sizeof(ptr) for all platforms, so define
atomic_swap_ptr in terms of atomic_swap_long.

Submitted by: hps@
12/12/2018
10:33 pm
base/head
manu
in head/sys: arm/mv arm64/conf conf
Adicional:
head/sys/arm/mv/mv_thermal.c (contents, props changed)
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/conf/files.arm64
Log:
mv_thermal: Add thermal driver for AP806 and CP110 thermal sensor

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
10:24 pm
base/head
manu
head/sys/arm/mv
Modificado:
head/sys/arm/mv/mv_cp110_icu.c
Log:
arm64: mv_cp110_icu: Fix build
12/12/2018
10:09 pm
base/head
manu
head/sys/dev/sdhci
Modificado:
head/sys/dev/sdhci/sdhci_xenon.c
Log:
sdhci_xenon: Add Marvell 8k compatible string

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
10:10 pm
base/head
manu
head/sys/arm/mv
Modificado:
head/sys/arm/mv/gpio.c
Log:
mv_gpio: Since it's also an interrupt controller, attach sooner

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
10:08 pm
base/head
manu
in head/sys: arm/mv arm64/conf conf
Adicional:
head/sys/arm/mv/mv_ap806_gicp.c (contents, props changed)
head/sys/arm/mv/mv_cp110_icu.c (contents, props changed)
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/conf/files.arm64
Log:
arm64: Add mv_cp110_icu and mv_cp110_gicp

icu is a interrupt concentrator in the CP110 block and gicp
is a gic extension to allow interrupts in the CP block to be turned
into GIC SPI interrupts

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
10:05 pm
base/head
manu
in head/sys: conf dev/iicbus/twsi
Modificado:
head/sys/conf/files.arm64
head/sys/dev/iicbus/twsi/mv_twsi.c
head/sys/dev/iicbus/twsi/twsi.c
head/sys/dev/iicbus/twsi/twsi.h
Log:
twsi: Clean up marvell part and add support for Marvell 7k/8k

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
10:04 pm
base/head
manu
in head/sys: arm/mv conf
Adicional:
head/sys/arm/mv/mv_cp110_clock.c (contents, props changed)
head/sys/arm/mv/mv_cp110_clock.h (contents, props changed)
Modificado:
head/sys/conf/files.arm64
Log:
arm64: marvell: Add cp110 clock controller support

The cp110 clock controller controls the clocks and gate of the CP110
hardware block.

Every clock/gate are implemented except the NAND clock.

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
10:02 pm
base/head
manu
in head/sys: arm/mv arm64/conf conf
Modificado:
head/sys/arm/mv/gpio.c
head/sys/arm64/conf/GENERIC
head/sys/conf/files.arm64
Log:
arm64: mv_gpio: Add Marvell 8K support

While here put the interrupts setup in it's own function

Sponsored by: Rubicon Communications, LCC ("Netgate")
12/12/2018
10:01 pm
base/head
manu
in head/sys: arm/mv conf
Adicional:
head/sys/arm/mv/mv_ap806_clock.c (contents, props changed)
Modificado:
head/sys/conf/files.arm64
Log:
arm64: marvell: Add driver for Marvell Ap806 System Controller

The first two clocks are for the clusters and their frequencies can be
found reading a register. Then a fixed 1200Mhz clock is present and two
fixed clocks, 'mss' which is 1200 / 6 and 'sdio' which is 1200 / 3.

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
9:56 pm
base/head
jkim
head/secure/lib/libcrypto
Modificado:
head/secure/lib/libcrypto/Makefile
head/secure/lib/libcrypto/opensslconf.h.in
Log:
Enable devcryptoeng for OpenSSL.

Since OpenSSL 1.1.1, the good old BSD-specific cryptodev engine has been
deprecated in favor of this new engine. However, this engine is not
throughly tested on FreeBSD because it was originally written for Linux.

http://cryptodev-linux.org/

Also, the author actually meant to enable it by default on BSD platforms but
he failed to do so because there was a bug in the Configure script.

https://github.com/openssl/openssl/pull/7882

Now they found that it was more generic issue.

https://github.com/openssl/openssl/pull/7885

Therefore, we need to enable this engine on head to give it more exposure.
12/12/2018
9:56 pm
base/head
manu
in head/sys: conf dev/fdt
Adicional:
head/sys/dev/fdt/simple_mfd.c (contents, props changed)
Modificado:
head/sys/conf/files
head/sys/dev/fdt/simplebus.c
head/sys/dev/fdt/simplebus.h
Log:
fdt: Add support for simple-mfd bus

Quoting the binding Documentation :

"These devices comprise a nexus for heterogeneous hardware blocks containing
more than one non-unique yet varying hardware functionality."

Reviewed by: loos
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D17751
12/12/2018
10:00 pm
base/head
manu
in head/sys: arm/mv arm64/conf conf
Adicional:
head/sys/arm/mv/mvebu_pinctrl.c (contents, props changed)
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/conf/files.arm64
Log:
arm64: mvebu_pinctrl: Add driver for Marvell Pinmux Controller

Add a driver compatible with Marvell mvebu-pinctrl and add ap806-pinctrl
support.

Sponsored by: Rubicon Communications, LCC ("Netgate")
12/12/2018
9:58 pm
base/head
manu
in head/sys: arm64/conf conf
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/conf/options.arm64
Log:
arm64: Add new SoC type MARVELL_8K

Sponsored by: Rubicon Communications, LLC ("Netgate")
12/12/2018
9:25 pm
base/head
manu
head/usr.sbin/pwm
Modificado:
head/usr.sbin/pwm/pwm.c
Log:
pwm: Fix some arches by using %ju and casting to uintmax_t

Reported by: ci.freebsd.org
12/12/2018
9:10 pm
base/head
manu
head/sys/dts/arm64/overlays
Modificado:
head/sys/dts/arm64/overlays/sun50i-a64-pwm.dtso
head/sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso
Log:
arm64: allwinner: Fix pwm dtso

Double patched files ended up in the tree

Reported by: kevans
12/12/2018
9:02 pm
base/head
manu
in head/sys: dts/arm64/overlays modules/dtb/allwinner
Adicional:
head/sys/dts/arm64/overlays/sun50i-a64-pwm.dtso (contents, props changed)
head/sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso (contents, props changed)
Modificado:
head/sys/modules/dtb/allwinner/Makefile
Log:
arm64: allwinner: Add DTSO for pwm and r_pwm

Those are both dtso (overlays) for the two pwm controllers found on the A64.
12/12/2018
8:58 pm
base/head
manu
in head/sys: arm/allwinner arm64/conf conf
Adicional:
head/sys/arm/allwinner/aw_pwm.c (contents, props changed)
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/conf/files.arm64
Log:
arm64: allwinner: Add pwm driver

Add a pwm driver for Allwinner PWM
Add pwm and aw_pwm to the GENERIC kernel
12/12/2018
8:56 pm
base/head
manu
in head: share/man/man9 sys/conf sys/dev/pwm sys/sys
Adicional:
head/share/man/man9/pwm.9 (contents, props changed)
head/share/man/man9/pwmbus.9 (contents, props changed)
head/sys/dev/pwm/
head/sys/dev/pwm/ofw_pwm.c (contents, props changed)
head/sys/dev/pwm/pwm_if.m (contents, props changed)
head/sys/dev/pwm/pwmbus.c (contents, props changed)
head/sys/dev/pwm/pwmbus.h (contents, props changed)
head/sys/dev/pwm/pwmbus_if.m (contents, props changed)
head/sys/dev/pwm/pwmc.c (contents, props changed)
head/sys/sys/pwm.h (contents, props changed)
head/usr.sbin/pwm/
head/usr.sbin/pwm/Makefile (contents, props changed)
head/usr.sbin/pwm/pwm.8 (contents, props changed)
head/usr.sbin/pwm/pwm.c (contents, props changed)
Modificado:
head/share/man/man9/Makefile
head/sys/conf/files
head/usr.sbin/Makefile
Log:
Add a pwm subsystem so we can configure pwm controller from kernel and userland.

The pwm subsystem consist of API for PWM controllers, pwmbus to register them
and a pwm(8) utility to talk to them from userland.

Reviewed by: oshgobo (capsicum), bcr (manpage), 0mp (manpage)
Differential Revision: https://reviews.freebsd.org/D17938
12/12/2018
8:40 pm
base/head
sobomax
head/sys/conf
Modificado:
head/sys/conf/options
Log:
Add NETGRAPH_CHECKSUM.

MFC after: 1 week
12/12/2018
8:32 pm
base/head
oshogbo
head/lib/libcapsicum
Modificado:
head/lib/libcapsicum/Makefile
Log:
libcapsicum: add missing links

Reported by: manu
12/12/2018
8:19 pm
base/head
kp
head/tests/sys/netpfil/pf
Adicional:
head/tests/sys/netpfil/pf/rdr.sh (contents, props changed)
Modificado:
head/tests/sys/netpfil/pf/Makefile
Log:
pf tests: Basic rdr test

MFC after: 2 weeks
12/12/2018
8:19 pm
base/head
kp
head/tests/sys/netpfil/pf
Adicional:
head/tests/sys/netpfil/pf/nat.sh (contents, props changed)
Modificado:
head/tests/sys/netpfil/pf/Makefile
Log:
pf tests: NAT exhaustion test

It's been reported that pf doesn't handle running out of available ports
for NAT correctly. It freezes until a state expires and it can find a
free port.
Test for this, by setting up a situation where only two ports are
available for NAT and then attempting to create three connections.

If successful the third connection will fail immediately. In an
incorrect case the connection attempt will freeze, also freezing all
interaction with pf through pfctl and trigger timeout.

PR: 233867
MFC after: 2 weeks
12/12/2018
8:15 pm
base/head
kp
head/sys/netpfil/pf
Modificado:
head/sys/netpfil/pf/pf.c
head/sys/netpfil/pf/pf_lb.c
Log:
pf: Fix endless loop on NAT exhaustion with sticky-address

When we try to find a source port in pf_get_sport() it's possible that
all available source ports will be in use. In that case we call
pf_map_addr() to try to find a new source IP to try from. If there are
no more available source IPs pf_map_addr() will return 1 and we stop
trying.

However, if sticky-address is set we'll always return the same IP
address, even if we've already tried that one.
We need to check the supplied address, because if that's the one we'd
set it means pf_get_sport() has already tried it, and we should error
out rather than keep trying.

PR: 233867
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18483
12/12/2018
7:58 pm
base/head
syrinx
head/usr.bin/calendar/calendars
Modificado:
head/usr.bin/calendar/calendars/calendar.freebsd
Log:
Add myself to the calendar
12/12/2018
7:02 pm
base/head
sobomax
head/sys/conf
Modificado:
head/sys/conf/NOTES
head/sys/conf/files
Log:
Add NETGRAPH_CHECKSUM.

MFC after: 1 week
12/12/2018
6:13 pm
base/head
cem
head/sys/geom/mirror
Modificado:
head/sys/geom/mirror/g_mirror.c
Log:
gmirror: Remove a last-minute INVARIANTS breakage in r341840

I mistakenly added a lock assertion to this routine at the last minute
without confirming it was held during g_mirror_create. It isn't (it isn't
even initialized yet). Mea culpa. Access is exclusive in both callers,
just not always by that particular lock.

Reported by: lwhsu
X-MFC-With: r341840, r341674
12/12/2018
5:05 pm
base/head
vmaffione
head/share/man/man4
Adicional:
head/share/man/man4/ptnet.4 (contents, props changed)
Log:
netmap: add man page for ptnet

Add a man page for ptnet(4), describing the guest driver for netmap passthrough.

Reviewed by: bcr
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18518
12/12/2018
4:32 pm
base/head
vmaffione
head/sys/dev/netmap
Modificado:
head/sys/dev/netmap/netmap_kloop.c
Log:
netmap: fix warning in netmap_kloop.c

Reported by: markj
MFC after: 3 days
12/12/2018
3:49 pm
base/head
markj
head/sys/dev/bwn
Modificado:
head/sys/dev/bwn/if_bwn.c
Log:
Fix a possible mbuf double free in bwn_dma_tx_start().

If bus_dmamap_load_mbuf() fails following a defrag, the caller of
bwn_dma_tx_start() would free the original mbuf after m_defrag() had
already done so. Fix this by returning the defragged mbuf to the
caller instead. Update bwn_pio_tx_start() similarly for consistency.

Reported by: Ilja Van Sprundel
Reviewed by: landonf
Tested by: landonf
MFC after: 3 days
admbug: 820
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18342
12/12/2018
3:23 pm
base/head
emaste
head
Modificado:
head/Makefile.inc1
Log:
Makefile.inc1: update stale wpa dependency removal statement

Only stale .depend files are removed; do not mention object files.
12/12/2018
1:43 pm
base/head
dab
head/sys/dev/asmc
Modificado:
head/sys/dev/asmc/asmc.c
head/sys/dev/asmc/asmcvar.h
Log:
asmc: Add Support for Macbook Pro 8,1

PR: 217505
Submitted by: John O. Brickley , updated by Maciej Pasternacki
Reported by: John O. Brickley
MFC after: 1 week
12/12/2018
9:51 am
base/head
hselasky
head/contrib/tcpdump
Modificado:
head/contrib/tcpdump/tcpdump.c
Log:
Don't register IOCTLs with capsicum when there is no valid file descriptor.
This fixes tcpdump when using mlx5_X devices.

Differential Revision: https://reviews.freebsd.org/D18499
Reviewed by: kib@, slavash@, oshogbo@
MFC after: 1 week
Sponsored by: Mellanox Technologies
12/12/2018
5:48 am
base/head
cem
head/sys/geom/mirror
Modificado:
head/sys/geom/mirror/g_mirror.c
Log:
gmirror: Fix a bug introduced in r341674

r341674 inadvertently introduced a bug where newer mirror components being
tasted would clear the high sc_flags that are not controlled by component
metadata, such as G_MIRROR_DEVICE_FLAG_TASTING. This could plausibly expose
a small window of time during STARTING where device destruction might race
with mirror component addition, probably resulting in a crash.

Reviewed by: markj
X-MFC-With: r341674
Differential Revision: https://reviews.freebsd.org/D18521
12/12/2018
5:18 am
base/head
cy
head/usr.sbin/wpa
Modificado:
head/usr.sbin/wpa/Makefile.inc
Log:
Set default ciphers.

Submitted by: jkim@
12/12/2018
4:23 am
base/head
yuripv
in head/lib/libc: regex tests/regex
Modificado:
head/lib/libc/regex/regcomp.c
head/lib/libc/regex/regex2.h
head/lib/libc/regex/utils.h
head/lib/libc/tests/regex/multibyte.sh
Log:
regcomp: reduce size of bitmap for multibyte locales

This fixes the obscure endless loop seen with case-insensitive
patterns containing characters in 128-255 range; originally
found running GNU grep test suite.

Our regex implementation being kludgy translates the characters
in case-insensitive pattern to bracket expression containing both
cases for the character and doesn't correctly handle the case when
original character is in bitmap and the other case is not, falling
into the endless loop going through in p_bracket(), ordinary(),
and bothcases().

Reducing the bitmap to 0-127 range for multibyte locales solves this
as none of these characters have other case mapping outside of bitmap.
We are also safe in the case when the original character outside of
bitmap has other case mapping in the bitmap (there are several of those
in our current ctype maps having unidirectional mapping into bitmap).

Reviewed by: bapt, kevans, pfg
Differential revision: https://reviews.freebsd.org/D18302
12/12/2018
2:33 am
base/head
markj
head/sbin/ping
Modificado:
head/sbin/ping/ping.c
Log:
Use Capsicum helpers in ping(8).

Also use caph_cache_catpages() to ensure that strerror() works when
run with kern.trap_enotcap=1.

Reviewed by: oshogbo
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18514
11/12/2018
10:14 pm
base/head
mckusick
in head: lib/libufs sbin/fsck_ffs sbin/fsirand sbin/newfs
Modificado:
head/lib/libufs/inode.c
head/lib/libufs/libufs.h
head/sbin/fsck_ffs/inode.c
head/sbin/fsck_ffs/main.c
head/sbin/fsirand/fsirand.c
head/sbin/newfs/mkfs.c
head/sys/sys/param.h
head/sys/ufs/ffs/ffs_extern.h
head/sys/ufs/ffs/ffs_inode.c
head/sys/ufs/ffs/ffs_snapshot.c
head/sys/ufs/ffs/ffs_softdep.c
head/sys/ufs/ffs/ffs_subr.c
head/sys/ufs/ffs/ffs_vfsops.c
head/sys/ufs/ufs/dinode.h
Log:
Continuing efforts to provide hardening of FFS. This change adds a
check hash to the filesystem inodes. Access attempts to files
associated with an inode with an invalid check hash will fail with
EINVAL (Invalid argument). Access is reestablished after an fsck
is run to find and validate the inodes with invalid check-hashes.
This check avoids a class of filesystem panics related to corrupted
inodes. The hash is done using crc32c.

Note this check-hash is for the inode itself and not any of its
indirect blocks. Check-hash validation may be extended to also
cover indirect block pointers, but that will be a separate (and
more costly) feature.

Check hashes are added only to UFS2 and not to UFS1 as UFS1 is
primarily used in embedded systems with small memories and low-powered
processors which need as light-weight a filesystem as possible.

Reviewed by: kib
Tested by: Peter Holm
Sponsored by: Netflix
11/12/2018
9:49 pm
base/head
kp
head/tests/sys/netpfil/pf/ioctl
Modificado:
head/tests/sys/netpfil/pf/ioctl/validation.c
Log:
pf tests: Use the ATF cleanup infrastructure in the ioctl tests

Use ATF_TC_CLEANUP(), because that means the cleanup code will get
called even if a test fails. Before it would only be executed if every
test within the body succeeded.

Reported by: Marie Helene Kvello-Aune
MFC after: 2 weeks
11/12/2018
9:45 pm
base/head
kp
head/tests/sys/netpfil/pf/ioctl
Modificado:
head/tests/sys/netpfil/pf/ioctl/validation.c
Log:
pf tests: ioctl tests require root rights

Explicitly mark these tests as requiring root rights. We need to be able
to open /dev/pf.

Reported by: Marie Helene Kvello-Aune
MFC after: 2 weeks
11/12/2018
9:44 pm
base/head
kp
head/sys/netpfil/pf
Modificado:
head/sys/netpfil/pf/pf.c
Log:
pf: Prevent integer overflow in PF when calculating the adaptive timeout.

Mainly states of established TCP connections would be affected resulting
in immediate state removal once the number of states is bigger than
adaptive.start. Disabling adaptive timeouts is a workaround to avoid this bug.
Issue found and initial diff by Mathieu Blanc (mathieu.blanc at cea dot fr)

Reported by: Andreas Longwitz
Obtained from: OpenBSD
MFC after: 2 weeks
11/12/2018
9:16 pm
base/head
bz
head/tools/build/options
Eliminado:
head/tools/build/options/WITHOUT_CVS
Log:
Remove a dead file. CVS was removed in r251794.
11/12/2018
8:47 pm
base/head
mav
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/bhyve.8
head/usr.sbin/bhyve/pci_virtio_scsi.c
Log:
Allow CTL device specification in bhyve virtio-scsi.

There was a large refactoring done in CTL to allow multiple ioctl frontend
ports (and respective devices) to be created, particularly for bhyve.
Unfortunately, respective part of bhyve functionality got lost somehow from
the original virtio-scsi commit. This change allows wanted device path to
be specified in either of two ways:
-s 6,virtio-scsi,/dev/cam/ctl1.1
-s 6,virtio-scsi,dev=/dev/cam/ctl2.3
If neither is specified, the default /dev/cam/ctl device is used.

While there, remove per-queue CTL device opening, which makes no sense at
this point.

Reported by: wg
Reviewed by: araujo
MFC after: 3 days
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D18504
11/12/2018
7:32 pm
base/head
mjg
in head/sys: cddl/compat/opensolaris/kern
Modificado:
head/sys/cddl/compat/opensolaris/kern/opensolaris_policy.c
head/sys/cddl/compat/opensolaris/kern/opensolaris_zone.c
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
head/sys/compat/linux/linux_misc.c
head/sys/compat/linux/linux_uid16.c
head/sys/dev/filemon/filemon_wrapper.c
head/sys/fs/ext2fs/ext2_vnops.c
head/sys/fs/fuse/fuse_internal.c
head/sys/fs/fuse/fuse_vnops.c
head/sys/fs/msdosfs/msdosfs_vnops.c
head/sys/fs/nandfs/nandfs_vnops.c
head/sys/fs/nfs/nfs_commonsubs.c
head/sys/fs/nfsserver/nfs_nfsdport.c
head/sys/fs/tmpfs/tmpfs_subr.c
head/sys/fs/tmpfs/tmpfs_vnops.c
head/sys/kern/kern_exec.c
head/sys/kern/kern_fork.c
head/sys/kern/kern_priv.c
head/sys/kern/kern_prot.c
head/sys/kern/subr_acl_nfs4.c
head/sys/kern/subr_acl_posix1e.c
head/sys/kern/uipc_mqueue.c
head/sys/kern/uipc_sem.c
head/sys/kern/uipc_shm.c
head/sys/kern/vfs_mount.c
head/sys/kern/vfs_subr.c
head/sys/kern/vfs_syscalls.c
head/sys/net/if_tap.c
head/sys/net/if_tun.c
head/sys/netinet/in_pcb.c
head/sys/netinet6/in6_pcb.c
head/sys/netinet6/ip6_output.c
head/sys/netipsec/ipsec_pcb.c
head/sys/netsmb/smb_subr.h
head/sys/security/audit/audit_syscalls.c
head/sys/security/mac/mac_net.c
head/sys/security/mac_bsdextended/mac_bsdextended.c
head/sys/security/mac_lomac/mac_lomac.c
head/sys/security/mac_partition/mac_partition.c
head/sys/security/mac_portacl/mac_portacl.c
head/sys/security/mac_seeotheruids/mac_seeotheruids.c
head/sys/sys/priv.h
head/sys/ufs/ffs/ffs_alloc.c
head/sys/ufs/ffs/ffs_softdep.c
head/sys/ufs/ffs/ffs_vnops.c
head/sys/ufs/ufs/ufs_quota.c
head/sys/ufs/ufs/ufs_vnops.c
head/sys/vm/vm_mmap.c
Log:
Remove unused argument to priv_check_cred.

Patch mostly generated with cocinnelle:

@@
expression E1,E2;
@@

- priv_check_cred(E1,E2,0)
+ priv_check_cred(E1,E2)

Sponsored by: The FreeBSD Foundation
11/12/2018
5:46 pm
base/head
shurd
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Fix !tx_abdicate error from r336560

r336560 was supposed to restore pre-r323954 behaviour when tx_abdicate is
not set (the default case). However, it appears that rather than the drainage
check being made conditional on tx_abdicate being set, it was duplicated
so it occured twice if tx_abdicate was set and once if it was not.

Now when !tx_abdicate, drainage is only checked if the doorbell isn't
pending.

Reported by: lev
MFC after: 1 week
Sponsored by: Limelight Networks
11/12/2018
5:14 pm
base/head
mjg
head/sys/security/audit
Modificado:
head/sys/security/audit/audit.h
Log:
audi: replace open-coded TDP_AUDITREC checks with the macro

Sponsored by: The FreeBSD Foundation
11/12/2018
4:49 pm
base/head
markj
head/sys/x86/x86
Modificado:
head/sys/x86/x86/ucode.c
Log:
Fix the PAE kernel gcc build.

The error was caused by map_ucode() casting a vm_paddr_t to a void *.
Use a uintptr_t instead to match the caller. Fix some style bugs while
here.

Reported by: bde
Reviewed by: bde
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
11/12/2018
4:35 pm
base/head
dab
head/sys/dev/asmc
Modificado:
head/sys/dev/asmc/asmc.c
head/sys/dev/asmc/asmcvar.h
Log:
asmc: Add Support for MacBookAir 7,1 and 7,2

PR: 226172
Submitted by: James Wright
Reported by: James Wright
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18396
11/12/2018
12:08 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_descrip.c
Log:
fd: dedup code in sys_getdtablesize

Sponsored by: The FreeBSD Foundation
11/12/2018
12:01 pm
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_resource.c
head/sys/sys/resourcevar.h
Log:
Make lim_cur inline if possible.

It is a function call only to accomodate *some* ABIs which install a hook.
They only care for 3 types of limits: DATA, STACK, VMEM

Instead of always calling the func, see at compilation time if the requested
limit is something else and just do the read if so.

Sponsored by: The FreeBSD Foundation
11/12/2018
11:58 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_descrip.c
Log:
fd: tidy up closing a fd

- avoid a call to knote_close in the common case
- annotate mqueue as unlikely

Sponsored by: The FreeBSD Foundation
11/12/2018
11:57 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_descrip.c
Log:
fd: stop looking for exact freefile after allocation

If a lower fd is closed later, the lookup goes to waste. Allocation
always performs the lookup anyway.

Sponsored by: The FreeBSD Foundation
11/12/2018
11:13 am
base/head
andrew
head/sys/arm64/acpica
Modificado:
head/sys/arm64/acpica/acpi_machdep.c
Log:
Only read the ACPI proximity tabled on arm64 when we are booting from
ACPI.

Sponsored by: DARPA, AFRL
11/12/2018
5:10 am
base/head
delphij
head/sys/dev/ahci
Modificado:
head/sys/dev/ahci/ahci_pci.c
Log:
Remove questionable initialization for ICH8M, rely on BIOS to properly
initialize the controller.

According to the datasheet, the old code checks if port 2 (P2E, 0x4) was
the only enabled port (except port 0, which was ignored by mask 0xfe),
and issue a write to the PCS register to disable all but port 0, right
before ahci_ctlr_reset.

Some other operating systems would issue a port enable to all ports, but
since the current code only does the special initialization for ICH8M,
it entirely and rely on BIOS to do the right thing (the alternative
would be https://reviews.freebsd.org/D18300?id=50922 , should we see
reports that we really need to do it).

Reviewed by: mav
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D18300
11/12/2018
2:54 am
base/head
kib
in head/sys: kern x86/x86
Modificado:
head/sys/kern/kern_thread.c
head/sys/x86/x86/mp_x86.c
Log:
Free bootstacks after AP startup.

Bootstacks are unused after APs executed sched_throw() in
init_secondary_tail() and started executing on proper idle thread
stack. Add sysinit that detects that the idle thread for each CPU was
scheduled at least once, and free corresponding bootstack.

Slight addition of the code (~200 bytes) is compensated by the saving,
because even on typical small modern desktop CPU we leak 128K of
memory otherwise (4 pages x 8 threads).

Reviewed by: jhb
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18486
11/12/2018
2:48 am
base/head
kib
in head: lib/libc/sys sys/kern
Modificado:
head/lib/libc/sys/getfh.2
head/sys/kern/vfs_syscalls.c
Log:
Remove special case handling for getfhat(fd, NULL, handle).

There is no reason for it to behave differently from openat(fd, NULL).
Also the handling did not worked because the substituted path was from
the system address space, causing EFAULT.

Submitted by: Jack Halford
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18501
11/12/2018
2:16 am
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Remove an unused malloc(9) type.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation
11/12/2018
2:15 am
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Use inline tests for individual PTE bits in the RISC-V pmap.

Inline tests for PTE_* bits are easy to read and don't really require a
predicate function, and predicates which operate on a pt_entry_t are
inconvenient when working with L1 and L2 page table entries.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18461
11/12/2018
2:14 am
base/head
dab
head/share/vt/keymaps
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB95A1311F3D;
Tue, 11 Dec 2018 02:14:41 +0000 (UTC) (envelope-from dab@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 5101B7C40C;
Tue, 11 Dec 2018 02:14:41 +0000 (UTC) (envelope-from dab@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 32CF428A13;
Tue, 11 Dec 2018 02:14:41 +0000 (UTC) (envelope-from dab@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBB2EfvC027073;
Tue, 11 Dec 2018 02:14:41 GMT (envelope-from dab@FreeBSD.org)
Received: (from dab@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBB2EeYl027070;
Tue, 11 Dec 2018 02:14:40 GMT (envelope-from dab@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: dab set sender to dab@FreeBSD.org
using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
11/12/2018
2:03 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/locore.S
Log:
powerpc/booke: Don't get and use the load offset for TOC on APs

The code was a near exact copy of the code in startup, but it doesn't need
the complexity since the kernel is already relocated. With
VM_MIN_KERNEL_ADDRESS as currently set to KERNBASE, this doesn't cause a
problem, because it's a zero offset. However, when KERNBASE is changed to a
physical load address, it then has a non-zero offset, and ends up with an
invalid stack pointer, causing the AP to hang.
11/12/2018
1:38 am
base/head
cem
head/libexec/rc
Modificado:
head/libexec/rc/rc.subr
Log:
rc.subr: Implement list_vars without using 'read'

'read' pessimistically read(2)s one byte at a time, which can be quite
silly for large environments in slow emulators.

In my boring user environment, truss shows that the number of read()
syscalls to source rc.subr and invoke list_vars is reduced by something like
3400 to 60. ministat(1) shows a significant time difference of about -71%
for my environment.

Suggested by: jilles
Discussed with: dteske, jhb, jilles
Differential Revision: https://reviews.freebsd.org/D18481
10/12/2018
9:47 pm
base/head
jhb
head/usr.bin/truss
Modificado:
head/usr.bin/truss/main.c
Log:
Validate the string size parameter passed to -s.

Use strtonum() to reject negative sizes instead of core dumping.

PR: 232206
Submitted by: David Carlier
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17537
10/12/2018
9:33 pm
base/head
imp
head/sys/mips/conf
Eliminado:
head/sys/mips/conf/ADM5120.hints
head/sys/mips/conf/IDT.hints
Log:
Remove stray hints files.
10/12/2018
7:39 pm
base/head
jhb
in head: sys/kern tests/sys/kern
Modificado:
head/sys/kern/kern_sig.c
head/tests/sys/kern/ptrace_test.c
Log:
Don't report stale signal information for non-signal events in ptrace_lwpinfo.

Once a signal's siginfo was copied to 'td_si' as part of the signal
exchange in issignal(), it was never cleared. This caused future
thread events that are reported as SIGTRAP events without signal
information to report the stale siginfo in 'td_si'. For example, if a
debugger created a new process and used SIGSTOP to stop it after
PT_ATTACH, future system call entry / exit events would set PL_FLAG_SI
with the SIGSTOP siginfo in pl_siginfo. This broke 'catch syscall' in
current versions of gdb as it assumed PL_FLAG_SI with SIGTRAP
indicates a breakpoint or single step trap.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18487
10/12/2018
4:23 pm
base/head
ae
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw2.c
Log:
Rework how protocol number is tracked in rule. Save it when O_PROTO
opcode will be printed. This should solve the problem, when protocol
name is not printed in `ipfw -N show`.

Reported by: Claudio Eichenberger
MFC after: 1 week
10/12/2018
3:42 pm
base/head
ae
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw2.c
Log:
Use correct size for IPv4 address in gethostbyaddr().

When u_long is 8 bytes, it returns EINVAL and 'ipfw -N show' doesn't work.

Reported by: Claudio Eichenberger
MFC after: 1 week
10/12/2018
2:54 pm
base/head
luporl
in head/sys/powerpc: aim include powerpc
Modificado:
head/sys/powerpc/aim/aim_machdep.c
head/sys/powerpc/include/trap.h
head/sys/powerpc/powerpc/db_trace.c
head/sys/powerpc/powerpc/trap.c
Log:
ppc64: handle exception 0x1500 (soft patch)

This change adds a hypervisor trap handler for exception 0x1500 (soft patch),
normalizing all VSX registers and returning.
This avoids a kernel panic due to unknown exception.

Change made with the collaboration of leonardo.bianconi_eldorado.org.br,
that found out that this is a hypervisor exception and not a supervisor one,
and fixed this in the code.

Reviewed by: jhibbits, sbruno
Differential Revision: https://reviews.freebsd.org/D17806
10/12/2018
2:50 pm
base/head
emaste
head
Modificado:
head/Makefile.inc1
Log:
Clean stale wpa dependencies and objects after r341759

The wpa update added some source files with the same name as a file in
another directory (found via .PATH in the previous version). Having a
stale entry in a .depend file means the new file won't be built, so test
for this case and if found remove all of wpa's dependency files.

MFC with: r341759
Sponsored by: The FreeBSD Foundation
10/12/2018
2:39 pm
base/head
eugen
head/sbin/ping
Modificado:
head/sbin/ping/ping.c
Log:
ping(8): add space after "<=" as per style(9).

MFC after: 1 week
X-MFC-with: r341768
10/12/2018
1:41 pm
base/head
hselasky
head/sys/compat/linuxkpi/common/include/asm
Modificado:
head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
head/sys/compat/linuxkpi/common/include/asm/atomic.h
Log:
Remove no longer needed ifdefs in the LinuxKPI, after r341787.

Differential Revision: https://reviews.freebsd.org/D18450
Reviewed by: kib@
MFC after: 3 days
Sponsored by: Mellanox Technologies
10/12/2018
1:38 pm
base/head
hselasky
in head/sys: arm/include mips/include powerpc/include
Modificado:
head/sys/arm/include/atomic.h
head/sys/mips/include/atomic.h
head/sys/powerpc/include/atomic.h
Log:
Implement atomic_swap_xxx() for all platforms.

Differential Revision: https://reviews.freebsd.org/D18450
Reviewed by: kib@
MFC after: 3 days
Sponsored by: Mellanox Technologies
10/12/2018
9:45 am
base/head
avos
in head/sys/dev: rtwn/usb usb usb/wlan
Modificado:
head/sys/dev/rtwn/usb/rtwn_usb_attach.h
head/sys/dev/usb/usbdevs
head/sys/dev/usb/wlan/if_rsu.c
Log:
rtwn, rsu: add more USB ids.

PR: 233638
Submitted by: cezary.sliwa@gmail.com
MFC after: 3 days
10/12/2018
9:35 am
base/head
arybchik
head/sys/dev/sfxge
Modificado:
head/sys/dev/sfxge/sfxge.c
head/sys/dev/sfxge/sfxge_ev.c
head/sys/dev/sfxge/sfxge_tx.c
head/sys/dev/sfxge/sfxge_tx.h
Log:
sfxge(4): prepare the number of Tx queues on event queue 0 to become variable

The number of Tx queues on event queue 0 can depend on the NIC family type,
and this property will be leveraged by future patches.
This patch prepares the code for this change.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18389
10/12/2018
9:36 am
base/head
arybchik
head/sys/dev/sfxge
Modificado:
head/sys/dev/sfxge/sfxge.c
head/sys/dev/sfxge/sfxge.h
head/sys/dev/sfxge/sfxge_ev.c
head/sys/dev/sfxge/sfxge_tx.c
head/sys/dev/sfxge/sfxge_tx.h
Log:
sfxge(4): use n Tx queues instead of n + 2 on EF10 HW

On EF10 HW we can avoid sending packets without checksum offload
or with IP-only checksum offload to dedicated queues. Instead, we
can use option descriptors to change offload policy on any queue
during runtime. Thus, we don't need to create two dedicated queues.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18390
10/12/2018
9:35 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): report support for Tx checksum op descriptors

FreeBSD driver needs a patch to provide a means for packets
which do not need checksum offload but have flow ID set
to avoid hitting only the first Tx queue (which has been used
for packets not needing checksum offload).

This should be possible on Huntington, Medford or Medford2 chips
since these support toggling checksum offload on any given queue
dynamically by means of pushing option descriptors.

The patch for FreeBSD driver will then need a means to figure out
whether the feature can be used, and testing adapter family might
not be a good solution.

This patch adds a feature bit specifically to indicate support
for checksum option descriptors. The new feature bits may have
more users in future, apart from the mentioned FreeBSD patch.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18388
10/12/2018
9:35 am
base/head
arybchik
head/sys/dev/sfxge
Modificado:
head/sys/dev/sfxge/sfxge.h
head/sys/dev/sfxge/sfxge_ev.c
Log:
sfxge(4): populate per-event queue stats in sysctl

In order to find out why the first event queue and corresponding
interrupt is triggered more frequent, it is useful to know which
events go to each event queue.

Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18418
10/12/2018
4:16 am
base/head
jhibbits
head/sys/powerpc/mpc85xx
Modificado:
head/sys/powerpc/mpc85xx/platform_mpc85xx.c
Log:
powerpc/booke: Replace a logical equivalent of pmap_kextract() with a real call

No sense in reinventing the wheel here. AP bringup is not a time-critical
point.
10/12/2018
1:52 am
base/head
jhibbits
head/stand/powerpc/uboot
Adicional:
head/stand/powerpc/uboot/ppc64_elf_freebsd.c (contents, props changed)
Modificado:
head/stand/powerpc/uboot/Makefile
head/stand/powerpc/uboot/conf.c
Log:
powerpc/ubldr: Teach powerpc's ubldr to boot 64-bit kernels

This is just a copy of powerpc/ofw's ppc64_elf_freebsd.c modified to fit
ubldr's boot format.

MFC after: 1 week
09/12/2018
9:53 pm
base/head
imp
head/sys/modules
Modificado:
head/sys/modules/Makefile
Log:
Fix typo in powerpcspe name.
09/12/2018
9:37 pm
base/head
imp
head/sys/cam/scsi
Modificado:
head/sys/cam/scsi/scsi_all.c
Log:
Send a START UNIT command when a disk responds with an ASC of 04/1C.
This will hopefully spin up a disk that's in low-power mode.

Sponsored by: Netflix
Submitted by: scottl@
09/12/2018
9:11 pm
base/head
eugen
head/sbin/ping
Modificado:
head/sbin/ping/ping.c
Log:
ping(8): remove needless comparision with LONG_MAX
after unsigned long ultmp changed to long ltmp in r340245.

MFC after: 1 week
09/12/2018
5:55 pm
base/head
alc
head/sys/kern
Modificado:
head/sys/kern/subr_blist.c
Log:
blst_leaf_alloc updates bighint for a leaf when an allocation is successful
and includes the last block represented by the leaf. The reasoning is that,
if the last block is included, then there must be no solution before that
one in the leaf, so the leaf cannot provide an allocation that big again;
indeed, the leaf cannot provide a solution bigger than range1.

Which is all correct, except that if the value of blk passed in did not
represent the first block of the leaf, because the cursor was pointing to
the middle of the leaf, then a possible solution before the cursor may have
been ignored, and bighint cannot be updated.

Consider the sequence allocate 63 (returning address 0), free 0,63 (freeing
that same block, and allocate 1 (returning 63). The result is that one
block is allocated from the first leaf, and the value of bighint is 0, so
that nothing can be allocated from that leaf until the only block allocated
from that leaf is freed. This change detects that skipped-over solution,
and when there is one it makes sure that the value of bighint is not changed
when the last block is allocated.

Submitted by: Doug Moore
Tested by: pho
X-MFC with: r340402
Differential Revision: https://reviews.freebsd.org/D18474
09/12/2018
3:34 pm
base/head
bde
head/sys/dev/md
Modificado:
head/sys/dev/md/md.c
Log:
Fix devstat on md devices.

devstat_end_transaction() was called before the i/o was actually ended
(by delivering it to GEOM), so at least the i/o length was messed up.
It was always recorded as 0, so the average transaction size and the
average transfer rate was always displayed as 0.

devstat_end_transaction() was not called at all for the error case, so
there were sometimes multiple starts per end. I didn't observe this in
practice and don't know if it did much damage. I think it extended the
length of the i/o to the next transaction.

Reviewed by: kib
09/12/2018
6:45 am
base/head
cy
in head: contrib/wpa contrib/wpa/hostapd
Adicional:
head/contrib/wpa/src/ap/dpp_hostapd.c
- copied unchanged from r341619, vendor/wpa/dist/src/ap/dpp_hostapd.c
head/contrib/wpa/src/ap/dpp_hostapd.h
- copied unchanged from r341619, vendor/wpa/dist/src/ap/dpp_hostapd.h
head/contrib/wpa/src/ap/eth_p_oui.c
- copied unchanged from r341619, vendor/wpa/dist/src/ap/eth_p_oui.c
head/contrib/wpa/src/ap/eth_p_oui.h
- copied unchanged from r341619, vendor/wpa/dist/src/ap/eth_p_oui.h
head/contrib/wpa/src/ap/fils_hlp.c
- copied unchanged from r341619, vendor/wpa/dist/src/ap/fils_hlp.c
head/contrib/wpa/src/ap/fils_hlp.h
- copied unchanged from r341619, vendor/wpa/dist/src/ap/fils_hlp.h
head/contrib/wpa/src/ap/gas_query_ap.c
- copied unchanged from r341619, vendor/wpa/dist/src/ap/gas_query_ap.c
head/contrib/wpa/src/ap/gas_query_ap.h
- copied unchanged from r341619, vendor/wpa/dist/src/ap/gas_query_ap.h
head/contrib/wpa/src/ap/ieee802_11_he.c
- copied unchanged from r341619, vendor/wpa/dist/src/ap/ieee802_11_he.c
head/contrib/wpa/src/common/dhcp.h
- copied, changed from r341619, vendor/wpa/dist/src/common/dhcp.h
head/contrib/wpa/src/common/dpp.c
- copied unchanged from r341619, vendor/wpa/dist/src/common/dpp.c
head/contrib/wpa/src/common/dpp.h
- copied unchanged from r341619, vendor/wpa/dist/src/common/dpp.h
head/contrib/wpa/src/common/gas_server.c
- copied unchanged from r341619, vendor/wpa/dist/src/common/gas_server.c
head/contrib/wpa/src/common/gas_server.h
- copied unchanged from r341619, vendor/wpa/dist/src/common/gas_server.h
head/contrib/wpa/src/crypto/crypto_linux.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/crypto_linux.c
head/contrib/wpa/src/crypto/crypto_nettle.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/crypto_nettle.c
head/contrib/wpa/src/crypto/crypto_wolfssl.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/crypto_wolfssl.c
head/contrib/wpa/src/crypto/fips_prf_wolfssl.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/fips_prf_wolfssl.c
head/contrib/wpa/src/crypto/sha384-kdf.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/sha384-kdf.c
head/contrib/wpa/src/crypto/sha384.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/sha384.c
head/contrib/wpa/src/crypto/sha512-kdf.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/sha512-kdf.c
head/contrib/wpa/src/crypto/sha512-prf.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/sha512-prf.c
head/contrib/wpa/src/crypto/sha512.h
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/sha512.h
head/contrib/wpa/src/crypto/tls_wolfssl.c
- copied unchanged from r341619, vendor/wpa/dist/src/crypto/tls_wolfssl.c
head/contrib/wpa/src/drivers/driver_macsec_linux.c
- copied unchanged from r341619, vendor/wpa/dist/src/drivers/driver_macsec_linux.c
head/contrib/wpa/src/drivers/driver_wired_common.c
- copied unchanged from r341619, vendor/wpa/dist/src/drivers/driver_wired_common.c
head/contrib/wpa/src/drivers/driver_wired_common.h
- copied unchanged from r341619, vendor/wpa/dist/src/drivers/driver_wired_common.h
head/contrib/wpa/src/utils/crc32.c
- copied unchanged from r341619, vendor/wpa/dist/src/utils/crc32.c
head/contrib/wpa/src/utils/crc32.h
- copied unchanged from r341619, vendor/wpa/dist/src/utils/crc32.h
head/contrib/wpa/src/utils/json.c
- copied unchanged from r341619, vendor/wpa/dist/src/utils/json.c
head/contrib/wpa/src/utils/json.h
- copied unchanged from r341619, vendor/wpa/dist/src/utils/json.h
head/contrib/wpa/wpa_supplicant/dpp_supplicant.c
- copied unchanged from r341619, vendor/wpa/dist/wpa_supplicant/dpp_supplicant.c
head/contrib/wpa/wpa_supplicant/dpp_supplicant.h
- copied unchanged from r341619, vendor/wpa/dist/wpa_supplicant/dpp_supplicant.h
head/contrib/wpa/wpa_supplicant/examples/dpp-qrcode.py
- copied unchanged from r341619, vendor/wpa/dist/wpa_supplicant/examples/dpp-qrcode.py
head/contrib/wpa/wpa_supplicant/op_classes.c
- copied unchanged from r341619, vendor/wpa/dist/wpa_supplicant/op_classes.c
head/contrib/wpa/wpa_supplicant/rrm.c
- copied unchanged from r341619, vendor/wpa/dist/wpa_supplicant/rrm.c
Eliminado:
head/contrib/wpa/src/ap/peerkey_auth.c
head/contrib/wpa/src/rsn_supp/peerkey.c
head/contrib/wpa/src/rsn_supp/peerkey.h
Modificado:
head/contrib/wpa/CONTRIBUTIONS
head/contrib/wpa/COPYING
head/contrib/wpa/README
head/contrib/wpa/hostapd/ChangeLog
head/contrib/wpa/hostapd/README
head/contrib/wpa/hostapd/config_file.c
head/contrib/wpa/hostapd/config_file.h
head/contrib/wpa/hostapd/ctrl_iface.c
head/contrib/wpa/hostapd/defconfig
head/contrib/wpa/hostapd/hlr_auc_gw.c
head/contrib/wpa/hostapd/hostapd.conf
head/contrib/wpa/hostapd/hostapd.eap_user_sqlite
head/contrib/wpa/hostapd/hostapd_cli.c
head/contrib/wpa/hostapd/main.c
head/contrib/wpa/hs20/client/est.c
head/contrib/wpa/hs20/client/oma_dm_client.c
head/contrib/wpa/hs20/client/osu_client.c
head/contrib/wpa/hs20/client/osu_client.h
head/contrib/wpa/src/ap/acs.c
head/contrib/wpa/src/ap/acs.h
head/contrib/wpa/src/ap/ap_config.c
head/contrib/wpa/src/ap/ap_config.h
head/contrib/wpa/src/ap/ap_drv_ops.c
head/contrib/wpa/src/ap/ap_drv_ops.h
head/contrib/wpa/src/ap/ap_mlme.c
head/contrib/wpa/src/ap/authsrv.c
head/contrib/wpa/src/ap/beacon.c
head/contrib/wpa/src/ap/beacon.h
head/contrib/wpa/src/ap/bss_load.c
head/contrib/wpa/src/ap/ctrl_iface_ap.c
head/contrib/wpa/src/ap/ctrl_iface_ap.h
head/contrib/wpa/src/ap/dfs.c
head/contrib/wpa/src/ap/dfs.h
head/contrib/wpa/src/ap/dhcp_snoop.c
head/contrib/wpa/src/ap/drv_callbacks.c
head/contrib/wpa/src/ap/eap_user_db.c
head/contrib/wpa/src/ap/gas_serv.c
head/contrib/wpa/src/ap/gas_serv.h
head/contrib/wpa/src/ap/hostapd.c
head/contrib/wpa/src/ap/hostapd.h
head/contrib/wpa/src/ap/hs20.c
head/contrib/wpa/src/ap/hs20.h
head/contrib/wpa/src/ap/hw_features.c
head/contrib/wpa/src/ap/ieee802_11.c
head/contrib/wpa/src/ap/ieee802_11.h
head/contrib/wpa/src/ap/ieee802_11_auth.c
head/contrib/wpa/src/ap/ieee802_11_auth.h
head/contrib/wpa/src/ap/ieee802_11_ht.c
head/contrib/wpa/src/ap/ieee802_11_shared.c
head/contrib/wpa/src/ap/ieee802_11_vht.c
head/contrib/wpa/src/ap/ieee802_1x.c
head/contrib/wpa/src/ap/ieee802_1x.h
head/contrib/wpa/src/ap/ndisc_snoop.c
head/contrib/wpa/src/ap/neighbor_db.c
head/contrib/wpa/src/ap/neighbor_db.h
head/contrib/wpa/src/ap/pmksa_cache_auth.c
head/contrib/wpa/src/ap/pmksa_cache_auth.h
head/contrib/wpa/src/ap/rrm.c
head/contrib/wpa/src/ap/rrm.h
head/contrib/wpa/src/ap/sta_info.c
head/contrib/wpa/src/ap/sta_info.h
head/contrib/wpa/src/ap/taxonomy.c
head/contrib/wpa/src/ap/tkip_countermeasures.c
head/contrib/wpa/src/ap/vlan_init.c
head/contrib/wpa/src/ap/wmm.c
head/contrib/wpa/src/ap/wnm_ap.c
head/contrib/wpa/src/ap/wnm_ap.h
head/contrib/wpa/src/ap/wpa_auth.c
head/contrib/wpa/src/ap/wpa_auth.h
head/contrib/wpa/src/ap/wpa_auth_ft.c
head/contrib/wpa/src/ap/wpa_auth_glue.c
head/contrib/wpa/src/ap/wpa_auth_i.h
head/contrib/wpa/src/ap/wpa_auth_ie.c
head/contrib/wpa/src/ap/wpa_auth_ie.h
head/contrib/wpa/src/ap/wps_hostapd.c
head/contrib/wpa/src/common/common_module_tests.c
head/contrib/wpa/src/common/ctrl_iface_common.c
head/contrib/wpa/src/common/ctrl_iface_common.h
head/contrib/wpa/src/common/defs.h
head/contrib/wpa/src/common/gas.c
head/contrib/wpa/src/common/gas.h
head/contrib/wpa/src/common/hw_features_common.c
head/contrib/wpa/src/common/hw_features_common.h
head/contrib/wpa/src/common/ieee802_11_common.c
head/contrib/wpa/src/common/ieee802_11_common.h
head/contrib/wpa/src/common/ieee802_11_defs.h
head/contrib/wpa/src/common/ieee802_1x_defs.h
head/contrib/wpa/src/common/privsep_commands.h
head/contrib/wpa/src/common/qca-vendor.h
head/contrib/wpa/src/common/sae.c
head/contrib/wpa/src/common/sae.h
head/contrib/wpa/src/common/version.h
head/contrib/wpa/src/common/wpa_common.c
head/contrib/wpa/src/common/wpa_common.h
head/contrib/wpa/src/common/wpa_ctrl.h
head/contrib/wpa/src/common/wpa_helpers.c
head/contrib/wpa/src/crypto/aes-ctr.c
head/contrib/wpa/src/crypto/aes-internal-dec.c
head/contrib/wpa/src/crypto/aes-internal-enc.c
head/contrib/wpa/src/crypto/aes-siv.c
head/contrib/wpa/src/crypto/aes.h
head/contrib/wpa/src/crypto/aes_siv.h
head/contrib/wpa/src/crypto/aes_wrap.h
head/contrib/wpa/src/crypto/crypto.h
head/contrib/wpa/src/crypto/crypto_gnutls.c
head/contrib/wpa/src/crypto/crypto_internal-modexp.c
head/contrib/wpa/src/crypto/crypto_libtomcrypt.c
head/contrib/wpa/src/crypto/crypto_module_tests.c
head/contrib/wpa/src/crypto/crypto_none.c
head/contrib/wpa/src/crypto/crypto_openssl.c
head/contrib/wpa/src/crypto/des-internal.c
head/contrib/wpa/src/crypto/dh_groups.c
head/contrib/wpa/src/crypto/ms_funcs.c
head/contrib/wpa/src/crypto/ms_funcs.h
head/contrib/wpa/src/crypto/random.c
head/contrib/wpa/src/crypto/sha1-internal.c
head/contrib/wpa/src/crypto/sha256-internal.c
head/contrib/wpa/src/crypto/sha256-kdf.c
head/contrib/wpa/src/crypto/sha384-prf.c
head/contrib/wpa/src/crypto/sha384.h
head/contrib/wpa/src/crypto/tls.h
head/contrib/wpa/src/crypto/tls_gnutls.c
head/contrib/wpa/src/crypto/tls_internal.c
head/contrib/wpa/src/crypto/tls_none.c
head/contrib/wpa/src/crypto/tls_openssl.c
head/contrib/wpa/src/drivers/driver.h
head/contrib/wpa/src/drivers/driver_common.c
head/contrib/wpa/src/drivers/driver_macsec_qca.c
head/contrib/wpa/src/drivers/driver_ndis.c
head/contrib/wpa/src/drivers/driver_nl80211.h
head/contrib/wpa/src/drivers/driver_nl80211_capa.c
head/contrib/wpa/src/drivers/driver_nl80211_event.c
head/contrib/wpa/src/drivers/driver_nl80211_monitor.c
head/contrib/wpa/src/drivers/driver_nl80211_scan.c
head/contrib/wpa/src/drivers/driver_privsep.c
head/contrib/wpa/src/drivers/driver_wired.c
head/contrib/wpa/src/drivers/drivers.c
head/contrib/wpa/src/eap_common/eap_eke_common.c
head/contrib/wpa/src/eap_common/eap_fast_common.c
head/contrib/wpa/src/eap_common/eap_pwd_common.c
head/contrib/wpa/src/eap_common/eap_pwd_common.h
head/contrib/wpa/src/eap_common/eap_sim_common.c
head/contrib/wpa/src/eap_peer/eap.c
head/contrib/wpa/src/eap_peer/eap.h
head/contrib/wpa/src/eap_peer/eap_aka.c
head/contrib/wpa/src/eap_peer/eap_config.h
head/contrib/wpa/src/eap_peer/eap_eke.c
head/contrib/wpa/src/eap_peer/eap_fast.c
head/contrib/wpa/src/eap_peer/eap_fast_pac.c
head/contrib/wpa/src/eap_peer/eap_gpsk.c
head/contrib/wpa/src/eap_peer/eap_i.h
head/contrib/wpa/src/eap_peer/eap_ikev2.c
head/contrib/wpa/src/eap_peer/eap_leap.c
head/contrib/wpa/src/eap_peer/eap_mschapv2.c
head/contrib/wpa/src/eap_peer/eap_pax.c
head/contrib/wpa/src/eap_peer/eap_peap.c
head/contrib/wpa/src/eap_peer/eap_proxy.h
head/contrib/wpa/src/eap_peer/eap_proxy_dummy.c
head/contrib/wpa/src/eap_peer/eap_psk.c
head/contrib/wpa/src/eap_peer/eap_pwd.c
head/contrib/wpa/src/eap_peer/eap_sake.c
head/contrib/wpa/src/eap_peer/eap_sim.c
head/contrib/wpa/src/eap_peer/eap_tls.c
head/contrib/wpa/src/eap_peer/eap_tls_common.c
head/contrib/wpa/src/eap_peer/eap_tls_common.h
head/contrib/wpa/src/eap_peer/eap_ttls.c
head/contrib/wpa/src/eap_peer/ikev2.c
head/contrib/wpa/src/eap_peer/tncc.c
head/contrib/wpa/src/eap_server/eap.h
head/contrib/wpa/src/eap_server/eap_i.h
head/contrib/wpa/src/eap_server/eap_server.c
head/contrib/wpa/src/eap_server/eap_server_aka.c
head/contrib/wpa/src/eap_server/eap_server_eke.c
head/contrib/wpa/src/eap_server/eap_server_fast.c
head/contrib/wpa/src/eap_server/eap_server_gpsk.c
head/contrib/wpa/src/eap_server/eap_server_gtc.c
head/contrib/wpa/src/eap_server/eap_server_ikev2.c
head/contrib/wpa/src/eap_server/eap_server_mschapv2.c
head/contrib/wpa/src/eap_server/eap_server_pax.c
head/contrib/wpa/src/eap_server/eap_server_psk.c
head/contrib/wpa/src/eap_server/eap_server_pwd.c
head/contrib/wpa/src/eap_server/eap_server_sake.c
head/contrib/wpa/src/eap_server/eap_server_sim.c
head/contrib/wpa/src/eap_server/eap_server_tls.c
head/contrib/wpa/src/eap_server/eap_server_tls_common.c
head/contrib/wpa/src/eap_server/eap_server_ttls.c
head/contrib/wpa/src/eap_server/eap_server_wsc.c
head/contrib/wpa/src/eap_server/eap_tls_common.h
head/contrib/wpa/src/eap_server/ikev2.c
head/contrib/wpa/src/eap_server/tncs.c
head/contrib/wpa/src/eapol_auth/eapol_auth_sm.c
head/contrib/wpa/src/eapol_auth/eapol_auth_sm.h
head/contrib/wpa/src/eapol_supp/eapol_supp_sm.c
head/contrib/wpa/src/eapol_supp/eapol_supp_sm.h
head/contrib/wpa/src/fst/fst_ctrl_aux.h
head/contrib/wpa/src/fst/fst_ctrl_iface.c
head/contrib/wpa/src/fst/fst_group.c
head/contrib/wpa/src/fst/fst_iface.h
head/contrib/wpa/src/fst/fst_session.c
head/contrib/wpa/src/l2_packet/l2_packet.h
head/contrib/wpa/src/l2_packet/l2_packet_privsep.c
head/contrib/wpa/src/p2p/p2p.c
head/contrib/wpa/src/p2p/p2p.h
head/contrib/wpa/src/p2p/p2p_go_neg.c
head/contrib/wpa/src/p2p/p2p_group.c
head/contrib/wpa/src/p2p/p2p_i.h
head/contrib/wpa/src/p2p/p2p_pd.c
head/contrib/wpa/src/p2p/p2p_sd.c
head/contrib/wpa/src/pae/ieee802_1x_cp.c
head/contrib/wpa/src/pae/ieee802_1x_kay.c
head/contrib/wpa/src/pae/ieee802_1x_kay.h
head/contrib/wpa/src/pae/ieee802_1x_kay_i.h
head/contrib/wpa/src/pae/ieee802_1x_secy_ops.c
head/contrib/wpa/src/pae/ieee802_1x_secy_ops.h
head/contrib/wpa/src/radius/radius.c
head/contrib/wpa/src/radius/radius.h
head/contrib/wpa/src/radius/radius_client.c
head/contrib/wpa/src/radius/radius_das.c
head/contrib/wpa/src/radius/radius_das.h
head/contrib/wpa/src/radius/radius_server.c
head/contrib/wpa/src/radius/radius_server.h
head/contrib/wpa/src/rsn_supp/pmksa_cache.c
head/contrib/wpa/src/rsn_supp/pmksa_cache.h
head/contrib/wpa/src/rsn_supp/preauth.c
head/contrib/wpa/src/rsn_supp/tdls.c
head/contrib/wpa/src/rsn_supp/wpa.c
head/contrib/wpa/src/rsn_supp/wpa.h
head/contrib/wpa/src/rsn_supp/wpa_ft.c
head/contrib/wpa/src/rsn_supp/wpa_i.h
head/contrib/wpa/src/rsn_supp/wpa_ie.c
head/contrib/wpa/src/rsn_supp/wpa_ie.h
head/contrib/wpa/src/tls/libtommath.c
head/contrib/wpa/src/tls/rsa.c
head/contrib/wpa/src/tls/tlsv1_client.c
head/contrib/wpa/src/tls/tlsv1_client_read.c
head/contrib/wpa/src/tls/tlsv1_common.c
head/contrib/wpa/src/tls/tlsv1_cred.c
head/contrib/wpa/src/tls/tlsv1_server.c
head/contrib/wpa/src/tls/x509v3.c
head/contrib/wpa/src/utils/base64.c
head/contrib/wpa/src/utils/base64.h
head/contrib/wpa/src/utils/browser-wpadebug.c
head/contrib/wpa/src/utils/common.c
head/contrib/wpa/src/utils/common.h
head/contrib/wpa/src/utils/eloop.h
head/contrib/wpa/src/utils/http_curl.c
head/contrib/wpa/src/utils/os.h
head/contrib/wpa/src/utils/os_none.c
head/contrib/wpa/src/utils/os_unix.c
head/contrib/wpa/src/utils/os_win32.c
head/contrib/wpa/src/utils/trace.c
head/contrib/wpa/src/utils/utils_module_tests.c
head/contrib/wpa/src/utils/uuid.c
head/contrib/wpa/src/utils/uuid.h
head/contrib/wpa/src/utils/wpa_debug.c
head/contrib/wpa/src/utils/wpa_debug.h
head/contrib/wpa/src/utils/wpabuf.c
head/contrib/wpa/src/utils/xml-utils.c
head/contrib/wpa/src/wps/wps.c
head/contrib/wpa/src/wps/wps_common.c
head/contrib/wpa/src/wps/wps_er.c
head/contrib/wpa/src/wps/wps_registrar.c
head/contrib/wpa/wpa_supplicant/Android.mk
head/contrib/wpa/wpa_supplicant/ChangeLog
head/contrib/wpa/wpa_supplicant/README
head/contrib/wpa/wpa_supplicant/README-HS20
head/contrib/wpa/wpa_supplicant/android.config
head/contrib/wpa/wpa_supplicant/ap.c
head/contrib/wpa/wpa_supplicant/ap.h
head/contrib/wpa/wpa_supplicant/autoscan.c
head/contrib/wpa/wpa_supplicant/bgscan.c
head/contrib/wpa/wpa_supplicant/bgscan_learn.c
head/contrib/wpa/wpa_supplicant/bgscan_simple.c
head/contrib/wpa/wpa_supplicant/bss.c
head/contrib/wpa/wpa_supplicant/bss.h
head/contrib/wpa/wpa_supplicant/config.c
head/contrib/wpa/wpa_supplicant/config.h
head/contrib/wpa/wpa_supplicant/config_file.c
head/contrib/wpa/wpa_supplicant/config_ssid.h
head/contrib/wpa/wpa_supplicant/ctrl_iface.c
head/contrib/wpa/wpa_supplicant/ctrl_iface_named_pipe.c
head/contrib/wpa/wpa_supplicant/ctrl_iface_udp.c
head/contrib/wpa/wpa_supplicant/ctrl_iface_unix.c
head/contrib/wpa/wpa_supplicant/dbus/dbus_new.c
head/contrib/wpa/wpa_supplicant/dbus/dbus_new.h
head/contrib/wpa/wpa_supplicant/dbus/dbus_new_handlers.c
head/contrib/wpa/wpa_supplicant/dbus/dbus_new_handlers.h
head/contrib/wpa/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
head/contrib/wpa/wpa_supplicant/dbus/dbus_new_handlers_wps.c
head/contrib/wpa/wpa_supplicant/defconfig
head/contrib/wpa/wpa_supplicant/driver_i.h
head/contrib/wpa/wpa_supplicant/events.c
head/contrib/wpa/wpa_supplicant/examples/wps-ap-cli
head/contrib/wpa/wpa_supplicant/gas_query.c
head/contrib/wpa/wpa_supplicant/gas_query.h
head/contrib/wpa/wpa_supplicant/hs20_supplicant.c
head/contrib/wpa/wpa_supplicant/hs20_supplicant.h
head/contrib/wpa/wpa_supplicant/ibss_rsn.c
head/contrib/wpa/wpa_supplicant/interworking.c
head/contrib/wpa/wpa_supplicant/interworking.h
head/contrib/wpa/wpa_supplicant/mbo.c
head/contrib/wpa/wpa_supplicant/mesh.c
head/contrib/wpa/wpa_supplicant/mesh_mpm.c
head/contrib/wpa/wpa_supplicant/mesh_rsn.c
head/contrib/wpa/wpa_supplicant/notify.c
head/contrib/wpa/wpa_supplicant/notify.h
head/contrib/wpa/wpa_supplicant/offchannel.c
head/contrib/wpa/wpa_supplicant/p2p_supplicant.c
head/contrib/wpa/wpa_supplicant/preauth_test.c
head/contrib/wpa/wpa_supplicant/scan.c
head/contrib/wpa/wpa_supplicant/sme.c
head/contrib/wpa/wpa_supplicant/sme.h
head/contrib/wpa/wpa_supplicant/wifi_display.c
head/contrib/wpa/wpa_supplicant/wmm_ac.c
head/contrib/wpa/wpa_supplicant/wnm_sta.c
head/contrib/wpa/wpa_supplicant/wnm_sta.h
head/contrib/wpa/wpa_supplicant/wpa_cli.c
head/contrib/wpa/wpa_supplicant/wpa_passphrase.c
head/contrib/wpa/wpa_supplicant/wpa_priv.c
head/contrib/wpa/wpa_supplicant/wpa_supplicant.c
head/contrib/wpa/wpa_supplicant/wpa_supplicant.conf
head/contrib/wpa/wpa_supplicant/wpa_supplicant_i.h
head/contrib/wpa/wpa_supplicant/wpa_supplicant_template.conf
head/contrib/wpa/wpa_supplicant/wpas_glue.c
head/contrib/wpa/wpa_supplicant/wpas_kay.c
head/contrib/wpa/wpa_supplicant/wpas_kay.h
head/contrib/wpa/wpa_supplicant/wps_supplicant.c
head/usr.sbin/wpa/Makefile.crypto
head/usr.sbin/wpa/Makefile.inc
head/usr.sbin/wpa/hostapd/Makefile
head/usr.sbin/wpa/wpa_cli/Makefile
head/usr.sbin/wpa/wpa_supplicant/Makefile
Directory Properties:
head/contrib/wpa/ (props changed)
Log:
MFV r341618:

Update wpa 2.6 --> 2.7.
09/12/2018
6:52 am
base/head
scottl
head/sys/modules
Modificado:
head/sys/modules/Makefile
Log:
I missed powerpcspe in the previous commit for excluding mps and mpr.
I also learned that 'mips' is overly broad and covers 64bit architectures
too. However, it's not worth the fight right now, so any refinements
will have to come another day.
09/12/2018
6:10 am
base/head
scottl
in head/sys/dev: mpr mps
Modificado:
head/sys/dev/mpr/mpr.c
head/sys/dev/mps/mps.c
Log:
Copy and clear the reply descriptor atomically. This prevents concurrency
in the interrupt handlers (usually due to timeout/error recovery) from
seeing and processing the same descriptor twice.
09/12/2018
6:16 am
base/head
scottl
head/sys/cam
Modificado:
head/sys/cam/cam_xpt.c
Log:
Don't allocate the config_intrhook separately from the softc, it's small
enough that it costs more code to handle the malloc/free than it saves.
09/12/2018
6:06 am
base/head
scottl
in head/sys: modules powerpc/conf
Modificado:
head/sys/modules/Makefile
head/sys/powerpc/conf/GENERIC
Log:
Remove the mps driver from powerpc 32bit GENERIC, and don't build it and
mpr as a module for powerpc or mips. An upcoming commit will cause these
drivers to rely on the presence of 64bit atomic operations. Discussed
with jhibbits.
09/12/2018
4:54 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/spe.c
Log:
powerpc/SPE: Copy lower part of source register to target for efdabs/efdnabs/efdneg

MFC after: 1 week
MFC With: r341751
09/12/2018
4:13 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/spe.c
Log:
powerpc/SPE: Reload vector registers after efdabs/efdnabs/efdneg

While here, also style(9)-adjust indents around this code.
09/12/2018
2:58 am
base/head
sobomax
in head: share/man/man4 sys/modules/netgraph
Modificado:
head/share/man/man4/Makefile
head/sys/modules/netgraph/Makefile
Log:
Hook up ng_checksum(4) module and appropriate manpage to the build. The module
was added back in 2016, but has never been connected.

MFC after: 1 week
08/12/2018
10:12 pm
base/head
kib
head/sys/i386/i386
Modificado:
head/sys/i386/i386/mpboot.s
Log:
Fix PAE boot.

With the introduction of M_EXEC support for kmem_malloc(), some kernel
mappings start having NX bit set in the paging structures early, for
PAE kernels on machines with NX support, i.e. practically on all
machines. In particular, AP trampoline and initialization needs to
access pages which translations has NX bit set, before initializecpu()
is called.

Check for CPUID NX feature and enable EFER.NXE before we enable paging
in mp boot trampoline. This allows the CPU to use the kernel page
table instead of generating page fault due to reserved bit set.

PR: 233819
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
08/12/2018
7:42 pm
base/head
jchandra
in head/sys/arm64: acpica arm64
Modificado:
head/sys/arm64/acpica/acpi_machdep.c
head/sys/arm64/arm64/mp_machdep.c
Log:
arm64: add ACPI based NUMA support

Use the newly defined SRAT/SLIT parsing APIs in arm64 to support
ACPI based NUMA.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D17943
08/12/2018
7:32 pm
base/head
jchandra
in head/sys: conf dev/acpica
Modificado:
head/sys/conf/files.arm64
head/sys/dev/acpica/acpi_pxm.c
Log:
acpica: support parsing of arm64 affinity in acpi_pxm.c

ACPI SRAT table on arm64 uses GICC entries to provide CPU locality
information. These entries use an AcpiProcessorUid to identify the
CPU (unlike on x86 where the entries have an APIC ID).

Update acpi_pxm.c to extend the cpu_add/cpu_find/cpu_get_info
functions to handle AcpiProcessorUid. Use the updated functions
while parsing ACPI_SRAT_GICC_AFFINITY entry for arm64.

Also update sys/conf/files.arm64 to build acpi_pxm.c when ACPI is
enabled.

Reviewed by: markj (previous version)
Differential Revision: https://reviews.freebsd.org/D17942
08/12/2018
7:10 pm
base/head
jchandra
in head/sys: conf dev/acpica x86/acpica
Adicional:
head/sys/dev/acpica/acpi_pxm.c (contents, props changed)
Modificado:
head/sys/conf/files.amd64
head/sys/conf/files.i386
head/sys/dev/acpica/acpivar.h
head/sys/x86/acpica/srat.c
Log:
acpica : move SRAT/SLIT parsing to sys/dev/acpica

This moves the architecture independent parts of sys/x86/acpica/srat.c
to sys/dev/acpica/acpi_pxm.c, to be used later on arm64. The function
declarations are moved to sys/dev/acpica/acpivar.h

We also need to update sys/conf/files.{i386,amd64} to use the new file.
No functional changes.

Reviewed by: markj, imp
Differential Revision: https://reviews.freebsd.org/D17941
08/12/2018
6:34 pm
base/head
jchandra
head/sys/x86/acpica
Modificado:
head/sys/x86/acpica/srat.c
Log:
x86/acpica/srat.c: Add API for parsing proximity tables

The SLIT and SRAT ACPI tables needs to be parsed on arm64 as well, on
systems that use UEFI/ACPI firmware and support NUMA. To do this, we
need to move most of the logic of x86/acpica/srat.c to dev/acpica and
provide an API that architectures can use to parse and configure ACPI
NUMA information.

This commit adds the API in srat.c as a first step, without making any
functional changes. We will move the common code to sys/dev/acpica
as the next step.

The functions added are:
* int acpi_pxm_init(int ncpus, vm_paddr_t maxphys) - to allocate and
initialize data structures used
* void acpi_pxm_parse_tables(void) - parse SRAT/SLIT, save the cpu and
memory proximity information
* void acpi_pxm_set_mem_locality(void) - use the saved data to set
memory locality
* void acpi_pxm_set_cpu_locality(void) - use the saved data to set cpu
locality
* void acpi_pxm_free(void) - free data structures allocated by init

On arm64, we do not have an cpu APIC id that can be used as index to
store CPU data, we need to use the Processor Uid. To help with this,
define internal functions cpu_add, cpu_find, cpu_get_info to store
and get CPU proximity information.

Reviewed by: markj, jhb (previous version)
Differential Revision: https://reviews.freebsd.org/D17940
08/12/2018
2:58 pm
base/head
mmel
head/libexec/rtld-elf/aarch64
Modificado:
head/libexec/rtld-elf/aarch64/reloc.c
Log:
Implement R_AARCH64_TLS_DTPMOD64 and A_AARCH64_TLS_DTPREL64 relocations.
Although these are slightly obsolete in favor of R_AARCH64_TLSDESC,
gcc -mtls-dialect=trad still use them.

Please note that definition of TLS_DTPMOD64 and TLS_DTPREL64 are incorrectly
exchanged in GNU binutils. TLS_DTPREL64 should be encoded to 1028 (as is
defined in ARM ELF ABI) but binutils encode it to 1029. And vice versa,
TLS_DTPMOD64 should be encoded to 1029 but binutils encode it to 1028.

While I'm in, add also R_AARCH64_NONE. It can be produced as result of linker
relaxation.

MFC after: 1 week
08/12/2018
2:04 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_umtx.c
Log:
umtx: avoid umtxshm locking on object termination if possible

Sample build world result on tmpfs:
kern.ipc.umtx_terminate_notempty: 0
kern.ipc.umtx_terminate_empty: 2891815

Sponsored by: The FreeBSD Foundation
08/12/2018
12:52 pm
base/head
vmaffione
head/tools/tools/netmap
Modificado:
head/tools/tools/netmap/pkt-gen.c
Log:
tools: netmap: pkt-gen: check packet length against interface MTU

Validate the value of the -l argument (packet length) against the MTU of the netmap port.
In case the netmap port does not refer to a physical interface (e.g. VALE port or pipe), then
the netmap buffer size is used as MTU.
This change also sets a better default value for the -M option, so that pkt-gen uses
the largest possible fragments in case of multi-slot packets.

Differential Revision: https://reviews.freebsd.org/D18436
08/12/2018
12:49 pm
base/head
jilles
head/bin/sh
Modificado:
head/bin/sh/sh.1
Log:
sh(1): Remove -c string from set builtin documentation

Altering the -c string at run time does not make sense and is not possible.

MFC after: 1 week
08/12/2018
11:38 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/imgact_elf.c
Log:
Remove proctree acquire from note_procstat_proc

It is not needed since r340482 ("proc: always store parent pid in p_oppid")

Sponsored by: The FreeBSD Foundation
08/12/2018
6:31 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_exit.c
Log:
proc: handle sdt exit probe before taking the proc lock

Sponsored by: The FreeBSD Foundation
08/12/2018
10:22 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_fork.c
Log:
Fix a corner case in ID bitmap management.

If all IDs from trypid to pid_max were used as pids, the code would enter
a loop which would be infinite if none of the IDs could become free (e.g.
they all belong to processes which did not transitioned to zombie).

Fixes: r341684 ("Manage process-related IDs with bitmaps")

Sponsored by: The FreeBSD Foundation
08/12/2018
6:34 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_event.c
head/sys/kern/kern_fork.c
Log:
proc: postpone proc unlock until after reporting with kqueue

kqueue would always relock immediately afterwards.

While here drop the NULL check for list itself. The list is
always allocated.

Sponsored by: The FreeBSD Foundation
08/12/2018
6:30 am
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_synch.c
head/sys/sys/sdt.h
Log:
Provide SDT_PROBES_ENABLED macro.

Sponsored by: The FreeBSD Foundation
08/12/2018
4:53 am
base/head
mjg
head/sys/amd64/amd64
Modificado:
head/sys/amd64/amd64/support.S
Log:
amd64: stop re-reading curpc on subyte/suword

Originally read value is still safely kept. Re-reading code was there
for previous iterations which were partially shared with i386.

Sponsored by: The FreeBSD Foundation
07/12/2018
11:07 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/vfs_syscalls.c
Log:
Simplify kern_readlink_vp().

When we detected that the vnode is not symlink, return immediately.
This moves the readlink code out of else branch and unindents it.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
07/12/2018
11:05 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/vfs_syscalls.c
Log:
Fix expression evaluation.

Braces were put in the wrong place, causing failing EAGAIN check to
return zero result. Remove the problematic assignment from the
conditional expression at all.

While there, remove used once variable vp, and wrap too long line.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
07/12/2018
9:58 pm
base/head
imp
head/sys/dev/nvme
Modificado:
head/sys/dev/nvme/nvme_ctrlr.c
Log:
Even though they are reserved, cdw2 and cdw3 can be set via nvme-cli
(and soon nvmecontrol). Go ahead and copy them into rsvd2 and rsvd3.

Sponsored by: Netflix
07/12/2018
9:57 pm
base/head
imp
head/share/man/man4
Modificado:
head/share/man/man4/nvme.4
Log:
Add nda(4) cross reference to nvme(4)
07/12/2018
8:55 pm
base/head
mav
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/pci_virtio_scsi.c
Log:
Make virtio-scsi pass SCSI Task Attributes to CTL.

MFC after: 1 week
Sponsored by: iXsystems, Inc.
07/12/2018
8:30 pm
base/head
mav
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/iov.c
head/usr.sbin/bhyve/iov.h
head/usr.sbin/bhyve/pci_virtio_scsi.c
Log:
Fix several iov handling bugs in bhyve virtio-scsi backend.

- buf_to_iov() does not use buflen parameter, allowing out of bound read.
- buf_to_iov() leaks memory if seek argument > 0.
- iov_to_buf() doesn't need to reallocate buffer for every segment.
- there is no point to use size_t for iov counts, int is more then enough.
- some iov function arguments can be constified.
- pci_vtscsi_request_handle() used truncate_iov() incorrectly, allowing
getting out of buffer and possibly corrupting data.
- pci_vtscsi_controlq_notify() written returned status at wrong offset.
- pci_vtscsi_controlq_notify() leaked one buffer per event.

Reported by: wg
Reviewed by: araujo
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D18465
07/12/2018
7:10 pm
base/head
mav
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/pci_virtio_scsi.c
Log:
Fill initid explicitly on requests.

Unfortunately ctl_scsi_zero_io() wipes that field, so it was always zero.
While there, targ_port is set by kernel, so user-space should not fill it.

MFC after: 1 week
07/12/2018
4:52 pm
base/head
emaste
head/etc/mtree
Modificado:
head/etc/mtree/BSD.debug.dist
Log:
BSD.debug.dist: add newly added nvmecontrol directory
07/12/2018
4:51 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_descrip.c
Log:
fd: use racct_set_unlocked

Sponsored by: The FreeBSD Foundation
07/12/2018
4:47 pm
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_racct.c
head/sys/sys/racct.h
Log:
racct: add RACCT_ENABLED macro and racct_set_unlocked

This allows to remove PROC_LOCK/UNLOCK pairs spread thorought the kernel
only used to appease racct_set.

Sponsored by: The FreeBSD Foundation
07/12/2018
4:44 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_descrip.c
Log:
fd: try do less work with the lock in dup

Sponsored by: The FreeBSD Foundation
07/12/2018
4:22 pm
base/head
mjg
head/sys/vm
Modificado:
head/sys/vm/vm_map.c
Log:
vm: use fcmpset for vmspace reference counting

Sponsored by: The FreeBSD Foundation
07/12/2018
4:11 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_jail.c
head/sys/kern/kern_loginclass.c
head/sys/kern/kern_resource.c
Log:
Replace hand-rolled unrefs if > 1 with refcount_release_if_not_last

Sponsored by: The FreeBSD Foundation
07/12/2018
4:10 pm
base/head
mjg
head/sys/sys
Modificado:
head/sys/sys/refcount.h
Log:
refcount: remove a stale comment about conditional ref/unref routines

It was there for vfs-specific variants and was copied over when it should not.

Sponsored by: The FreeBSD Foundation
07/12/2018
4:05 pm
base/head
avg
head/sys/dev/acpica
Modificado:
head/sys/dev/acpica/acpi.c
Log:
acpi_MatchHid: use ACPI_MATCHHID_NOMATCH instead of FALSE

Binary representation of both is the same (zero), but
ACPI_MATCHHID_NOMATCH is better for consistency.

MFC after: 4 days
X-MFC with: r339754
07/12/2018
4:01 pm
base/head
avg
head/sys/dev/acpi_support
Modificado:
head/sys/dev/acpi_support/atk0110.c
Log:
aibs: fix a typo in the probe method that was introduced in r339754

Because of that typo the driver would try to attach to every device
on acpi bus. That disrupted acpi attachment of uart driver, at least.

MFC after: 4 days
X-MFC with: r339754
07/12/2018
3:56 pm
base/head
markj
head/sys/riscv/include
Modificado:
head/sys/riscv/include/vmparam.h
Log:
Update the description of the address space layout on RISC-V.

This adds more detail and fixes some inaccuracies.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18463
07/12/2018
3:55 pm
base/head
markj
in head/sys/riscv: include riscv
Modificado:
head/sys/riscv/include/cpufunc.h
head/sys/riscv/riscv/locore.S
head/sys/riscv/riscv/pmap.c
head/sys/riscv/riscv/swtch.S
Log:
Rename sptbr to satp per v1.10 of the privileged architecture spec.

Add a subroutine for updating satp, for use when updating the
active pmap. No functional change intended.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18462
07/12/2018
3:52 pm
base/head
markj
head/lib/libcasper/services/cap_syslog
Modificado:
head/lib/libcasper/services/cap_syslog/cap_syslog.c
Log:
Let the cap_syslog capability inherit stdio descriptors.

Otherwise cap_openlog(LOG_PERROR) doesn't work.

Reviewed by: oshogbo
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18457
07/12/2018
3:19 pm
base/head
kib
in head/sys: compat/freebsd32 kern sys
Modificado:
head/sys/compat/freebsd32/freebsd32_syscall.h
head/sys/compat/freebsd32/freebsd32_syscalls.c
head/sys/compat/freebsd32/freebsd32_sysent.c
head/sys/compat/freebsd32/freebsd32_systrace_args.c
head/sys/kern/init_sysent.c
head/sys/kern/syscalls.c
head/sys/kern/systrace_args.c
head/sys/sys/syscall.h
head/sys/sys/syscall.mk
head/sys/sys/sysproto.h
Log:
Regen.
07/12/2018
3:17 pm
base/head
kib
in head: lib/libc/sys sys/compat/freebsd32 sys/kern sys/sys
Adicional:
head/lib/libc/sys/fhlink.2 (contents, props changed)
head/lib/libc/sys/fhreadlink.2 (contents, props changed)
Modificado:
head/lib/libc/sys/Makefile.inc
head/lib/libc/sys/Symbol.map
head/lib/libc/sys/getfh.2
head/sys/compat/freebsd32/syscalls.master
head/sys/kern/syscalls.master
head/sys/kern/vfs_syscalls.c
head/sys/sys/mount.h
Log:
Add new file handle system calls.

Namely, getfhat(2), fhlink(2), fhlinkat(2), fhreadlink(2). The
syscalls are provided for a NFS userspace server (nfs-ganesha).

Submitted by: Jack Halford
Sponsored by: Gandi.net
Tested by: pho
Feedback from: brooks, markj
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18359
07/12/2018
12:32 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_exit.c
Log:
proc: when exiting move to zombproc before taking proctree

The kernel was already doing this prior to r329615. It was changed
to reduce contention on allproc. However, introduction of pidhash
locks and removal of proctree -> allproc ordering from fork thanks
to bitmaps fixed things enough to make this change pessimal.

waitpid takes proctree on each call and this change (now) causes
avoidable stalls if allproc is held.

Sponsored by: The FreeBSD Foundation
07/12/2018
12:22 pm
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_exit.c
head/sys/kern/kern_fork.c
head/sys/kern/kern_proc.c
head/sys/sys/proc.h
Log:
Manage process-related IDs with bitmaps

Currently unique pid allocation on fork often requires a full walk of
process, group, session lists to make sure it is not used by anything.
This has a side effect of requiring proctree to be held along with allproc,
which adds more contention in poudriere -j 128.

The patch below implements trivial bitmaps which gets rid of the problem.
Dedicated lock is introduced to manage IDs.

While here a bug was discovered: all processes would inherit reap id from
the first process spawned by init. This had a side effect of keeping the
ID used and when allocation rolls over to the beginning it keeps being
skipped.

The patch is loosely based on initial work by mjoras@.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
07/12/2018
12:06 pm
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_lock.c
head/sys/sys/mutex.h
Log:
Annotate Giant drop/pickup macros with __predict_false

They are used in important places of the kernel with the lock not being held
majority of the time.

Sponsored by: The FreeBSD Foundation
07/12/2018
12:05 pm
base/head
mjg
head/sys/sys
Modificado:
head/sys/sys/systm.h
Log:
unr64: use locked variant if not __LP64__

The current ifdefs are not sufficient to distinguish 32- and 64- bit
variants, which results e.g. in powerpc64 not using atomics.

While some 32-bit archs provide 64-bit atomics, there is no huge advantage
of using them on these platforms.

Reported by: many
Suggested by: jhb
Sponsored by: The FreeBSD Foundation
07/12/2018
12:02 pm
base/head
avg
head/sys/cam/scsi
Modificado:
head/sys/cam/scsi/scsi_da.c
Log:
daprobedone: announce if a disk is write-protected

MFC after: 2 weeks
07/12/2018
11:47 am
base/head
vmaffione
head/sys/dev/netmap
Eliminado:
head/sys/dev/netmap/if_em_netmap.h
head/sys/dev/netmap/if_igb_netmap.h
head/sys/dev/netmap/if_ixl_netmap.h
head/sys/dev/netmap/if_lem_netmap.h
head/sys/dev/netmap/ixgbe_netmap.h
Log:
netmap: remove dead code obsoleted by iflib

The iflib subsystem implements netmap support in a driver-independent
way (sys/net/iflib.c). We can therefore remove the headers that
used to implement netmap support for all the drivers now supported
by iflib (em, igb, ixl, ixgbe, lem).

MFC after: 1 week
07/12/2018
11:10 am
base/head
mmel
head/sys/arm/include
Modificado:
head/sys/arm/include/atomic-v6.h
Log:
Fix cut&paste typo in atomic_fetchadd_64().

Reported by: Jia-Shiun Li
MFC after: 1 week
07/12/2018
3:13 am
base/head
pjd
head/contrib/openbsm/bin/auditdistd
Modificado:
head/contrib/openbsm/bin/auditdistd/trail.c
Log:
Consider the following situation:
The sender has .not_terminated file. It gets disconnected. The last trail
file is then terminated without adding new data (this can happen for example
when auditd is being stopped on the sender). After reconnect the .not_terminated
was not renamed on the receiver as it should.

We were already handling similar situation where the sender crashed and the
.not_terminated trail file was renamed to .crash_recovery. Extend this case to
handle the situation above.
07/12/2018
2:44 am
base/head
cem
in head: sys/geom/mirror tests/sys/geom/class/mirror
Adicional:
head/tests/sys/geom/class/mirror/component_selection.sh
- copied unchanged from r341671, head/tests/sys/geom/class/mirror/component_selection.sh
Modificado:
head/sys/geom/mirror/g_mirror.c
head/sys/geom/mirror/g_mirror.h
head/tests/sys/geom/class/mirror/Makefile
head/tests/sys/geom/class/mirror/conf.sh
Log:
gmirror: Evaluate mirror components against newest metadata copy

Re-apply r341665 with format strings fixed.

If we happen to taste a stale mirror component first, don't reject valid,
newer components that have differing metadata from the stale component
(during STARTING). Instead, update our view of the most recent metadata as
we taste components.

Like mediasize beforehand, remove some checks from g_mirror_check_metadata
which would evict valid components due to metadata that can change over a
mirror's lifetime. g_mirror_check_metadata is invoked long before we check
genid/syncid and decide which component(s) are newest and whether or not we
have quorum.

Before checking if we can enter RUNNING (i.e., we have quorum) after a NEW
component is added, first remove any known stale or inconsistent disks from
the mirrorset, rather than removing them *after* deciding we have quorum.
Check if we have quorum after removing these components.

Additionally, add a knob, kern.geom.mirror.launch_mirror_before_timeout, to
force gmirrors to wait out the full timeout (kern.geom.mirror.timeout)
before transitioning from STARTING to RUNNING. This is a kludge to help
ensure all eligible, boot-time available mirror components are tasted before
RUNNING a gmirror.

Add a basic test case for STARTING -> RUNNING startup behavior around stale
genids.

PR: 232671, 232835
Submitted by: Cindy Yang (previous version)
Reviewed by: markj (kernel portions)
Discussed with: asomers, Cindy Yang
Tested by: pho
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D18062
07/12/2018
12:47 am
base/head
cem
in head: sys/geom/mirror tests/sys/geom/class/mirror
Eliminado:
head/tests/sys/geom/class/mirror/component_selection.sh
Modificado:
head/sys/geom/mirror/g_mirror.c
head/sys/geom/mirror/g_mirror.h
head/tests/sys/geom/class/mirror/Makefile
head/tests/sys/geom/class/mirror/conf.sh
Log:
Revert r341665 due to tinderbox breakage

I didn't notice that some format strings were non-portable. Will fix and
re-commit later.
07/12/2018
12:27 am
base/head
asomers
in head/tests/sys/geom/class: . eli
Modificado:
head/tests/sys/geom/class/eli/conf.sh
head/tests/sys/geom/class/geom_subr.sh
Log:
geom tests: Fix cleanup of ATF tests since r341392

r341392 changed common test cleanup routines in a way that allowed them to
be used by TAP tests as well as ATF tests. However, a late change made
during code review resulted in cleanup being broken for ATF tests, which
source geom_subr.sh separately during the body and cleanup phases of the
test. The result was that md(4) devices wouldn't get cleaned up.

MFC after: 2 weeks
X-MFC-With: 341392
06/12/2018
11:55 pm
base/head
cem
in head: sys/geom/mirror tests/sys/geom/class/mirror
Adicional:
head/tests/sys/geom/class/mirror/component_selection.sh (contents, props changed)
Modificado:
head/sys/geom/mirror/g_mirror.c
head/sys/geom/mirror/g_mirror.h
head/tests/sys/geom/class/mirror/Makefile
head/tests/sys/geom/class/mirror/conf.sh
Log:
gmirror: Evaluate mirror components against newest metadata copy

If we happen to taste a stale mirror component first, don't reject valid,
newer components that have differing metadata from the stale component
(during STARTING). Instead, update our view of the most recent metadata as
we taste components.

Like mediasize beforehand, remove some checks from g_mirror_check_metadata
which would evict valid components due to metadata that can change over a
mirror's lifetime. g_mirror_check_metadata is invoked long before we check
genid/syncid and decide which component(s) are newest and whether or not we
have quorum.

Before checking if we can enter RUNNING (i.e., we have quorum) after a NEW
component is added, first remove any known stale or inconsistent disks from
the mirrorset, rather than removing them *after* deciding we have quorum.
Check if we have quorum after removing these components.

Additionally, add a knob, kern.geom.mirror.launch_mirror_before_timeout, to
force gmirrors to wait out the full timeout (kern.geom.mirror.timeout)
before transitioning from STARTING to RUNNING. This is a kludge to help
ensure all eligible, boot-time available mirror components are tasted before
RUNNING a gmirror.

When we are instructed to forget mirror components, bump the generation id
to avoid confusion with such stale components later.

Add a basic test case for STARTING -> RUNNING startup behavior around stale
genids.

PR: 232671, 232835
Submitted by: Cindy Yang (previous version)
Reviewed by: markj (kernel portions)
Discussed with: asomers, Cindy Yang
Tested by: pho
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D18062
06/12/2018
11:40 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/nvmecontrol.8
Log:
Update paths based on last-minute changes from libexec to lib.
06/12/2018
11:29 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/nvmecontrol.h
Log:
Declare global function print_intel_add_smart in header
06/12/2018
11:28 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/nvmecontrol.h
Log:
Use proper prototypes.
06/12/2018
10:59 pm
base/head
imp
head/sbin/nvmecontrol/modules/intel
Modificado:
head/sbin/nvmecontrol/modules/intel/intel.c
Log:
It's useful to have this be a global function.

Other vendors base their additional smart info pages on what Intel did
plus some other bits. So it's convenient to have this be global.

Sponsored by: Netflix
06/12/2018
10:59 pm
base/head
imp
head/sbin/nvmecontrol/modules/intel
Modificado:
head/sbin/nvmecontrol/modules/intel/intel.c
Log:
This is not a samsung standard, so remove that alias.

This was never documented, and isn't needed, so it's best removed to
avoid confusion.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18460
06/12/2018
10:58 pm
base/head
imp
in head/sbin/nvmecontrol: . modules modules/intel
Adicional:
head/sbin/nvmecontrol/modules/
head/sbin/nvmecontrol/modules/Makefile (contents, props changed)
head/sbin/nvmecontrol/modules/Makefile.inc (contents, props changed)
head/sbin/nvmecontrol/modules/intel/
head/sbin/nvmecontrol/modules/intel/Makefile (contents, props changed)
head/sbin/nvmecontrol/modules/intel/intel.c (contents, props changed)
- copied, changed from r341658, head/sbin/nvmecontrol/intel.c
head/sbin/nvmecontrol/modules/wdc/
head/sbin/nvmecontrol/modules/wdc/Makefile (contents, props changed)
head/sbin/nvmecontrol/modules/wdc/wdc.c (contents, props changed)
- copied, changed from r341658, head/sbin/nvmecontrol/wdc.c
Eliminado:
head/sbin/nvmecontrol/intel.c
head/sbin/nvmecontrol/wdc.c
Modificado:
head/sbin/nvmecontrol/Makefile
Log:
Move intel and wdc files to their own modules

Move the intel and wdc vendor specific stuff to their own modules.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18460
06/12/2018
10:58 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/devlist.c
head/sbin/nvmecontrol/firmware.c
head/sbin/nvmecontrol/format.c
head/sbin/nvmecontrol/identify.c
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/ns.c
head/sbin/nvmecontrol/nvmecontrol.c
head/sbin/nvmecontrol/nvmecontrol.h
head/sbin/nvmecontrol/perftest.c
head/sbin/nvmecontrol/power.c
head/sbin/nvmecontrol/reset.c
head/sbin/nvmecontrol/wdc.c
Log:
Const poison the command interface

Make the pointers we pass into the commands const, also make the
linker set mirrors const.

Suggested by: cem@
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18459
06/12/2018
10:58 pm
base/head
imp
in head: etc/mtree sbin/nvmecontrol share/man/man7
Modificado:
head/etc/mtree/BSD.root.dist
head/sbin/nvmecontrol/Makefile
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/ns.c
head/sbin/nvmecontrol/nvmecontrol.8
head/sbin/nvmecontrol/nvmecontrol.c
head/sbin/nvmecontrol/nvmecontrol.h
head/sbin/nvmecontrol/wdc.c
head/share/man/man7/hier.7
Log:
Dynamically load .so modules to expand functionality

o Dynamically load all the .so files found in /libexec/nvmecontrol and
/usr/local/libexec/nvmecontrol.
o Link nvmecontrol -rdynamic so that its symbols are visible to the
libraries we load.
o Create concatinated linker sets that we dynamically expand.
o Add the linked-in top and logpage linker sets to the mirrors for them
and add those sets to the mirrors when we load a new .so.
o Add some macros to help hide the names of the linker sets.
o Update the man page.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18455

fold
06/12/2018
10:35 pm
base/head
jhb
head/usr.bin/truss
Adicional:
head/usr.bin/truss/riscv-freebsd.c
- copied, changed from r341655, head/usr.bin/truss/riscv64-freebsd.c
Eliminado:
head/usr.bin/truss/riscv64-freebsd.c
Log:
Rename riscv64-freebsd.c to riscv-freebsd.c.

This fixes truss when built as part of a riscv64sf world. Additionally,
if FreeBSD ever supports RV32 RISC-V most of this file can be used as-is
just as a single file is used for all of the MIPS ABIs.

Sponsored by: DARPA
06/12/2018
9:52 pm
base/head
kib
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Log:
Fix build with option RSS, removing unused variables.

Reported by: np
Sponsored by: Mellanox Technologies
MFC after: 1 week
06/12/2018
9:33 pm
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_sge.c
Log:
cxgbe(4): Get Linux cxgb4vf working in bhyve VMs with VFs passed
through.

cxgb4vf doesn't own the buffer size list but still expects the first two
entries to be 4K and some power of 2 respectively. The BSD cxgbe
doesn't care where its preferred buffer sizes are as long as they're in
the list somewhere, so just move its entries towards the end as a
workaround.

MFC after: 1 month
Sponsored by: Chelsio Communicatons
06/12/2018
9:27 pm
base/head
emaste
head/share/man/man7
Modificado:
head/share/man/man7/hier.7
Log:
hier.7: add /lib/casper directory

Reported by: imp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
06/12/2018
8:56 pm
base/head
sjg
in head: contrib/bmake contrib/bmake/mk
Adicional:
head/contrib/bmake/unit-tests/varquote.exp
- copied unchanged from r341610, vendor/NetBSD/bmake/dist/unit-tests/varquote.exp
head/contrib/bmake/unit-tests/varquote.mk
- copied unchanged from r341610, vendor/NetBSD/bmake/dist/unit-tests/varquote.mk
Modificado:
head/contrib/bmake/ChangeLog
head/contrib/bmake/FILES
head/contrib/bmake/Makefile.config.in
head/contrib/bmake/VERSION
head/contrib/bmake/bmake.1
head/contrib/bmake/dir.c
head/contrib/bmake/make.1
head/contrib/bmake/mk/ChangeLog
head/contrib/bmake/mk/dirdeps-options.mk
head/contrib/bmake/mk/dirdeps.mk
head/contrib/bmake/mk/gendirdeps.mk
head/contrib/bmake/mk/install-mk
head/contrib/bmake/mk/meta.autodep.mk
head/contrib/bmake/mk/meta.stage.mk
head/contrib/bmake/unit-tests/Makefile.in
head/contrib/bmake/var.c
head/usr.bin/bmake/Makefile.config
head/usr.bin/bmake/unit-tests/Makefile
Directory Properties:
head/contrib/bmake/ (props changed)
Log:
Update bmake to version 20180919

Cleanup of stats cache
and new :q modifier.
06/12/2018
8:28 pm
base/head
ian
head/stand/i386/loader
Modificado:
head/stand/i386/loader/main.c
Log:
Don't reference zfs-specific variables if LOADER_ZFS_SUPPORT is undefined
because the variables will be undefined too.

Reported by: sjg@
Pointy hat: ian@
06/12/2018
8:15 pm
base/head
cy
in head: contrib/ipfilter/ipsend
Modificado:
head/contrib/ipfilter/ipsend/ip.c
head/contrib/ipfilter/ipsend/resend.c
head/sys/contrib/ipfilter/netinet/ip_compat.h
Log:
Remove an ugly Ultrix hack. Ultrix has been AWOL since the last ice
age, more to come.

MFC after: 1 week
06/12/2018
7:49 pm
base/head
joel
head/share/man/man4
Modificado:
head/share/man/man4/vmci.4
Log:
Sort .Xr
06/12/2018
7:20 pm
base/head
kib
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Log:
Appease gcc build, remove duplicated declaration.

Reported by: np
Sponsored by: Mellanox Technologies
MFC after: 1 week
06/12/2018
6:59 pm
base/head
sbruno
head/sys/dev/mlx5
Modificado:
head/sys/dev/mlx5/mlx5io.h
Log:
Change u32 to uint32_t to allow the native-xtools target to build
libsysdecode.

Submitted by: kib
06/12/2018
6:58 pm
base/head
kp
head/sys/netpfil/pf
Modificado:
head/sys/netpfil/pf/pf_lb.c
Log:
pf: add a comment describing why do we call pf_map_addr again if port
selection process fails

Obtained from: OpenBSD
06/12/2018
6:12 pm
base/head
sobomax
head/share/misc
Modificado:
head/share/misc/committers-ports.dot
Log:
Apparently @portmgr does not feel like my current level of contribution
warrants me a repo access to the ports tree anymore. Move myself into alumni
at least for a time being.
06/12/2018
6:03 pm
base/head
yuripv
head/lib/libc/gen
Modificado:
head/lib/libc/gen/syslog.3
Log:
syslog(3): stdarg.h is needed only for vsyslog()

Reported by: Brian Wood
Reviewed by: asomers, ngie
Differential revision: https://reviews.freebsd.org/D18334
06/12/2018
5:29 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/sys_capability.c
Log:
Let kern.trap_enotcap be set as a tunable.

This is handy for testing programs that are run by rc.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation
06/12/2018
1:52 pm
base/head
trasz
head/share/man/man7
Modificado:
head/share/man/man7/development.7
Log:
Add examples for "make buildenv".

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
06/12/2018
1:46 pm
base/head
yuripv
head/share/termcap
Modificado:
head/share/termcap/termcap
Log:
termcap: add italics and tmux entries

- add "ecma+italics" cap
- use it in "xterm-basic"
- add "tmux"/"tmux-256color" caps, fixing "so" and "se" caps,
and sourcing "ecma+italics" and "screen"/"screen-256color"

Reviewed by: bapt
Differential revision: https://reviews.freebsd.org/D18363
06/12/2018
12:34 pm
base/head
avg
head/sys/dev/acpica
Modificado:
head/sys/dev/acpica/acpi.c
Log:
acpi_{Device,Battery}IsPresent: restore pre-r330957 behaviour

Specifically, assume that the device is present if evaluation of _STA
method fails.

Before r330957 we ignored any _STA evaluation failure (which was
performed by AcpiGetObjectInfo in ACPICA contrib code) for the purpose
of acpi_DeviceIsPresent and acpi_BatteryIsPresent. ACPICA 20180313
removed evaluation of _STA from AcpiGetObjectInfo. So, we added
evaluation of _STA to acpi_DeviceIsPresent and acpi_BatteryIsPresent.
One important difference is that the new code ignored a failure only if
_STA did not exist (AE_NOT_FOUND). Any other kind of failure was
treated as a fatal failure. Apparently, on some systems we can get
AE_NOT_EXIST when evaluating _STA. And that error is not an evil twin
of AE_NOT_FOUND, despite a very similar name, but a distinct error
related to a missing handler for an ACPI operation region.

It's possible that for some people the problem was already fixed by
changes in ACPICA and/or in acpi_ec driver (or even in BIOS) that fixed
the AE_NOT_EXIST failure related to EC operation region.

This work is based on a great analysis by cem and an earlier patch by
Ali Abdallah .

PR: 227191
Reported by: 0mp
MFC after: 2 weeks
06/12/2018
9:45 am
base/head
vmaffione
head/sys/dev/netmap
Modificado:
head/sys/dev/netmap/netmap.c
Log:
netmap: netmap_transmit should honor bpf packet tap hook

This allows tcpdump to capture outbound kernel packets while
in netmap mode

Submitted by: Marc de la Gueronniere
Reviewed by: vmaffione
MFC after: 1 week
Sponsored by: Verisign, Inc.
Differential Revision: https://reviews.freebsd.org/D17896
06/12/2018
9:22 am
base/head
lwhsu
in head: tests/sys/kqueue/libkqueue usr.bin/procstat/tests
Modificado:
head/tests/sys/kqueue/libkqueue/kqueue_test.sh
head/usr.bin/procstat/tests/procstat_test.sh
Log:
Temporarily skip flakey test cases

PR: 233586, 233587, 233588
Approved by: markj (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18362
06/12/2018
6:18 am
base/head
np
in head/sys/dev/cxgbe: . common
Modificado:
head/sys/dev/cxgbe/adapter.h
head/sys/dev/cxgbe/common/common.h
head/sys/dev/cxgbe/common/t4_hw.c
head/sys/dev/cxgbe/t4_main.c
Log:
cxgbe(4): Fall back to a basic configuration in case of any error during
card initialization. This is an expanded version of r333682.

Break up prep_firmware into simpler routines while here. Load the
firmware/config KLD only if needed.

MFC after: 1 month
Sponsored by: Chelsio Communications
06/12/2018
4:36 am
base/head
jhibbits
head/sys/powerpc/powerpc
Modificado:
head/sys/powerpc/powerpc/mp_machdep.c
Log:
powerpc: Set very low priority mode while waiting for AP unleash event

The POWER9 does not recognize 'or 27,27,27' as a thread priority NOP. On
earlier POWER architectures, this NOP would note to the processor to give up
resources if able, to improve performance of other threads.

All processors that support the thread priority NOPs recognize the
'or 31,31,31' NOP as very low priority, so use this to perform a similar
function, and not burn cycles on POWER9.
06/12/2018
4:30 am
base/head
jhibbits
head/sys/powerpc/powerpc
Modificado:
head/sys/powerpc/powerpc/elf64_machdep.c
Log:
powerpc: Fix ELFv2 JMP_SLOT relocation fixup

The jump slot is a function pointer, not a descriptor pointer, in ELFv2. Just
write the pointer itself over, not the contents of the pointer, which would be
the first instruction of the function.
06/12/2018
4:25 am
base/head
jhibbits
head/sys/powerpc/powermac
Modificado:
head/sys/powerpc/powermac/macgpio.c
Log:
powerpc/powermac: Fix macgpio(4) child interrupt resource handling

The 'interrupts' property is actually 2 words, not one, on macgpio child
nodes. Open Firmware's getprop function might be returning the value
copied, not the total size of the property, but FDT's returns the total
size. Prior to this patch, this would cause the SYS_RES_IRQ resource list
to not be populated when running with the 'usefdt' loader variable set, to
convert the OFW device tree to a FDT. Since the property is always 2 words,
read both words, and ignore the second.

Tested by: Dennis Clarke (previous attempt)
MFC after: 2 weeks
06/12/2018
1:04 am
base/head
mckusick
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_alloc.c
Log:
If the vfs.ffs.dotrimcons sysctl option is enabled while a file
deletion is active, specifically after a call to ffs_blkrelease_start()
but before the call to ffs_blkrelease_finish(), ffs_blkrelease_start()
will have handed out SINGLETON_KEY rather than starting a collection
sequence. Thus if we get a SINGLETON_KEY passed to ffs_blkrelease_finish(),
we just return rather than trying to finish the nonexistent sequence.

Reported by: Warner Losh (imp@)
Sponsored by: Netflix
06/12/2018
12:09 am
base/head
mckusick
in head: lib/libufs sbin/dump sbin/fsck_ffs sbin/fsirand
Modificado:
head/lib/libufs/libufs.h
head/lib/libufs/sblock.c
head/sbin/dump/main.c
head/sbin/fsck_ffs/setup.c
head/sbin/fsirand/fsirand.c
head/sbin/growfs/growfs.c
head/sbin/quotacheck/quotacheck.c
head/stand/libsa/ufs.c
head/sys/geom/journal/g_journal_ufs.c
head/sys/geom/label/g_label_ufs.c
head/sys/ufs/ffs/ffs_extern.h
head/sys/ufs/ffs/ffs_subr.c
head/sys/ufs/ffs/ffs_vfsops.c
head/usr.sbin/fstyp/ufs.c
head/usr.sbin/quot/quot.c
Log:
Normally when an attempt is made to mount a UFS/FFS filesystem whose
superblock has a check-hash error, an error message noting the
superblock check-hash failure is printed and the mount fails. The
administrator then runs fsck to repair the filesystem and when
successful, the filesystem can once again be mounted.

This approach fails if the filesystem in question is a root filesystem
from which you are trying to boot. Here, the loader fails when trying
to access the filesystem to get the kernel to boot. So it is necessary
to allow the loader to ignore the superblock check-hash error and make
a best effort to read the kernel. The filesystem may be suffiently
corrupted that the read attempt fails, but there is no harm in trying
since the loader makes no attempt to write to the filesystem.

Once the kernel is loaded and starts to run, it attempts to mount its
root filesystem. Once again, failure means that it breaks to its prompt
to ask where to get its root filesystem. Unless you have an alternate
root filesystem, you are stuck.

Since the root filesystem is initially mounted read-only, it is
safe to make an attempt to mount the root filesystem with the failed
superblock check-hash. Thus, when asked to mount a root filesystem
with a failed superblock check-hash, the kernel prints a warning
message that the root filesystem superblock check-hash needs repair,
but notes that it is ignoring the error and proceeding. It does
mark the filesystem as needing an fsck which prevents it from being
enabled for writing until fsck has been run on it. The net effect
is that the reboot fails to single user, but at least at that point
the administrator has the tools at hand to fix the problem.

Reported by: Rick Macklem (rmacklem@)
Discussed with: Warner Losh (imp@)
Sponsored by: Netflix
05/12/2018
7:53 pm
base/head
kp
head/tests/sys/netpfil/pf
Modificado:
head/tests/sys/netpfil/pf/pfsync.sh
Log:
pf tests: Add a defer mode test for pfsync

Repeat the pfsync test, this time with the 'defer' option enabled. This
exercises slightly different code paths.
05/12/2018
7:18 pm
base/head
brooks
head/sys/kern
Modificado:
head/sys/kern/init_main.c
Log:
Further simplify arguments to init.

With the removal of BOOTCDROM and fastboot support, this code always
passed "-s" or "--". The latter simply terminates getopt(3) processing
in init so we only need to pass "-s" in the single user case, or nothing
in other cases.

The passing of "--" seems to have been done to ensure that the number of
arguments passed to init was always the same and thus that argc was the
same.

Also GC the write-only variable pathlen (not in reviewed version).

Reviewed by: kib, jhb
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18441
05/12/2018
6:26 pm
base/head
alc
head/sys/kern
Modificado:
head/sys/kern/subr_blist.c
Log:
Terminate a blist_alloc search when a blst_meta_alloc call fails with
cursor == 0.

Every call to blst_meta_alloc but the one at the root is made only when the
meta-node is known to include a free block, so that either the allocation
will succeed, the node hint will be updated, or the last block of the meta-
node range is, and remains, free. But the call at the root is made without
checking that there is a free block, so in the case that every block is
allocated, there is no hint update to prevent the current code from looping
forever.

Submitted by: Doug Moore
Reported by: pho
Reviewed by: pho
Tested by: pho
X-MFC with: r340402
Differential Revision: https://reviews.freebsd.org/D17999
05/12/2018
6:19 pm
base/head
markj
head/share/man/man4
Modificado:
head/share/man/man4/netdump.4
Log:
ixl(4) has netdump support via iflib.

Reported by: kbowling
MFC after: 3 days
05/12/2018
5:35 pm
base/head
brooks
head/sys/kern
Modificado:
head/sys/kern/init_main.c
Log:
Remove never enabled support for "fastboot".

This has been ifdef notyet since the import of BSD 4.4 Lite Kernel
Sources in r1541.

Sponsored by: DARPA, AFRL
05/12/2018
5:29 pm
base/head
brooks
head/sys/kern
Modificado:
head/sys/kern/init_main.c
Log:
Remove ifdef BOOTCDROM option to start init.

When BOOTCDROM is defined (via CFLAGS as there is no config option)
it causes -C to be passed to init, but our init and the version of
sysinstall I glanced at in 6.x don't support -C. The last plausibly
related support was removed from the tree in 1995.

Reviewed by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18431
05/12/2018
5:28 pm
base/head
asomers
head/lib/libc/sys
Modificado:
head/lib/libc/sys/stat.2
Log:
stat(2): clarify which syscalls modify file timestamps

The list of syscalls that modify st_atim, st_mtim, and st_ctim was quite out
of date and probably not accurate to begin with. Update it, and make it
clear that the list is open-ended.

Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18410
05/12/2018
5:06 pm
base/head
markj
in head/sys: netinet netinet6
Modificado:
head/sys/netinet/in_pcb.c
head/sys/netinet/in_pcb.h
head/sys/netinet6/in6_pcb.c
Log:
Clamp the INPCB port hash tables to IPPORT_MAX + 1 chains.

Memory beyond that limit was previously unused, wasting roughly 1MB per
8GB of RAM. Also retire INP_PCBLBGROUP_PORTHASH, which was identical to
INP_PCBPORTHASH.

Reviewed by: glebius
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17803
05/12/2018
4:55 pm
base/head
markj
head/share/man/man4
Modificado:
head/share/man/man4/netdump.4
Log:
Netdump support was added to mlx4en(4) in r341548.

MFC with: r341548
05/12/2018
4:43 pm
base/head
mjg
in head/sys: contrib/vchiq/interface/compat kern sys
Modificado:
head/sys/contrib/vchiq/interface/compat/vchi_bsd.h
head/sys/kern/kern_sx.c
head/sys/sys/sx.h
Log:
sx: retire SX_NOADAPTIVE

The flag is not used by anything for years and supporting it requires an
explicit read from the lock when entering slow path.

Flag value is left unused on purpose.

Sponsored by: The FreeBSD Foundation
05/12/2018
3:56 pm
base/head
hselasky
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/idr.h
Log:
Remove redundant declaration after r341517.

MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
3:53 pm
base/head
hselasky
head/sys/compat/linuxkpi/common/include/asm
Modificado:
head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
Log:
Fix some build of LinuxKPI on some platforms after r341518.

MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
3:42 pm
base/head
hselasky
head/sys/conf
Modificado:
head/sys/conf/files
Log:
Fix LINT build after r341572.

MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
3:38 pm
base/head
vmaffione
head/sys/net
Modificado:
head/sys/net/netmap.h
Log:
netmap.h: include stdatomic.h

The stdatomic.h header exports atomic_thread_fence(), that
can be used to implement the nm_stst_barrier() macro needed
by netmap.

MFC after: 3 days
05/12/2018
2:25 pm
base/head
slavash
in head/sys/dev: mlx4/mlx4_core mlx4/mlx4_ib
Modificado:
head/sys/dev/mlx4/mlx4_core/mlx4.h
head/sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
head/sys/dev/mlx5/mlx5_core/mlx5_core.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
Log:
mlx4/mlx5: Updated driver version to 3.5.0

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:24 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Log:
mlx5en: Improve configuration of HW LRO.

In order to enable HW LRO, both the "hw_lro" sysctl in the mlx5en(4) config
space must be set, and the ifconfig(8) LRO capability must be set. Any other
settings will disable HW LRO.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:24 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
Log:
mlx5en: Count all transmitted and received bytes.

Add counter for all transmitted and received bytes. Currently only all
transmitted and received packets were counted. Fix description of RX LRO
counters while at it.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:25 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/en_rl.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
Log:
mlx5en: Implement backpressure indication.

The backpressure indication is implemented using an unlimited rate type of
mbuf send tag. When the upper layers typically the socket layer has obtained such
a tag, it can then query the destination driver queue for the current
amount of space available in the send queue.

A single mbuf send tag may be referenced multiple times and a refcount has been added
to the mlx5e_priv structure to track its usage. Because the send tag resides
in the mlx5e_channel structure, there is no need to wait for refcounts to reach
zero until the mlx4en(4) driver is detached. The channels structure is persistant
during the lifetime of the mlx5en(4) driver it belongs to and can so be accessed
without any need of synchronization.

The mlx5e_snd_tag structure was extended to contain a type field, because there are now
two different tag types which end up in the driver which need to be distinguished.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:23 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
Log:
mlx5en: Statically allocate and free the channel structure(s).

By allocating the worst case size channel structure array
at attach time we can eliminate various NULL checks in the
fast path. And also reduce the chance for use-after-free
issues in the transmit fast path.

This change is also a requirement for implementing
backpressure support.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:23 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Log:
mlx5en: Fix race in mlx5e_ethtool_debug_stats().

Writing to the debug stats variable must be locked,
else serialization will be lost which might cause
various kernel panics due to creating and destroying
sysctls out of order.

Make sure the sysctl context is initialized after freeing
the sysctl nodes, else they can be freed twice.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:22 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_core mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_port.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_ifc.h
head/sys/dev/mlx5/port.h
Log:
mlx5en: Add support for IFM_10G_LR and IFM_40G_ER4 media types.

Inspect the ethernet compliance code to figure out actual cable type by reading
the PDDR module info register.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:22 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
Log:
mlx5en: Don't set rate on SQs when the SQ is already stopped.

This can happen when connections are short lived and leads to
a firmware error printout in dmesg, syndrome 0x51cfb0, because
the SQ is in the wrong state.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:20 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_core mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_port.c
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
head/sys/dev/mlx5/port.h
Log:
mlx5en: Implement support for bandwidth limiting in by ratio, ETS.

Add support for setting the bandwidth limit as a ratio rather than in bits per
second. The ratio must be an integer number between 1 and 100 inclusivly.

Implement the needed firmware commands and SYSCTLs through mlx5en(4).

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:21 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_core mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_vport.c
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/en_rl.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
head/sys/dev/mlx5/vport.h
Log:
mlx5en: Fix for inlining issues in transmit path

1) Don't exceed the drivers own hardcoded TX inline limit.

The blueflame register size can be much greater than the hardcoded limit
for inlining. Make sure we don't exceed the drivers own limit, because this
also means that the maximum number of TX fragments becomes invalid and
then memory size assumptions in the TX path no longer hold up.

2) Make sure the mlx5_query_min_inline() function returns an error code.

3) Header inlining is required when using TSO.

4) Catch failure to compute inline header size for TSO.

5) Add support for UDP when computing inline header size.

6) Fix for inlining issues with regards to DSCP.

Make sure we inline 4 bytes beyond the ethernet and/or
VLAN header to workaround a hardware bug extracting
the DSCP field from the IPv4/v6 header.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:19 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_fpga mlx5_fpga_tools
Modificado:
head/sys/dev/mlx5/mlx5_fpga/cmd.h
head/sys/dev/mlx5/mlx5_fpga/core.h
head/sys/dev/mlx5/mlx5_fpga/mlx5_ifc_fpga.h
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_cmd.c
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
head/sys/dev/mlx5/mlx5_fpga/sdk.h
head/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_char.c
head/sys/dev/mlx5/mlx5io.h
Log:
mlx5fpga: Add set and query connect/disconnect FPGA

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:20 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
Log:
mlx5en: Remove the DRBR and associated logic in the transmit path.

The hardware queues are deep enough currently and using the DRBR and associated
callbacks only leads to more task switching in the TX path. The is also a race
setting the queue_state which can lead to hung TX rings.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:18 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_fpga
Modificado:
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_core.c
head/sys/dev/mlx5/mlx5io.h
Log:
mlx5fpga: Support MorseQ board

Added and supported new enum "morseQ = 4" for fpga_id field

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:19 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_fpga mlx5_fpga_tools
Modificado:
head/sys/dev/mlx5/driver.h
head/sys/dev/mlx5/mlx5_fpga/cmd.h
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_cmd.c
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c
head/sys/dev/mlx5/mlx5_fpga/sdk.h
head/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_char.c
head/sys/dev/mlx5/mlx5_ifc.h
head/sys/dev/mlx5/mlx5io.h
Log:
mlx5fpga: IOCTL for FPGA temperature measurement

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:17 pm
base/head
slavash
in head/sys: dev/mlx5 dev/mlx5/mlx5_fpga_tools
Adicional:
head/sys/dev/mlx5/mlx5_fpga_tools/
head/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_char.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga_tools/mlx5fpga_tools_main.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga_tools/tools.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga_tools/tools_char.h (contents, props changed)
head/sys/modules/mlx5fpga_tools/
head/sys/modules/mlx5fpga_tools/Makefile (contents, props changed)
Modificado:
head/sys/dev/mlx5/mlx5io.h
Log:
mlx5fpga_tools initial code import.

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
2:11 pm
base/head
slavash
in head/sys: dev/mlx5 dev/mlx5/mlx5_accel
Adicional:
head/sys/dev/mlx5/mlx5_accel/
head/sys/dev/mlx5/mlx5_accel/ipsec.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/
head/sys/dev/mlx5/mlx5_fpga/cmd.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/conn.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/core.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/ipsec.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5_ifc_fpga.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_cmd.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_conn.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_core.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_ipsec.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_sdk.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_trans.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/mlx5fpga_xfer.c (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/sdk.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/trans.h (contents, props changed)
head/sys/dev/mlx5/mlx5_fpga/xfer.h (contents, props changed)
head/sys/dev/mlx5/mlx5_lib/
head/sys/dev/mlx5/mlx5_lib/mlx5.h (contents, props changed)
head/sys/dev/mlx5/mlx5_lib/mlx5_gid.c (contents, props changed)
Modificado:
head/sys/dev/mlx5/device.h
head/sys/dev/mlx5/driver.h
head/sys/dev/mlx5/mlx5_core/mlx5_core.h
head/sys/dev/mlx5/mlx5_core/mlx5_main.c
head/sys/dev/mlx5/mlx5_core/wq.h
head/sys/dev/mlx5/mlx5_ifc.h
head/sys/dev/mlx5/mlx5io.h
head/sys/modules/mlx5/Makefile
head/sys/modules/mlx5en/Makefile
head/sys/modules/mlx5ib/Makefile
Log:
mlx5fpga: Initial code import.

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:49 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_ib
Modificado:
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
Log:
mlx5ib: Set default active width and speed when querying port.

Make sure the active width and speed is set in case the
translate_eth_proto_oper() function doesn't recognize the
current port operation mask.

Linux commit:
7672ed33c4c15dbe9d56880683baaba4227cf940

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:48 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_ib
Modificado:
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_cong.c
Log:
mlx5ib: Make sure the congestion work timer does not escape the drain procedure.

If the mlx5_ib_read_cong_stats() function was running when mlx5ib was unloaded,
because this function unconditionally restarts the timer, the timer can still
be pending after the delayed work has been cancelled. To fix this simply loop
on the delayed work cancel procedure as long as it returns non-zero.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:47 pm
base/head
slavash
in head/sys: compat/linuxkpi/common/src dev/mlx5/mlx5_core
Modificado:
head/sys/compat/linuxkpi/common/src/linux_pci.c
head/sys/dev/mlx5/mlx5_core/mlx5_main.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
Log:
mlx5: Fix driver version location

Driver description should be set by core and not by the Ethernet driver.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:48 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_ib
Modificado:
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_srq.c
Log:
mlx5ib: Fix null pointer dereference in mlx5_ib_create_srq

Although "create_srq_user" does overwrite "in.pas" on some paths, it
also contains at least one feasible path which does not overwrite it.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:47 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_ib
Modificado:
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
Log:
mlx5ib: Fix sign extension in mlx5_ib_query_device

"fw_rev_min(dev->mdev)" with type "unsigned short" (16 bits, unsigned) is
promoted in "fw_rev_min(dev->mdev) << 16" to type "int" (32 bits, signed), then
sign-extended to type "unsigned long" (64 bits, unsigned). If
"fw_rev_min(dev->mdev) << 16" is greater than 0x7FFFFFFF, the upper bits of the
result will all be 1.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:46 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_core
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_port.c
Log:
mlx5: Fix wrong size allocation for QoS ETC TC register

The driver allocates wrong size (due to wrong struct name) when issuing
a query/set request to NIC's register.

Linux commit:
d14fcb8d877caf1b8d6bd65d444bf62b21f2070c

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:46 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_core
Modificado:
head/sys/dev/mlx5/driver.h
head/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
head/sys/dev/mlx5/mlx5_core/mlx5_eq.c
head/sys/dev/mlx5/mlx5_core/mlx5_health.c
Log:
mlx5: Fixes to allow command polling mode to exist alongside event mode.

A command is either polling or event driven and the mode cannot change
during execution of a command. Make sure the event handler only handle
commands which are not polled. This is done by checking the command mode
in the command handler before completing commands.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:45 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_en/en.h
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Log:
mlx5: Add software tx_jumbo_packets counter

This counter will represent transmitted packets which has more than
1518 octets.
The NIC has multiple hardware counters for counting transmitted
packets larger than 1518 octets. Each counter counts the packets
in specific range.
We accumulate those counters to have a single counter.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:45 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_core
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_mr.c
head/sys/dev/mlx5/mlx5_ifc.h
Log:
mlx5: Implement support for configuring PCIe packet write ordering via a sysctl.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:44 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_core
Modificado:
head/sys/dev/mlx5/driver.h
head/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
Log:
mlx5: Extend vector argument to u64.

Else the MLX5_TRIGGERED_CMD_COMP flag will be masked away.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:44 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_core
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_health.c
Log:
mlx5: Add global control to disable firmware reset, for all mlx5 devices.

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:43 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_core
Modificado:
head/sys/dev/mlx5/driver.h
head/sys/dev/mlx5/mlx5_core/mlx5_health.c
head/sys/dev/mlx5/mlx5_core/mlx5_main.c
Log:
mlx5: Fix use-after-free in self-healing flow

When the mlx5 health mechanism detects a problem while the driver
is in the middle of init_one or remove_one, the driver needs to prevent
the health mechanism from scheduling future work; if future work
is scheduled, there is a problem with use-after-free: the system WQ
tries to run the work item (which has been freed) at the scheduled
future time.

Prevent this by disabling work item scheduling in the health mechanism
when the driver is in the middle of init_one() or remove_one().

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:43 pm
base/head
slavash
in head/sys/dev/mlx5: mlx5_core mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_core.h
head/sys/dev/mlx5/mlx5_core/mlx5_main.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Log:
mlx5: Move hw.mlx5 node definition to mlx5_core.

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:42 pm
base/head
slavash
in head/sys/dev/mlx5: . mlx5_ib
Modificado:
head/sys/dev/mlx5/driver.h
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_srq.c
Log:
mlx5: Add SRQ fixes from Linux

Combine multiple fixes from Linux to SRQ.
Linux commits:
c73b791 IB/mlx5: Assign SRQ type earlier
0fd27a8 IB/mlx5: Fix out-of-bound access
c2b37f7 IB/mlx5: Fix integer overflows in mlx5_ib_create_srq
d63c467 RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:42 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_core
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_main.c
Log:
mlx5: Convert some spaces into tabs and use device_printf() instead of printf().

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:41 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_core
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
head/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c
head/sys/dev/mlx5/mlx5_core/mlx5_vport.c
Log:
mlx5: Fix for potential memory leaks.

Make sure allocated data gets freed in error cases.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:41 pm
base/head
slavash
in head/sys/dev/mlx5: mlx5_core mlx5_en
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c
head/sys/dev/mlx5/mlx5_en/mlx5_en_rl.c
Log:
mlx5: Discard unused return values.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:40 pm
base/head
slavash
in head/sys/dev/mlx5: mlx5_core mlx5_ib
Modificado:
head/sys/dev/mlx5/mlx5_core/mlx5_health.c
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
Log:
mlx5: Raise fatal IB event when sys error occurs

All other mlx5_events report the port number as 1 based, which is how FW
reports it in the port event EQE. Reporting 0 for this event causes
mlx5_ib to not raise a fatal event notification to registered clients
due to a seemingly invalid port.

All switch cases in mlx5_ib_event that go through the port check are
supposed to set the port now, so just do it once at variable
declaration.

Linux commit:
aba462134634b502d720e15b23154f21cfa277e5

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:39 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_en
Modificado:
head/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
Log:
mlx4en: Optimise reception of small packets.

Copy small packets like TCP ACKs into a new mbuf
reusing the existing mbuf to receive a new ethernet
frame. This avoids wasting buffer space for
small sized packets.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:40 pm
base/head
slavash
head/sys/dev/mlx5/mlx5_ib
Modificado:
head/sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
Log:
mlx5: Fix integer overflow while resizing CQ

The user can provide very large cqe_size which will cause to integer
overflow.

Linux commit:
28e9091e3119933c38933cb8fc48d5618eb784c8

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:39 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_core
Modificado:
head/sys/dev/mlx4/mlx4_core/mlx4_intf.c
Log:
mlx4: Make sure default VNET is set when adding a new interface.

Adding an interface might be done outside the device_attach() routine
and will then cause a panic, due to the VNET not being defined.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:38 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_en
Modificado:
head/sys/dev/mlx4/mlx4_en/mlx4_en_port.c
Log:
mlx4en: Remove duplicate statistics variable assignment.

The "priv->pkstats.rx_dropped" is written twice in a row.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:32 pm
base/head
slavash
in head/sys/dev/mlx4: . mlx4_core mlx4_en
Modificado:
head/sys/dev/mlx4/driver.h
head/sys/dev/mlx4/mlx4_core/mlx4_eq.c
head/sys/dev/mlx4/mlx4_en/en.h
head/sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
head/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
Log:
mlx4en: Add support for netdump.

Implement the needed callback functions and support for polling the driver.

Differential Revision: https://reviews.freebsd.org/D15259
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:29 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_core
Modificado:
head/sys/dev/mlx4/mlx4_core/mlx4_main.c
Log:
mlx4: Zero initialize device capabilities to avoid use of uninitialized fields.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:29 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_core
Modificado:
head/sys/dev/mlx4/mlx4_core/mlx4_icm.c
Log:
mlx4core: Avoid multiplication overflow by casting multiplication.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:32 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_en
Modificado:
head/sys/dev/mlx4/mlx4_en/en.h
head/sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
head/sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
Log:
mlx4en: Add support for receiving all data using one or more MCLBYTES sized mbufs.
Also when the MTU is greater than MCLBYTES.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:26 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/ulp/ipoib
Modificado:
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
Log:
ipoib: Don't do a light flush when MTU is unchanged.

When changing the MTU of ibX network interfaces, check that the MTU was really
changed before requesting an update of the multicast rules. Else we might go
into an infinite loop joining and leaving ibX multicast groups towards the
opensm master interface.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:31 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_core
Modificado:
head/sys/dev/mlx4/mlx4_core/mlx4_main.c
Log:
mlx4en: Add driver version to sysctl desc

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:31 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_en
Modificado:
head/sys/dev/mlx4/mlx4_en/en.h
head/sys/dev/mlx4/mlx4_en/mlx4_en_cq.c
head/sys/dev/mlx4/mlx4_en/mlx4_en_netdev.c
head/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
Log:
mlx4en: Remove the DRBR and associated logic in the transmit path.

The hardware queues are deep enough currently and using the DRBR and associated
callbacks only leads to more task switching in the TX path. The is also a race
setting the queue_state which can lead to hung TX rings.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:30 pm
base/head
slavash
head/sys/dev/mlx4/mlx4_core
Modificado:
head/sys/dev/mlx4/mlx4_core/mlx4_cmd.c
Log:
mlx4core: Add checks for invalid port numbers.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:30 pm
base/head
slavash
in head/sys/dev/mlx4: . mlx4_core
Modificado:
head/sys/dev/mlx4/device.h
head/sys/dev/mlx4/mlx4_core/mlx4_main.c
Log:
mlx4: Add board identifier and firmware version to sysctl

In last mlx4 update (r325841) we lost the sysctl to show the
firmware version for mlx4 devices.
Add both board identifier and firmware version under:
sys.device.mlx4_core0.hw sysctl node.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:28 pm
base/head
slavash
head/contrib/ofed/libibverbs
Modificado:
head/contrib/ofed/libibverbs/sysfs.c
Log:
libibverbs: Fix memory leak in ibv_read_sysfs_file().

Testing packetdrill using valgrind resulted in finding a memory leak in
ibv_read_sysfs_file(). The attached patch fixes it.

Submitted by: tuexen@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:28 pm
base/head
slavash
head/contrib/ofed/opensm/opensm
Modificado:
head/contrib/ofed/opensm/opensm/main.c
Log:
opensm: Use precision specifier for scanf

If user input a string larger than the length of buffer, the stack
memory will be corrupted.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:23 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_cma.c
Log:
ibcore: Add missing unref of netdevice.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:27 pm
base/head
slavash
head/sys/contrib/rdma/krping
Modificado:
head/sys/contrib/rdma/krping/krping_dev.c
Log:
krping: Fix for memory leak in error case.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:23 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_cma.c
Log:
ibcore: Fix loopback with rdma-cm.

Trying to validate loopback fails because rtalloc1() resolves system
local addresses to the loopback network interface, lo0. Fix this by
explicitly checking for loopback during validation of the source
and destination network address. If the source address belongs to
a local network interface and is equal to the destination address,
there is no need to run the destination address through rtalloc1().

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:27 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/ulp/ipoib
Modificado:
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c
Log:
ipoib: Notify on modify QP failure only when relevant

Modify QP can fail and it can be acceptable, like when moving from RST to
ERR state, all the rest are not acceptable and a message to the log
should be printed.

The current code prints on all failures and many messages like:
"Failed to modify QP to ERROR state" appear, even when supported by the
state machine of the QP object.

Linux commit:
5dc78ad1904db597bdb4427f3ead437aae86f54c

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:26 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/ulp/ipoib
Modificado:
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib.h
Log:
ipoib: increase the non-cm queue length

When a packet needs fragmentation, it might generate more than 3 fragments.
With the queue length 3, all fragments are generated faster than the
queue is drained, which effectively drops fourth and later fragments on
the floor.

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:22 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
Log:
ibcore: Make sure all VNETs are scanned for VLAN interfaces.

The master network interface and the VLANs may reside in different VNETs.
Make sure that all VNETs are searched when scanning for GID entries.

Submitted by: netapp
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:25 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/ulp/ipoib
Modificado:
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib.h
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
Log:
ipoib: correct setting MTU from inside ipoib(4).

It is not enough to set ifnet->if_mtu to change the interface MTU.
System saves the MTU for route in the radix tree, and route cache keeps
the interface MTU as well. Since addition of the multicast group causes
recalculation of MTU, even bringing the interface up changes MTU from
4042 to 1500, which makes the system configuration inconsistent. Worse,
ip_output() prefers route MTU over interface MTU, so large packets are
not fragmented and dropped on floor.

Fix it for ipoib(4) using the same approach (or hack) as was applied
for it_tun/if_tap in r339012. Thanks to bz@ for giving the hint.

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:25 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_addr.c
Log:
ibcore: Fix clearing of bound device interface.

Binding to a loopback device is not allowed. Make sure the destination
device address is global by clearing the bound device interface.
Only do this conditionally, else link local addresses won't work.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:24 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_cm.c
Log:
ibcore: Fix sleeping in atomic when RoCE is used

A couple of places in the CM do

spin_lock_irq(&cm_id_priv->lock);
...
if (cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg))

However when the underlying transport is RoCE, this leads to a sleeping function
being called with the lock held - the callchain is

cm_alloc_response_msg() ->
ib_create_ah_from_wc() ->
ib_init_ah_from_wc() ->
rdma_addr_find_l2_eth_by_grh() ->
rdma_resolve_ip()

and rdma_resolve_ip() starts out by doing

req = kzalloc(sizeof *req, GFP_KERNEL);

not to mention rdma_addr_find_l2_eth_by_grh() doing

wait_for_completion(&ctx.comp);

to wait for the task that rdma_resolve_ip() queues up.

Fix this by moving the AH creation out of the lock.

Linux commit:
c76161181193985087cd716fdf69b5cb6cf9ee85

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:24 pm
base/head
slavash
in head/sys: compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/inetdevice.h
head/sys/ofed/drivers/infiniband/core/ib_addr.c
head/sys/ofed/drivers/infiniband/core/ib_cma.c
Log:
ibcore: ip6_dev_find() needs to know the scope ID.

Else the wrong network device can be returned for link-local addresses.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:22 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_cm.c
head/sys/ofed/drivers/infiniband/core/ib_user_mad.c
Log:
ibcore: Always check return value from ib_init_ah_from_wc().

This prevents code from accepting RoCEv1 connections when
only ROCEv2 is enabled and vice versa.

Linux commit:
0c4386ec77cfcd0ccbdbe8c2e67dd3a49b2a4c7f

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:21 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_cm.c
Log:
ibcore: Add missing check for failure.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:20 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_mad.c
Log:
ibcore: Fix an array index check

The array ib_mad_mgmt_class_table.method_table has MAX_MGMT_CLASS
(80) elements. Hence compare the array index with that value instead
of with IB_MGMT_MAX_METHODS (128). This patch avoids that Coverity
reports the following:

Overrunning array class->method_table of 80 8-byte elements at element index 127
(byte offset 1016) using index convert_mgmt_class(mad_hdr->mgmt_class)
(which evaluates to 127).

Linux commit:
2fe2f378dd45847d2643638c07a7658822087836

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:20 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_multicast.c
Log:
ibcore: Check ib_find_pkey() return value.

Linux commit:
d3a2418ee36a59bc02e9d454723f3175dcf4bfd9

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:19 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_cma.c
Log:
ibcore: Don't access invalid port.

The port number in the listen_id_priv has been observed to be zero which
means no port has been selected. The current code lacks a check for invalid
port number.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:19 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_sysfs.c
Log:
ibcore: Add support for IB_SPEED_HDR in sysfs rate printout.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:18 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_verbs.c
Log:
ibcore: Make sure GID index variable gets initialized.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:18 pm
base/head
slavash
head/sys/ofed/drivers/infiniband/core
Modificado:
head/sys/ofed/drivers/infiniband/core/ib_iwcm.c
Log:
ibcore: Discard unused error codes.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:17 pm
base/head
slavash
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/pci.h
Log:
linuxkpi: Really check if PCI is offline

Currently we always return false if for PCI offline query.
Try to read PCI config, if the return value if 0xffff probably the
PCI is offline.

Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:17 pm
base/head
slavash
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/netdevice.h
Log:
linuxkpi: properly implement netif_carrier_ok().

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:16 pm
base/head
slavash
in head/sys/compat/linuxkpi/common: include/linux src
Modificado:
head/sys/compat/linuxkpi/common/include/linux/cdev.h
head/sys/compat/linuxkpi/common/include/linux/fs.h
head/sys/compat/linuxkpi/common/src/linux_compat.c
Log:
linuxkpi: Fix for use-after-free when tearing down character devices.

Make sure we hold a reference on the character device for every opened file
to prevent the character device to be freed prematurely.

Submitted by: hselasky@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
1:15 pm
base/head
slavash
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/idr.h
Log:
linuxkpi: implement idr_is_empty() and ida_is_empty().

Submitted by: kib@
Approved by: hselasky (mentor)
MFC after: 1 week
Sponsored by: Mellanox Technologies
05/12/2018
11:57 am
base/head
vmaffione
in head/sys: conf dev/netmap modules/netmap net
Adicional:
head/sys/dev/netmap/netmap_kloop.c (contents, props changed)
head/sys/dev/netmap/netmap_null.c (contents, props changed)
Modificado:
head/sys/conf/files
head/sys/dev/netmap/if_ixl_netmap.h
head/sys/dev/netmap/if_ptnet.c
head/sys/dev/netmap/if_vtnet_netmap.h
head/sys/dev/netmap/netmap.c
head/sys/dev/netmap/netmap_bdg.c
head/sys/dev/netmap/netmap_bdg.h
head/sys/dev/netmap/netmap_freebsd.c
head/sys/dev/netmap/netmap_generic.c
head/sys/dev/netmap/netmap_kern.h
head/sys/dev/netmap/netmap_legacy.c
head/sys/dev/netmap/netmap_mem2.c
head/sys/dev/netmap/netmap_mem2.h
head/sys/dev/netmap/netmap_pipe.c
head/sys/dev/netmap/netmap_vale.c
head/sys/modules/netmap/Makefile
head/sys/net/netmap.h
head/sys/net/netmap_user.h
head/sys/net/netmap_virt.h
Log:
netmap: align codebase to the current upstream (760279cfb2730a585)

Changelist:
- Replace netmap passthrough host support with a more general
mechanism to call TXSYNC/RXSYNC from an in-kernel event-loop.
No kernel threads are used to use this feature: the application
is required to spawn a thread (or a process) and issue a
SYNC_KLOOP_START (NIOCCTRL) command in the thread body. The
kernel loop is executed by the ioctl implementation, which returns
to userspace only when a different thread calls SYNC_KLOOP_STOP
or the netmap file descriptor is closed.
- Update the if_ptnet driver to cope with the new data structures,
and prune all the obsolete ptnetmap code.
- Add support for "null" netmap ports, useful to allocate netmap_if,
netmap_ring and netmap buffers to be used by specialized applications
(e.g. hypervisors). TXSYNC/RXSYNC on these ports have no effect.
- Various fixes and code refactoring.

Sponsored by: Sunny Valley Networks
Differential Revision: https://reviews.freebsd.org/D18015
05/12/2018
10:58 am
base/head
arichardson
head/lib/libopenbsd
Modificado:
head/lib/libopenbsd/Makefile
Log:
Allow bootstrapping libopenbsd on Linux

The getdtablecount.c file won't compile on Linux but it seems like none of
the bootstrap tools actually need it.

Reviewed By: emaste, brooks
Differential Revision: https://reviews.freebsd.org/D14244
05/12/2018
10:57 am
base/head
arichardson
in head: . sys/conf
Modificado:
head/Makefile.inc1
head/sys/conf/newvers.sh
Log:
Fix newvers.sh with BUILD_WITH_STRICT_TMPPATH=1

newvers.sh runs mkfifo which did not exist before this change.
However, I didn't notice before because it is run from a function
where a missing command does cause a noticeable failure.

Reviewed By: emaste, markj
Differential Revision: https://reviews.freebsd.org/D18377
05/12/2018
10:30 am
base/head
mmel
head/libexec/rtld-elf/aarch64
Modificado:
head/libexec/rtld-elf/aarch64/reloc.c
Log:
Tidy up arm64 reloc_jmpslots() implementation.
- don't relocate jump slots multiple times (if LD_BIND_NOW is defined).
- process only R_AARCH64_JUMP_SLOT here, other relocation types are handled
by reloc_plt().

MFC after: 1 week
05/12/2018
10:23 am
base/head
mmel
head/libexec/rtld-elf/aarch64
Modificado:
head/libexec/rtld-elf/aarch64/reloc.c
Log:
Implement arm64 version of __tls_get_addr().

MFC after: 1 week
05/12/2018
10:22 am
base/head
mmel
head/libexec/rtld-elf/aarch64
Modificado:
head/libexec/rtld-elf/aarch64/reloc.c
head/libexec/rtld-elf/aarch64/rtld_start.S
Log:
Fix style(9).
Not a functional change.

MFC after: 1 week
05/12/2018
6:31 am
base/head
mckusick
head/sbin/fsck_ffs
Modificado:
head/sbin/fsck_ffs/fsck.h
head/sbin/fsck_ffs/fsutil.c
head/sbin/fsck_ffs/inode.c
head/sbin/fsck_ffs/pass1.c
head/sbin/fsck_ffs/pass5.c
head/sbin/fsck_ffs/setup.c
Log:
Ensure that cylinder-group check-hashes are properly updated when first
creating them and when correcting them when they are found to be corrupted.

Reported by: Don Lewis (truckman@)
Sponsored by: Netflix
05/12/2018
12:46 am
base/head
brooks
in head/lib/libc: amd64 arm i386 mips powerpc powerpc64
Modificado:
head/lib/libc/amd64/Symbol.map
head/lib/libc/arm/Symbol.map
head/lib/libc/i386/Symbol.map
head/lib/libc/mips/Symbol.map
head/lib/libc/powerpc/Symbol.map
head/lib/libc/powerpc64/Symbol.map
head/lib/libc/sparc64/Symbol.map
Log:
Remove MD __sys_* private symbols.

No references to any of these exist in the tree. The list was also
erratic with different architectures exporting different things
(arm64 and riscv exported none).

Reviewed by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18425
04/12/2018
11:53 pm
base/head
vangyzen
in head/sys: conf net/altq
Eliminado:
head/sys/net/altq/altq_cdnr.c
Modificado:
head/sys/conf/files
head/sys/net/altq/altq_cbq.c
head/sys/net/altq/altq_hfsc.c
head/sys/net/altq/altq_priq.c
Log:
altq: manual cleanup after r341507

Remove a file that became practically empty.
Fix indentation.

Like r341507, I do not plan to MFC, but anyone else can.
04/12/2018
11:46 pm
base/head
vangyzen
head/sys/net/altq
Modificado:
head/sys/net/altq/altq.h
head/sys/net/altq/altq_cbq.c
head/sys/net/altq/altq_cbq.h
head/sys/net/altq/altq_cdnr.c
head/sys/net/altq/altq_hfsc.c
head/sys/net/altq/altq_hfsc.h
head/sys/net/altq/altq_priq.c
head/sys/net/altq/altq_priq.h
head/sys/net/altq/altq_red.c
head/sys/net/altq/altq_red.h
head/sys/net/altq/altq_rio.c
head/sys/net/altq/altq_rio.h
head/sys/net/altq/altq_rmclass.c
head/sys/net/altq/altq_subr.c
Log:
altq: remove ALTQ3_COMPAT code

This code has apparently never compiled on FreeBSD since its
introduction in 2004 (r130365). It has certainly not compiled
since 2006, when r164033 added #elsif [sic] preprocessor directives.
The code was left in the tree to reduce the diff from upstream (KAME).
Since that upstream is no longer relevant, remove the long-dead code.

This commit is the direct result of:

unifdef -m -UALTQ3_COMPAT sys/net/altq/*

A later commit will do some manual cleanup.

I do not plan to MFC this. If that would help you, go for it.
04/12/2018
10:51 pm
base/head
pfg
head/share/man/man5
Modificado:
head/share/man/man5/ext2fs.5
Log:
ext2fs.4: basic updates.

Starting with FreeBSD 12 we fully support writing ext4 filesystems.
Mention some features that we don't support while here.

MFC after: 3 days
04/12/2018
9:57 pm
base/head
brooks
head/sys/sys
Modificado:
head/sys/sys/sysproto.h
Log:
Regen after r341495: Remove NOARGS from oaccept.
04/12/2018
9:56 pm
base/head
brooks
head/sys/kern
Modificado:
head/sys/kern/syscalls.master
Log:
Remove NOARGS from oaccept.

This was in the orignal patch, but lost in a rebase.

Reported by: andrew
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15816
04/12/2018
9:48 pm
base/head
sobomax
head/sys/geom
Modificado:
head/sys/geom/geom_dev.c
Log:
Another attempt to fix issue with the DIOCGDELETE ioctl(2) not
handling slightly out-of-bound requests properly (r340187).
Perform range check here rather then rely on g_delete_data() to DTRT.

The g_delete_data() would always return success for requests
starting just the next byte after providers media boundary.

MFC after: 4 weeks
04/12/2018
6:51 pm
base/head
andrew
head
Modificado:
head/Makefile.inc1
Log:
Only gnu/lib/csu when MK_BSD_CRTBEGIN is off.

We were still building it from Makefile.inc1. Disable it there so we don't
try to build the GNU crtbegin/crtend when the BSD version was asked for.

PR: 233733
Reported by: lwhsu
Reviewed by: emaste
MFC with: r339738
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18428
04/12/2018
6:28 pm
base/head
gordon
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/fwctl.c
Log:
Always treat firmware request and response sizes as unsigned.

This fixes an incomplete bounds check on the guest-supplied request
size where a very large request size could be interpreted as a negative
value and not be caught by the bounds check.

Submitted by: jhb
Reported by: Reno Robert
Approved by: so
Security: FreeBSD-SA-18:14.bhyve
Security: CVE-2018-17160
04/12/2018
4:48 pm
base/head
brooks
in head/sys: kern vm
Modificado:
head/sys/kern/kern_xxx.c
head/sys/kern/syscalls.master
head/sys/kern/uipc_syscalls.c
head/sys/vm/vm_mmap.c
Log:
Normalize COMPAT_43 syscall declarations.

Have ogetkerninfo, ogetpagesize, ogethostname, osethostname, and oaccept
declare o_args structs rather than non-compat ones. Due to a
failure to use NOARGS in most cases this adds only one new declaration.

No changes required in freebsd32 as only ogetpagesize() is implemented
and it has a 32-bit specific implementation.

Reviewed by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15816
04/12/2018
4:49 pm
base/head
brooks
in head/sys: kern sys
Modificado:
head/sys/kern/init_sysent.c
head/sys/sys/sysproto.h
Log:
Regen after r341474: Normalize COMPAT_43 syscall declarations.
04/12/2018
4:43 pm
base/head
ian
in head/stand/i386: common gptboot loader
Modificado:
head/stand/i386/common/bootargs.h
head/stand/i386/gptboot/gptboot.c
head/stand/i386/loader/main.c
Log:
Fix args cross-threading between gptboot(8) and loader(8) with zfs support.

When loader(8) is built with zfs support enabled, it assumes that any extarg
data present is a zfs_boot_args struct, but if the first-stage loader was
gptboot(8) the extarg data is actually a geli_boot_args struct. Luckily,
zfsboot(8) and gptzfsboot(8) have always passed KARGS_FLAGS_ZFS along with
KARGS_FLAGS_EXTARG, so we can use KARGS_FLAGS_ZFS to decide whether the
extarg data is a zfs_boot_args struct.

To avoid similar problems in the future, gptboot(8) now passes a new
KARGS_FLAGS_GELI to indicate that extarg data is geli_boot_args. In
loader(8), if the neither KARGS_FLAGS_ZFS nor KARGS_FLAGS_GELI is set but
extarg data is present (which will be the case for gptboot compiled before
this change), we now check for the known size of the geli_boot_args struct
passed by the older versions of gptboot as a way of confirming what type of
extarg data is present.

In a semi-related tidying up, since loader's main() has already decided
what type of extarg data is present and set the global 'zargs' var
accordingly, don't repeat the check in extract_currdev, just check whether
zargs is NULL or not.

X-MFC after: a few days, along with prior related changes.
04/12/2018
4:12 pm
base/head
ae
in head: sbin/ipfw sys/netinet sys/netpfil/ipfw
Modificado:
head/sbin/ipfw/ipfw.8
head/sbin/ipfw/ipfw2.c
head/sbin/ipfw/ipfw2.h
head/sbin/ipfw/main.c
head/sys/netinet/ip_fw.h
head/sys/netpfil/ipfw/ip_fw_dynamic.c
head/sys/netpfil/ipfw/ip_fw_sockopt.c
Log:
Add ability to request listing and deleting only for dynamic states.

This can be useful, when net.inet.ip.fw.dyn_keep_states is enabled, but
after rules reloading some state must be deleted. Added new flag '-D'
for such purpose.

Retire '-e' flag, since there can not be expired states in the meaning
that this flag historically had.

Also add "verbose" mode for listing of dynamic states, it can be enabled
with '-v' flag and adds additional information to states list. This can
be useful for debugging.

Obtained from: Yandex LLC
MFC after: 2 months
Sponsored by: Yandex LLC
04/12/2018
4:01 pm
base/head
ae
in head/sys/netpfil/ipfw: . nat64 nptv6
Modificado:
head/sys/netpfil/ipfw/ip_fw_dynamic.c
head/sys/netpfil/ipfw/ip_fw_eaction.c
head/sys/netpfil/ipfw/ip_fw_private.h
head/sys/netpfil/ipfw/ip_fw_sockopt.c
head/sys/netpfil/ipfw/nat64/nat64lsn_control.c
head/sys/netpfil/ipfw/nat64/nat64stl_control.c
head/sys/netpfil/ipfw/nptv6/nptv6.c
Log:
Reimplement how net.inet.ip.fw.dyn_keep_states works.

Turning on of this feature allows to keep dynamic states when parent
rule is deleted. But it works only when the default rule is
"allow from any to any".

Now when rule with dynamic opcode is going to be deleted, and
net.inet.ip.fw.dyn_keep_states is enabled, existing states will reference
named objects corresponding to this rule, and also reference the rule.
And when ipfw_dyn_lookup_state() will find state for deleted parent rule,
it will return the pointer to the deleted rule, that is still valid.
This implementation doesn't support O_LIMIT_PARENT rules.

The refcnt field was added to struct ip_fw to keep reference, also
next pointer added to be able iterate rules and not damage the content
when deleted rules are chained.

Named objects are referenced only when states are going to be deleted to
be able reuse kidx of named objects when new parent rules will be
installed.

ipfw_dyn_get_count() function was modified and now it also looks into
dynamic states and constructs maps of existing named objects. This is
needed to correctly export orphaned states into userland.

ipfw_free_rule() was changed to be global, since now dynamic state can
free rule, when it is expired and references counters becomes 1.

External actions subsystem also modified, since external actions can be
deregisterd and instances can be destroyed. In these cases deleted rules,
that are referenced by orphaned states, must be modified to prevent access
to freed memory. ipfw_dyn_reset_eaction(), ipfw_reset_eaction_instance()
functions added for these purposes.

Obtained from: Yandex LLC
MFC after: 2 months
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D17532
04/12/2018
3:25 pm
base/head
emaste
head/sbin/ggate/ggated
Modificado:
head/sbin/ggate/ggated/ggated.c
Log:
ggated: do not expose stack data in sendfail()

admbugs: 590
Submitted by: Fabian Keil
Obtained from: ElectroBSD
04/12/2018
3:12 pm
base/head
ae
head/sys/netpfil/ipfw
Modificado:
head/sys/netpfil/ipfw/ip_fw_dynamic.c
Log:
Add assertion to check that named object has correct type.

Obtained from: Yandex LLC
MFC after: 1 week
04/12/2018
12:34 pm
base/head
garga
head/sbin/savecore
Modificado:
head/sbin/savecore/Makefile
Log:
Restore /var/crash permissions to 0750, as declared in mtree file. After
r337337 it changed to 0755.

Reviewed by: loos
Approved by: loos
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D18355
04/12/2018
6:11 am
base/head
cy
head/contrib/ipfilter
Modificado:
head/contrib/ipfilter/ip_fil.c
Log:
As part of the general cleanup of the ipfilter code, special cases
are committed separately to document fixing them separately from
the general cleanup. In this case we don't want to hide the utter
brokenness of what is being fixed.

Clean up a discombobulated block of #if's, with one block unreachable.
ip_fil.c is used in ipftest which is used to dry-run test ipfilter
rules in userspace without loading them in the kernel. The call to
(*ifp->if_output) matches that in the FreeBSD kernel.

Further testing and work will be required to make ipftest fully
functional.

MFC after: 1 week
04/12/2018
4:55 am
base/head
jhibbits
in head/sys: dev/pci powerpc/ofw powerpc/powermac
Modificado:
head/sys/dev/pci/pci.c
head/sys/dev/pci/pci_pci.c
head/sys/powerpc/ofw/ofw_pcib_pci.c
head/sys/powerpc/ofw/ofw_pcibus.c
head/sys/powerpc/ofw/openpic_ofw.c
head/sys/powerpc/powermac/cpcht.c
head/sys/powerpc/powermac/macgpio.c
head/sys/powerpc/powermac/macio.c
head/sys/powerpc/powermac/pmu.c
head/sys/powerpc/powermac/smu.c
head/sys/powerpc/powermac/uninorth.c
head/sys/powerpc/powermac/uninorthpci.c
Log:
Sprinkle EARLY_DRIVER_MODULE around the tree

Mark some buses as BUS_PASS_BUS, and some resources as BUS_PASS_RESOURCE.
This also decouples some resource attachment orderings from being races by
device tree ordering, instead relying on the bus pass to provide the
ordering.

This was originally intended to support multipass suspend/resume, but it's
also needed on PowerMacs when using fdt, as the device tree seems to get
created in reverse of the OFW tree.
Reviewed by: nwhitehorn (long ago)
Differential Revision: https://reviews.freebsd.org/D918
04/12/2018
3:51 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/pmap.c
Log:
powerpc: preload_addr_relocate is no longer necessary for booke

The same behavior was moved to machdep.c, paired with AIM's relocation,
making this redundant. With this, it's now possible to boot FreeBSD with
ubldr on a uboot Book-E platform, even with a
KERNBASE != VM_MIN_KERNEL_ADDRESS.
04/12/2018
3:23 am
base/head
sbruno
head/lib/libarchive
Modificado:
head/lib/libarchive/Makefile
head/lib/libarchive/config_freebsd.h
Log:
Revert r340997 at the request of multiple users.
- breaks ports-mgmt/pkg build for mips64, powerpc64 and i386 for some users.

--- pkg-static ---
/usr/lib/liblzma.a(stream_encoder_mt.o): In function `mythread_cond_init':
/usr/local/poudriere/jails/ppc64/usr/src/contrib/xz/src/common/mythread.h:230:
undefined reference to `pthread_condattr_init'

Reported by: jhibbits zeising
04/12/2018
12:22 am
base/head
brooks
head/tools/KSE
Eliminado:
head/tools/KSE/
Log:
Remove test for KSE (removed in 2008).

Approved by: julian
04/12/2018
12:15 am
base/head
brooks
head/sys/kern
Modificado:
head/sys/kern/init_main.c
Log:
Remove a needlessly clever hack to start init with sys_exec().

Construct a struct image_args with the help of new exec_args_*() helper
functions and call kern_execve().

The previous code mapped a page in userspace, copied arguments out
to it one at a time, and then constructed a struct execve_args all so
that sys_execve() can call exec_copyin_args() to copy the data back in
to a struct image_args.

Opencode the part of pre_execve()/post_execve() that releases a
reference to the initial vmspace. We don't need to stop threads like
they do.

Reviewed by: kib, jhb (prior version)
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15469
03/12/2018
11:42 pm
base/head
kib
in head: lib/libprocstat usr.bin/fstat usr.bin/procstat
Modificado:
head/lib/libprocstat/libprocstat.c
head/lib/libprocstat/libprocstat.h
head/usr.bin/fstat/fstat.c
head/usr.bin/procstat/procstat_files.c
Log:
Print type designator 'D' for the KF_TYPE_DEV files.

No type-specific data is provided by the kernel.

Sponsored by: Mellanox Technologies
MFC after: 1 week
03/12/2018
11:39 pm
base/head
kib
in head/sys: compat/linuxkpi/common/src sys
Modificado:
head/sys/compat/linuxkpi/common/src/linux_compat.c
head/sys/sys/user.h
Log:
Improve procstat reporting for the linux cdev file descriptors.

If there is a vnode attached to the linux file, use it to fill
kinfo_file. Otherwise, report a new KF_TYPE_DEV file type, without
supplying any type-specific information.

KF_TYPE_DEV is supposed to be used by most devfs-specific file types.

Sponsored by: Mellanox Technologies
MFC after: 1 week
03/12/2018
10:31 pm
base/head
yuripv
head/release/amd64
Modificado:
head/release/amd64/mkisoimages.sh
Log:
mkisoimages.sh: don't use -p flag when copying loader.efi to msdosfs.

This fixes 'cdrom' target in the case when world was built by user,
and not root.

Reviewed by: imp
Differential revision: https://reviews.freebsd.org/D18414
03/12/2018
10:09 pm
base/head
brooks
head/lib/libthr/thread
Modificado:
head/lib/libthr/thread/thr_private.h
Log:
Remove declarations of syscalls not used in libthr.

Reviewed by: kib
Sponsored by: DARPA, AFRL
03/12/2018
9:07 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/sys_process.c
Log:
Add a missing definition for the !COMPAT_FREEBSD32 case.

Reported by: jenkins
MFC with: r341442
Sponsored by: The FreeBSD Foundation
03/12/2018
8:54 pm
base/head
markj
in head/sys: amd64/amd64 amd64/ia32 arm/arm fs/procfs
Modificado:
head/sys/amd64/amd64/machdep.c
head/sys/amd64/ia32/ia32_reg.c
head/sys/arm/arm/machdep_kdb.c
head/sys/fs/procfs/procfs_dbregs.c
head/sys/fs/procfs/procfs_fpregs.c
head/sys/fs/procfs/procfs_regs.c
head/sys/i386/i386/machdep.c
head/sys/kern/sys_process.c
head/sys/sparc64/sparc64/machdep.c
Log:
Plug memory disclosures via ptrace(2).

On some architectures, the structures returned by PT_GET*REGS were not
fully populated and could contain uninitialized stack memory. The same
issue existed with the register files in procfs.

Reported by: Thomas Barabosch, Fraunhofer FKIE
Reviewed by: kib
MFC after: 3 days
Security: kernel stack memory disclosure
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18421
03/12/2018
8:03 pm
base/head
kib
head/libexec/rtld-elf
Modificado:
head/libexec/rtld-elf/rtld.c
head/libexec/rtld-elf/rtld.h
Log:
Some fixes for LD_BIND_NOW + ifuncs.

- Do not perform ifunc relocations together with other PLT relocations
in PLT. Instead, do it during an additional pass over the init
list, so that ifuncs are resolved in the order of dso
dependencies. This allows the ifuncs resolvers to call into depended
libs. Init list now includes all objects instead of only objects
with init/fini callables.
- Disable relro protection around bind_now ifunc relocations.

I considered calling ifunc resolvers of dso after initializers of all
dependencies are processed, and decided that this is wrong/should not
be supported. The order now is normal relocations for all
objects->ifunc resolution in init order->initializers, where each step
does complete pass over all loaded objects before moving to the next
step.

Reported, tested and reviewed by: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18400
03/12/2018
8:01 pm
base/head
sevan
head/bin/pkill
Modificado:
head/bin/pkill/pkill.1
Log:
Clarify that /dev/kmem is not used.
Move cross ref to right place while here.

Submitted by: kib
MFC after: 7 days
03/12/2018
7:55 pm
base/head
kib
head/libexec/rtld-elf
Modificado:
head/libexec/rtld-elf/rtld.c
Log:
Provide naive but self-contained implementations of memset(3) and
bzero(3) for rtld.

This again reduces rtld dependency on libc, and in future, avoid ifunc
relocations when the functions are converted to ifuncs in libc.

Reported by: mjg
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18400
03/12/2018
7:35 pm
base/head
tsoome
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Modificado:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
Log:
zfs: we can boot from dataset with large_dnode enabled

loader has been supporting large_dnode for some time, no need to block the
feature for boot dataset.

Reviewed by: avg
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18391
03/12/2018
7:16 pm
base/head
emaste
in head/stand/i386: kgzldr mbr pmbr
Adicional:
head/stand/i386/kgzldr/crt.S
- copied unchanged from r341436, head/stand/i386/kgzldr/crt.s
head/stand/i386/kgzldr/sio.S
- copied unchanged from r341436, head/stand/i386/kgzldr/sio.s
head/stand/i386/kgzldr/start.S
- copied unchanged from r341436, head/stand/i386/kgzldr/start.s
head/stand/i386/mbr/mbr.S
- copied unchanged from r341436, head/stand/i386/mbr/mbr.s
head/stand/i386/pmbr/pmbr.S
- copied unchanged from r341436, head/stand/i386/pmbr/pmbr.s
Eliminado:
head/stand/i386/kgzldr/crt.s
head/stand/i386/kgzldr/sio.s
head/stand/i386/kgzldr/start.s
head/stand/i386/mbr/mbr.s
head/stand/i386/pmbr/pmbr.s
Modificado:
head/stand/i386/kgzldr/Makefile
head/stand/i386/mbr/Makefile
head/stand/i386/pmbr/Makefile
Log:
stand/i386: rename .s to .S to use Clang IAS

As part of the migration away from obsolete binutils we want to retire
GNU as. Most assembly files used on amd64 have a .S extension and
(via rules in share/mk/bsd.suffixes.mk) are assembled with Clang's
Integrated Assembler (IAS). Rename files in stand/i386 to .S to use
the integrated assembler.

Clang's IAS supports the defsym option (via -Wa,) but only with one
dash, not two. As both -defsym and --defsym are accepted by GNU as,
use the former.

PR: 233611
Reviewed by: tsoome
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18369
03/12/2018
6:00 pm
base/head
sevan
head/bin/pkill
Modificado:
head/bin/pkill/pkill.1
Log:
Note these tools use kvm(3) and not procfs as in Solaris.

Obtained from: NetBSD
MFC after: 7 days
03/12/2018
5:51 pm
base/head
imp
head/stand
Modificado:
head/stand/defs.mk
Log:
Move inclusion of src.opts.mk later.

src.opts.mk includes bsd.own.mk. This in turn defines CTFCONVERT_CMD
depending on the MK_CTF value. We then set MK_CTF to no, which has no
real effect. The solution is to set all the MK_foo values before
including src.opts.mk.

This should stop the cdboot binary from exploding in size for releases
built WITH_CTF=yes in src.conf.

Sponsored by: Netflix
03/12/2018
5:18 pm
base/head
vmaffione
head/share/man/man4
Modificado:
head/share/man/man4/netmap.4
Log:
netmap(4): improve man page

Reviewed by: bcr
Differential Revision: https://reviews.freebsd.org/D18057
03/12/2018
3:59 pm
base/head
emaste
in head: lib/libc lib/libthr libexec/rtld-elf
Modificado:
head/lib/libc/Makefile
head/lib/libthr/Makefile
head/libexec/rtld-elf/Makefile
Log:
disable BIND_NOW in libc, libthr, and rtld

An issue remains with BIND_NOW and processes using threads. For now,
restore libc's BIND_NOW disable, and also disable BIND_NOW in rtld and
libthr.

A patch is in review (D18400) that likely fixes this issue, but just
disable BIND_NOW pending further testing after it is committed.

PR: 233333
Sponsored by: The FreeBSD Foundation
03/12/2018
1:15 pm
base/head
trasz
head/share/man/man7
Modificado:
head/share/man/man7/build.7
Log:
Use less misleading directory name.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
03/12/2018
9:40 am
base/head
andrew
head/share/mk
Modificado:
head/share/mk/src.opts.mk
Log:
Disable the BSD CRT code on powerpc and sparc64, they need extra crt*.o
files that haven't been implemented.

Reported by: sbruno
MFC with: r339738
Sponsored by: DARPA, AFRL
03/12/2018
4:56 am
base/head
jhibbits
head/sys/powerpc/powerpc
Modificado:
head/sys/powerpc/powerpc/machdep.c
Log:
powerpc: Check for a fdt in the metadata if it doesn't already exist

It's possible the fdt pointer was passed in via the metadata, as is done in
ubldr. Check for the fdt here, instead of working with a NULL fdt, and
panicking.
03/12/2018
4:47 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/booke_machdep.c
Log:
powerpc/booke: Check for the metadata address by physical address

The metadata pointer will almost never be at or above 'btext', as btext is a
relocated symbol, so will be based at VM_MIN_KERNEL_ADDRESS, not at
KERNBASE. Check the address against kernload, where the kernel is
physically loaded.
03/12/2018
3:58 am
base/head
ian
in head/stand: i386/common i386/gptboot i386/loader
Modificado:
head/stand/i386/common/bootargs.h
head/stand/i386/gptboot/gptboot.c
head/stand/i386/loader/main.c
head/stand/i386/zfsboot/zfsboot.c
head/stand/libsa/zfs/libzfs.h
Log:
Eliminate duplicated code and struct member definitions in the handoff
of args data between gptboot/zfsboot and loader(8).

Despite what seems like a lot of changes here, there are no actual
changes in behavior, or in the data layout in the structures involved.
This is just eliminating identical code pasted into multiple locations.

In detail, the changes are...

- Move struct zfs_boot_args definition from libsa/zfs/libzfs.h to
i386/common/bootargs.h because it is specific to x86 booting and the
handoff between zfsboot and loader, and has no relation to the zfs
library code in general.

- The geli_boot_args and zfs_boot_args structs both contain an identical
set of member variables containing geli information. Extract this out
to a new geli_boot_data struct, and embed it in the arg-passing structs.

- Provide new routines geli_import_boot_data() and geli_export_boot_data()
that can be shared between gptboot, zfsboot, and loader instead of
pasting identical code into several different .c files.

- Remove some checks for a NULL pointer that can never be true because the
pointer being tested was set using pointer math (kargs + 1) and that can
never result in NULL in this code.
02/12/2018
11:13 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/wdc.c
Log:
Delete the undocumented alias 'wds'.

This was a typo for wdc. Eliminate it since it was in error. People
should use either 'wdc' or 'hgst' for the vendor from now on. 'hgst'
works for all versions this functionality is present for.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:13 pm
base/head
imp
head/sbin/nvmecontrol
Adicional:
head/sbin/nvmecontrol/intel.c (contents, props changed)
Modificado:
head/sbin/nvmecontrol/Makefile
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/nvmecontrol.h
Log:
Move Intel specific log pages to intel.c

Move the Intel specific log pages (including the one that samsung
implements) to intel.c. Add comment to the samsung vendor that it will
be going away soon.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:13 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/logpage.c
Log:
Fix typo in comment

Sponsored by: Netflix
02/12/2018
11:12 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/devlist.c
head/sbin/nvmecontrol/firmware.c
head/sbin/nvmecontrol/format.c
head/sbin/nvmecontrol/identify.c
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/ns.c
head/sbin/nvmecontrol/nvmecontrol.c
head/sbin/nvmecontrol/nvmecontrol.h
head/sbin/nvmecontrol/perftest.c
head/sbin/nvmecontrol/power.c
head/sbin/nvmecontrol/reset.c
head/sbin/nvmecontrol/wdc.c
Log:
Usage cleanup pt 1

Provide a usage() function that takes a struct nvme_function pointer
and produces a usage mssage. Eliminate all now-redundant usage
functions. Propigate the new argument through the program as needed.
Use common routine to print usage.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:12 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/nvmecontrol.c
Log:
Return after we find the dispatched function.

If the dispatched function doesn't exit, then we get can get a
spurious function not found message. They all do exit, but this is a
little cleaner.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:13 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/devlist.c
head/sbin/nvmecontrol/firmware.c
head/sbin/nvmecontrol/format.c
head/sbin/nvmecontrol/identify.c
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/ns.c
head/sbin/nvmecontrol/nvmecontrol.c
head/sbin/nvmecontrol/perftest.c
head/sbin/nvmecontrol/power.c
head/sbin/nvmecontrol/reset.c
head/sbin/nvmecontrol/wdc.c
Log:
Usage cleanup pt 2

Eliminage redundant spaces and nvmecontrol at start of all the usage
strings. Update the usage printing code to add them back when
presenting to the user. Allow multi-line usage messages and print
proper leading spaces for lines starting with a space.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:12 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/nvmecontrol.h
Log:
Move common logpage routines into nvmecontrol.h

For the upcoming move of vendor specific code into vendor specific
files, make the common logpage routines global and move them to
nvmecontrol.h.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:12 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/wdc.c
Log:
Move the hgst/wdc log page printing code into wdc.c

These are all hgst/wdc specific, so move them into the wdc.c to live
with the wdc command.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:12 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/nvmecontrol.h
Log:
Make logpage functions a linker set.

Move logpage function def to header. Convert all the logpage_function
elements to elements of the linker set. Leave them all in logpage.c
for the moment.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
11:10 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/devlist.c
head/sbin/nvmecontrol/firmware.c
head/sbin/nvmecontrol/format.c
head/sbin/nvmecontrol/identify.c
head/sbin/nvmecontrol/logpage.c
head/sbin/nvmecontrol/ns.c
head/sbin/nvmecontrol/nvmecontrol.c
head/sbin/nvmecontrol/nvmecontrol.h
head/sbin/nvmecontrol/perftest.c
head/sbin/nvmecontrol/power.c
head/sbin/nvmecontrol/reset.c
head/sbin/nvmecontrol/wdc.c
Log:
Move nvmecontrol to using linker sets for commands

More commands will be added to nvmecontrol. Also, there will be a few
more vendor commands (some of which may need to remain private to
companies writing them). The first step on that journey is to move to
using linker sets to dispatch commands. The next step will be using
dlopen to bring in the .so's that have the command that might need
to remain private for seamless integration.

Similar changes to this will be needed for vendor specific log pages.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
02/12/2018
9:58 pm
base/head
gonzo
head/sys/arm/mv
Modificado:
head/sys/arm/mv/mv_pci_ctrl.c
Log:
Fix PCI driver unload for Marvell PCI controller

Add generic implementation for bus_deactivate_resource method. Without
it bus_release_resource fails with "Failed to release active resource"
message

MFC after: 1 week
02/12/2018
7:36 pm
base/head
andreast
head/sys/arm64/conf
Modificado:
head/sys/arm64/conf/GENERIC
Log:
Build the dtb for the rock64 board.

Reviewed by: manu@
02/12/2018
7:35 pm
base/head
andreast
head/sys/modules/dtb/rockchip
Adicional:
head/sys/modules/dtb/rockchip/
head/sys/modules/dtb/rockchip/Makefile (contents, props changed)
Log:
Add rule to build the dtb for the rock64 board.

Reviewed by: manu@
02/12/2018
6:30 pm
base/head
kib
in head/sys: arm/ti dev/altera/avgen dev/terasic/mtl
Modificado:
head/sys/arm/ti/ti_pruss.c
head/sys/dev/altera/avgen/altera_avgen.c
head/sys/dev/terasic/mtl/terasic_mtl_reg.c
head/sys/dev/terasic/mtl/terasic_mtl_text.c
Log:
Fix off-by-one (page) errors in checks in d_mmap methods of several drivers.

Reported by: C Turt
Reviewed by: alc, markj
admbug: 781
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
02/12/2018
1:29 pm
base/head
kib
head/sys/dev/sound/pcm
Modificado:
head/sys/dev/sound/pcm/dsp.c
Log:
Add a comment noting that the additional range checks are not needed.

The object size is set in the dsp_mmap_single() which provides the
range limit by vm_fault().

Reported by: C Turt
Reviewed by: alc, markj
admbug: 781
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
02/12/2018
1:27 pm
base/head
kib
head/sys/dev/acpica
Modificado:
head/sys/dev/acpica/acpi_hpet.c
Log:
Fix off by one in hpet_mmap() csw method.

Reported by: C Turt
Reviewed by: alc, markj
Tested by: pho
admbug: 781
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
02/12/2018
1:16 pm
base/head
kib
in head/sys: dev/xen/gntdev sys vm
Modificado:
head/sys/dev/xen/gntdev/gntdev.c
head/sys/sys/types.h
head/sys/vm/device_pager.c
head/sys/vm/sg_pager.c
head/sys/vm/vm_map.c
head/sys/vm/vm_object.h
Log:
Change the vm_ooffset_t type to unsigned.

The type represents byte offset in the vm_object_t data space, which
does not span negative offsets in FreeBSD VM. The change matches byte
offset signess with the unsignedness of the vm_pindex_t which
represents the type of the page indexes in the objects.

This allows to remove the UOFF_TO_IDX() macro which was used when we
have to forcibly interpret the type as unsigned anyway. Also it fixes
a lot of implicit bugs in the device drivers d_mmap methods.

Reviewed by: alc, markj (previous version)
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
02/12/2018
12:53 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/vfs_bio.c
Log:
Correct accuracy of the barrier writes accounting.

Discussed with: mckusick
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
02/12/2018
7:39 am
base/head
mmel
head/sys/arm/arm
Modificado:
head/sys/arm/arm/physmem.c
Log:
Return computed real memory size, not a value from similarly named
global variable.

MFC after: 1 week
02/12/2018
5:06 am
base/head
asomers
in head/tests/sys/geom/class: . eli mirror
Modificado:
head/tests/sys/geom/class/eli/attach_test.sh
head/tests/sys/geom/class/eli/conf.sh
head/tests/sys/geom/class/eli/configure_test.sh
head/tests/sys/geom/class/eli/delkey_test.sh
head/tests/sys/geom/class/eli/detach_test.sh
head/tests/sys/geom/class/eli/init_test.sh
head/tests/sys/geom/class/eli/integrity_test.sh
head/tests/sys/geom/class/eli/kill_test.sh
head/tests/sys/geom/class/eli/misc_test.sh
head/tests/sys/geom/class/eli/onetime_test.sh
head/tests/sys/geom/class/eli/resize_test.sh
head/tests/sys/geom/class/eli/setkey_test.sh
head/tests/sys/geom/class/geom_subr.sh
head/tests/sys/geom/class/mirror/sync_error.sh
Log:
Unbreak geli/gmirror testcases if their geom classes cannot be loaded

The problem with the logic prior to this commit was twofold:

1. The wrong set of idioms (TAP-compatible) were being applied to the ATF
testcases when run, resulting in confusing ATF failure results on setup.
2. The cleanup subroutines were broken when the geom classes could not be
loaded as they exited with 0 unexpectedly.

This commit changes the test code to source the class-specific configuration
(conf.sh) once globally, instead of sourcing it per testcase and per cleanup
subroutine, and to call the ATF-specific setup subroutine(s) inline in
the testcases.

The refactoring done is effectively a no-op for the TAP testcases, modulo
any refactoring done to create common code between the ATF and TAP
testcases.

This unbreaks the geli testcases converted to ATF in r327662 and r327683,
and the gmirror testcases added in r327780, respectively, when the geom
class could not be loaded.

tests/sys/geom/class/mirror/...
While here, ignore errors when turning debug failpoint sysctl off, which
could occur if the gmirror class was not loaded.

Submitted by: ngie
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd/pull/241
02/12/2018
2:20 am
base/head
jhibbits
head/stand/uboot/common
Modificado:
head/stand/uboot/common/main.c
Log:
ubldr: Force 'usefdt' variable to 1 for powerpc

The fdt is gated, on powerpc, with a 'usefdt' environment variable. Force
enable it in ubldr, so that the fdt is passed through the metadata.
02/12/2018
12:41 am
base/head
asomers
head/tests/sys/geom/class/eli
Modificado:
head/tests/sys/geom/class/eli/Makefile
Log:
Remove some dead code from the geli tests

This is detritus in the Makefile, leftover from 327662.

MFC after: 2 weeks
01/12/2018
9:37 pm
base/head
cem
head/sys/powerpc/cpufreq
Modificado:
head/sys/powerpc/cpufreq/pmcr.c
Log:
pmcr: Fix pstate setting on Power8

Fix p-state setting on Power8 by removing the accidental double-indirection of
the pstate_ids table.

The pstate_ids table comes from the OF property "ibm,pstate-ids." On Power9,
the values happen to be identical to the indices, so the extra indirection was
harmless. On Power8, the values were out of the range [0, npstates], so
pmcr_set() would fail the spec[0] range check with EINVAL.

While here, include both the value and index in the driver-specific register
array as spec[0] and spec[1] respectively. They're redundant, but relatively
harmless, and it may aid debugging.

While here, fix the range check to exclude the index npstates, which is one
past the last valid index.

PR: 233693
Reported and tested by: sbruno
Reviewed by: jhibbits
01/12/2018
9:28 pm
base/head
cem
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Restore build of the kernel, removed through r341377

Turns out we already had a path_mtu_discovery variable.

X-MFC-with: r341377
01/12/2018
8:39 pm
base/head
jhibbits
head/lib/libc/gen
Modificado:
head/lib/libc/gen/elf_utils.c
Log:
Fix PowerPC64 ELFv1-specific problem in __elf_phdr_match_addr() leading to crash
in threaded programs that unload libraries.

Summary:
The GNOME update to 3.28 exposed a bug in __elf_phdr_match_addr(), which leads
to a crash when building devel/libsoup on powerpc64.

Due to __elf_phdr_match_addr() limiting its search to PF_X sections, on the
PPC64 ELFv1 ABI, it was never matching function pointers properly.

This meant that libthr was never cleaning up its atfork list in
__pthread_cxa_finalize(), so if a library with an atfork handler was unloaded,
libthr would crash on the next fork.

Normally, the null pointer check it does before calling the handler would avoid
this crash, but, due to PPC64 ELFv1 using function descriptors instead of raw
function pointers, a null check against the pointer itself is insufficient, as
the pointer itself was not null, it was just pointing at a function descriptor
that had been zeroed. (Which is an ABI violation.)

Calling a zeroed function descriptor on PPC64 ELFv1 causes a jump to address 0
with a zeroed r2 and r11.

Submitted by: git_bdragon.rtk0.net
Reviewed By: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18364
01/12/2018
8:31 pm
base/head
manu
in head/sys: arm64/conf conf dev/iicbus
Adicional:
head/sys/dev/iicbus/syr827.c (contents, props changed)
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/conf/files
Log:
Add Silergy SYR827 PMIC driver

SYR827 is a PMIC that can output a voltage from 0.7125V to 1.5V in 12.5mV steps
It's controlled via I2C.

MFC after: 1 month
01/12/2018
8:31 pm
base/head
manu
head/sys/arm64/rockchip
Modificado:
head/sys/arm64/rockchip/rk805.c
head/sys/arm64/rockchip/rk805reg.h
Log:
arm64: rockchip: rk805: Add basic support for RK808 PMIC

RK808 PMIC is the companion chip for RK3399 SoC.
Add basic regulator support in RK805 since they are similar.

MFC after: 1 month
01/12/2018
8:30 pm
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_log.c
Log:
Remove IFF_DRVRLOCK as it is used in IRIX only (and we all know IRIX
is dead). This includes collaterally removing code shared by HP/UX,
SGI, and Linux, where IP Filter will in all likelihood for various
reasons never run again.

MFC after: 1 week
01/12/2018
8:29 pm
base/head
manu
head/sys/arm64/rockchip
Modificado:
head/sys/arm64/rockchip/rk_i2c.c
Log:
arm64: rockchip: rk_i2c: Use correct clock

While here add RK3399 support and call clk_set_assigned to set the correct
clock set in the DTS.

MFC after: 1 month
01/12/2018
8:28 pm
base/head
manu
in head/sys: arm64/conf arm64/rockchip arm64/rockchip/clk
Adicional:
head/sys/arm64/rockchip/clk/rk3399_cru.c (contents, props changed)
head/sys/arm64/rockchip/clk/rk3399_pmucru.c (contents, props changed)
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/arm64/rockchip/if_dwc_rk.c
head/sys/arm64/rockchip/rk_grf.c
head/sys/arm64/rockchip/rk_pinctrl.c
head/sys/conf/files.arm64
head/sys/conf/options.arm64
Log:
arm64/rockchip: add RK3399 support

Add CRU (Clock and Reset Unit) driver for RK3399.
Add support in rk_pinctrl driver.

Submitted by: Greg V (Original version)
Differential Revision: https://reviews.freebsd.org/D16732

MFC after: 1 month
01/12/2018
8:26 pm
base/head
manu
head/sys/arm64/rockchip/clk
Modificado:
head/sys/arm64/rockchip/clk/rk3328_cru.c
head/sys/arm64/rockchip/clk/rk_clk_pll.c
head/sys/arm64/rockchip/clk/rk_clk_pll.h
head/sys/arm64/rockchip/clk/rk_cru.c
head/sys/arm64/rockchip/clk/rk_cru.h
Log:
arm64: rockchip: Add RK3399_CLK_PLL

PLLs on the RK3399 are different than the ones on the RK3328.
Add a new type and some dedicated recalc and set_freq functions.
Rename the RK3328 dedicated rk_clk_pll function with rk3328_ prefix.

MFC after: 1 month
01/12/2018
5:59 pm
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Restore handling of PMTU discovery, removed through an unifdef(1)
following the MFV of r254219 into r255332. In addition the 'FreeBSD'
macro was never defined in ipfilter 5.1.2 thus it never would have
been enabled in the first place.

This work is prompted by a general cleanup of the IP Filter code
prompted by working to resolve a PR. More to follow.

MFC after: 1 week
01/12/2018
4:50 pm
base/head
kib
head/sys/vm
Modificado:
head/sys/vm/swap_pager.c
Log:
Allow to create swap zone larger than v_page_count / 2.

If user configured the maxswapzone tunable, just take the literal
value for the initial zone sizing attempt. Before, it was only
possible to reduce the zone by the tunable.

While there, correct the message which was not correct when zone
creation rounded the size up.

Reported by: jmg
Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D18381
01/12/2018
4:43 pm
base/head
kib
in head/sys: arm/arm i386/i386
Modificado:
head/sys/arm/arm/pmap-v6.c
head/sys/i386/i386/pmap.c
Log:
Correct the tunable name in the message.

Submitted by: Andre Albsmeier
PR: 231577
MFC after: 1 week
01/12/2018
2:20 pm
base/head
mjg
in head: lib/libc/amd64/string sys/amd64/amd64
Modificado:
head/lib/libc/amd64/string/memmove.S
head/sys/amd64/amd64/support.S
Log:
amd64: align target memmove buffer to 16 bytes before using rep movs

See the review for sample test results.

Reviewed by: kib (kernel part)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18401
01/12/2018
9:58 am
base/head
kp
head/sys/netpfil/pf
Modificado:
head/sys/netpfil/pf/pf_if.c
Log:
pf: Fix panic on overlapping interface names

In rare situations[*] it's possible for two different interfaces to have
the same name. This confuses pf, because kifs are indexed by name (which
is assumed to be unique). As a result we can end up trying to
if_rele(NULL), which panics.

Explicitly checking the ifp pointer before if_rele() prevents the panic.
Note pf will likely behave in unexpected ways on the the overlapping
interfaces.

[*] Insert an interface in a vnet jail. Rename it to an interface which
exists on the host. Remove the jail. There are now two interfaces with
the same name in the host.
01/12/2018
9:57 am
base/head
kp
head/tests/sys/netpfil/pf
Modificado:
head/tests/sys/netpfil/pf/pass_block.sh
Log:
pf tests: Make pass_block:noalias more robust

Send several ICMPv6 echo requests. We've seen occasional failures with a
single request.
01/12/2018
9:59 am
base/head
kp
head/tests/sys/netpfil/pf
Adicional:
head/tests/sys/netpfil/pf/names.sh (contents, props changed)
Modificado:
head/tests/sys/netpfil/pf/Makefile
Log:
pf tests: Test name handling

Provoke a situation where two interfaces have the same name, and verify
pf's reaction to this.
01/12/2018
5:58 am
base/head
ygy
head/bin/pkill
Modificado:
head/bin/pkill/pkill.1
Log:
Clarify that patterns are extended regular expressions in pkill(1) manual page.

PR: 231060
Submitted by: naddy
MFC after: 3 days
01/12/2018
3:20 am
base/head
eugen
in head/usr.sbin: . trim
Eliminado:
head/usr.sbin/trim/
Modificado:
head/usr.sbin/Makefile
Log:
Remove trim(8) by multiple demands.
30/11/2018
11:47 pm
base/head
vangyzen
head/tests/sys/kern
Modificado:
head/tests/sys/kern/sigaltstack.c
Log:
Maybe make gcc happy

According to Jenkins, the GCC architectures were unhappy because:

sigaltstack.c:82: warning: missing initializer
sigaltstack.c:82: warning: (near initialization for 'oss.ss_size')

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
30/11/2018
10:44 pm
base/head
vangyzen
in head: sys/arm/arm sys/arm64/arm64 sys/riscv/riscv
Adicional:
head/tests/sys/kern/sigaltstack.c (contents, props changed)
Modificado:
head/sys/arm/arm/machdep.c
head/sys/arm64/arm64/machdep.c
head/sys/riscv/riscv/machdep.c
head/tests/sys/kern/Makefile
Log:
Fix reporting of SS_ONSTACK

Fix reporting of SS_ONSTACK in nested signal delivery when sigaltstack()
is used on some architectures.

Add a unit test for this. I tested the test by introducing the bug
on amd64. I did not test it on other architectures.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D18347
30/11/2018
9:57 pm
base/head
eugen
head/usr.sbin/trim
Modificado:
head/usr.sbin/trim/trim.8
head/usr.sbin/trim/trim.c
Log:
trim(8): serveral style fixes

Submitted by: imp
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18380
30/11/2018
8:58 pm
base/head
mjg
in head: lib/libc/amd64/string sys/amd64/amd64
Modificado:
head/lib/libc/amd64/string/memmove.S
head/sys/amd64/amd64/support.S
Log:
amd64: handle small memmove buffers with overlapping stores

Handling sizes of > 32 backwards will be updated later.

Reviewed by: kib (kernel part)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18387
30/11/2018
7:40 pm
base/head
oshogbo
in head/usr.sbin: ctld iscsid
Modificado:
head/usr.sbin/ctld/kernel.c
head/usr.sbin/iscsid/iscsid.c
Log:
iscsi: simplify the capsicumization

Approved by: trasz
Differential Revision: https://reviews.freebsd.org/D17962
30/11/2018
7:27 pm
base/head
oshogbo
head/lib/libcasper/services/cap_fileargs
Modificado:
head/lib/libcasper/services/cap_fileargs/cap_fileargs.c
Log:
libcasper: do not fail if Capsicum is not avilable

Casper service can be also used on the kernels without Capsicum support.

Reported by: sbruno
Tested by: sbruno
30/11/2018
6:02 pm
base/head
markj
head/usr.bin/top
Modificado:
head/usr.bin/top/top.c
Log:
Add missing display messages when toggling modes.

PR: 233667
Submitted by: James Wright
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18331
30/11/2018
4:02 pm
base/head
trasz
head/share/man/man7
Modificado:
head/share/man/man7/development.7
Log:
Silence down the example builds a bit.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
4:01 pm
base/head
trasz
head/share/man/man7
Modificado:
head/share/man/man7/development.7
Log:
Add an example of quick kernel rebuild.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
3:56 pm
base/head
trasz
head/share/man/man7
Modificado:
head/share/man/man7/development.7
Log:
Add an example of rebuilding a single piece of userspace.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
3:52 pm
base/head
trasz
head/share/man/man4
Modificado:
head/share/man/man4/ddb.4
Log:
Revert r341337; according to imp@ we still support these.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
12:17 pm
base/head
trasz
head/share/man/man4
Modificado:
head/share/man/man4/textdump.4
Log:
Use .Va for sysctls, not .Dv.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
11:50 am
base/head
trasz
head/share/man/man4
Modificado:
head/share/man/man4/ddb.4
Log:
Use .Va for sysctls, not .Dv.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
11:44 am
base/head
trasz
head/share/man/man4
Modificado:
head/share/man/man4/ddb.4
Log:
Remove duplicated word.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
11:44 am
base/head
trasz
head/share/man/man4
Modificado:
head/share/man/man4/ddb.4
Log:
Say in plain text what the 'debug' keymap action usually is.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
11:42 am
base/head
trasz
head/share/man/man4
Modificado:
head/share/man/man4/ddb.4
Log:
Remove the hint for ISA buses; we don't support them anymore.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
30/11/2018
10:50 am
base/head
tuexen
in head/sys/netinet: . cc
Modificado:
head/sys/netinet/cc/cc.h
head/sys/netinet/tcp_usrreq.c
Log:
Limit option_len for the TCP_CCALGOOPT.

Limiting the length to 2048 bytes seems to be acceptable, since
the values used right now are using 8 bytes.

Reviewed by: glebius, bz, rrs
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D18366
30/11/2018
10:36 am
base/head
ae
head/sys/net
Modificado:
head/sys/net/if.c
Log:
Adapt the fix in r341008 to correctly work with EBR.

IFNET_RLOCK_NOSLEEP() is epoch_enter_preempt() in FreeBSD 12+. Holding
it in sysctl_rtsock() doesn't protect us from ifnet unlinking, because
unlinking occurs with IFNET_WLOCK(), that is rw_wlock+sx_xlock, and it
doesn check that concurrent code is running in epoch section. But while
we are in epoch section, we should be able to do access to ifnet's
fields, even it was unlinked. Thus do not change if_addr and if_hw_addr
fields in ifnet_detach_internal() to NULL, since rtsock code can do
access to these fields and this is allowed while it is running in epoch
section.

This should fix the race, when ifnet_detach_internal() unlinks ifnet
after we checked it for IFF_DYING in sysctl_dumpentry.

Move free(ifp->if_hw_addr) into ifnet_free_internal(). Also remove the
NULL check for ifp->if_description, since free(9) can correctly handle
NULL pointer.

MFC after: 1 week
30/11/2018
10:31 am
base/head
manu
head/sys/dts/arm64/overlays
Modificado:
head/sys/dts/arm64/overlays/sun50i-a64-opp.dtso
Log:
arm64: allwinner: Add 792Mhz frequency to sun50i-a64-opp

This is the frequency of the cpu on the Pinebook so add it to make
cpufreq find the current setting.
Note that this dtbo on the Pinebook doesn't work right now as u-boot
dtb doesn't have symbols and so it fails to apply. Linux 4.20 have
the dts and will be imported once taggued.

MFC after: 1 month
X-MFC with: r341268
30/11/2018
8:42 am
base/head
tsoome
head/stand/efi/libefi
Modificado:
head/stand/efi/libefi/efi_console.c
Log:
loader.efi: fix EFI getchar() for multiple consoles

This fix is ported from illumos (issue #9970), the analysis and initial
implementation was done by John Levon.

See also: https://www.illumos.org/issues/9970

Currently, efi_cons_getchar() will wait for a key. While this seems to make
sense, the implementation of getchar() in common/console.c will loop across
getchar() for all consoles without doing ischar() first.

This means that if we've configured multiple consoles, we can't input into
the serial, as getchar() will be sat waiting for input only from efi_console.c

This patch does implement a bit more generic key buffer to support
translation of input keys, and we use generic efi_readkey() to reduce
duplication from calls from getchar() and poll().
30/11/2018
8:01 am
base/head
tsoome
in head/stand/i386: libi386 loader
Eliminado:
head/stand/i386/libi386/bioscd.c
Modificado:
head/stand/i386/libi386/Makefile
head/stand/i386/libi386/biosdisk.c
head/stand/i386/libi386/bootinfo32.c
head/stand/i386/libi386/libi386.h
head/stand/i386/loader/chain.c
head/stand/i386/loader/conf.c
head/stand/i386/loader/main.c
Log:
loader: create separate lists for fd, cd and hd, merge bioscd with biosdisk

Create unified block IO implementation in BIOS version, like it is done in UEFI
side. Implement fd, disk and cd device lists, this will split floppy devices
from disks and will allow us to have consistent, predictable device naming
(modulo BIOS issues).

Differential Revision: https://reviews.freebsd.org/D17888
30/11/2018
7:11 am
base/head
arybchik
head/sys/dev/sfxge
Modificado:
head/sys/dev/sfxge/sfxge_tx.c
Log:
sfxge(4): rollback last seen VLAN TCI if Tx packet is dropped

Early processing of a packet on transmit may change last seen
VLAN TCI in the queue context. If such a packet is eventually
dropped, last seen VLAN TCI must be set to its previous value.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18288
30/11/2018
7:10 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_ev.c
Log:
sfxge(4): ensure EvQ poll stops when abort is requested

If an event handler requested an abort, only the inner loop was
guarenteed to be broken out of - the outer loop could continue
if total == batch.

Fix this by poisoning batch to ensure it is different to total.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18287
30/11/2018
7:10 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_intr.c
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): correct annotations where NULL input is OK

Correct annotations where NULL input can be permitted

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18284
30/11/2018
7:10 am
base/head
arybchik
head/sys/dev/sfxge
Modificado:
head/sys/dev/sfxge/sfxge_port.c
Log:
sfxge(4): support new link modes in the driver

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18283
30/11/2018
7:10 am
base/head
arybchik
in head: share/man/man4 sys/dev/sfxge sys/dev/sfxge/common
Modificado:
head/share/man/man4/sfxge.4
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/sfxge.c
Log:
sfxge(4): support Medford2

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18286
30/11/2018
7:09 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): infer port mode bandwidth from max link speed

Limit the port mode bandwidth calculations by the maximum
reported link speed. This system detects 25G vs 10G cards,
and 100G port modes vs 40G.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18279
30/11/2018
7:09 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_mac.c
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_phy.c
Log:
sfxge(4): add accessor to whole link status

Add a function which makes an MCDI GET_LINK request and
packages up the results. Currently, the get-link function
is triggered from several entry points which then pass
on or store selected parts of the data. When the driver
needs to obtain the current link state, it is more
efficient to do this in a single call.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18281
30/11/2018
7:10 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): update external port number calculation

Revise the external port calculation to support all
X2 port modes. The previous algorithm could not
handle different port numbering schemes on each cage.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18285
30/11/2018
7:09 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): use transceiver ID when reading info

In efx_mcdi_phy_module_get_info() probe the
transceiver identification byte rather than assume
the module matches the fixed port type. This
supports scenarios such as a SFP mounted in a QSFP
port via a QSA module.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18282
30/11/2018
7:09 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): guard Rx scale code with corresponding option

Previously only some of the code was guarded by this which caused
a build error when EFSYS_OPT_RX_SCALE is 0 (e.g. in manftest).

Submitted by: Tom Millington
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18280
30/11/2018
7:08 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): update to current port mode terminology

>From Medford onwards, the newer constants enumerating
port modes should be used.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18276
30/11/2018
7:09 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): add X2 port modes to bandwidth calculator

Add cases for the new port modes supported by X2 NICs.
Lane bandwidth is calculated for pre-X2 cards so is an
underestimate for X2 in 25G/100G modes.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18277
30/11/2018
7:08 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): expose PHY module device address constants

Rearrange so the valid addresses are visible to the caller.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18274
30/11/2018
7:09 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): support improvements to bandwidth calculations

Change the interface to ef10_nic_get_port_mode_bandwidth()
so more NIC information can be used to infer bandwidth
requirements. Huntington calculations separated out
completely.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18278
30/11/2018
7:08 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): add helper API to make Geneve filter spec

Submitted by: Vijay Srivastava
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18272
30/11/2018
7:07 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mac.c
Log:
sfxge(4): fix MAC Tx stats for less or equal to 64 bytes

This statistic should include 64byte and smaller frames.
Fix EF10 calculation to match Siena code.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18271
30/11/2018
7:07 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_annote.h (contents, props changed)
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): check buffer size for hash flags

The efx_rx_scale_hash_flags_get interface is unsafe, as it does not
have an argument for the size of the output buffer used to return
the flags. While the only caller currently supplies a sufficiently
large buffer, this should be checked at runtime to avoid writing
past the end of the buffer.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18267
30/11/2018
7:08 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/efx_mcdi.h
head/sys/dev/sfxge/common/efx_phy.c
Log:
sfxge(4): adjust PHY module info interface

Adjust data types in interface to permit the complete
module information buffer to be obtained in a single
call.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18275
30/11/2018
7:07 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx_phy.c
Log:
sfxge(4): modify phy caps to indicate FEC request

The capability bits to request FEC modes are implicitly valid
when the corresponding FEC mode is a supported capability.
Drivers expect that it is only valid to advertise those
capabilities explicitly marked as supported. The capabilities
reported by firmware is modified with the implicit capabilities
to present the explicit model to drivers.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18270
30/11/2018
7:06 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): use simpler code to check hash algorithm type

The API which is used to list supported hash flags verifies
hash algorithm choice before writing the output. This check
is based on a switch() statement which has only two options
and no distinctive actions to be conducted for each of them.
Use simpler code instead of switch() to improve readability.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18266
30/11/2018
7:07 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): improve handling of legacy RSS hash flags

Client drivers may use either legacy flags, for example,
EFX_RX_HASH_TCPIPV4, or generalised flags, for example,
EFX_RX_HASH(IPV4_TCP, 4TUPLE), to configure RSS hash.
The libefx is able to recognise what scheme is used.

Legacy flags may be consumed directly by a chip-specific handler to
configure the NIC, that is, on EF10, these flags can be used to fill
in legacy RSS mode field in MCDI request. Generalised flags can also
be directly used in EF10-specific handler as they are fully compatible
with additional fields of the same MCDI request.

Legacy flags undergo conversion to generalised flags before they
are consumed by a chip-specific handler. This conversion is used to
make sure that chip-specific handlers expect only generalised flags
in the input for the sake of clarity of the code.

Depending on firmware capabilities, a chip-specififc handler either
supplies the input to the NIC directly, for example,
EFX_RX_HASH(IPV4_TCP, 4TUPLE) flag will enable 4 bits in
RSS_CONTEXT_SET_FLAGS_IN_TCP_IPV4_RSS_MODE field on EF10, or takes
the opportunity to translate the input to enable bits which don't map
to the generic flag, like setting
RSS_CONTEXT_SET_FLAGS_IN_TOEPLITZ_TCPV4_EN on EF10 when the firmware
claims no support for additional modes.

However, this approach has introduced a severe problem which can be
reproduced with ultra-low-latency firmware variant. In order to enable
IP hash, EF10-specific handler requires the user to request 2-tuple
hash for IP-other, TCP and UDP traffic classes, unconditionally.
In example, IPv4 hash can be enabled using the following input:
EFX_RX_HASH(IPV4_TCP, 2TUPLE) | EFX_RX_HASH(IPV4_UDP, 2TUPLE) |
EFX_RX_HASH(IPV4, 2TUPLE).
At the same time, on ultra-low-latency firmware, the common code will
never report support for any UDP tuple to the client driver. That is,
in the same example, the driver will use EFX_RX_HASH(IPV4_TCP, 2TUPLE) |
EFX_RX_HASH(IPV4, 2TUPLE). This input will not be recognised by
EF10-specific handler, and RSS_CONTEXT_SET_FLAGS_IN_TOEPLITZ_IPV4_EN
bit will not be set in the MCDI request.

In order to solve the problem, the patch removes conversion code
from chip-specific handlers and adds appropriate code to convert
EFX_RX_HASH() flags to their legacy counterparts to the common scale
mode set function. If the firmware does not support additional modes,
the function will convert generalised flags to legacy flags correctly
without any demand for UDP flags and pass the result to a chip-specific
handler.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18269
30/11/2018
7:06 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_phy.c
Log:
sfxge(4): add support to get active FEC type

Submitted by: Vijay Srivastava
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18265
30/11/2018
7:07 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): simplify the code to parse RSS hash type

RSS mode bits can be accessed a lot easier in the hash
type value provided that the variable type is uint32_t.
The macro helper can be removed to enhance readability.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18268
30/11/2018
7:08 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_phy.c
Log:
sfxge(4): make last byte of module information available

Adjust bounds so the interface supports reading
the last available byte of data.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18273
30/11/2018
7:06 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): prevent access to the NIC config before probe

NIC config is initialized during NIC probe.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18263
30/11/2018
7:06 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
Log:
sfxge(4): fix a typo in unicast filter insertion comment

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18264
30/11/2018
7:06 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_lic.c
Log:
sfxge(4): fix ID retrieval in v3 licensing

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18262
30/11/2018
7:05 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): avoid usage of too big arrays on stack

Found by PreFAST static analysis.

Submitted by: Martin Harvey
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18257
30/11/2018
7:05 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_lic.c
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): generalise EF10 NVRAM buffer interface

The SFN driver's PartitionControl WMI object requires an API to parse
and filter partition data in TLV format, particularly for the Dynamic
Config partition. The ef10_nvram_buffer functions provide this
functionality but are tied to use with license partition only.
Modify functions so they are applicable to all TLV partitions and add
functions to support in-place tag modification.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18256
30/11/2018
7:06 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): add API to inform libefx of hardware removal

The efx_nic_hw_unavailable() checks ensure that if the NIC hardware
has failed or has been physically removed then libefx will stop
further attempts to access the hardware.

Add an interface for libefx clients to force unavailability, so the
hardware is treated as dead or removed even if still physically present.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18261
30/11/2018
7:05 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): add routine to check for hardware presence

Add efx_nic_hw_unavailable() routine to check for hardware presence
before continuing with NIC operations.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18260
30/11/2018
7:05 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/ef10_intr.c
head/sys/dev/sfxge/common/ef10_mac.c
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx_lic.c
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/efx_mcdi.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/common/efx_nvram.c
head/sys/dev/sfxge/common/efx_tunnel.c
head/sys/dev/sfxge/common/mcdi_mon.c
head/sys/dev/sfxge/common/siena_mac.c
head/sys/dev/sfxge/common/siena_nic.c
head/sys/dev/sfxge/common/siena_nvram.c
head/sys/dev/sfxge/common/siena_phy.c
Log:
sfxge(4): fix out of bounds read when dereferencing sdup

Introduce and use macro to make sure that MCDI buffers allocated
on stack are rounded up properly.

Submitted by: Gautam Dawar
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18259
30/11/2018
7:05 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): add information if TSO workaround is required

In SF bug 61297 it's been confirmed that the hardware does not always
calculate the TCP checksum correctly with TSO sends.

The value of the Total Length field (IPv4) or Payload Length field
(IPv6) is the critical factor. We're sufficiently confident that if
these fields are zero then the checksum will be calculated correctly.

The information may be used by the drivers to check if the workaround is
required when FATSOv2 is implemented.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18258
30/11/2018
7:04 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): add accessor for default port mode

Extend efx_mcdi_get_port_modes() to optionally pass on the default
port mode field. This provides a more direct way of handling the case
where the dynamic config does not specify the port mode than the
alternative of a lookup table indexed by MCFW subtype.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18255
30/11/2018
7:04 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_annote.h (contents, props changed)
head/sys/dev/sfxge/common/efx_bootcfg.c
Log:
sfxge(4): add buffer editing functions to boot config

Functions to process the DHCP option list format used by the expansion
ROM config buffers, to support extracting and updating of individual
options.
The initial use case is the driver presenting the global and per-PF
options as separate items, with the driver implementing the
synchronization of global options across the configuration buffers
for all PFs.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18254
30/11/2018
7:04 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_mon.c
head/sys/dev/sfxge/common/mcdi_mon.c
head/sys/dev/sfxge/common/mcdi_mon.h
Log:
sfxge(4): add API to retrieve sensor limits

Submitted by: Martin Harvey
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18253
30/11/2018
7:04 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): check size of memory to read sensors data to

Size of provided memory should be consistent with specified size.

Submitted by: Martin Harvey
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18252
30/11/2018
5:54 am
base/head
arybchik
in head/sys: dev/sfxge/common modules/sfxge
Adicional:
head/sys/dev/sfxge/common/efx_regs_mcdi_strs.h (contents, props changed)
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mcdi.h
head/sys/dev/sfxge/common/efx_mon.c
head/sys/modules/sfxge/Makefile
Log:
sfxge(4): add generated description of sensors

Description of sensors is generated from firmware sources.

Submitted by: Martin Harvey
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18251
30/11/2018
5:54 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx_tx.c
Log:
sfxge(4): remove probes when a Tx queue is too full

No need for probe messages when a TxQ is too full for a post to be done.

Existing drivers check if there is room in the queue before posting
descriptors, even though efx_tx_qdesc_post() does the check itself.

The new SFN Windows driver doesn't perform the check before calling
efx_tx_qdesc_post(), but that means these probes can get frequently
printed out. It's normal driver behaviour so there's no need to print
an error.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18250
30/11/2018
5:54 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mon.c
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): refactor monitors support

Remove obsolete monitor types since Falcon SFN4000 series adapters
no longer supported by libefx.
Rename MCDI monitors to be consistent with YML.
The code may be simplified and generalized since only MCDI monitors
remain.

Submitted by: Martin Harvey
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18249
30/11/2018
5:50 am
base/head
arybchik
in head/sys: dev/sfxge/common modules/sfxge
Adicional:
head/sys/dev/sfxge/common/efx_annote.h (contents, props changed)
Modificado:
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx.h
head/sys/modules/sfxge/Makefile
Log:
sfxge(4): move empty efsys definitions to EFX headers

Move empty definitions for platform-specific annotations from efsys.h
to EFX headers.

Submitted by: Martin Harvey
Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18248
30/11/2018
4:59 am
base/head
vangyzen
in head/sys: kern vm
Modificado:
head/sys/kern/kern_proc.c
head/sys/vm/vm_object.c
head/sys/vm/vm_object.h
Log:
Include path for tmpfs objects in vm.objects sysctl

This applies the fix in r283924 to the vm.objects sysctl
added by r283624 so the output will include the vnode
information (i.e. path) for tmpfs objects.

Reviewed by: kib, dab
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D2724
30/11/2018
4:18 am
base/head
vangyzen
head/sys/vm
Modificado:
head/sys/vm/vm_object.c
Log:
Add assertions and comment to vm_object_vnode()

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D2724
30/11/2018
4:15 am
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil.h
Log:
Clean up a rather useless conditional structure member definition.

MFC after: 1 week
30/11/2018
4:15 am
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_compat.h
Log:
Clean up a redundant non-redefinition of IFNAMSIZ. IFNAMSIZ
is defined in net/if.h, therefore the condition is never met and
confusing to those who follow.

MFC after: 1 month
30/11/2018
3:02 am
base/head
vangyzen
head/lib/libthr/thread
Modificado:
head/lib/libthr/thread/thr_fork.c
head/lib/libthr/thread/thr_spinlock.c
Log:
Use _thr_isthreaded() and _thr_setthreaded() wrappers

...instead of directly using the global variable.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
30/11/2018
3:01 am
base/head
vangyzen
head/lib/libthr/thread
Modificado:
head/lib/libthr/thread/thr_create.c
head/lib/libthr/thread/thr_kern.c
head/lib/libthr/thread/thr_private.h
Log:
_thr_setthreaded() cannot fail; change return type to void

Also remove logic to avoid unnecessary stores to the global variable.
Thread creation and destruction are heavy enough that any supposed savings
is in the noise.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
30/11/2018
2:14 am
base/head
sobomax
head/stand/common
Modificado:
head/stand/common/interp_forth.c
Log:
When handling CMD_CRIT error set command_errmsg to NULL after we dump it out,
so that it does not result in error message printed twice.

OK load doodoo
can't find 'doodoo'
can't find 'doodoo'
OK

MFC after: 2 weeks
30/11/2018
12:47 am
base/head
mjg
in head: lib/libc/amd64/string sys/amd64/amd64
Modificado:
head/lib/libc/amd64/string/memmove.S
head/sys/amd64/amd64/support.S
Log:
amd64: remove stale attribution for memmove work

While the routine started as expanded bcopy, it is now entirely rewritten.

Sponsored by: The FreeBSD Foundation
30/11/2018
12:45 am
base/head
mjg
in head: lib/libc/amd64/string sys/amd64/amd64
Modificado:
head/lib/libc/amd64/string/memmove.S
head/sys/amd64/amd64/support.S
Log:
amd64: tidy up copying backwards in memmove

For non-ERMS case the code used handle possible trailing bytes with
movsb first and then followed it up with movsq. This also happened
to alter how calculations were done for other cases.

Handle the tail with regular movs, just like when copying forward.
Use leaq to calculate the right offset from the get go, instead of
doing separate add and sub.

This adjusts the offset for non-rep cases so that they can be used
to handle the tail.

The routine is still a work in progress.

Sponsored by: The FreeBSD Foundation
29/11/2018
11:14 pm
base/head
jhb
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_clip.c
head/sys/dev/cxgbe/t4_main.c
Log:
Make most of the CLIP code conditional on #ifdef INET6.

This fixes builds of kernels without INET6 such as LINT-NOINET6.

Reported by: arybchik
Reviewed by: np
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D18384
29/11/2018
10:36 pm
base/head
manu
head/release/arm64
Modificado:
head/release/arm64/PINE64-LTS.conf
head/release/arm64/PINE64.conf
head/release/arm64/PINEBOOK.conf
Log:
release: arm64: Add opp dtbo to PINE* boards

MFC after: 1 month
29/11/2018
10:35 pm
base/head
manu
in head/sys: dts/arm64/overlays modules/dtb/allwinner
Adicional:
head/sys/dts/arm64/overlays/sun50i-a64-opp.dtso (contents, props changed)
Modificado:
head/sys/modules/dtb/allwinner/Makefile
Log:
arm64: allwinner: Add a dtbo to have cpu operating points

This enables cpufreq on A64 boards.

MFC after: 1 month
29/11/2018
9:20 pm
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Remove an old comment/code and replace with a comment that
directly references a NetBSD commit.

MFC after: 1 week
29/11/2018
9:00 pm
base/head
brooks
in head/sys: compat/cloudabi32 compat/cloudabi64
Modificado:
head/sys/compat/cloudabi32/cloudabi32_module.c
head/sys/compat/cloudabi64/cloudabi64_module.c
head/sys/compat/freebsd32/freebsd32_misc.c
head/sys/kern/imgact_binmisc.c
head/sys/kern/imgact_shell.c
head/sys/kern/kern_exec.c
head/sys/sys/imgact.h
Log:
Add helper functions to copy strings into struct image_args.

Given a zeroed struct image_args with an allocated buf member,
exec_args_add_fname() must be called to install a file name (or NULL).
Then zero or more calls to exec_args_add_env() followed by zero or
more calls to exec_args_add_env(). exec_args_adjust_args() may be
called after args and/or env to allow an interpreter to be prepended to
the argument list.

To allow code reuse when adding arg and env variables, begin_envv
should be accessed with the accessor exec_args_get_begin_envv()
which handles the case when no environment entries have been added.

Use these functions to simplify exec_copyin_args() and
freebsd32_exec_copyin_args().

Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D15468
29/11/2018
7:28 pm
base/head
sobomax
head/bin/dd
Modificado:
head/bin/dd/dd.c
head/bin/dd/dd.h
Log:
Replace hand-crafted naive byte-by-byte zero block detection routine
with macro based around memcmp(). The latter is expected to be some
8 times faster on a modern 64-bit architectures.

In practice, throughput of doing conv=sparse from /dev/zero to /dev/null
went up some 5-fold here from 1.9GB/sec to 9.7GB/sec with this change
(bs=128k).

MFC after: 2 weeks
29/11/2018
7:13 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/vfs_lookup.c
Log:
If BENEATH is specified, always latch the topping directory vnode.

It is possible that we started with a relative path but during the
lookup, found an absolute symlink. In this case, BENEATH handling
code needs the latch, but it is too late to calculate it.

While there, somewhat improve the assertions. Clear the NI_LCF_LATCH
flag when the latch vnode is released, so that asserts know the state.
Assert that there is a latch if we entered beneath+abs path mode,
after the starting point is processed.

Reported by: wulf
With more input from: pho
Sponsored by: The FreeBSD Foundation
29/11/2018
7:11 pm
base/head
manu
head/sys/arm64/rockchip/clk
Modificado:
head/sys/arm64/rockchip/clk/rk_clk_armclk.c
Log:
arm64: rockchip: armclk: Do not change parent freq if CLK_SET_DRYRUN is set

MFC after: 3 days
29/11/2018
7:06 pm
base/head
manu
head/sys/dev/extres/clk
Modificado:
head/sys/dev/extres/clk/clk.c
Log:
extres: clk: Fix clk_set_assigned

ofw_bus_parse_xref_list_get_length doesn't returns the number of elements, fix this.
While here when setting the clock to the assigned freqeuncy, allow the clock
driver to round down or up the frequency as sometimes the exact frequency cannot
be obtain.
29/11/2018
6:37 pm
base/head
sobomax
in head/stand: common i386/libi386 libsa uboot/lib
Modificado:
head/stand/common/interp_forth.c
head/stand/i386/libi386/biosdisk.c
head/stand/libsa/arp.c
head/stand/libsa/assert.c
head/stand/libsa/bzipfs.c
head/stand/libsa/netif.c
head/stand/libsa/sbrk.c
head/stand/uboot/lib/copy.c
head/stand/uboot/lib/net.c
Log:
The libstand's panic() appends its own '\n' to the message, so that users of the API
don't need to supply one.

MFC after: 2 weeks
29/11/2018
4:49 pm
base/head
markj
head/usr.sbin/newsyslog
Modificado:
head/usr.sbin/newsyslog/newsyslog.c
Log:
Fix age_old_log() after r337468.

We can no longer use sizeof() to get the path buffer's size. Apply
a straightforward fix for now with the aim of MFCing soon.

PR: 233633
Submitted by: Katsuyuki Miyoshi
MFC after: 3 days
29/11/2018
4:31 pm
base/head
markj
head/sys/vm
Modificado:
head/sys/vm/vm_page.c
Log:
Update the free page count when blacklisting pages.

Otherwise the free page count will not accurately reflect the physical
page allocator's state. On 11 this can trigger panics in
vm_page_alloc() since the allocator state and free page count are
updated atomically and we expect them to stay in sync. On 12 the
bug would manifest as threads looping in vm_page_alloc().

PR: 231296
Reported by: mav, wollman, Rainer Duffner, Josh Gitlin
Reviewed by: alc, kib, mav
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18374
29/11/2018
4:13 pm
base/head
eugen
head/usr.sbin/trim
Modificado:
head/usr.sbin/trim/trim.8
Log:
trim.8: fix contents after rename from trim.1

MFC after: 1 month
29/11/2018
4:10 pm
base/head
eugen
head/usr.sbin/trim
Modificado:
head/usr.sbin/trim/Makefile
Log:
trim(8): fix Makefile after rename from trim(1).

MFC after: 1 month
29/11/2018
4:09 pm
base/head
eugen
head/usr.sbin/trim
Adicional:
head/usr.sbin/trim/trim.8
- copied unchanged from r341243, head/usr.sbin/trim/trim.1
Eliminado:
head/usr.sbin/trim/trim.1
Log:
Rename trim.1 to trim.8 too.

MFC after: 1 month
29/11/2018
4:08 pm
base/head
eugen
in head: usr.bin usr.bin/trim usr.sbin usr.sbin/trim
Adicional:
head/usr.sbin/trim/
- copied from r341242, head/usr.bin/trim/
Eliminado:
head/usr.bin/trim/
Modificado:
head/usr.bin/Makefile
head/usr.sbin/Makefile
Log:
Move trim(1) from usr.bin to usr.sbin to become trim(8).

Requested by: se
MFC after: 1 month
29/11/2018
2:49 pm
base/head
eugen
head/usr.bin/trim
Modificado:
head/usr.bin/trim/trim.c
Log:
trim(1): unbreak build after r341232 for platforms using gcc and not clang

MFC after: 1 month
29/11/2018
2:21 pm
base/head
eugen
in head/usr.bin: . trim
Adicional:
head/usr.bin/trim/
head/usr.bin/trim/Makefile (contents, props changed)
head/usr.bin/trim/trim.1 (contents, props changed)
head/usr.bin/trim/trim.c (contents, props changed)
Modificado:
head/usr.bin/Makefile
Log:
Add new small tool trim(1) to delete contents for blocks on flash
based storage devices that use wear-leveling algorithms.

Reviewed by: hackers@
MFC after: 1 month
29/11/2018
2:21 pm
base/head
tsoome
head/stand/common
Modificado:
head/stand/common/bcache.c
Log:
loader: command_bcache() should print unsigned values

All bcache counters are unsigned.
29/11/2018
9:54 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/vfs_syscalls.c
Log:
vfs: fix i386 build after r341220
29/11/2018
9:32 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/vfs_cache.c
Log:
cache: retire cache_enter compat schim

It was added over 6 years ago for binary compat. cache_enter macro remains
as it expands to cache_enter_time.

Sponsored by: The FreeBSD Foundation
29/11/2018
9:19 am
base/head
mjg
head/sys/security/audit
Modificado:
head/sys/security/audit/audit.h
Log:
audit: predict AUDITING_TD as false

By default it is compiled in and disabled.

Sponsored by: The FreeBSD Foundation
29/11/2018
9:04 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/vfs_syscalls.c
Log:
vfs: drop spurious memcpy in stat

Sponsored by: The FreeBSD Foundation
29/11/2018
8:53 am
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_descrip.c
head/sys/sys/filedesc.h
Log:
fd: unify fd range check across the routines

While here annotate out of range as unlikely.

Sponsored by: The FreeBSD Foundation
29/11/2018
8:37 am
base/head
mjg
head/sys/security/audit
Modificado:
head/sys/security/audit/audit.c
head/sys/security/audit/audit.h
Log:
audit: change audit_syscalls_enabled type to bool

So that it fits better in __read_frequently.

Sponsored by: The FreeBSD Foundation
29/11/2018
6:47 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): fix SAL annotation for input buffers

Submitted by: Martin Harvey
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18245
29/11/2018
6:47 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/ef10_mac.c
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx_port.c
Log:
sfxge(4): fix PreFAST warnings because of unused return

Submitted by: Martin Harvey
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18244
29/11/2018
6:46 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mac.c
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): add Medford2 head-of-line blocking stats

These stats are availble on Medford2 DPDK firmware variant
which support equal stride super-buffer Rx mode. RXDP_HLB_IDLE
capability bit is set when the stats are available.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18243
29/11/2018
6:46 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): get max supported value for action MARK

The mark value for MATCH_ACTION_MARK has a maximum value.
Requesting a value larger than the maximum will cause the
filter insertion to fail with EINVAL. This patch allows the
driver to check the value at the filter validation.

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18240
29/11/2018
6:46 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): support MARK and FLAG actions in filters

This patch adds support for DPDK rte_flow "MARK" and "FLAG" filter
actions to filters on EF10 family NICs.

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18239
29/11/2018
6:47 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): fix build because of no declaration

Functions declared in mcdi_mon.h are implemented in mcdi_mon.c.
The build fails if compiler options require declaration before definition.

Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18246
29/11/2018
6:47 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): add more definitions of partitions

Add definitions of dynamic config and expansion ROM backup
partitions.

Submitted by: Paul Fox
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18247
29/11/2018
6:46 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mac.c
Log:
sfxge(4): support RxDP scatter disabled truncate counter

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18242
29/11/2018
6:46 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mac.c
Log:
sfxge(4): generate Medford2 RxDP stats

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18241
29/11/2018
6:44 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_port.c
Log:
sfxge(4): fix comparison always true warning

Loopback type used as bit index has efx_loopback_type_t type
which is enum. clang complains that it is always true when it
is compared with qword (64 bit) bits number boundary.

Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18228
29/11/2018
6:43 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): report no Tx checksum FW subvariant support

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18226
29/11/2018
6:45 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_regs_ef10.h
Log:
sfxge(4): add equal stride super-buffer prefix layout

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18237
29/11/2018
6:46 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): get actions MARK and FLAG support

Filter actions MARK and FLAG are supported on Medford2 by DPDK
firmware variant.

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18238
29/11/2018
6:45 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tlv_layout.h
head/sys/dev/sfxge/common/efx_regs_mcdi.h
Log:
sfxge(4): update autogenerated MCDI and TLV headers

Equal stride super-buffer is a new name instead of deprecated equal
stride packed stream to avoid confusion with previous packed stream.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18233
29/11/2018
6:45 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_check.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): support equal stride super-buffer Rx mode

Equal stride super-buffer Rx mode is supported by DPDK firmware
variant. One Rx descriptor provides many Rx buffers to firmware.
Rx buffers follow each other with specified stride.
Also it supports head of line blocking with timeout to address
drops when no Rx descriptors are available. So it gives extra time
to the driver to provide Rx descriptors before drop.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18236
29/11/2018
6:44 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_rx.c
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): honour packed stream RSS restriction

Packed stream firmware variant on EF10 adapters has a
number of properties which must be taken into account:

- Only one exclusive RSS context is available per port.
- Only IP addresses can contribute to the hash value.

Huntington and Medford have one more limitation which
is important for the drivers capable of packed stream:

- Hash algorithm is non-standard (i.e. non-Toeplitz).
This implies XORing together source + destination
IP addresses (or last four bytes in the case of IPv6)
and using the result as the input to a Toeplitz hash.

This patch provides a number of improvements in order
to treat the mentioned limitations in the common code.

If the firmware variant is packed stream, the list of
supported hash tuples will include less variants, and
the maximum number of RSS contexts will be set to one.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18232
29/11/2018
6:44 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): add a new means to control RSS hash

Currently, libefx has no support for additional RSS modes
available with later controllers. In order to support this,
libefx should be able to list available hash configurations.

This patch provides basic infrastructure for the new interface.
The client drivers will be able to query the list of supported
hash configurations for a particular hash algorithm. Also, it
will be possible to configure hashing by means of new definitions.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18230
29/11/2018
6:45 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): detect equal stride super-buffer support

Equal stride super-buffer Rx mode is supported on Medford2 by
DPDK firmware variant.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18235
29/11/2018
6:45 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): make RxQ type data an union

The type is an internal interface. Single integer is insufficient
to carry RxQ type-specific information in the case of equal stride
super-buffer Rx mode (packet buffers per bucket, maximum DMA length,
packet stride, head of line block timeout).

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18234
29/11/2018
6:43 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): add values for RxDPCPU firmware id recognition

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18223
29/11/2018
6:44 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_rx.c
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): support more RSS hash configurations

Modern firmwares on EF10 adapters have support for
more traffic classes eligible for hash computation.
Also, it has become possible to adjust hashing per
individual class and select distinct packet fields
which will be able to contribute to the hash value.

This patch adds support for the mentioned features.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18231
29/11/2018
6:43 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): support FW subvariant choice

If DPDK application or OS does not need checksumming on transmit,
it may be disabled in firmware to achieve higher packet rates.
Choice must be done before VIS allocation and is allowed if
no other non-preboot and firmware subvariant-unaware drivers are
attached.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18227
29/11/2018
6:42 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
Log:
sfxge(4): support drop filters on EF10 family NICs

Add support for filters which drop packets when forming MCDI request
for a filter.

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18221
29/11/2018
6:44 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_types.h
Log:
sfxge(4): cope with clang warning on negative shift

clang 4.0.1-6 on Ubuntu generates false positive warning that shift
is negative. It is done regardless of the fact that the branch is
not taken because of previous check.

The warning is generate in EFX_INSERT_NATIVE32 used by
EFX_INSERT_FIELD_NATIVE32. All similar cases are fixed as well.

It is undesirable to suppress the warning completely.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18229
29/11/2018
6:43 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx_check.h
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): add firmware subvariant aware driver option

FW subvariants allow to tweak NIC global features. For example,
if no drivers require checksumming on transmit, it may be disabled
in FW to increase packet rate.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18225
29/11/2018
6:43 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_regs_mcdi.h
head/sys/dev/sfxge/common/efx_regs_mcdi_aoe.h
Log:
sfxge(4): update MCDI headers

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18224
29/11/2018
6:42 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): distinguish filters for encapsulated packets

Add filter match flag to distinguish filters applied only to
encapsulated packets.

Match flags set should allow to determine whether a filter
is supported or not. The problem is that if specification
has supported set outer match flags and specified
encapsulation without any inner flags, check says that it
is supported, and filter insertion is performed. However,
there is no filtering of the encapsulated traffic. A new
flag is added to solve this problem and separate the
filters for the encapsulated packets.

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18220
29/11/2018
6:43 am
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/sfxge.c
Log:
sfxge(4): support choosing firmware variant

Submitted by: Gautam Dawar
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18222
29/11/2018
6:42 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): support VNI/VSID and inner frame local MAC

This supports VNI/VSID and inner frame local MAC fields to
match in VXLAN, GENEVE, or NVGRE packets.

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18218
29/11/2018
6:42 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): support VXLAN filter creation

Submitted by: Vijay Srivastava
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18219
29/11/2018
6:42 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
Log:
sfxge(4): support filters for encapsulated packets

This adds filters for encapsulated packets to the list
returned by ef10_filter_supported_filters().

Submitted by: Roman Zhukov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18217
29/11/2018
6:41 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tlv_layout.h
head/sys/dev/sfxge/common/efx_regs_mcdi.h
Log:
sfxge(4): sync MCDI headers and TLV layout

Regenerate MCDI and TLV layout headers from firmwaresrc to
pick up DPDK firmware variant and related Rx queue and filtering
extensions.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18216
29/11/2018
6:41 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_image.c (contents, props changed)
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): add signed image layout support

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18215
29/11/2018
6:29 am
base/head
arybchik
in head/sys: conf dev/sfxge/common modules/sfxge
Adicional:
head/sys/dev/sfxge/common/ef10_image.c (contents, props changed)
head/sys/dev/sfxge/common/ef10_signed_image_layout.h (contents, props changed)
Modificado:
head/sys/conf/files.amd64
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx_check.h
head/sys/modules/sfxge/Makefile
Log:
sfxge(4): add firmware image layout option

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18214
29/11/2018
5:17 am
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_racct.c
head/sys/sys/racct.h
Log:
Convert racct_enable to bool and annotate as __read_frequently

Sponsored by: The FreeBSD Foundation
29/11/2018
5:08 am
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_racct.c
head/sys/kern/subr_trap.c
head/sys/sys/racct.h
Log:
Deinline racct throttling out of syscall exit path.

racct is not enabled by default and even when it is enabled processes are
typically not throttled. The order of checks is left unchanged since
racct_enable will be annotated as __read_frequently, while checking for the
flag in the processes would probably require an extra fetch.

Sponsored by: The FreeBSD Foundation
29/11/2018
4:48 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/subr_syscall.c
Log:
Annotate td_cowgen check as unlikely.

Sponsored by: The FreeBSD Foundation
29/11/2018
3:44 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_clock.c
Log:
Tidy up hardclock.

- use fcmpset for updating ticks
- move (rarely used) itimer handling to a dedicated function

Sponsored by: The FreeBSD Foundation
29/11/2018
3:57 am
base/head
jhibbits
head/usr.bin/truss
Modificado:
head/usr.bin/truss/powerpc64-freebsd.c
Log:
Allow truss to operate on ELFv2 processes.

Summary:
Currently, truss doesn't work on ELFv2 processes due to not recognizing the ABI.

Since there's no special handling needed here, just adding a PROCABI struct for
it is sufficient to get it working.

Submitted by: git_bdragon.rtk0.net
Differential Revision: https://reviews.freebsd.org/D18352
29/11/2018
3:39 am
base/head
jhibbits
head/sys/powerpc/powerpc
Modificado:
head/sys/powerpc/powerpc/exec_machdep.c
Log:
Fix thread creation in PowerPC64 ELFv2 processes.

Summary:
Currently, the upcall used to create threads assumes ELFv1.

Instead, we should check which sysentvec is in use on the process and act
accordingly.

This makes ELFv2 threaded processes work.

Submitted by: git_bdragon.rtk0.net
Differential Revision: https://reviews.freebsd.org/D18330
29/11/2018
2:52 am
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_exit.c
head/sys/kern/kern_fork.c
head/sys/kern/kern_proc.c
head/sys/kern/kern_racct.c
head/sys/sys/proc.h
Log:
proc: create a dedicated lock for zombproc to ligthen the load on allproc_lock

waitpid always takes proctree to evaluate the list, but only takes allproc
if it can reap. With this patch allproc is no longer taken, which helps during
poudriere -j 128.

Discussed with: kib
Sponsored by: The FreeBSD Foundation
29/11/2018
1:15 am
base/head
jhb
in head/sys: conf dev/cxgbe dev/cxgbe/tom
Adicional:
head/sys/dev/cxgbe/t4_clip.c (contents, props changed)
head/sys/dev/cxgbe/t4_clip.h (contents, props changed)
Modificado:
head/sys/conf/files
head/sys/dev/cxgbe/adapter.h
head/sys/dev/cxgbe/t4_main.c
head/sys/dev/cxgbe/tom/t4_connect.c
head/sys/dev/cxgbe/tom/t4_listen.c
head/sys/dev/cxgbe/tom/t4_tom.c
head/sys/dev/cxgbe/tom/t4_tom.h
head/sys/modules/cxgbe/if_cxgbe/Makefile
Log:
Move CLIP table handling out of TOM and into the base driver.

- Store the clip table in 'struct adapter' instead of in the TOM softc.
- Init the clip table during attach and teardown during detach.
- While here, add a dev...misc.clip sysctl to dump the
CLIP table.

This does mean that we update the clip table even if TOE is not enabled,
but non-TOE things need the CLIP table anyway.

Reviewed by: np, Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D18010
28/11/2018
8:03 pm
base/head
jilles
in head/bin/sh: . tests/expansion
Adicional:
head/bin/sh/tests/expansion/question2.0 (contents, props changed)
Modificado:
head/bin/sh/expand.c
head/bin/sh/tests/expansion/Makefile
Log:
sh: Fix ${param?} default error message

If word in ${param?word} is missing, the shell shall write a default error
message. So expanding ${param?} when param is not set should write an error
message like

sh: param: parameter not set

This was broken by r316417.

PR: 233585
28/11/2018
7:54 pm
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/uma_core.c
Log:
Fix yet another edge case in uma_startup_count(). If zone size fits into
several pages, but leaves no space for struct uma_slab at the end we
miscalculate number of pages by one. Totally mimic keg_large_init() math
here to cover that problem.

Reported by: gallatin
28/11/2018
7:17 pm
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/uma_core.c
head/sys/vm/uma_int.h
Log:
For not offpage zones the slab is placed at the end of page. Keg's uk_pgoff
is calculated to guarantee that struct uma_slab is placed at pointer size
alignment. Calculation of real struct uma_slab size is done in keg_ctor()
and yet again in keg_large_init(), to check if we need an extra page. This
calculation can actually be performed at compile time.

- Add SIZEOF_UMA_SLAB macro to calculate size of struct uma_slab placed at
an end of a page with alignment requirement.
- Use SIZEOF_UMA_SLAB in keg_ctor() and in keg_large_init(). This is a not
a functional change.
- Use SIZEOF_UMA_SLAB in UMA_SLAB_SPACE definition and in keg_small_init().
This is a potential bugfix, but in reality I don't think there are any
systems affected, since compiler aligns struct uma_slab anyway.
28/11/2018
6:09 pm
base/head
ian
in head/stand/i386: common gptboot zfsboot
Modificado:
head/stand/i386/common/bootargs.h
head/stand/i386/gptboot/gptboot.c
head/stand/i386/zfsboot/zfsboot.c
Log:
Add comments describing the bootargs handoff between loader(8) and gptboot
or zfsboot, when loader(8) is the BTX loader. No functional changes.
28/11/2018
5:37 pm
base/head
shurd
in head/sys/dev: ixgbe ixl
Modificado:
head/sys/dev/ixgbe/ix_txrx.c
head/sys/dev/ixl/ixl_txrx.c
Log:
Fix first-packet completion

The first packet after the ring is initialized was never
completed as isc_txd_credits_update() would not include it in the
count of completed packets. This caused netmap to never complete
a batch. See PR 233022 for more details.

This is the same fix as the r340310 for e1000

PR: 233607
Reported by: lev
Reviewed by: lev
MFC after: 3 days
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D18368
28/11/2018
4:00 pm
base/head
jhibbits
in head/sys/powerpc: aim include powerpc
Modificado:
head/sys/powerpc/aim/locore32.S
head/sys/powerpc/aim/locore64.S
head/sys/powerpc/include/vmparam.h
head/sys/powerpc/powerpc/genassym.c
Log:
powerpc: Don't include KERNBASE in genassym, it's unnecessary

A related future change, which changes KERNBASE for Book-E for some reason
causes a "KERNBASE redefined" error with assym.inc, even though it only changed
the value of KERNBASE and nothing else. Since machine/vmparam.h is already
included in booke/locore.S, and the requisite guards are already in place for
properly handling KERNBASE in vmparam.h, just remove it from genassym, and
include vmparam.h in the AIM locore files.
28/11/2018
3:29 pm
base/head
vmaffione
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_main.c
head/sys/dev/cxgbe/t4_netmap.c
Log:
cxgbe: revert r309725

After the fix contained in r341144, cxgbe does not need anymore
to set the IFCAP_NETMAP flag manually.

Reviewed by: np
Approved by: gnn (mentor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17987
28/11/2018
2:07 pm
base/head
vmaffione
head/sys/dev/netmap
Modificado:
head/sys/dev/netmap/netmap_freebsd.c
Log:
netmap: set IFCAP_NETMAP in if_capabilities

Revision r307394 removed (by mistake) the code that sets IFCAP_NETMAP
in if_capabilities on netmap_attach. This patch reverts this change.

Reviewed by: np
Approved by: gnn (mentor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17987
28/11/2018
1:54 pm
base/head
manu
head/sys/arm64/conf
Modificado:
head/sys/arm64/conf/GENERIC
Log:
arm64: Add rk_i2c and rk805 to GENERIC

MFC after: 1 month
28/11/2018
1:53 pm
base/head
manu
in head/sys: arm64/rockchip conf modules/rockchip
Adicional:
head/sys/arm64/rockchip/rk805.c (contents, props changed)
head/sys/arm64/rockchip/rk805reg.h (contents, props changed)
head/sys/modules/rockchip/rk805/
head/sys/modules/rockchip/rk805/Makefile (contents, props changed)
Modificado:
head/sys/conf/files.arm64
head/sys/modules/rockchip/Makefile
Log:
Add RK805 PMIC Support

RK805 is the companion PMIC for RK3328 SoC.
Add a driver for it with most of it's regulators supported.

MFC after: 1 month
28/11/2018
1:25 pm
base/head
manu
head/sys/arm64/rockchip/clk
Modificado:
head/sys/arm64/rockchip/clk/rk_clk_composite.c
Log:
rk_clk_composite: Fix set_mux

Pointy Hat: manu
28/11/2018
1:25 pm
base/head
sbruno
head/sys/mips/conf
Modificado:
head/sys/mips/conf/ERL
Log:
Add CAPABILITIES to the ERL kernel config so that tools that have been
modified with Capsicum work on this target platform.

This came up after the conversion of wc(8).
28/11/2018
9:25 am
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_tx.c
head/sys/dev/sfxge/sfxge_tx.c
Log:
sfxge(4): add outer IP ID parameter to TSOv2 descriptor

Set outer_ip_id in the TX option descriptor for encapsulated packets.

Submitted by: Vijay Srivastava
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18213
28/11/2018
9:25 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): add encapsulated TSOv2 capability

Submitted by: Vijay Srivastava
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18212
28/11/2018
9:24 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_regs_mcdi.h
Log:
sfxge(4): add bit to indicate CTPIO availability

Submitted by: Guido Barzini
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18209
28/11/2018
9:24 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_regs_mcdi.h
Log:
sfxge(4): document the event type for CTPIO sends

Document the TX_EV_TYPE used for TX completion events corresponding
to CTPIO sends.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18206
28/11/2018
9:24 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tlv_layout.h
Log:
sfxge(4): run genfwdef to update headers

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18207
28/11/2018
9:25 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mac.c
Log:
sfxge(4): support CTPIO stats

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18211
28/11/2018
9:24 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mon.c
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): add 1.3V voltage and current sensors

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18205
28/11/2018
9:24 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_regs_mcdi.h
Log:
sfxge(4): add CTPIO statistics

Submitted by: Guido Barzini
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18208
28/11/2018
9:25 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mac.c
Log:
sfxge(4): regenerate headers to pick up CTPIO stats

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18210
28/11/2018
9:23 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_lic.c
Log:
sfxge(4): add Medford2 support for licensing

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18202
28/11/2018
9:24 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_regs_mcdi.h
Log:
sfxge(4): provide a flag for controlling CTPIO mode

Either cut-through or store-and-forward mode.

Submitted by: Guido Barzini
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18204
28/11/2018
9:23 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): add Medford2 support for external port numbers

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18201
28/11/2018
9:23 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
Log:
sfxge(4): clarify port mode names and masks

New port mode names are defined for Medford2 and later, and
the existing names are aliased to them. Add comments with the
numeric port mode to clarify the external port modes table.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18199
28/11/2018
9:23 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_check.h
head/sys/dev/sfxge/common/efx_tunnel.c
Log:
sfxge(4): add Medford2 support for tunnel encapsulations

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18203
28/11/2018
9:22 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/efx_regs_ef10.h
Log:
sfxge(4): support Medford2 event timer semantics

The event timer interface has changed for Medford2 - for
details see bug66418 comment 9. Update the common code to
use the new timer semantics for Medford2.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18198
28/11/2018
9:22 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): support FEC mode settings

Medford2 controllers support control and reporting of
FEC modes for 25G and higher links. See SF-109306-TC
for suggested usage in client code.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18197
28/11/2018
9:23 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): group Medford external port mapping entries

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18200
28/11/2018
6:56 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move privilege config to ef10 NIC board config

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18194
28/11/2018
6:55 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move limits config to ef10 NIC board config

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18192
28/11/2018
6:55 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move Rx config to ef10 NIC board config

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18190
28/11/2018
6:54 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move legacy board config to ef10 NIC board cfg

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18187
28/11/2018
6:55 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move Tx config to ef10 NIC board config

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18191
28/11/2018
6:56 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move VI window size config to ef10 NIC board

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18195
28/11/2018
6:56 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): remove obsolete comments

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18196
28/11/2018
6:54 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move MAC address config to ef10 NIC board cfg

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18186
28/11/2018
6:55 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move vector config to ef10 NIC board config

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18193
28/11/2018
6:55 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move datapath config to ef10 NIC board cfg

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18189
28/11/2018
6:55 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move PHY/link config to ef10 NIC board cfg

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18188
28/11/2018
6:54 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move port config to ef10 NIC board config

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18184
28/11/2018
6:54 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move PF/VF config to ef10 NIC board config

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18185
28/11/2018
6:54 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/hunt_nic.c
Log:
sfxge(4): pacify false positive warning

The warning says that it may be usage of possibly uninitialized value.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18183
28/11/2018
6:53 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): add ef10 NIC board config method

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18182
28/11/2018
6:53 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/efx_regs_ef10.h
Log:
sfxge(4): use correct name for frame truncation event

The RX_ECC_ERR flag in RX events was misnamed, as it
reported frame truncation. Use the new RX_TRUNC_ERR
name for this flag.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18181
28/11/2018
4:02 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/pmap.c
Log:
powerpc/booke: Fix debug printfs in pmap

Add missing '%'s so printf formats are actually handled.
28/11/2018
2:48 am
base/head
jhibbits
head/sys/powerpc/include
Modificado:
head/sys/powerpc/include/vmparam.h
Log:
powerpc: Fix the powerpc64 build post-r341102

VM_MIN_KERNEL_ADDRESS is now used in locore.S, but the UL suffix isn't
permitted in .S files.
28/11/2018
2:00 am
base/head
jhibbits
in head/sys/powerpc: booke mpc85xx
Modificado:
head/sys/powerpc/booke/locore.S
head/sys/powerpc/mpc85xx/platform_mpc85xx.c
Log:
powerpc: Prepare Book-E kernels for KERNBASE != run base

Book-E kernels really run at VM_MIN_KERNEL_ADDRESS, which currently happens to
be the same as KERNBASE. KERNBASE is the linked address, which the loader also
takes to be the physical load address. Treat KERNBASE as a physical address,
not a virtual, and change virtual address references for KERNBASE to use
something more appropriate.
28/11/2018
1:47 am
base/head
jhibbits
head/stand
Modificado:
head/stand/defs.mk
Log:
powerpcspe: Don't crash the loader on ubldr with SPE instructions.

-msoft-float seems to be insufficient for disabling the SPE on powerpcspe.
Force it off with -mno-spe as well. This prevents a crash in ubldr on
powerpcspe.
27/11/2018
10:02 pm
base/head
jhb
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/adapter.h
head/sys/dev/cxgbe/t4_main.c
head/sys/dev/cxgbe/t4_netmap.c
head/sys/dev/cxgbe/t4_sge.c
Log:
Add read-only sysctls for all tunables in the cxgbe(4) driver.

Reviewed by: np
MFC after: 1 month
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D18360
27/11/2018
9:49 pm
base/head
jilles
in head/bin/sh: . tests/errors
Adicional:
head/bin/sh/tests/errors/script-error1.0 (contents, props changed)
Modificado:
head/bin/sh/input.c
head/bin/sh/sh.1
head/bin/sh/tests/errors/Makefile
Log:
sh: Use 126 and 127 exit status for failures opening a script

This affects scripts named on the command line, named with a '.' special
builtin and found via the PATH %func autoloading mechanism.

PR: 231986
27/11/2018
9:40 pm
base/head
kib
head/sys/amd64/amd64
Modificado:
head/sys/amd64/amd64/pmap.c
Log:
Fix assert condition in pmap_large_unmap().

pmap_large_unmap() asserts that an unmapping request covers the
entirety of a 2M or 1G page. The logic in the asserts was out of date
with the loop logic. Correct the test to actually check that
destroying the current superpage mapping does not unmap addresses
beyond those requested by the caller.

Submitted by: D Scott Phillips
Reviewed by: alc
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18345
27/11/2018
8:01 pm
base/head
gallatin
head/sys/net
Modificado:
head/sys/net/iflib.c
head/sys/net/iflib_private.h
Log:
Use busdma unconditionally in iflib

- Remove the complex mechanism to choose between using busdma
and raw pmap_kextract at runtime. The reduced complexity makes
the code easier to read and maintain.

- Fix a bug in the small packet receive path where clusters were
repeatedly mapped but never unmapped. We now store the cluster's
bus address and avoid re-mapping the cluster each time a small
packet is received.

This patch fixes bugs I've seen where ixl(4) will not even
respond to ping without seeing DMAR faults.

I see a small improvement (14%) on packet forwarding tests using
a Haswell based Xeon E5-2697 v3. Olivier sees a small
regression (-3% to -6%) with lower end hardware.

Reviewed by: mmacy
Not objected to by: sbruno
MFC after: 8 weeks
Sponsored by: Netflix, Inc
Differential Revision: https://reviews.freebsd.org/D17901
27/11/2018
7:50 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/kern_sig.c
Log:
Improve sigonstack().

Avoid relying on unsigned overflow for the test.
Simplify expressions to avoid duplicate check for the range.
Style.
Add herald comment.

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18361
27/11/2018
5:51 pm
base/head
jamie
in head: sys/kern sys/sys usr.sbin/jail
Modificado:
head/sys/kern/kern_jail.c
head/sys/kern/kern_priv.c
head/sys/kern/kern_prot.c
head/sys/sys/jail.h
head/usr.sbin/jail/jail.8
Log:
In hardened systems, where the security.bsd.unprivileged_proc_debug sysctl
node is set, allow setting security.bsd.unprivileged_proc_debug per-jail.
In part, this is needed to create jails in which the Address Sanitizer
(ASAN) fully works as ASAN utilizes libkvm to inspect the virtual address
space. Instead of having to allow unprivileged process debugging for the
entire system, allow setting it on a per-jail basis.

The sysctl node is still security.bsd.unprivileged_proc_debug and the
jail(8) param is allow.unprivileged_proc_debug. The sysctl code is now a
sysctl proc rather than a sysctl int. This allows us to determine setting
the flag for the corresponding jail (or prison0).

As part of the change, the dynamic allow.* API needed to be modified to
take into account pr_allow flags which may now be disabled in prison0.
This prevents conflicts with new pr_allow flags (like that of vmm(4)) that
are added (and removed) dynamically.

Also teach the jail creation KPI to allow differences for certain pr_allow
flags between the parent and child jail. This can happen when unprivileged
process debugging is disabled in the parent prison, but enabled in the
child.

Submitted by: Shawn Webb
Obtained from: HardenedBSD (45b3625edba0f73b3e3890b1ec3d0d1e95fd47e1, deba0b5078cef0faae43cbdafed3035b16587afc, ab21eeb3b4c72f2500987c96ff603ccf3b6e7de8)
Relnotes: yes
Sponsored by: HardenedBSD and G2, Inc
Differential Revision: https://reviews.freebsd.org/D18319
27/11/2018
4:51 pm
base/head
ae
head/sys/netpfil/ipfw
Modificado:
head/sys/netpfil/ipfw/ip_fw_dynamic.c
Log:
Do not limit the mbuf queue length for keepalive packets.

It was unlimited before overhaul, and one user reported that this limit
can be reached easily.

PR: 233562
MFC after: 1 week
27/11/2018
4:23 pm
base/head
des
head/lib/libfetch
Modificado:
head/lib/libfetch/http.c
Log:
When deciding whether to send the complete URL or just the document part,
we were looking at the original URL rather than the one we were currently
processing. This meant that if we were trying to retrieve an HTTP URL but
were redirected to an HTTPS URL, and HTTPS proxying was enabled, we would
send an invalid request and most likely get garbage back.

MFC after: 3 days
27/11/2018
4:16 pm
base/head
ian
head/stand/i386/gptboot
Modificado:
head/stand/i386/gptboot/gptboot.c
Log:
Restore the ability to override the disk unit/partition at the boot: prompt
in gptboot.

When arch-independent geli support was added, a new static 'gdsk' struct
was added, but there was still a static 'dsk' struct, and when you typed
in an alternate disk/partition, the string was parsed into that struct,
which was then never used for anything. Now the string gets parsed into
gdsk.dsk, the struct that's actually used.

X-MFC after: 3 days
27/11/2018
3:12 pm
base/head
dab
head/tests/sys/kqueue/libkqueue
Modificado:
head/tests/sys/kqueue/libkqueue/main.c
head/tests/sys/kqueue/libkqueue/proc.c
head/tests/sys/kqueue/libkqueue/signal.c
head/tests/sys/kqueue/libkqueue/timer.c
head/tests/sys/kqueue/libkqueue/user.c
head/tests/sys/kqueue/libkqueue/vnode.c
Log:
Make whitespace more consistent in libkqueue tests.

After r337820, which "corrected" some spaces-instead-of-tab whitespace
issues in the libkqueue tests, jmg@ pointed out that these files were
originally space-based, not tab-spaced, and so the correction should
have been to get rid of the tabs that had been introduced in previous
changes, not the spaces. This change does that. This is a whitespace
only change; no functional change is intended.

Reported by: jmg@
MFC after: 3 days
Sponsored by: Dell EMC Isilon
27/11/2018
2:58 pm
base/head
des
in head: lib/geom/part sys/geom/part usr.sbin/boot0cfg
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D10E114F673;
Tue, 27 Nov 2018 14:58:22 +0000 (UTC) (envelope-from des@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 921E47F490;
Tue, 27 Nov 2018 14:58:21 +0000 (UTC) (envelope-from des@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7352D1CD07;
Tue, 27 Nov 2018 14:58:21 +0000 (UTC) (envelope-from des@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAREwLNB082112;
Tue, 27 Nov 2018 14:58:21 GMT (envelope-from des@FreeBSD.org)
Received: (from des@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAREwK8s082106;
Tue, 27 Nov 2018 14:58:20 GMT (envelope-from des@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: des set sender to des@FreeBSD.org
using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
Subject: svn commit: r341067 - in head: lib/geom/part sys/geom/part
usr.sbin/boot0cfg
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
27/11/2018
2:15 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mac.c
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): decode Medford2 FEC stats if available

Decode Medford2 FEC stats if available in MAC stats DMA buffer.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18178
27/11/2018
2:15 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mac.c
Log:
sfxge(4): run mkconfig.py to add FEC MAC stats

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18177
27/11/2018
2:16 pm
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/siena_mac.c
head/sys/dev/sfxge/sfxge_port.c
Log:
sfxge(4): remove MAC stats size define

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18180
27/11/2018
2:16 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_bootcfg.c
Log:
sfxge(4): resolve code analysis warnings

Minimal changes adding buffer size checks and simplifying checksum
processing.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18179
27/11/2018
2:14 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): retrieve number of MAC stats from NIC

This reports the number of stats (and hence the DMA buffer size)
for MAC stats. If MC_GET_CAPABABILITIES_V4 is not supported then
use the legacy Siena-compatible MC_CMD_MAC_NSTATS value.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18173
27/11/2018
2:15 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): use MAC stats DMA buffer size from caps

For Medford2 the DMA buffer used for one-shot or periodic MAC stats
has been extended. Ensure the MAC stats DMA buffer size is large
enough to hold the number of stats counters supported by firmware.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18175
27/11/2018
2:15 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mac.c
head/sys/dev/sfxge/common/siena_mac.c
Log:
sfxge(4): use MAC stats DMA buffer size when decoding

On Medford2 and later the MAC stats buffer has been enlarged.
Use the MAC stats DMA buffer size to ensure that the stats END
generation count is read from the correct location, and that
over-reading of the DMA buffer is prevented.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18176
27/11/2018
2:15 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): improve robustness of MAC stats get via MCDI

Previously the code relied on the callers of efx_mcdi_mac_stats
to provide a DMA buffer or NULL depending on the action. Fix
this so that the DMA buffer is only passed in the request when
needed, and that an error is reported for a missing DMA buffer.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18174
27/11/2018
2:14 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): refactor EF10 get datapath capabilities

Inline efx_mcdi_get_capabilities() to prepare for reading
newer capabilities response versions.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18172
27/11/2018
1:52 pm
base/head
emaste
head/usr.bin/clang/llvm-objdump
Modificado:
head/usr.bin/clang/llvm-objdump/llvm-objdump.1
Log:
llvm-objdump.1: remove more unintentional options

Some options come from static constructors in LLVM libraries and are
automatically added to llvm's usage output. They're not really supposed
to be llvm-objdump options.

Reported by: Fangrui Song in LLVM review D54864
Sponsored by: The FreeBSD Foundation
27/11/2018
1:00 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_phy.c
Log:
sfxge(4): handle new speeds in link events

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18170
27/11/2018
1:00 pm
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx_intr.c
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/siena_phy.c
head/sys/dev/sfxge/sfxge_dma.c
Log:
sfxge(4): add efsys macro to get memory region size

EFSYS_MEM_SIZE() reports the DMA mapped size of an efsys_mem_t
allocated region (the allocation size may be different due to
memory allocator and DMA alignment restrictions).

This ensures that common code internals have explicit knowledge
of the usable size of DMA mapped memory regions.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18170
27/11/2018
1:00 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/common/efx_port.c
Log:
sfxge(4): add new loopback modes

Report supported loopback modes for new Medford2 link speeds.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18169
27/11/2018
12:59 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): fix ICC warning because of non-enum value usage

Fix ICC warning because of non-enum value asignment to enum variable.

Found by upstreaming to DPDK.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18163
27/11/2018
1:00 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): support new link modes

Add basic support for new link modes for Medford2.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18168
27/11/2018
12:59 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): simplify loopback type checking

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18166
27/11/2018
1:00 pm
base/head
arybchik
head/sys/dev/sfxge
Modificado:
head/sys/dev/sfxge/sfxge_port.c
Log:
sfxge(4): removing unneeded assert

Remove ASSERT() from sfxge_link_mode_to_phy_cap() which causes an
unnecessary panic, even though the callers have proper error handling.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18167
27/11/2018
12:59 pm
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/sfxge.c
head/sys/dev/sfxge/sfxge.h
Log:
sfxge(4): report memory BAR number

Remove EFX_MEM_BAR define as it it is not correct on all platforms.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18165
27/11/2018
12:59 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): update notes on interrupt testing on VFs

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18164
27/11/2018
12:59 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mcdi.c
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/ef10_vpd.c
head/sys/dev/sfxge/common/efx_filter.c
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/efx_phy.c
head/sys/dev/sfxge/common/siena_mcdi.c
head/sys/dev/sfxge/common/siena_nvram.c
head/sys/dev/sfxge/common/siena_vpd.c
Log:
sfxge(4): refactoring eliminating code analysis warnings

Addresses most of the warnings reported by the sfn windows driver.

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18162
27/11/2018
12:58 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/efx_regs_ef10.h
Log:
sfxge(4): update hardware headers for Medford2

The changes to efx_regs_ef10.h are auto-generated and include:

- Updated event RX_L4_CLASS which is now 2 bits (was 3).
The encoding of TCP, UDP and UNKNOWN are unchanged so
the narrower Medford2 field definition is compatible with
all controllers.

- Fix definition of FATSOv2 option descriptors. These were
added manually and differ from the auto-generated values
in some fields (not yet used in common code). The field
definitions have been corrected to agree with the Linux net
driver headers and SF-108452-SW.

The remaining changes adapt the common code to use the updated
headers.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18161
27/11/2018
12:35 pm
base/head
marius
head/sys/contrib/ck/include/gcc/sparcv9
Modificado:
head/sys/contrib/ck/include/gcc/sparcv9/ck_pr.h
Directory Properties:
head/sys/contrib/ck/ (props changed)
Log:
Import CK as of 21d3e319407d19dece16ee317c757ffc54a452bc, which makes its
sparcv9 atomics compatible with the FreeBSD kernel by using instructions
which access the appropriate address space.
Atomic operations within the kernel must access the nucleus address space
instead of the default primary one. Without this change but the increased
use of CK in the kernel, machines started to panic after some minutes of
uptime due to an unresolvable fault in ck_pr_cas_64_value().
27/11/2018
12:22 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): improve comments for EF10 ext port mapping

Submitted by: Richard Houldsworth
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18159
27/11/2018
12:22 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_vpd.c
head/sys/dev/sfxge/common/efx_vpd.c
Log:
sfxge(4): add Medford2 support to VPD module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18156
27/11/2018
12:23 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_tx.c
Log:
sfxge(4): add method to make checksum option descriptors

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18160
27/11/2018
12:21 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx_tx.c
Log:
sfxge(4): add Medford2 support to Tx module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18152
27/11/2018
12:21 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): add Medford2 support to NVRAM module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18153
27/11/2018
12:22 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): support runtime VI window size

Medford2 uses a configurable VI window size, and requires
updates to register accesses to use a runtime VI window size
rather than the *_STEP register constants used for earlier
controllers.

Update the common code to query the VI window size via MCDI,
and add new EFX_BAR_VI_* accessor macros for per-VI registers.

The existing EFX_BAR_TBL_* macros can be used for non-VI
register tables (and for code that can never be called for
a Medford2 controller e.g. Siena-only code).

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18158
27/11/2018
12:21 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx_phy.c
Log:
sfxge(4): add Medford2 support to PHY module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18150
27/11/2018
12:21 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): add Medford2 support to Rx module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18151
27/11/2018
12:22 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_bootcfg.c
Log:
sfxge(4): add Medford2 support to BOOTCFG module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18155
27/11/2018
12:21 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_sram.c
Log:
sfxge(4): add Medford2 support to SRAM module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18154
27/11/2018
12:20 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mac.c
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_mac.c
Log:
sfxge(4): add Medford2 support to MAC module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18148
27/11/2018
12:22 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): add Medford2 support to MON module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18157
27/11/2018
12:20 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): add Medford2 support to FILTER module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18146
27/11/2018
12:20 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mcdi.c
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/efx_mcdi.h
Log:
sfxge(4): add Medford2 support to MCDI module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18149
27/11/2018
12:20 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): move RxDP config get to EF10 NIC code

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18144
27/11/2018
12:20 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_intr.c
head/sys/dev/sfxge/common/efx_intr.c
Log:
sfxge(4): add Medford2 support to INTR module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18147
27/11/2018
12:20 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/efx_ev.c
Log:
sfxge(4): add Medford2 support to EV module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18145
27/11/2018
12:19 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): correct PIO buffer dimensions for Medford2

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18143
27/11/2018
12:14 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_impl.h
Log:
sfxge(4): put Siena-specific code under its efsys option

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18141
27/11/2018
12:14 pm
base/head
arybchik
in head/sys: conf dev/sfxge/common modules/sfxge
Adicional:
head/sys/dev/sfxge/common/medford2_impl.h (contents, props changed)
head/sys/dev/sfxge/common/medford2_nic.c (contents, props changed)
Modificado:
head/sys/conf/files.amd64
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/modules/sfxge/Makefile
Log:
sfxge(4): add Medford2 support to NIC module

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18142
27/11/2018
12:13 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx_check.h
Log:
sfxge(4): add efsys option for Medford2

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18140
27/11/2018
12:13 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): add Medford2 PCI IDs

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18139
27/11/2018
12:11 pm
base/head
marius
in head: . sys/modules/iavf
Modificado:
head/ObsoleteFiles.inc
head/UPDATING
head/sys/modules/iavf/Makefile
Log:
- Add a belated UPDATING entry for the ixlv(4) -> iavf(4) rename in r339338.
- Likewise, add ixlv.4.gz to OLD_FILES,
- and link if_ixlv.ko to if_iavf.ko in order to aid a bit in the transition.
27/11/2018
11:22 am
base/head
des
head/lib/libfetch
Modificado:
head/lib/libfetch/http.c
Log:
A few more cases where strcasecmp() is no longer required.

MFC after: 1 week
27/11/2018
10:45 am
base/head
des
head/lib/libfetch
Modificado:
head/lib/libfetch/common.c
head/lib/libfetch/fetch.c
head/lib/libfetch/ftp.c
Log:
Improve URL parsing. In particular, convert scheme and host to lowercase.

MFC after: 1 week
27/11/2018
10:31 am
base/head
0mp
in head/usr.sbin: etcupdate mergemaster
Modificado:
head/usr.sbin/etcupdate/etcupdate.8
head/usr.sbin/mergemaster/mergemaster.8
Log:
Cross-reference mergemaster(8) & etcupdate(8).

Suggested by: Daniel Ebdrup
Reviewed by: bcr
Approved by: bcr (doc), krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18350
27/11/2018
10:06 am
base/head
des
head/lib/libfetch
Modificado:
head/lib/libfetch/ftp.c
Log:
Support proxying FTP over HTTPS, not just HTTP.

There is probably a PR for this, but I can't find this, or remember who
submitted it. The patch got lost in the noise of another that wasn't
ready to commit.

MFC after: 3 days
27/11/2018
9:46 am
base/head
des
head/usr.sbin/unbound/setup
Modificado:
head/usr.sbin/unbound/setup/local-unbound-setup.sh
Log:
Check that /etc/resolv.conf exists before trying to read it.
Fix whitespace nit introduced in previous commit.

MFC after: 1 week
27/11/2018
9:41 am
base/head
des
in head: lib/libc/net usr.sbin/nscd
Modificado:
head/lib/libc/net/nscachedcli.c
head/usr.sbin/nscd/nscdcli.c
head/usr.sbin/nscd/query.c
Log:
Style cleanup.
27/11/2018
9:04 am
base/head
ae
head/sys/net
Modificado:
head/sys/net/if.c
head/sys/net/rtsock.c
Log:
Fix possible panic during ifnet detach in rtsock.

The panic can happen, when some application does dump of routing table
using sysctl interface. To prevent this, set IFF_DYING flag in
if_detach_internal() function, when ifnet under lock is removed from
the chain. In sysctl_rtsock() take IFNET_RLOCK_NOSLEEP() to prevent
ifnet detach during routes enumeration. In case, if some interface was
detached in the time before we take the lock, add the check, that ifnet
is not DYING. This prevents access to memory that could be freed after
ifnet is unlinked.

PR: 227720, 230498, 233306
Reviewed by: bz, eugen
MFC after: 1 week
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D18338
27/11/2018
8:51 am
base/head
ygy
head/stand/i386/pxeldr
Modificado:
head/stand/i386/pxeldr/pxeboot.8
Log:
Bump the date of pxeboot(8) manual page for r340917.

PR: 123484
MFC after: 5 days
27/11/2018
4:05 am
base/head
eugen
head/sys/netgraph
Modificado:
head/sys/netgraph/ng_source.c
Log:
ng_source(4): correction after the change r340617

tv_usec has "long" type for all architecture in FreeBSD
and follows __LP64__. However, this is not true for tv_sec
that has "time_t" type.

Since r320347 that changed time_t from 32 to 64 bit integer
for 32 bit version of powerpc architecture, we have only single
i386 architecture having 32 bit time_t type.

Submitted by: jhb
MFC after: 1 week.
27/11/2018
12:36 am
base/head
imp
head/sys/cam
Modificado:
head/sys/cam/cam_iosched.c
head/sys/cam/cam_iosched.h
Log:
NVME trim clocking

Add the ability to set two goals for trims in the I/O scheduler. The
first goal is the number of BIO_DELETEs to accumulate
(kern.cam.XX.U.trim_goal). When non-zero, this many trims will be
accumulated before we start to transfer them to lower layers. This is
useful for devices that like to get lots of trims all at once in one
transaction (not all devices are like this, and some vary by workload).

The second is a number of ticks to defer trims. If you've set a trim
goal, then kern.cam.XX.U.trim_ticks controls how long the system will
defer those trims before timing out and sending them anyway. It has no
effect when trim_goal is 0.

In any event, a BIO_FLUSH will cause all the TRIMs to be released to
the periph drivers. This may be a minor overloading of what BIO_FLUSH
is supposed to mean, but it's useful to preserve other ordering
semantics that users of BIO_FLUSH reply on.

Sponsored by: Netflix, Inc
26/11/2018
11:09 pm
base/head
mckusick
head/lib/libufs
Modificado:
head/lib/libufs/libufs.3
Log:
Bring up to date with recently added functions berase(3), getinode(3),
putinode(3), sbget(3), and sbput(3).

Sponsored by: Netflix
26/11/2018
10:50 pm
base/head
imp
head/sys/cam
Modificado:
head/sys/cam/cam_iosched.c
Log:
Minor tweaks to the formatting

Tweak the format of the trim + read bias code. Add similar debug to
the read + writes case.

Spondored by: Netflix
26/11/2018
10:45 pm
base/head
markm
head/sys/conf
Modificado:
head/sys/conf/files
Log:
Add dependency to allow if_muge device to be only ethernet device in stripped-down RPI3 kernel.
26/11/2018
10:42 pm
base/head
markj
head/sys/dev/cxgbe/cxgbei
Modificado:
head/sys/dev/cxgbe/cxgbei/cxgbei.c
Log:
Check for an allocation failure before dereferencing the pointer.

Reported by: Ilja Van Sprundel
Reviewed by: np
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18310
26/11/2018
9:45 pm
base/head
mm
head/lib/libarchive
Modificado:
head/lib/libarchive/Makefile
head/lib/libarchive/config_freebsd.h
Log:
libarchive configuration changes
- move HAVE_BZLIB_H, HAVE_LIBLZMA and HAVE_LZMA_H to config_freebsd.h
- activate support for multi-threaded lzma encoding [1]

PR: 233543 [1]
Reported by: cem
MFC after: 1 week
26/11/2018
8:56 pm
base/head
vangyzen
in head/sys: amd64/amd64 amd64/ia32 i386/i386 kern
Modificado:
head/sys/amd64/amd64/machdep.c
head/sys/amd64/ia32/ia32_signal.c
head/sys/i386/i386/machdep.c
head/sys/kern/kern_context.c
Log:
Remove superfluous bzero in getcontext/swapcontext/sendsig

We zero the whole structure; we don't need to zero the __spare__ field again.

Remove trailing whitespace.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
26/11/2018
8:52 pm
base/head
vangyzen
in head/sys: arm/arm arm64/arm64 riscv/riscv
Modificado:
head/sys/arm/arm/machdep.c
head/sys/arm64/arm64/machdep.c
head/sys/riscv/riscv/machdep.c
Log:
Prevent kernel stack disclosure in signal delivery

On arm64 and riscv platforms, sendsig() failed to zero the signal
frame before copying it out to userspace. Zero it.

On arm, I believe all the contents of the frame were initialized,
so there was no disclosure. However, explicitly zero the whole frame
because that fact could inadvertently change in the future,
it's more clear to the reader, and I could be wrong in the first place.

MFC after: 2 days
Security: similar to FreeBSD-EN-18:12.mem and CVE-2018-17155
Sponsored by: Dell EMC Isilon
26/11/2018
8:50 pm
base/head
vangyzen
in head/sys: amd64/ia32 mips/mips powerpc/powerpc
Modificado:
head/sys/amd64/ia32/ia32_signal.c
head/sys/mips/mips/freebsd32_machdep.c
head/sys/powerpc/powerpc/exec_machdep.c
Log:
Prevent kernel stack disclosure in getcontext/swapcontext

Expand r338982 to cover freebsd32 interfaces on amd64, mips, and powerpc.

MFC after: 2 days
Security: FreeBSD-EN-18:12.mem
Security: CVE-2018-17155
Sponsored by: Dell EMC Isilon
26/11/2018
7:41 pm
base/head
bwidawsk
head/sys/dev/acpica
Modificado:
head/sys/dev/acpica/acpi_ec.c
Log:
acpi/ec: Fix regression caused by r340644

After r340644 there were two things wrong in cases where there is both
an ECDT, and an EC device exposed via acpica. The first is a rather
trivial situation where the device desc would say ECDT even when it was
not implicitly created via ECDT (not really sure why the compiler
doesn't seem to warn about this).

The other more pervasive issue is that the code is designed to
essentially not do anything for EC probe when its uid was already
created an EC based on the ECDT's uid. The issue was that probe would
still return 0 in this case, and so we'd end up with some weird
duplication. Now to be honest, I'm not actually sure what exactly broke,
but it was definitely not working as intended. To fix this, all that is
really needed is to make sure we return ENXIO when we're probing the
device already added for the ECDT entry. While here though, move the
check for this earlier to avoid wasted cycles when we know after
obtaining the uid that it's duplicative.

There remains one questionable bit here which I don't want to touch -
when doing probe for PNP0C09, if acquiring _UID for the device fails, 0
is assumed, which is a valid UID used by the implicit ECDT.

Reported by: Charlie Li, et al.
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D18311
26/11/2018
7:39 pm
base/head
yuripv
in head: etc/mtree share/colldef share/ctypedef
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A07011420DD;
Mon, 26 Nov 2018 19:39:52 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 435CF8578C;
Mon, 26 Nov 2018 19:39:52 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2561B105C2;
Mon, 26 Nov 2018 19:39:52 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAQJdq7j081341;
Mon, 26 Nov 2018 19:39:52 GMT (envelope-from yuripv@FreeBSD.org)
Received: (from yuripv@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAQJdnXx081329;
Mon, 26 Nov 2018 19:39:49 GMT (envelope-from yuripv@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: yuripv set sender to
yuripv@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
Subject: svn commit: r340992 - in head: etc/mtree share/colldef share/ctypedef
share/monetdef share/msgdef share/numericdef share/timedef tools/tools/locale
tools/tools/locale/etc
X-SVN-Commit-Paths: in head: etc/mtree share/colldef share/ctypedef
share/monetdef share/msgdef share/numericdef share/timedef tools/tools/locale
tools/tools/locale/etc
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
26/11/2018
7:29 pm
base/head
emaste
head/stand/i386/libi386
Adicional:
head/stand/i386/libi386/pxetramp.S
- copied unchanged from r340990, head/stand/i386/libi386/pxetramp.s
Eliminado:
head/stand/i386/libi386/pxetramp.s
Modificado:
head/stand/i386/libi386/Makefile
Log:
stand/i386/libi386: rename .s file to .S to use Clang IAS

As part of the migration away from obsolete binutils we want to retire
GNU as. Most assembly files used on amd64 have a .S extension and are
assembled with Clang's Integrated Assembler (IAS); rename pxetram.s to
.S to use IAS as well.

The generated .text is identical (the entire .o file is not, as Clang
adds debug info.)

PR: 205250, 233094
Sponsored by: The FreeBSD Foundation
26/11/2018
7:14 pm
base/head
emaste
head/stand/i386/btx/lib
Adicional:
head/stand/i386/btx/lib/btxsys.S
- copied unchanged from r340989, head/stand/i386/btx/lib/btxsys.s
head/stand/i386/btx/lib/btxv86.S
- copied unchanged from r340989, head/stand/i386/btx/lib/btxv86.s
Eliminado:
head/stand/i386/btx/lib/btxsys.s
head/stand/i386/btx/lib/btxv86.s
Modificado:
head/stand/i386/btx/lib/Makefile
Log:
btx: rename .s files to .S to use Clang IAS

As part of the migration away from obsolete binutils we want to retire
GNU as. Most assembly files used on amd64 have a .S extension and are
assembled with Clang's integrated assembler; rename two files in
stand/i386/btx/lib to .S to use IAS as well.

The generated .text is identical (the entire .o files are not, as Clang
adds debug info).

PR: 205250, 233094
Discussed with: imp
Sponsored by: The FreeBSD Foundation
26/11/2018
6:46 pm
base/head
manu
head/sys/dev/extres/regulator
Modificado:
head/sys/dev/extres/regulator/regulator_fixed.c
Log:
regulator_fixed: Do not disable fixed regulator at probe

If the regulator is unused it will be disabled by the regulator_shutdown sysinit.

Tested on pinebook where the backlight is controlled by a fixed-regulator.
The regulator doesn't have a regulator-boot-on param (I'm gonna upstream this) and so we disable it at probe.
We later enable it but this cause the screen to go black.
Linux doesn't disable regulator at boot (at least for fixed-regulator) so better match this to have the same UX.

MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17978
26/11/2018
6:31 pm
base/head
asomers
head/sys/kern
Modificado:
head/sys/kern/vfs_aio.c
Log:
vfs_aio.c: rename "physio" symbols to "bio".

aio has two paths: an asynchronous "physio" path and a synchronous path.
Confusingly, physio(9) isn't actually used by the "physio" path, and never
has been. In fact, it may even be called by the synchronous path! Rename
the "physio" path to the "bio" path to reflect what it actually does:
directly compose BIOs and send them to character devices.

MFC after: 2 weeks
26/11/2018
5:59 pm
base/head
manu
head/sys/arm64/conf
Modificado:
head/sys/arm64/conf/GENERIC
Log:
arm64: Add evdev support to GENERIC
26/11/2018
5:22 pm
base/head
emaste
head
Modificado:
head/UPDATING
Log:
UPDATING: add note for r340984 (ld.bfd removal)

Sponsored by: The FreeBSD Foundation
26/11/2018
5:11 pm
base/head
emaste
head/share/man/man5
Modificado:
head/share/man/man5/src.conf.5
Log:
src.conf.5: regen after r340984 (and r340841)
26/11/2018
5:07 pm
base/head
emaste
in head: gnu/usr.bin/binutils tools/build/mk
Modificado:
head/gnu/usr.bin/binutils/Makefile
head/tools/build/mk/OptionalObsoleteFiles.inc
head/tools/build/options/WITHOUT_BINUTILS
head/tools/build/options/WITH_BINUTILS
Log:
Do not install GNU ld if lld is /usr/bin/ld

GNU binutils ld.bfd 2.17.50 does not support ifuncs and produces broken
binaries when ifuncs are in use. When LLD_IS_LD is default we have an
ifunc-capable system linker and can just avoid installing ld.bfd.

Reported by: theraven
Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18340
26/11/2018
5:00 pm
base/head
gjb
head/release/tools
Modificado:
head/release/tools/gce.conf
Log:
Fix NTP query on GCE due to unresolved hostname.

PR: 232456
Submitted by: Lucas Kanashiro
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
26/11/2018
4:38 pm
base/head
manu
in head/release: arm64 tools
Adicional:
head/release/arm64/PINEBOOK.conf (contents, props changed)
Modificado:
head/release/tools/arm.subr
Log:
release: arm64: Add PINEBOOK config

Add a configuration for PINEBOOK image.
Pinebook is a arm64 laptop based on a Pine64 board.

Since the usb trackpad need a quirk, add a common function for adding
quirk for arm board.
A default one is supplied as most board to not need quirks.

Reviewed by: gjb
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18337
26/11/2018
4:10 pm
base/head
eugen
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw.8
Log:
Small language fix after r340978.

MFC after: 3 days
26/11/2018
4:02 pm
base/head
eugen
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw.8
Log:
ipfw.8: add new section to EXAMPLES:

SELECTIVE MIRRORING
If your network has network traffic analyzer connected to your host
directly via dedicated interface or remotely via RSPAN vlan, you can
selectively mirror some ethernet layer2 frames to the analyzer.
...
26/11/2018
3:33 pm
base/head
yuripv
head/contrib/nvi/common
Modificado:
head/contrib/nvi/common/encoding.c
Log:
vi: fix UTF-8 detection.

PR: 202290
Submitted by: lampa@fit.vutbr.cz
Reviewed by: bapt
Approved by: kib (mentor, implicit)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17950
26/11/2018
3:12 pm
base/head
emaste
head/usr.bin/clang/llvm-objdump
Modificado:
head/usr.bin/clang/llvm-objdump/llvm-objdump.1
Log:
llvm-objdump.1: fix igor / mandoc -Tlint warnings

Accidentally omitted from r340972.
26/11/2018
3:11 pm
base/head
yuripv
head/sbin/bectl
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id B21371139748;
Mon, 26 Nov 2018 15:11:33 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 5732777E1A;
Mon, 26 Nov 2018 15:11:33 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 38B5C59B0;
Mon, 26 Nov 2018 15:11:33 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAQFBXA9041352;
Mon, 26 Nov 2018 15:11:33 GMT (envelope-from yuripv@FreeBSD.org)
Received: (from yuripv@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAQFBXrG041351;
Mon, 26 Nov 2018 15:11:33 GMT (envelope-from yuripv@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: yuripv set sender to
yuripv@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
26/11/2018
2:45 pm
base/head
emaste
head/usr.bin/clang/llvm-objdump
Modificado:
head/usr.bin/clang/llvm-objdump/llvm-objdump.1
Log:
llvm-objdump.1: remove invalid options

Some options appear in llvm-objdump's usage information as a side effect
of its option parsing implementation and are not actually llvm-objdump
options. Reported in LLVM review https://reviews.llvm.org/D54864.

Reported by: Fangrui Song
Sponsored by: The FreeBSD Foundation
26/11/2018
2:34 pm
base/head
emaste
head/usr.bin/clang/llvm-objdump
Adicional:
head/usr.bin/clang/llvm-objdump/llvm-objdump.1 (contents, props changed)
Modificado:
head/usr.bin/clang/llvm-objdump/Makefile
Log:
llvm-objdump: initial man page

Based on llvm-objdump's online documentation and usage information.
This serves as a starting point; additional detail and cleanup still
required.

Also being submitted upstream in LLVM review D54864. I expect to use
this bespoke copy while we have LLVM 6.0 or 7.0 in FreeBSD; when we
update to LLVM 8.0 it should be upstream and we will switch to it.

PR: 233437
Reviewed by: bcr (man formatting)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18309
26/11/2018
2:27 pm
base/head
manu
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/aw_usbphy.c
Log:
aw_usbphy: Do not error if it's not phy 0

Only phy0 can switch between host/otg, do not error if we request
host mode on phy != 0.

MFC after: 1 month
X-MFC with: r340846
26/11/2018
1:56 pm
base/head
emaste
head/lib/libc
Modificado:
head/lib/libc/Makefile
Log:
revert r340640 "libc: forcibly disable BIND_NOW"

When immediate bind mode is requested, as of r340675 rtld processes
irelocs in PLT immediately after other PLT relocs. That addresses the
libc + BIND_NOW startup crash the workaround is no longer needed.

PR: 233333
26/11/2018
1:42 pm
base/head
markj
head/sys/net
Modificado:
head/sys/net/if.h
head/sys/net/route.h
head/sys/net/rtsock.c
Log:
Plug routing sysctl leaks.

Various structures exported by sysctl_rtsock() contain padding fields
which were not being zeroed.

Reported by: Thomas Barabosch, Fraunhofer FKIE
Reviewed by: ae
MFC after: 3 days
Security: kernel memory disclosure
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18333
26/11/2018
11:04 am
base/head
mm
in head/contrib/libarchive/libarchive: . test
Modificado:
head/contrib/libarchive/libarchive/archive_acl.c
head/contrib/libarchive/libarchive/archive_write_disk_posix.c
head/contrib/libarchive/libarchive/test/test_extattr_freebsd.c
head/contrib/libarchive/libarchive/test/test_read_format_rar5.c
Directory Properties:
head/contrib/libarchive/ (props changed)
Log:
MFV r340938:
Sync libarchive with vendor.

Relevant vendor changes:
Issue #1096: Support extracting ACLs with in-entry comments (GNU tar)
PR #1023: Support extracting extattrs as non-root on non-user-writeable
files

MFC after: 1 week
26/11/2018
8:16 am
base/head
bapt
head/lib/libedit
Modificado:
head/lib/libedit/chartype.c
head/lib/libedit/chartype.h
head/lib/libedit/el.c
head/lib/libedit/el.h
head/lib/libedit/read.c
Log:
libedit: improve multibyte support

Until this commit libedit only supported UTF-8 for multibyte charset
Improve it to support other multibyte charsets

Tested with eucJP and SJIS charsets.
Note that this change as been review and committed in upstream libedit
as well via christos@NetBSD

Submitted by: naito.yuichiro _at_ gmail.com
Reviewed by: bapt, pfg, yuripv, 0mp
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17903
26/11/2018
7:42 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mon.c
Log:
sfxge(4): add 3.3V and 12.0V current sensors

Automatically generated using mkconfig.py.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18138
26/11/2018
7:30 am
base/head
arybchik
in head: . sys/dev/sfxge/common
Modificado:
head/.gitattributes
Directory Properties:
head/sys/dev/sfxge/common/efx_regs_mcdi_aoe.h (props changed)
Log:
sfxge(4): fix incorrectly set svn properties

File name was used by the svn property value since
real value was lost in the command.
26/11/2018
7:23 am
base/head
arybchik
in head: . sys/dev/sfxge/common sys/modules/sfxge
Adicional:
head/sys/dev/sfxge/common/efx_regs_mcdi_aoe.h (contents, props changed)
Modificado:
head/.gitattributes
head/sys/dev/sfxge/common/ef10_tlv_layout.h
head/sys/dev/sfxge/common/efx_lic.c
head/sys/dev/sfxge/common/efx_regs_mcdi.h
head/sys/modules/sfxge/Makefile
Log:
sfxge(4): update autogenerated headers from firmwaresrc

Pick up Medford2 interfaces.

Split AOE operations out into own header.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18137
26/11/2018
7:15 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/siena_flash.h
Log:
sfxge(4): regenerate files with genfwdef after ID update

Add security level to image boot header.

Submitted by: Andrew Jackson
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18289
26/11/2018
6:20 am
base/head
arybchik
in head/sys: conf dev/sfxge/common modules/sfxge
Adicional:
head/sys/dev/sfxge/common/efx_tunnel.c (contents, props changed)
Modificado:
head/sys/conf/files.amd64
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_check.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_mcdi.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/modules/sfxge/Makefile
Log:
sfxge(4): add API to control UDP tunnel ports

HW needs to know which UDP packets should be treated as tunnel
encapsulation to do inner packet recognition, classification and
offloads.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18134
26/11/2018
12:58 am
base/head
mckusick
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_subr.c
head/sys/ufs/ffs/ffs_vfsops.c
Log:
Move the check for the filesystem having been run on a kernel that
predates metadata check hashes so that it is done before deciding
whether to compute a check-hash of the superblock.

Reported by: Rick Macklem
Sponsored by: Netflix
25/11/2018
7:37 pm
base/head
wulf
head/sys/dev/evdev
Modificado:
head/sys/dev/evdev/evdev_utils.c
Log:
evdev: Fix pause key release event in AT keyboard set 1 to evdev xlat-or.

MFC after: 2 weeks
25/11/2018
6:09 pm
base/head
mckusick
head/sbin/fsck_ffs
Modificado:
head/sbin/fsck_ffs/setup.c
Log:
Properly recover from superblock check-hash failures. Specifically,
report the check-hash failure and offer to search for and use
alternate superblocks. Prior to this fix fsck_ffs would simply
report the check-hash failure and exit.

Reported by: Julian H. Stacey
Tested by: Peter Holm
Sponsored by: Netflix
25/11/2018
5:56 pm
base/head
kib
head/sys/vm
Modificado:
head/sys/vm/vm_map.c
Log:
Avoid unneeded check in vmspace_alloc().

All vmspace_alloc() callers know which kind of pmap they allocate.

Reviewed by: alc, markj (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18329
25/11/2018
6:01 pm
base/head
mckusick
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_extern.h
head/sys/ufs/ffs/ffs_snapshot.c
head/sys/ufs/ffs/ffs_subr.c
Log:
Calculate updated superblock check-hash before writing it into the snapshot.
This corrects a bug that prevented snapshots from being mounted due to a
superblock check-hash failure.

Reported by: Brennan Vincent
Tested by: Peter Holm (pho@)
Sponsored by: Netflix
25/11/2018
9:37 am
base/head
ygy
head/stand/i386/pxeldr
Modificado:
head/stand/i386/pxeldr/pxeboot.8
Log:
Update pxeboot(8) manual page to reflect the next-server change in the ISC DHCP v3 server.

PR: 123484
Submitted by: edwin@mavetju.org
Reviewed by: AllanJude
MFC after: 1 week
24/11/2018
9:52 pm
base/head
alc
head/sys/kern
Modificado:
head/sys/kern/subr_blist.c
Log:
blist_meta_alloc assumes that mask=scan->bm_bitmap is nonzero. But if the
cursor lies in the middle of the space that the meta node represents, then
blanking the low bits of mask may make it zero, and break later code that
expects a nonzero value. Add a test that returns failure if the mask has
been cleared.

Submitted by: Doug Moore
Reported by: pho
Tested by: pho
X-MFC with: r340402
Differential Revision: https://reviews.freebsd.org/D18058
24/11/2018
9:23 pm
base/head
wulf
head/sys/dev/atkbdc
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21C301139EB4;
Sat, 24 Nov 2018 21:23:14 +0000 (UTC)
(envelope-from wulf@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id C1CFF8CD17;
Sat, 24 Nov 2018 21:23:13 +0000 (UTC)
(envelope-from wulf@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A163F13780;
Sat, 24 Nov 2018 21:23:13 +0000 (UTC)
(envelope-from wulf@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAOLNDEp044770;
Sat, 24 Nov 2018 21:23:13 GMT (envelope-from wulf@FreeBSD.org)
Received: (from wulf@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAOLND6V044767;
Sat, 24 Nov 2018 21:23:13 GMT (envelope-from wulf@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: wulf set sender to
wulf@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
24/11/2018
9:17 pm
base/head
wulf
head/sys/dev/atkbdc
Modificado:
head/sys/dev/atkbdc/psm.c
Log:
Revert r328640: Add kludge for 0x46 identity middle byte Synaptics touchpads.

It appeared that "0x46 identity middle byte" response is caused by so called
"Active PS/2 multiplexing controller" presence. Support for it will be added
in next commit.
24/11/2018
6:25 pm
base/head
andrew
head/lib/csu/tests
Modificado:
head/lib/csu/tests/Makefile
Log:
Re-enable the dynamiclib tests. These should be fixed by r340910.
24/11/2018
6:23 pm
base/head
andrew
head/lib/csu/common
Modificado:
head/lib/csu/common/crtend.c
Log:
Add the missing 0 at the end of the .jcr section.

Without this the dynamic library test was failing as it was calling
_Jv_RegisterClasses multiple times.
24/11/2018
6:23 pm
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Combine two lines into one following unifdef for r255332.

MFC after: 1 week
24/11/2018
6:13 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): allow to request inner classes for Rx packets

If HW/FW supports tunnel encapsulations, Rx event may contain
either inner or outer packet classes. By default outer classes
are requested. Make it possible to request inner classes to
have more information about packet type and allow to interpret
inner frame checksum validation results correctly.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18133
24/11/2018
6:13 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): add function to create packed stream RxQ

Encoding packed stream buffer size in RxQ type is not a future-proof
idea taking into account a new RxQ types with extra parameters.
To be consistent make packet stream buffer size a separate parameter.
In order to avoid blowing of the default RxQ create function prototype
add a dedicated function to create packed stream RxQ without not
applicable paramters.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18132
24/11/2018
6:13 pm
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_rx.c
head/sys/dev/sfxge/sfxge_rx.c
Log:
sfxge(4): control RxQ scatter using flag instead of type

Rx scatter may be applicable to different Rx queue types.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18131
24/11/2018
5:06 pm
base/head
markj
in head/sys: compat/linux kern sys
Modificado:
head/sys/compat/linux/linux_event.c
head/sys/kern/kern_event.c
head/sys/kern/vfs_aio.c
head/sys/sys/event.h
Log:
Pass malloc flags directly through kevent(2) subroutines.

Some kevent functions have a boolean "waitok" parameter for use when
calling malloc(9). Replace them with the corresponding malloc() flags:
the desired behaviour is known at compile-time, so this eliminates a
couple of conditional branches, and makes the code easier to read.

No functional change intended.

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18318
24/11/2018
5:02 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_event.c
head/sys/kern/vfs_aio.c
Log:
Plug some kernel memory disclosures via kevent(2).

The kernel may register for events on behalf of a userspace process,
in which case it must be careful to zero the kevent struct that will be
copied out to userspace.

Reviewed by: kib
MFC after: 3 days
Security: kernel stack memory disclosure
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18317
24/11/2018
4:58 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_event.c
Log:
Ensure that knotes do not get registered when KQ_CLOSING is set.

KQ_CLOSING is set before draining the knotes associated with a kqueue,
so we must ensure that new knotes are not added after that point. In
particular, some kernel facilities may register for events on behalf
of a userspace process and race with a close of the kqueue.

PR: 228858
Reviewed by: kib
Tested by: pho
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18316
24/11/2018
4:41 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_event.c
Log:
Lock the knlist before releasing the in-flux state in knote_fork().

Otherwise there is a window, before iteration is resumed, during which
the knote may be freed. The in-flux state ensures that the knote will
not be removed from the knlist while locks are dropped.

PR: 228858
Reviewed by: kib
Tested by: pho
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18316
24/11/2018
4:31 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
Log:
sfxge(4): expand on comment on number of queues field

Expand on comment on RSS_CONTEXT_ALLOC_IN_NUM_QUEUES field.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18127
24/11/2018
4:31 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_mac.c
head/sys/dev/sfxge/common/efx_port.c
Log:
sfxge(4): remove Falcon-specific concurrency check

Falcon support has been withdrawn from libefx, however, there is still
an obsolete Falcon-specific assertion that efx_mac_stats_upload()
and efx_port_poll() aren't concurrent. To be consistent with an overall
Falcon support revocation it's desirable to remove it.

Fix debug build invalid assertion failure.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18130
24/11/2018
4:31 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): move BIU test code into Siena-specific file

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18129
24/11/2018
4:30 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): remove obsolete check for pre-Siena hardware

The fail4 label was used twice, so it doesn't need removing.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18126
24/11/2018
4:31 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): fix PreFAST static analysis warning (C6001)

Fix warning
"C6001: Using uninitialized memory '*sensor_maskp'"
which could occur when the npages argument to efx_mcdi_sensor_info()
is less than or equal to zero.

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18128
24/11/2018
4:30 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): fix warnings from VS2015 C compiler (C4214)

Fix multiple level 4 warnings
"C4214: nonstandard extension used: bit field types other than int";
no functional changes.

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18125
24/11/2018
4:30 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_bootcfg.c
Log:
sfxge(4): fix warnings from VS2015 C compiler (C4057)

Fix two level 4 warnings
"C4057: 'function': 'const uint8_t *' differs in indirection to
slightly different base types from 'caddr_t'"; no functional changes.

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18124
24/11/2018
4:30 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/efx_ev.c
head/sys/dev/sfxge/common/efx_tx.c
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): fix warnings from VS2015 C compiler (C4189)

Fix multiple level 4 warnings
"C4189: 'xxx': local variable is initialized but not referenced";
no functional changes.

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18123
24/11/2018
4:30 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx_ev.c
head/sys/dev/sfxge/common/efx_lic.c
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): fix warnings from VS2015 C compiler (C4100)

Fix multiple level 4 warnings
"C4100: 'xxx': unreferenced formal parameter"
no functional changes.

The _NOTE(ARGUNUSED(xxx)) annotations are being exposed to the Visual
Studio 2015 C compiler with the following:

#define _NOTE_ARGUNUSED(...) UNREFERENCED_PARAMETER((__VA_ARGS__));
#define _NOTE(_annotation) _NOTE_ ## _annotation

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18122
24/11/2018
4:29 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): fix warnings from VS2015 C compiler (C4245)

Fix level 4 warning
"C4245: 'initializing': conversion from 'int' to 'uint32_t',
signed/unsigned mismatch" warning; no functional changes.

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18121
24/11/2018
4:29 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_vpd.c
Log:
sfxge(4): fix warnings from VS2015 C compiler (C4244)

Fix level 4 warning
"C4244: '+=': conversion from 'unsigned int' to 'uint16_t', possible loss
of data"; no functional changes.

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18120
24/11/2018
4:28 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_check.h
Log:
sfxge(4): allow to use PHY stats on Huntington/Medford

EFSYS_OPT_PHY_STATS can be used with Huntington or Medford, not just Siena.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18116
24/11/2018
4:29 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_bootcfg.c
Log:
sfxge(4): fix warnings from VS2015 C compiler (C4310)

Fix level 4 warning
"C4310: cast truncates constant value";
no functional changes.

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18119
24/11/2018
4:29 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_lic.c
Log:
sfxge(4): fix probes in licensing support

EFSYS_PROBE1 takes one typed value (in addition to the probe name),
whereas EFSYS_PROBE has just the probe name.

Which to use is determined by the probe name - "fail1" probes are
expected to include the function result.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18118
24/11/2018
4:29 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/common/siena_impl.h
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): fix diagnostics support build without Siena

The compilation failed because __efx_sram_pattern_fns was used in
efx_nic.c, but defined in efx_sram.c which is only needed when
supporting Siena.

To fix it move all the code using __efx_sram_pattern_fns into
Siena-specific files (except for the definition in efx_sram.c itself,
as that file only needs to be included in Siena-supporting builds
anyway).

The functions to test registers and tables are unlikely to apply to any
new hardware and so can be moved into Siena files. Since Huntington
such tests have been implemented in firmware.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18117
24/11/2018
4:05 pm
base/head
andrew
head/lib/csu/tests
Modificado:
head/lib/csu/tests/Makefile
Log:
Disable the dynamiclib test until a failure can be debugged
24/11/2018
3:24 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mon.c
Log:
sfxge(4): add new sensors

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18112
24/11/2018
3:24 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_lic.c
head/sys/dev/sfxge/common/efx_mcdi.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/common/efx_types.h
head/sys/dev/sfxge/common/medford_nic.c
Log:
sfxge(4): fix coding style

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18115
24/11/2018
3:23 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/siena_impl.h
Log:
sfxge(4): move Siena-specific defs to right header

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18111
24/11/2018
3:23 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_phy.c
head/sys/dev/sfxge/common/efx_check.h
head/sys/dev/sfxge/common/siena_nic.c
head/sys/dev/sfxge/common/siena_phy.c
Log:
sfxge(4): fix build issue with PHY LED control enabled

Fixed build issue with the EFSYS_OPT_PHY_LED_CONTROL for Huntigton and
Medford.

Submitted by: Vijay Srivastava
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18110
24/11/2018
3:24 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/mcdi_mon.c
Log:
sfxge(4): support new sensors

Submitted by: Andrew Jackson
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18113
24/11/2018
3:24 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/medford_impl.h
Log:
sfxge(4): remove unused defined for WPTR alignment

MEDFORD_RX_WPTR_ALIGN is not used.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18114
24/11/2018
3:23 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_tx.c
Log:
sfxge(4): improve names for TXQ descriptor counts

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18109
24/11/2018
3:22 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
Log:
sfxge(4): remove assertion on no longer used define

MC_CMD_INIT_RXQ_OUT_LEN is not used any more.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18106
24/11/2018
3:23 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): improve names for RXQ descriptor counts

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18108
24/11/2018
3:23 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_ev.c
Log:
sfxge(4): improve names for EVQ descriptor counts

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18107
24/11/2018
7:16 am
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
An OSF/1 ifdef makes absolutley no sense in a FreeBSD specific source
file.
MFC after: 1 week
24/11/2018
6:49 am
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
FreeBSD 7 has been history for many moons. Remove some dead code.

MFC after: 1 week
24/11/2018
1:25 am
base/head
mm
in head/contrib/libarchive: cpio libarchive
Modificado:
head/contrib/libarchive/cpio/cpio.c
head/contrib/libarchive/libarchive/archive_acl.c
head/contrib/libarchive/libarchive/archive_read_support_format_rar5.c
head/contrib/libarchive/libarchive/archive_write_set_format_iso9660.c
head/contrib/libarchive/libarchive/archive_write_set_format_mtree.c
head/contrib/libarchive/libarchive/archive_write_set_format_pax.c
head/contrib/libarchive/libarchive/archive_write_set_format_xar.c
head/contrib/libarchive/libarchive/test/test_fuzz.c
head/contrib/libarchive/libarchive/test/test_read_format_rar5.c
head/contrib/libarchive/libarchive/test/test_write_disk_perms.c
head/contrib/libarchive/tar/write.c
Directory Properties:
head/contrib/libarchive/ (props changed)
Log:
MFV r340865:
Sync libarchive with vendor.

Relevant vendor changes:
PR #1080: Spelling fixes
PR #1084: RAR5 reader bugfixes
PR #1091: fix use-after-free in delayed newc link processing
PR #1092: Fix a few obvious resource leaks and strcpy() misuses

MFC after: 1 week
23/11/2018
11:33 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/imgact_elf.c
Log:
Parse FreeBSD Feature Control note on the ELF image activation.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
23/11/2018
11:29 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/imgact_elf.c
Log:
Generalize ELF parse_notes().

Remove the knowledge of the ABI note type and brandnote from it,
instead provide it with a callback to do note-specific matching and
data fetching. Implement callback to match against ELF brand.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
23/11/2018
11:16 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/imgact_elf.c
Log:
Trivial reduction of the code duplication, reuse the return FALSE code.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
23/11/2018
11:10 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_event.c
Log:
Honour the waitok parameter in kevent_expand().

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18316
23/11/2018
11:07 pm
base/head
kib
in head/sys: kern sys
Modificado:
head/sys/kern/kern_exec.c
head/sys/kern/kern_thread.c
head/sys/sys/proc.h
Log:
Provide storage for the process feature control flags in struct proc.

The flags are cleared on exec, it is up to the image activator to set
them.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
23/11/2018
11:07 pm
base/head
markj
head/sys/fs/nandfs
Modificado:
head/sys/fs/nandfs/nandfs_vnops.c
Log:
Ensure the dirent remains initialized when dirent.d_fileno is unset.

Reported by: rmacklem
MFC with: r340856
Sponsored by: The FreeBSD Foundation
23/11/2018
10:37 pm
base/head
kib
head/libexec/rtld-elf
Modificado:
head/libexec/rtld-elf/rtld.c
head/libexec/rtld-elf/rtld.h
Log:
rtld: parse FreeBSD Feature Control note on the object load.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
23/11/2018
10:36 pm
base/head
sobomax
head/stand/common
Modificado:
head/stand/common/bcache.c
Log:
Nuke out buffer overflow safety marker code, it duplicates similar code in
the malloc()/free() as well as having potential of softening the handling
in case error is detected down to a mere warning as compared to hard panic
in free().

Submitted by: tsoome
Differential Revision: https://reviews.freebsd.org/D18299
23/11/2018
10:24 pm
base/head
markj
in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs
Modificado:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
head/sys/fs/autofs/autofs_vnops.c
head/sys/fs/cd9660/cd9660_vnops.c
head/sys/fs/devfs/devfs_devs.c
head/sys/fs/ext2fs/ext2_lookup.c
head/sys/fs/fdescfs/fdesc_vnops.c
head/sys/fs/fuse/fuse_internal.c
head/sys/fs/msdosfs/msdosfs_vnops.c
head/sys/fs/nandfs/nandfs_vnops.c
head/sys/fs/pseudofs/pseudofs_vnops.c
head/sys/fs/smbfs/smbfs_io.c
head/sys/fs/tmpfs/tmpfs_subr.c
head/sys/fs/tmpfs/tmpfs_vfsops.c
head/sys/fs/tmpfs/tmpfs_vnops.c
head/sys/fs/udf/udf_vnops.c
head/sys/kern/uipc_mqueue.c
head/sys/kern/vfs_export.c
head/sys/sys/dirent.h
head/sys/ufs/ufs/ufs_vnops.c
Log:
Ensure that directory entry padding bytes are zeroed.

Directory entries must be padded to maintain alignment; in many
filesystems the padding was not initialized, resulting in stack
memory being copied out to userspace. With the ino64 work there
are also some explicit pad fields in struct dirent. Add a subroutine
to clear these bytes and use it in the in-tree filesystems. The
NFS client is omitted for now as it was fixed separately in r340787.

Reported by: Thomas Barabosch, Fraunhofer FKIE
Reviewed by: kib
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
23/11/2018
7:45 pm
base/head
manu
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/axp81x.c
Log:
axp8xx: Rework the enable part and add the GPIOXLDO regulators

MFC after: 1 month
23/11/2018
7:44 pm
base/head
manu
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/aw_usbphy.c
Log:
aw_usbphy: Convert to usbphy subclass

Instead of routing the phy when enabling it, do the configuration
and routing in the phynode_usb_set_mode function.
While here, if we don't have a vbus detection method, enable the phy
if requested.

MFC after: 1 month
23/11/2018
7:45 pm
base/head
manu
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/a10_ehci.c
Log:
a10_ehci: Always set the phy to host mode

MFC after: 1 month
23/11/2018
7:43 pm
base/head
manu
in head/sys: conf dev/extres/phy
Adicional:
head/sys/dev/extres/phy/phy_internal.h (contents, props changed)
head/sys/dev/extres/phy/phy_usb.c (contents, props changed)
head/sys/dev/extres/phy/phy_usb.h (contents, props changed)
head/sys/dev/extres/phy/phynode_usb_if.m (contents, props changed)
Modificado:
head/sys/conf/files
head/sys/dev/extres/phy/phy.c
Log:
Derive PHY class to new one specialized for USB PHY functions.

Submitted by: mmel
23/11/2018
6:27 pm
base/head
cem
head/libexec/rtld-elf
Modificado:
head/libexec/rtld-elf/Makefile
Log:
Revert r340843 - addressed independently in r340842!
23/11/2018
6:23 pm
base/head
cem
head/libexec/rtld-elf
Modificado:
head/libexec/rtld-elf/Makefile
Log:
rtld: Silence a false positive GCC 6.4.0 warning

The function reloc_non_plt has complicated variable lifetimes that GCC 6.4.0
(the version currently used by amd64-xtoolchain-gcc) misunderstands and
produces an erroneous warning about. Silence it to allow the -Werror build
to proceed.

Reviewed by: emaste
23/11/2018
6:15 pm
base/head
kib
head/libexec/rtld-elf/amd64
Modificado:
head/libexec/rtld-elf/amd64/reloc.c
Log:
Silence gcc warnings.

Reported by: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
23/11/2018
4:45 pm
base/head
andrew
in head: . share/mk sys/sys
Modificado:
head/UPDATING
head/share/mk/src.opts.mk
head/sys/sys/param.h
Log:
Enable the BSD crtbegin/crtend by default.

It has passed an exp run on amd64 and i386, and has testing on arm64. On
other architectures it is expected to run, however it can be disabled by
building world with -DWITHOUT_BSD_CRTBEGIN.

Sponsored by: DARPA, AFRL
23/11/2018
4:33 pm
base/head
andrew
head/lib/csu/mips
Modificado:
head/lib/csu/mips/crt.h
Log:
Mark the function called by the MIPS .init/.fini sequence with .local.

As with r328939 we need to mark local symbols as such. Without this the
assembly parser treats the symbols as global and created relocations
against these private symbols.

MFC with: r339738
Sponsored by: DARPA, AFRL
23/11/2018
4:18 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
Log:
sfxge(4): request info about outer frame in Rx events

For encapsulated packets, the firmware gives info about the inner frame
fields by default. When not using encapsulation offload, ask for info
about the outer frame instead.

On SFN8xxx with firmware version before v6.4.2.1007 driver reload is
needed after switching from full-feature to low-latency firmware
variant since the driver still thinks that firmware supports
encapsulation, but firmware does not tolerate request to provide info
about outer frame in Rx events.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18105
23/11/2018
3:59 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): ignore error in completion event on MCDIv2 HW

With MCDIv2, the reponse length can be to big to fit into the
CMDDONE_DATALEN field in the MCDI completion event. But rather that
the length being truncated, it can overflow into the CMDDONE_ERRNO
field (this is a longstanding firmware bug). Hence the CMDDONE_ERRNO
field may not be valid.

It isn't necessary to use the value in the CMDDONE_ERRNO field though,
so it can be ignored. The actual error code is already read from the
response header on MCDIv2 capable hardware and stored in emr_rc, so
that can be used instead.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18104
23/11/2018
3:59 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_mcdi.c
Log:
sfxge(4): use MCDIv2 for requests with too long response

Use MCDIv2 for requests with a response size too long for MCDIv1.

Required for MC_CMD_MAC_STATS to reports the stats without using DMA.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18103
23/11/2018
3:49 pm
base/head
yuripv
in head/lib/libc: regex tests/regex
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11D67114A26D;
Fri, 23 Nov 2018 15:49:20 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id AC90F8F5DD;
Fri, 23 Nov 2018 15:49:19 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 899C220A19;
Fri, 23 Nov 2018 15:49:19 +0000 (UTC)
(envelope-from yuripv@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wANFnJ8p004742;
Fri, 23 Nov 2018 15:49:19 GMT (envelope-from yuripv@FreeBSD.org)
Received: (from yuripv@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wANFnJ0n004739;
Fri, 23 Nov 2018 15:49:19 GMT (envelope-from yuripv@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: yuripv set sender to
yuripv@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
23/11/2018
1:50 pm
base/head
emaste
head/stand/i386
Modificado:
head/stand/i386/Makefile.inc
Log:
Disable build-id in i386 binary boot components

A user may enable build-id for all builds by adding
LDFLAGS=-Wl,--build-id=sha1 to /etc/make.conf. In this case the build-id
note ends added up to mbr and pmbr's .text, which makes it too large (it
ends up being 532 bytes). To avoid this explicitly turn off build-id for
these components.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D15470
23/11/2018
1:12 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_tx.c
Log:
sfxge(4): support inner checksum offload on transmit

Inner checksum offloads may be used only if firmware supports
these tunnels.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18102
23/11/2018
12:03 pm
base/head
thj
head/sys/dev/acpica
Modificado:
head/sys/dev/acpica/acpi_battery.c
Log:
Add support for none ACPI battery method batteries

Remove the requirement that a device be a ACPI method battery to be supported
as a battery.

Require now that the device be in the battery devclass and implement the
get_status and get_info functions. This allows batteries which are not ACPI
method batteries to be supported.

Reviewed by: jtl
Approved by: jtl (mentor)
MFC after: 1 Month
Differential Revision: https://reviews.freebsd.org/D17434
23/11/2018
11:39 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_mac.c
Log:
sfxge(4): make MAC naming consistent with other modules

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18101
23/11/2018
11:39 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): enforce packed stream fake buffer size

In the case of packed stream real size of the buffer does not fit in
Rx descriptor byte count. Real size is specified on Rx queue setup.
Non-zero fake should be used to bypass hardware checks.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18100
23/11/2018
11:39 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx_impl.h
Log:
sfxge(4): provide simple access to RxQ state in EvQ

Packed stream Rx datapath requires access to packed stream state
stored in event queue. Number of credits is upstead in event handler
on a new buffer, packets parsing on 64k boundary crossing and
Rx doorbell push to give credits back.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18099
23/11/2018
11:38 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
Log:
sfxge(4): improve RxQ label init prototype

RxQ type provides more information which may be useful to
setup event queue appropriately.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18098
23/11/2018
11:31 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): support MUM/SUC firmware partitions

Submitted by: Andrew Lee
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18097
23/11/2018
11:31 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_phy.c
Log:
sfxge(4): fix ignoring function return value

fix PreFAST issue, add missing annotation that function return value
should not be ignored. Fix alignment.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18096
23/11/2018
10:21 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx_nvram.c
head/sys/dev/sfxge/common/siena_nvram.c
Log:
sfxge(4): remove duplicate NVRAM asserts

The checking performed in the ->envo_type_to_partn
internal method make these assertions unnecessary.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18094
23/11/2018
10:22 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): quieten get version methods

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18095
23/11/2018
10:21 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): precheck and verify flash writes

Read existing flash content before writing, so the flash write can be
avoided if the existing partition content matches the new image. This
avoids unnecessary write cycles for the flash device, and may also be
faster. If the flash does need to be updated, verify the content after
writing.

Note that reading the flash content after writing but before calling
efx_nvram-rw_finish() avoids firmware bug68170, which can lead to
signed image updates failing on Medford.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18093
23/11/2018
10:21 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): fix check in NVRAM validate

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18092
23/11/2018
10:21 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): check NVRAM locking by partition ID

Tracking which partition is locked avoids being overly conservative
when EFX_NVRAM_xxx maps to more than one partition (depnding on the
current port number).

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18090
23/11/2018
10:20 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nvram.c
Log:
sfxge(4): simplify NVRAM type to partition mappings

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18089
23/11/2018
10:21 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nvram.c
Log:
sfxge(4): report correct partition write chunk size

If the firmware reports a non-zero write chunk size then nvram writes
may fail if a different granularity is used (e.g. for MUM firmware on
Sorrento).

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18091
23/11/2018
10:20 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_mcdi.c
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_nvram.c
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): rename firmware update verify result cap field

The existing name confuses support for secure boot with
support for reporting a verify result after an NVRAM update.

As the capability only reports support for returning a verify
result, change the name to be less confusing.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18088
23/11/2018
10:20 am
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_bootcfg.c
head/sys/dev/sfxge/common/efx_nvram.c
head/sys/dev/sfxge/sfxge_nvram.c
Log:
sfxge(4): extend NVRAM RW finish to return verify result

Extend efx_nvram_rw_finish() to return firmware verify result code.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18087
23/11/2018
10:20 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nvram.c
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nvram.c
head/sys/dev/sfxge/common/siena_impl.h
head/sys/dev/sfxge/common/siena_nvram.c
head/sys/dev/sfxge/common/siena_vpd.c
Log:
sfxge(4): report verify result from RW finish callback

This makes the verify result visible to efx_nvram_rw_finish(), which
can be extended to report it in a later patch.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18086
23/11/2018
10:20 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): simplify verify result handling

Simplify verify result handling in NVRAM update finish

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18085
23/11/2018
10:19 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_nvram.c
Log:
sfxge(4): fix result code in MCDI NVRAM update finish

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18084
23/11/2018
10:19 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/siena_flash.h
Log:
sfxge(4): copy new header from firmware src

Submitted by: Andrew Jackson
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18083
23/11/2018
9:16 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): add RSS key size define

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18082
23/11/2018
9:15 am
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_rx.c
head/sys/dev/sfxge/sfxge_rx.c
Log:
sfxge(4): update RSS API to take RSS context parameter

Update efx_rx_scale_mode_set(), efx_rx_scale_key_set()
and efx_rx_scale_tbl_set().

Submitted by: Mark Spender
Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18080
23/11/2018
9:15 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford_nic.c
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): add the max number of RSS exclusive contexts

The patch adds enc_rx_scale_max_exclusive_contexts member
to nic_cfg_t structure and sets the corresponding values
for Siena, Huntington and Medford

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18077
23/11/2018
9:15 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): add API to allocate and free RSS contexts

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18079
23/11/2018
9:15 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): add API to set an RSS context for a filter

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18081
23/11/2018
9:15 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_rx.c
Log:
sfxge(4): rename API to check Rx scale and hash support

Rename efx_rx_scale_support_get() to efx_rx_scale_default_support_get(),
and efx_rx_hash_support_get() to efx_rx_hash_default_support_get().

All these really report is whether an exclusive RSS context was
successfully acquired at efx_rx_init().

efx_rx_scale_support_get() sounds like it reports whether the device
supports RSS, and whether exclusive or shared contexts are supported,
but it doesn't do that. Renaming it to
efx_rx_scale_default_support_get() helps to reflect that it reports
what RSS support the client gets without trying to allocate RSS
contexts itself.

Also rename efx_rx_scale_support_t to efx_rx_scale_context_type_t, to
make the enum more suitable for specifying the type of an RSS context
to be allocated.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18078
23/11/2018
9:14 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): fix default RSS context check on Siena

Default RSS context check is carried out during filter
insertion on Siena and it needs to be fixed

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18076
23/11/2018
9:14 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): define a handle to denote default RSS context

Make the existing filter-specific define more general.
This is the same as MC_CMD_RSS_CONTEXT_ALLOC_OUT_RSS_CONTEXT_ID_INVALID.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18075
23/11/2018
9:03 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/ef10_impl.h
Log:
sfxge(4): insert filters for encapsulated packets

On Medford, with full-featured firmware running, encapsulated
packets may not be delivered unless filters are inserted for
them, as ordinary filters are not applied to encapsulated
packets. So filters for encapsulated packets need to be
inserted for each class of encapsulated packet. For simplicity,
catch-all filters are always inserted. These may match more
packets than the OS has asked for, but trying to insert more
precise filters increases complexity for little gain.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18074
23/11/2018
9:03 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_filter.c
Log:
sfxge(4): support filters for encapsulated packets

This supports filters which match all unicast or multicast
inner frames in VXLAN, GENEVE, or NVGRE packets.
(Additional fields to match on can be added easily.)

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18073
23/11/2018
9:03 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_filter.c
Log:
sfxge(4): use proper MCDI command for encap filters

MC_CMD_FILTER_OP_IN_EXT is needed to set filters for encapsulated
packets.

Submitted by: Mark Spender
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18072
23/11/2018
9:02 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
Log:
sfxge(4): provide information about supported tunnels

VXLAN/NVGRE (and Geneve) support is available on SFN8xxx with
full-feature firmware variant running.

Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18071
23/11/2018
7:50 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/ef10_tx.c
Log:
sfxge(4): let caller know that queue is already flushed

Tx/Rx queue may be already flushed due to Tx/Rx error on the queue or
MC reboot. Caller needs to know that the queue is already flushed to
avoid waiting for flush done event.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18070
23/11/2018
7:50 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/ef10_tx.c
Log:
sfxge(4): fix error code usage

MCDI results returned in req.emr_rc have already been translated
from MC_CMD_ERR_* to errno names, so using an MC_CMD_ERR_* value
is incorrect.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18069
23/11/2018
7:50 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): fix out of bounds read in VIs allocation

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18068
23/11/2018
7:50 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tx.c
Log:
sfxge(4): fix potential buffer overflow in Tx queue init

Improve error checking to avoid a caller overflowing the MCDI
request buffer if the requested TXQ size was excessively large.

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18067
23/11/2018
7:43 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_tx.c
Log:
sfxge(4): fix failure path in EF10 Tx queue PIO enable

Submitted by: Andy Moreton
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18066
23/11/2018
7:38 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_mcdi.c
head/sys/dev/sfxge/common/efx_mcdi.h
head/sys/dev/sfxge/common/efx_nic.c
Log:
sfxge(4): add advanced function to extract FW version

Some libefx-based drivers might need this functionality to
indicate DPCPU FW IDs as part of FW version info to assist
experienced users.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18065
23/11/2018
7:26 am
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_mac.c
Log:
sfxge(4): add MCDI agnostic wrapper for MAC stats clear

If a libefx-based driver needs some way to clear port statistics,
then an MCDI agnostic method is required.

Submitted by: Ivan Malov
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18064
23/11/2018
4:38 am
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_exit.c
head/sys/kern/kern_fork.c
head/sys/kern/subr_syscall.c
Log:
Revert "fork: fix use-after-free with vfork"

This unreliably breaks libc handling of vfork where forking succeded,
but execve did not.

vfork code in libc performs waitpid with WNOHANG in case of failed exec.
With the fix exit codepath was waking up the parent before the child
fully transitioned to a zombie. Woken up parent would waitpid, which
could find a not-yet-zombie child and fail to reap it due to the WNOHANG
flag.

While removing the flag fixes the problem, it is not an option due to older
releases which would still suffer from the kernel change.

Revert the fix until a solution can be worked out.

Note that while use-after-free which gets back due to the revert is a real
bug, it's side-effects are limited due to the fact that struct proc memory
is never released by UMA.
23/11/2018
3:42 am
base/head
ygy
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw.8
Log:
Fix a minor typo in ipfw(8) manual page.

PR: 230747
Submitted by: f.toscan@hotmail.it
MFC after: 1 week
23/11/2018
12:17 am
base/head
rmacklem
head/sys/fs/nfsclient
Modificado:
head/sys/fs/nfsclient/nfs_clrpcops.c
Log:
Make sure the NFS readdir client fills in all "struct dirent" data.

The NFS client code (nfsrpc_readdir() and nfsrpc_readdirplus()) wasn't
filling in parts of the readdir reply, such as d_pad[01] and the bytes
at the end of d_name within d_reclen. As such, data left in a buffer cache
block could be leaked to userland in the readdir reply.
This patch makes sure all of the data is filled in.

Reported by: Thomas Barabosch, Fraunhofer FKIE
Reviewed by: kib, markj
MFC after: 2 weeks
22/11/2018
9:38 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/subr_syscall.c
Log:
Annotate TDP_RFPPWAIT as unlikely.

The flag is only set on vfork, but is tested for *all* syscalls.
On amd64 this shortens common-case (not vfork) code.
22/11/2018
9:29 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_fork.c
head/sys/kern/kern_racct.c
Log:
fork: remove avoidable proc lock/unlock pair

We don't have to access the process after making it runnable, so there
is no need to hold it either.

Sponsored by: The FreeBSD Foundation
22/11/2018
9:08 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_exit.c
head/sys/kern/kern_fork.c
head/sys/kern/subr_syscall.c
Log:
fork: fix use-after-free with vfork

The pointer to the child is stored without any reference held. Then it is
blindly used to wait until P_PPWAIT is cleared. However, if the child is
autoreaped it could have exited and get freed before the parent started
waiting.

Use the existing hold mechanism to mitigate the problem. Most common case
of doing exec remains unchanged. The corner case of doing exit performs
wake up before waiting for holds to clear.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18295
22/11/2018
8:49 pm
base/head
markj
in head/sys: kern netinet netinet6
Modificado:
head/sys/kern/uipc_socket.c
head/sys/kern/uipc_usrreq.c
head/sys/netinet/in_pcb.c
head/sys/netinet/ip_divert.c
head/sys/netinet/raw_ip.c
head/sys/netinet/sctp_sysctl.c
head/sys/netinet/tcp_subr.c
head/sys/netinet/udp_usrreq.c
head/sys/netinet6/ip6_mroute.c
head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
Log:
Plug some networking sysctl leaks.

Various network protocol sysctl handlers were not zero-filling their
output buffers and thus would export uninitialized stack memory to
userland. Fix a number of such handlers.

Reported by: Thomas Barabosch, Fraunhofer FKIE
Reviewed by: tuexen
MFC after: 3 days
Security: kernel memory disclosure
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18301
22/11/2018
8:05 pm
base/head
tuexen
head/sys/netinet/tcp_stacks
Modificado:
head/sys/netinet/tcp_stacks/rack.c
Log:
A TCP stack is required to check SEG.ACK first, when processing a
segment in the SYN-SENT state as stated in Section 3.9 of RFC 793,
page 66. Ensure this is also done by the TCP RACK stack.

Reviewed by: rrs@
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D18034
22/11/2018
8:02 pm
base/head
tuexen
head/sys/netinet/tcp_stacks
Modificado:
head/sys/netinet/tcp_stacks/rack.c
Log:
Ensure that the TCP RACK stack honours the setting of the
net.inet.tcp.drop_synfin sysctl-variable.

Reviewed by: rrs@
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D18033
22/11/2018
7:56 pm
base/head
tuexen
head/sys/netinet/tcp_stacks
Modificado:
head/sys/netinet/tcp_stacks/rack.c
Log:
Ensure that the default RTT stack can make an RTT measurement if
the TCP connection was initiated using the RACK stack, but the
peer does not support the TCP RACK extension.

This ensures that the TCP behaviour on the wire is the same if
the TCP connection is initated using the RACK stack or the default
stack.

Reviewed by: rrs@
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D18032
22/11/2018
7:49 pm
base/head
tuexen
in head/sys/netinet: . tcp_stacks
Modificado:
head/sys/netinet/tcp_output.c
head/sys/netinet/tcp_stacks/rack.c
Log:
Ensure that TCP RST-segments announce consistently a receiver window of
zero. This was already done when sending them via tcp_respond().

Reviewed by: rrs@
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D17949
22/11/2018
5:51 pm
base/head
markj
head/sys/amd64/ia32
Modificado:
head/sys/amd64/ia32/ia32_signal.c
Log:
Clear unused bytes in ia32_osendsig().

Mirror the fix for the native i386 implementation from r218327. This
code is compiled only when the non-default COMPAT_43 option is
configured.

Reported by: Ilja Van Sprundel
Reviewed by: kib
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18298
22/11/2018
4:55 pm
base/head
emaste
head/sys/dev/proto
Modificado:
head/sys/dev/proto/proto_core.c
Log:
proto: change device permissions to 0600

C Turt reports that the driver is not thread safe and may have
exploitable races.

Note that the proto device is intended for prototyping and development,
and is not for use on production systems. From the man page:

SECURITY CONSIDERATIONS
Because programs have direct access to the hardware, the proto
driver is inherently insecure. It is not advisable to use this
driver on a production machine.

The proto device is not included in any of FreeBSD's kernel config files
(although the module is built).

The issues in the proto device still need to be fixed, and the device is
inherently (and intentionally) insecure, but it might as well be limited
to root only.

admbugs: 782
Reported by: C Turt
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
22/11/2018
4:15 pm
base/head
arybchik
in head/sys/dev/sfxge: . common
Modificado:
head/sys/dev/sfxge/common/ef10_tx.c (contents, props changed)
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_tx.c
head/sys/dev/sfxge/common/hunt_nic.c
head/sys/dev/sfxge/common/medford_nic.c
head/sys/dev/sfxge/common/siena_nic.c
head/sys/dev/sfxge/sfxge.c
Log:
sfxge(4): limit max TXQ size on Medford to 2048

Queues with 4096 descriptors are not supported as the top bit is used for vfifo
stuffing.

Submitted by: Mark Spender
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days
Differential Revision: https://reviews.freebsd.org/D8948
22/11/2018
2:31 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_ev.c
head/sys/dev/sfxge/common/ef10_impl.h
head/sys/dev/sfxge/common/ef10_nic.c
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efsys.h
head/sys/dev/sfxge/common/efx.h
head/sys/dev/sfxge/common/efx_check.h
head/sys/dev/sfxge/common/efx_impl.h
head/sys/dev/sfxge/common/efx_nic.c
head/sys/dev/sfxge/common/efx_regs_ef10.h
head/sys/dev/sfxge/common/efx_rx.c
head/sys/dev/sfxge/common/siena_nic.c
Log:
sfxge(4): support packed stream Rx mode in libefx

Submitted by: Artem V. Andreev
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18022
22/11/2018
2:10 pm
base/head
arybchik
head/sys/dev/sfxge/common
Modificado:
head/sys/dev/sfxge/common/ef10_nic.c
Log:
sfxge(4): cleanup: move into right place

Due to incorrect merge the piece of code was put in incorrect
place and diverge from libefx in other locations.

Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18024
22/11/2018
4:48 am
base/head
cy
head/libexec/rc/rc.d
Modificado:
head/libexec/rc/rc.d/ipmon
Log:
Allow forced start of ipmon in special cases where testing is desired
(or other special cases) and when ipfilter is disabled in rc.conf but
started by other means.

MFC after: 1 week
21/11/2018
10:37 pm
base/head
mjg
head/contrib/elftoolchain/strings
Modificado:
head/contrib/elftoolchain/strings/strings.c
Log:
strings: unbreak the build after r340746

Discussed with: oshogbo
Sponsored by: The FreeBSD Foundation
21/11/2018
10:25 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/uipc_usrreq.c
Log:
uipc_usrreq: fix inode number assignment

The code was incrementing a global variable in an unsafe manner.
Two different threads stating two different sockets could have resulted
in the same inode numbers assigned to both.

Creation is protected with a global lock, move the assigment there.
Since inode numbers are 64-bit now drop the check for overflows.

Sponsored by: The FreeBSD Foundation
21/11/2018
10:16 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_exit.c
Log:
proc: update list manipulation comment on process exit

Processes stay in the hash until they get reaped.

This code does not unlink the child from the parent, so remove
the claim that it does.

Sponsored by: The FreeBSD Foundation
21/11/2018
10:01 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/uipc_shm.c
Log:
uipc_shm: use unr64 for inode numbers

Sponsored by: The FreeBSD Foundation
21/11/2018
9:48 pm
base/head
oshogbo
head/contrib/elftoolchain/strings
Modificado:
head/contrib/elftoolchain/strings/strings.c
Log:
strings: fix style nits

Reviewed by: cem, emaste, Joseph Koshy
Differential Revision: https://reviews.freebsd.org/D18036
21/11/2018
9:46 pm
base/head
sobomax
head/contrib/elftoolchain/readelf
Modificado:
head/contrib/elftoolchain/readelf/readelf.c
Log:
Fix CU: output of the --debug-dump=decodedline, the problem there
is that both file name and current directory is recorded, however
file name sometimes already contains absolute path. In which case
prefixing it with directory name results in an invalid pathname.

Only append directory name if the file name does not start with '/'.
This seems to DTRT.

Approved by: emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18290
21/11/2018
8:15 pm
base/head
mjg
in head/sys: fs/nfsclient fs/pseudofs kern sys
Modificado:
head/sys/fs/nfsclient/nfs_clport.c
head/sys/fs/pseudofs/pseudofs_vnops.c
head/sys/kern/kern_proc.c
head/sys/sys/proc.h
Log:
proc: convert pfind & friends to use pidhash locks and other cleanup

pfind_locked is retired as it relied on allproc which unnecessarily
restricts locking of the hash.

Sponsored by: The FreeBSD Foundation
21/11/2018
6:56 pm
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_exit.c
head/sys/kern/kern_fork.c
head/sys/kern/kern_proc.c
head/sys/sys/proc.h
Log:
proc: implement pid hash locks and an iterator

forks, exits and waits are frequently stalled during poudriere -j 128 runs
due to killpg and process list exports performed for each package.

Both uses take the allproc lock. The latter case can be modified to iterate
over the hash with finer grained locking instead.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17817
21/11/2018
6:19 pm
base/head
tuexen
head/sys/netinet/tcp_stacks
Modificado:
head/sys/netinet/tcp_stacks/rack.c
Log:
Improve two KASSERTs in the TCP RACK stack.

There are two locations where an always true comparison was made in
a KASSERT. Replace this by an appropriate check and use a consistent
panic message. Also use this code when checking a similar condition.

PR: 229664
Reviewed by: rrs@
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D18021
21/11/2018
6:18 pm
base/head
mav
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Modificado:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
Log:
Revert r340096: 9952 Block size change during zfs receive drops spill block

It was reported, and I easily reproduced it, that this change triggers panic
when receiving replication stream with enabled embedded blocks, when short
file compressing into one embedded block changes its block size. I am not
sure that the problem is in this particuler patch, not just triggered by it,
but since investigation and fix will take some time, I've decided to revert
this for now.

PR: 198457, 233277
21/11/2018
5:32 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_event.c
Log:
Avoid unsynchronized updates to kn_status.

kn_status is protected by the kqueue's lock, but we were updating it
without the kqueue lock held. For EVFILT_TIMER knotes, there is no
knlist lock, so the knote activation could occur during the kn_status
update and result in KN_QUEUED being lost, in which case we'd enqueue
an already-enqueued knote, corrupting the queue.

Fix the problem by setting or clearing KN_DISABLED before dropping the
kqueue lock to call into the filter. KN_DISABLED is used only by the
core kevent code, so there is no side effect from setting it earlier.

Reported and tested by: Sylvain GALLIANO
Reviewed by: kib
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18060
21/11/2018
5:28 pm
base/head
markj
in head/sys: kern sys
Modificado:
head/sys/kern/kern_event.c
head/sys/sys/event.h
Log:
Remove KN_HASKQLOCK.

It is a write-only flag whose last use was removed in r302235.

No functional change intended.

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18059
21/11/2018
5:19 pm
base/head
markj
head/sys/cddl/compat/opensolaris/kern
Modificado:
head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
Log:
Use taskqueue_quiesce(9) to implement taskq_wait().

PR: 227784
Reviewed by: cem
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17975
21/11/2018
5:18 pm
base/head
markj
in head: share/man/man9 sys/kern sys/sys
Modificado:
head/share/man/man9/Makefile
head/share/man/man9/taskqueue.9
head/sys/kern/subr_taskqueue.c
head/sys/sys/taskqueue.h
Log:
Add a taskqueue_quiesce(9) KPI.

This is similar to taskqueue_drain_all(9) but will wait for the queue
to become idle before returning instead of only waiting for
already-enqueued tasks to finish. This will be used in the opensolaris
compat layer.

PR: 227784
Reviewed by: cem
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17975
21/11/2018
4:47 pm
base/head
jhibbits
in head/sys/cddl: contrib/opensolaris/uts/common/sys
Modificado:
head/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
head/sys/cddl/dev/fbt/powerpc/fbt_isa.c
Log:
DTrace/powerpc: Fix FBT return probes

The FBT fuction boundary prober was setting one return probe marker value,
but the dtrace handler was expecting another. This causes a hang when
tracing return probes.
21/11/2018
2:50 pm
base/head
emaste
head/tools/build/options
Adicional:
head/tools/build/options/WITHOUT_BSD_GREP (contents, props changed)
head/tools/build/options/WITH_GCOV (contents, props changed)
head/tools/build/options/WITH_GNU_DIFF (contents, props changed)
head/tools/build/options/WITH_GNU_GREP (contents, props changed)
head/tools/build/options/WITH_SENDMAIL (contents, props changed)
head/tools/build/options/WITH_TCP_WRAPPERS (contents, props changed)
Log:
Add some non-default src.conf(5) knob descriptions

Some WITH_/WITHOUT_ defaults will likey change in the future (e.g. as we
migrate to copyfree base system components).

Add non-default descriptions for the benefit of WIP branches.
21/11/2018
1:34 pm
base/head
oleg
head/sys/net
Modificado:
head/sys/net/if_vlan.c
Log:
Unbreak kernel build with VLAN_ARRAY defined.

MFC after: 1 week
21/11/2018
12:46 pm
base/head
0mp
in head: lib/libbe sbin/bectl
Modificado:
head/lib/libbe/libbe.3
head/sbin/bectl/bectl.8
Log:
Cross-reference libbe(3) and bectl(8).

Those two manual pages are already referencing each other in the HISTORY
sections, which people might skip. Mention those manual pages explicitly in
the SEE ALSO sections. Also, remove a reference to be(1) from libbe(3).

Reviewed by: bcr
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18136
21/11/2018
11:22 am
base/head
0mp
head/lib/libbe
Modificado:
head/lib/libbe/libbe.3
Log:
libbe(3): Put each error value in separate line.

As requested by a TODO in the source code.

Reviewed by: bcr
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18063
21/11/2018
4:34 am
base/head
bwidawsk
in head/sys: compat/linuxkpi/common/include/linux vm
Modificado:
head/sys/compat/linuxkpi/common/include/linux/swap.h
head/sys/vm/vm_pageout.h
head/sys/vm/vm_swapout.c
Log:
linuxkpi: Use pageproc instead of vmproc

According to markj@:
pageproc contains the page daemon and laundry threads, which are
responsible for managing the LRU page queues and writing back dirty
pages. vmproc's main task is to swap out kernel stacks when the system
is under memory pressure, and swap them back in when necessary. It's a
somewhat legacy component of the system and isn't required. You can
build a kernel without it by specifying "options NO_SWAPPING" (which is
a somewhat misleading name), in which vm_swapout_dummy.c is compiled
instead of vm_swapout.c.

Based on this, we want pageproc to emulate kswapd, not vmproc.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D18061
21/11/2018
12:22 am
base/head
ygy
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw.8
Log:
Fix incorrect DSCP value range from 0..64 to 0..63.

PR: 232786
Submitted by: Sergey Akhmatov
Reviewed by: AllanJude
MFC after: 1 week
21/11/2018
12:21 am
base/head
bwidawsk
head/sys/x86/include
Modificado:
head/sys/x86/include/specialreg.h
Log:
Add definitions for Intel Speed Shift

These definitions will be used by a driver to implement Hardware
P-States (autonomous control of HWP, via Intel Speed Shift technology).

Reviewed by: kib
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D18050
21/11/2018
12:00 am
base/head
jkim
head
Modificado:
head/ObsoleteFiles.inc
Log:
Revert r340706. Some files became symlinks and vice versa.

Pointy hat to: jkim
20/11/2018
11:27 pm
base/head
bwidawsk
head/tools/tools/git
Modificado:
head/tools/tools/git/git-svn-init
Log:
git-svn-init: Add docs to the choice of repos
20/11/2018
11:05 pm
base/head
bwidawsk
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/swap.h
Log:
linuxkpi: Remove duplicated text

Somehow this got botched while moving from git -> svn
20/11/2018
10:49 pm
base/head
bwidawsk
in head/sys: compat/linuxkpi/common/include/linux vm
Adicional:
head/sys/compat/linuxkpi/common/include/linux/swap.h (contents, props changed)
Modificado:
head/sys/vm/vm_pageout.h
head/sys/vm/vm_swapout.c
Log:
linuxkpi: Add some basic swap functions

These are used by kms-drm to determine various heuristics relate
memory conditions.

The number of free swap pages is just a variable, and it can be
much cheaper by either adding a new getter, or simply extern'ing
swap_total. However, this patch opts to use the more expensive,
existing interface - since this isn't an operation in a high per
path.

This allows us to remove some more gpl linuxkpi and do the follo
kms-drm:
git rm linuxkpi/gplv2/include/linux/swap.h

Reviewed by: mmacy, Johannes Lundberg
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D18052
20/11/2018
10:21 pm
base/head
araujo
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/pci_ahci.c
head/usr.sbin/bhyve/pci_virtio_block.c
Log:
Define AHCI_PORT_IDENT and increase by 1 the VTBLK_BLK_ID_BYTES
to avoid buffer accessed out of bounds, also switch to snprintf(3).

PR: 200859
Submitted by: Caglar
Obtained from: https://github.com/mist64/xhyve/pull/24
MFC after: 4 weeks
Sponsored by: iXsystems Inc.
20/11/2018
10:12 pm
base/head
jkim
head
Modificado:
head/ObsoleteFiles.inc
Log:
Remove stale manual pages after OpenSSL 1.1.1a merge.
20/11/2018
9:10 pm
base/head
jkim
in head: crypto/openssl crypto/openssl/apps
Adicional:
head/crypto/openssl/crypto/getenv.c
- copied unchanged from r340690, vendor-crypto/openssl/dist/crypto/getenv.c
head/crypto/openssl/doc/man3/SSL_get_peer_tmp_key.pod
- copied unchanged from r340690, vendor-crypto/openssl/dist/doc/man3/SSL_get_peer_tmp_key.pod
head/secure/lib/libcrypto/man/SSL_get_peer_tmp_key.3 (contents, props changed)
Eliminado:
head/crypto/openssl/doc/man3/SSL_CTX_set_client_CA_list.pod
head/crypto/openssl/doc/man3/SSL_get_client_CA_list.pod
head/crypto/openssl/doc/man3/SSL_get_server_tmp_key.pod
head/secure/lib/libcrypto/man/SSL_CTX_set_client_CA_list.3
head/secure/lib/libcrypto/man/SSL_get_client_CA_list.3
head/secure/lib/libcrypto/man/SSL_get_server_tmp_key.3
Modificado:
head/crypto/openssl/CHANGES
head/crypto/openssl/Configure
head/crypto/openssl/INSTALL
head/crypto/openssl/NEWS
head/crypto/openssl/README
head/crypto/openssl/apps/app_rand.c
head/crypto/openssl/apps/apps.c
head/crypto/openssl/apps/apps.h
head/crypto/openssl/apps/ca.c
head/crypto/openssl/apps/ocsp.c
head/crypto/openssl/apps/openssl.cnf
head/crypto/openssl/apps/opt.c
head/crypto/openssl/apps/rehash.c
head/crypto/openssl/apps/rsa.c
head/crypto/openssl/apps/s_cb.c
head/crypto/openssl/apps/s_server.c
head/crypto/openssl/apps/speed.c
head/crypto/openssl/apps/x509.c
head/crypto/openssl/crypto/LPdir_unix.c
head/crypto/openssl/crypto/async/arch/async_posix.h
head/crypto/openssl/crypto/bio/b_sock2.c
head/crypto/openssl/crypto/bio/bio_lib.c
head/crypto/openssl/crypto/bio/bss_log.c
head/crypto/openssl/crypto/bn/asm/x86_64-gcc.c
head/crypto/openssl/crypto/bn/bn_exp.c
head/crypto/openssl/crypto/bn/bn_lib.c
head/crypto/openssl/crypto/build.info
head/crypto/openssl/crypto/conf/conf_api.c
head/crypto/openssl/crypto/conf/conf_mod.c
head/crypto/openssl/crypto/cryptlib.c
head/crypto/openssl/crypto/ct/ct_log.c
head/crypto/openssl/crypto/dsa/dsa_gen.c
head/crypto/openssl/crypto/dsa/dsa_ossl.c
head/crypto/openssl/crypto/ec/ec_ameth.c
head/crypto/openssl/crypto/ec/ec_mult.c
head/crypto/openssl/crypto/ec/ec_pmeth.c
head/crypto/openssl/crypto/ec/ecdh_kdf.c
head/crypto/openssl/crypto/engine/eng_devcrypto.c
head/crypto/openssl/crypto/engine/eng_list.c
head/crypto/openssl/crypto/err/openssl.txt
head/crypto/openssl/crypto/evp/e_aes.c
head/crypto/openssl/crypto/evp/e_rc2.c
head/crypto/openssl/crypto/evp/pmeth_lib.c
head/crypto/openssl/crypto/include/internal/ec_int.h
head/crypto/openssl/crypto/include/internal/rand_int.h
head/crypto/openssl/crypto/kdf/hkdf.c
head/crypto/openssl/crypto/mem_sec.c
head/crypto/openssl/crypto/o_fopen.c
head/crypto/openssl/crypto/pkcs12/p12_mutl.c
head/crypto/openssl/crypto/poly1305/poly1305_ieee754.c
head/crypto/openssl/crypto/rand/drbg_ctr.c
head/crypto/openssl/crypto/rand/drbg_lib.c
head/crypto/openssl/crypto/rand/rand_err.c
head/crypto/openssl/crypto/rand/rand_lcl.h
head/crypto/openssl/crypto/rand/rand_lib.c
head/crypto/openssl/crypto/rand/rand_unix.c
head/crypto/openssl/crypto/rand/randfile.c
head/crypto/openssl/crypto/rsa/rsa_lib.c
head/crypto/openssl/crypto/rsa/rsa_meth.c
head/crypto/openssl/crypto/rsa/rsa_ossl.c
head/crypto/openssl/crypto/sha/asm/keccak1600-s390x.pl
head/crypto/openssl/crypto/sha/asm/sha512p8-ppc.pl
head/crypto/openssl/crypto/siphash/siphash.c
head/crypto/openssl/crypto/sm2/sm2_crypt.c
head/crypto/openssl/crypto/sm2/sm2_sign.c
head/crypto/openssl/crypto/ui/ui_openssl.c
head/crypto/openssl/crypto/x509/by_dir.c
head/crypto/openssl/crypto/x509/by_file.c
head/crypto/openssl/crypto/x509/x509_vfy.c
head/crypto/openssl/doc/man1/ca.pod
head/crypto/openssl/doc/man1/enc.pod
head/crypto/openssl/doc/man1/openssl.pod
head/crypto/openssl/doc/man1/req.pod
head/crypto/openssl/doc/man1/rsa.pod
head/crypto/openssl/doc/man1/s_server.pod
head/crypto/openssl/doc/man1/storeutl.pod
head/crypto/openssl/doc/man1/x509.pod
head/crypto/openssl/doc/man3/DES_random_key.pod
head/crypto/openssl/doc/man3/EVP_DigestInit.pod
head/crypto/openssl/doc/man3/EVP_PKEY_CTX_ctrl.pod
head/crypto/openssl/doc/man3/EVP_PKEY_CTX_set_hkdf_md.pod
head/crypto/openssl/doc/man3/EVP_PKEY_CTX_set_rsa_pss_keygen_md.pod
head/crypto/openssl/doc/man3/EVP_PKEY_set1_RSA.pod
head/crypto/openssl/doc/man3/EVP_aes.pod
head/crypto/openssl/doc/man3/EVP_aria.pod
head/crypto/openssl/doc/man3/EVP_bf_cbc.pod
head/crypto/openssl/doc/man3/EVP_camellia.pod
head/crypto/openssl/doc/man3/EVP_cast5_cbc.pod
head/crypto/openssl/doc/man3/EVP_des.pod
head/crypto/openssl/doc/man3/EVP_idea_cbc.pod
head/crypto/openssl/doc/man3/EVP_md5.pod
head/crypto/openssl/doc/man3/EVP_rc2_cbc.pod
head/crypto/openssl/doc/man3/EVP_rc5_32_12_16_cbc.pod
head/crypto/openssl/doc/man3/EVP_seed_cbc.pod
head/crypto/openssl/doc/man3/EVP_sm4_cbc.pod
head/crypto/openssl/doc/man3/OPENSSL_VERSION_NUMBER.pod
head/crypto/openssl/doc/man3/RSA_meth_new.pod
head/crypto/openssl/doc/man3/SSL_CTX_set0_CA_list.pod
head/crypto/openssl/doc/man3/SSL_CTX_set1_curves.pod
head/crypto/openssl/doc/man3/SSL_CTX_set_quiet_shutdown.pod
head/crypto/openssl/doc/man3/SSL_get_error.pod
head/crypto/openssl/doc/man3/SSL_get_peer_signature_nid.pod
head/crypto/openssl/doc/man3/SSL_set_bio.pod
head/crypto/openssl/doc/man3/SSL_set_shutdown.pod
head/crypto/openssl/doc/man3/SSL_shutdown.pod
head/crypto/openssl/doc/man7/RAND_DRBG.pod
head/crypto/openssl/e_os.h
head/crypto/openssl/include/internal/cryptlib.h
head/crypto/openssl/include/internal/tsan_assist.h
head/crypto/openssl/include/openssl/cryptoerr.h
head/crypto/openssl/include/openssl/ec.h
head/crypto/openssl/include/openssl/ocsp.h
head/crypto/openssl/include/openssl/opensslv.h
head/crypto/openssl/include/openssl/rand_drbg.h
head/crypto/openssl/include/openssl/randerr.h
head/crypto/openssl/include/openssl/rsa.h
head/crypto/openssl/include/openssl/ssl.h
head/crypto/openssl/include/openssl/symhacks.h
head/crypto/openssl/include/openssl/tls1.h
head/crypto/openssl/ssl/d1_lib.c
head/crypto/openssl/ssl/record/rec_layer_d1.c
head/crypto/openssl/ssl/record/record.h
head/crypto/openssl/ssl/record/record_locl.h
head/crypto/openssl/ssl/record/ssl3_record.c
head/crypto/openssl/ssl/s3_cbc.c
head/crypto/openssl/ssl/s3_enc.c
head/crypto/openssl/ssl/s3_lib.c
head/crypto/openssl/ssl/ssl_cert.c
head/crypto/openssl/ssl/ssl_ciph.c
head/crypto/openssl/ssl/ssl_lib.c
head/crypto/openssl/ssl/ssl_locl.h
head/crypto/openssl/ssl/statem/extensions.c
head/crypto/openssl/ssl/statem/extensions_clnt.c
head/crypto/openssl/ssl/statem/statem.c
head/crypto/openssl/ssl/statem/statem_clnt.c
head/crypto/openssl/ssl/statem/statem_lib.c
head/crypto/openssl/ssl/statem/statem_locl.h
head/crypto/openssl/ssl/statem/statem_srvr.c
head/crypto/openssl/ssl/t1_lib.c
head/crypto/openssl/ssl/tls13_enc.c
head/secure/lib/libcrypto/Makefile
head/secure/lib/libcrypto/Makefile.inc
head/secure/lib/libcrypto/Makefile.man
head/secure/lib/libcrypto/man/ADMISSIONS.3
head/secure/lib/libcrypto/man/ASN1_INTEGER_get_int64.3
head/secure/lib/libcrypto/man/ASN1_ITEM_lookup.3
head/secure/lib/libcrypto/man/ASN1_OBJECT_new.3
head/secure/lib/libcrypto/man/ASN1_STRING_TABLE_add.3
head/secure/lib/libcrypto/man/ASN1_STRING_length.3
head/secure/lib/libcrypto/man/ASN1_STRING_new.3
head/secure/lib/libcrypto/man/ASN1_STRING_print_ex.3
head/secure/lib/libcrypto/man/ASN1_TIME_set.3
head/secure/lib/libcrypto/man/ASN1_TYPE_get.3
head/secure/lib/libcrypto/man/ASN1_generate_nconf.3
head/secure/lib/libcrypto/man/ASYNC_WAIT_CTX_new.3
head/secure/lib/libcrypto/man/ASYNC_start_job.3
head/secure/lib/libcrypto/man/BF_encrypt.3
head/secure/lib/libcrypto/man/BIO_ADDR.3
head/secure/lib/libcrypto/man/BIO_ADDRINFO.3
head/secure/lib/libcrypto/man/BIO_connect.3
head/secure/lib/libcrypto/man/BIO_ctrl.3
head/secure/lib/libcrypto/man/BIO_f_base64.3
head/secure/lib/libcrypto/man/BIO_f_buffer.3
head/secure/lib/libcrypto/man/BIO_f_cipher.3
head/secure/lib/libcrypto/man/BIO_f_md.3
head/secure/lib/libcrypto/man/BIO_f_null.3
head/secure/lib/libcrypto/man/BIO_f_ssl.3
head/secure/lib/libcrypto/man/BIO_find_type.3
head/secure/lib/libcrypto/man/BIO_get_data.3
head/secure/lib/libcrypto/man/BIO_get_ex_new_index.3
head/secure/lib/libcrypto/man/BIO_meth_new.3
head/secure/lib/libcrypto/man/BIO_new.3
head/secure/lib/libcrypto/man/BIO_new_CMS.3
head/secure/lib/libcrypto/man/BIO_parse_hostserv.3
head/secure/lib/libcrypto/man/BIO_printf.3
head/secure/lib/libcrypto/man/BIO_push.3
head/secure/lib/libcrypto/man/BIO_read.3
head/secure/lib/libcrypto/man/BIO_s_accept.3
head/secure/lib/libcrypto/man/BIO_s_bio.3
head/secure/lib/libcrypto/man/BIO_s_connect.3
head/secure/lib/libcrypto/man/BIO_s_fd.3
head/secure/lib/libcrypto/man/BIO_s_file.3
head/secure/lib/libcrypto/man/BIO_s_mem.3
head/secure/lib/libcrypto/man/BIO_s_null.3
head/secure/lib/libcrypto/man/BIO_s_socket.3
head/secure/lib/libcrypto/man/BIO_set_callback.3
head/secure/lib/libcrypto/man/BIO_should_retry.3
head/secure/lib/libcrypto/man/BN_BLINDING_new.3
head/secure/lib/libcrypto/man/BN_CTX_new.3
head/secure/lib/libcrypto/man/BN_CTX_start.3
head/secure/lib/libcrypto/man/BN_add.3
head/secure/lib/libcrypto/man/BN_add_word.3
head/secure/lib/libcrypto/man/BN_bn2bin.3
head/secure/lib/libcrypto/man/BN_cmp.3
head/secure/lib/libcrypto/man/BN_copy.3
head/secure/lib/libcrypto/man/BN_generate_prime.3
head/secure/lib/libcrypto/man/BN_mod_inverse.3
head/secure/lib/libcrypto/man/BN_mod_mul_montgomery.3
head/secure/lib/libcrypto/man/BN_mod_mul_reciprocal.3
head/secure/lib/libcrypto/man/BN_new.3
head/secure/lib/libcrypto/man/BN_num_bytes.3
head/secure/lib/libcrypto/man/BN_rand.3
head/secure/lib/libcrypto/man/BN_security_bits.3
head/secure/lib/libcrypto/man/BN_set_bit.3
head/secure/lib/libcrypto/man/BN_swap.3
head/secure/lib/libcrypto/man/BN_zero.3
head/secure/lib/libcrypto/man/BUF_MEM_new.3
head/secure/lib/libcrypto/man/CMS_add0_cert.3
head/secure/lib/libcrypto/man/CMS_add1_recipient_cert.3
head/secure/lib/libcrypto/man/CMS_add1_signer.3
head/secure/lib/libcrypto/man/CMS_compress.3
head/secure/lib/libcrypto/man/CMS_decrypt.3
head/secure/lib/libcrypto/man/CMS_encrypt.3
head/secure/lib/libcrypto/man/CMS_final.3
head/secure/lib/libcrypto/man/CMS_get0_RecipientInfos.3
head/secure/lib/libcrypto/man/CMS_get0_SignerInfos.3
head/secure/lib/libcrypto/man/CMS_get0_type.3
head/secure/lib/libcrypto/man/CMS_get1_ReceiptRequest.3
head/secure/lib/libcrypto/man/CMS_sign.3
head/secure/lib/libcrypto/man/CMS_sign_receipt.3
head/secure/lib/libcrypto/man/CMS_uncompress.3
head/secure/lib/libcrypto/man/CMS_verify.3
head/secure/lib/libcrypto/man/CMS_verify_receipt.3
head/secure/lib/libcrypto/man/CONF_modules_free.3
head/secure/lib/libcrypto/man/CONF_modules_load_file.3
head/secure/lib/libcrypto/man/CRYPTO_THREAD_run_once.3
head/secure/lib/libcrypto/man/CRYPTO_get_ex_new_index.3
head/secure/lib/libcrypto/man/CTLOG_STORE_get0_log_by_id.3
head/secure/lib/libcrypto/man/CTLOG_STORE_new.3
head/secure/lib/libcrypto/man/CTLOG_new.3
head/secure/lib/libcrypto/man/CT_POLICY_EVAL_CTX_new.3
head/secure/lib/libcrypto/man/DEFINE_STACK_OF.3
head/secure/lib/libcrypto/man/DES_random_key.3
head/secure/lib/libcrypto/man/DH_generate_key.3
head/secure/lib/libcrypto/man/DH_generate_parameters.3
head/secure/lib/libcrypto/man/DH_get0_pqg.3
head/secure/lib/libcrypto/man/DH_get_1024_160.3
head/secure/lib/libcrypto/man/DH_meth_new.3
head/secure/lib/libcrypto/man/DH_new.3
head/secure/lib/libcrypto/man/DH_new_by_nid.3
head/secure/lib/libcrypto/man/DH_set_method.3
head/secure/lib/libcrypto/man/DH_size.3
head/secure/lib/libcrypto/man/DSA_SIG_new.3
head/secure/lib/libcrypto/man/DSA_do_sign.3
head/secure/lib/libcrypto/man/DSA_dup_DH.3
head/secure/lib/libcrypto/man/DSA_generate_key.3
head/secure/lib/libcrypto/man/DSA_generate_parameters.3
head/secure/lib/libcrypto/man/DSA_get0_pqg.3
head/secure/lib/libcrypto/man/DSA_meth_new.3
head/secure/lib/libcrypto/man/DSA_new.3
head/secure/lib/libcrypto/man/DSA_set_method.3
head/secure/lib/libcrypto/man/DSA_sign.3
head/secure/lib/libcrypto/man/DSA_size.3
head/secure/lib/libcrypto/man/DTLS_get_data_mtu.3
head/secure/lib/libcrypto/man/DTLS_set_timer_cb.3
head/secure/lib/libcrypto/man/DTLSv1_listen.3
head/secure/lib/libcrypto/man/ECDSA_SIG_new.3
head/secure/lib/libcrypto/man/ECPKParameters_print.3
head/secure/lib/libcrypto/man/EC_GFp_simple_method.3
head/secure/lib/libcrypto/man/EC_GROUP_copy.3
head/secure/lib/libcrypto/man/EC_GROUP_new.3
head/secure/lib/libcrypto/man/EC_KEY_get_enc_flags.3
head/secure/lib/libcrypto/man/EC_KEY_new.3
head/secure/lib/libcrypto/man/EC_POINT_add.3
head/secure/lib/libcrypto/man/EC_POINT_new.3
head/secure/lib/libcrypto/man/ENGINE_add.3
head/secure/lib/libcrypto/man/ERR_GET_LIB.3
head/secure/lib/libcrypto/man/ERR_clear_error.3
head/secure/lib/libcrypto/man/ERR_error_string.3
head/secure/lib/libcrypto/man/ERR_get_error.3
head/secure/lib/libcrypto/man/ERR_load_crypto_strings.3
head/secure/lib/libcrypto/man/ERR_load_strings.3
head/secure/lib/libcrypto/man/ERR_print_errors.3
head/secure/lib/libcrypto/man/ERR_put_error.3
head/secure/lib/libcrypto/man/ERR_remove_state.3
head/secure/lib/libcrypto/man/ERR_set_mark.3
head/secure/lib/libcrypto/man/EVP_BytesToKey.3
head/secure/lib/libcrypto/man/EVP_CIPHER_CTX_get_cipher_data.3
head/secure/lib/libcrypto/man/EVP_CIPHER_meth_new.3
head/secure/lib/libcrypto/man/EVP_DigestInit.3
head/secure/lib/libcrypto/man/EVP_DigestSignInit.3
head/secure/lib/libcrypto/man/EVP_DigestVerifyInit.3
head/secure/lib/libcrypto/man/EVP_EncodeInit.3
head/secure/lib/libcrypto/man/EVP_EncryptInit.3
head/secure/lib/libcrypto/man/EVP_MD_meth_new.3
head/secure/lib/libcrypto/man/EVP_OpenInit.3
head/secure/lib/libcrypto/man/EVP_PKEY_ASN1_METHOD.3
head/secure/lib/libcrypto/man/EVP_PKEY_CTX_ctrl.3
head/secure/lib/libcrypto/man/EVP_PKEY_CTX_new.3
head/secure/lib/libcrypto/man/EVP_PKEY_CTX_set1_pbe_pass.3
head/secure/lib/libcrypto/man/EVP_PKEY_CTX_set_hkdf_md.3
head/secure/lib/libcrypto/man/EVP_PKEY_CTX_set_rsa_pss_keygen_md.3
head/secure/lib/libcrypto/man/EVP_PKEY_CTX_set_scrypt_N.3
head/secure/lib/libcrypto/man/EVP_PKEY_CTX_set_tls1_prf_md.3
head/secure/lib/libcrypto/man/EVP_PKEY_asn1_get_count.3
head/secure/lib/libcrypto/man/EVP_PKEY_cmp.3
head/secure/lib/libcrypto/man/EVP_PKEY_decrypt.3
head/secure/lib/libcrypto/man/EVP_PKEY_derive.3
head/secure/lib/libcrypto/man/EVP_PKEY_encrypt.3
head/secure/lib/libcrypto/man/EVP_PKEY_get_default_digest_nid.3
head/secure/lib/libcrypto/man/EVP_PKEY_keygen.3
head/secure/lib/libcrypto/man/EVP_PKEY_meth_get_count.3
head/secure/lib/libcrypto/man/EVP_PKEY_meth_new.3
head/secure/lib/libcrypto/man/EVP_PKEY_new.3
head/secure/lib/libcrypto/man/EVP_PKEY_print_private.3
head/secure/lib/libcrypto/man/EVP_PKEY_set1_RSA.3
head/secure/lib/libcrypto/man/EVP_PKEY_sign.3
head/secure/lib/libcrypto/man/EVP_PKEY_verify.3
head/secure/lib/libcrypto/man/EVP_PKEY_verify_recover.3
head/secure/lib/libcrypto/man/EVP_SealInit.3
head/secure/lib/libcrypto/man/EVP_SignInit.3
head/secure/lib/libcrypto/man/EVP_VerifyInit.3
head/secure/lib/libcrypto/man/EVP_aes.3
head/secure/lib/libcrypto/man/EVP_aria.3
head/secure/lib/libcrypto/man/EVP_bf_cbc.3
head/secure/lib/libcrypto/man/EVP_blake2b512.3
head/secure/lib/libcrypto/man/EVP_camellia.3
head/secure/lib/libcrypto/man/EVP_cast5_cbc.3
head/secure/lib/libcrypto/man/EVP_chacha20.3
head/secure/lib/libcrypto/man/EVP_des.3
head/secure/lib/libcrypto/man/EVP_desx_cbc.3
head/secure/lib/libcrypto/man/EVP_idea_cbc.3
head/secure/lib/libcrypto/man/EVP_md2.3
head/secure/lib/libcrypto/man/EVP_md4.3
head/secure/lib/libcrypto/man/EVP_md5.3
head/secure/lib/libcrypto/man/EVP_mdc2.3
head/secure/lib/libcrypto/man/EVP_rc2_cbc.3
head/secure/lib/libcrypto/man/EVP_rc4.3
head/secure/lib/libcrypto/man/EVP_rc5_32_12_16_cbc.3
head/secure/lib/libcrypto/man/EVP_ripemd160.3
head/secure/lib/libcrypto/man/EVP_seed_cbc.3
head/secure/lib/libcrypto/man/EVP_sha1.3
head/secure/lib/libcrypto/man/EVP_sha224.3
head/secure/lib/libcrypto/man/EVP_sha3_224.3
head/secure/lib/libcrypto/man/EVP_sm3.3
head/secure/lib/libcrypto/man/EVP_sm4_cbc.3
head/secure/lib/libcrypto/man/EVP_whirlpool.3
head/secure/lib/libcrypto/man/HMAC.3
head/secure/lib/libcrypto/man/MD5.3
head/secure/lib/libcrypto/man/MDC2_Init.3
head/secure/lib/libcrypto/man/OBJ_nid2obj.3
head/secure/lib/libcrypto/man/OCSP_REQUEST_new.3
head/secure/lib/libcrypto/man/OCSP_cert_to_id.3
head/secure/lib/libcrypto/man/OCSP_request_add1_nonce.3
head/secure/lib/libcrypto/man/OCSP_resp_find_status.3
head/secure/lib/libcrypto/man/OCSP_response_status.3
head/secure/lib/libcrypto/man/OCSP_sendreq_new.3
head/secure/lib/libcrypto/man/OPENSSL_Applink.3
head/secure/lib/libcrypto/man/OPENSSL_LH_COMPFUNC.3
head/secure/lib/libcrypto/man/OPENSSL_LH_stats.3
head/secure/lib/libcrypto/man/OPENSSL_VERSION_NUMBER.3
head/secure/lib/libcrypto/man/OPENSSL_config.3
head/secure/lib/libcrypto/man/OPENSSL_fork_prepare.3
head/secure/lib/libcrypto/man/OPENSSL_ia32cap.3
head/secure/lib/libcrypto/man/OPENSSL_init_crypto.3
head/secure/lib/libcrypto/man/OPENSSL_init_ssl.3
head/secure/lib/libcrypto/man/OPENSSL_instrument_bus.3
head/secure/lib/libcrypto/man/OPENSSL_load_builtin_modules.3
head/secure/lib/libcrypto/man/OPENSSL_malloc.3
head/secure/lib/libcrypto/man/OPENSSL_secure_malloc.3
head/secure/lib/libcrypto/man/OSSL_STORE_INFO.3
head/secure/lib/libcrypto/man/OSSL_STORE_LOADER.3
head/secure/lib/libcrypto/man/OSSL_STORE_SEARCH.3
head/secure/lib/libcrypto/man/OSSL_STORE_expect.3
head/secure/lib/libcrypto/man/OSSL_STORE_open.3
head/secure/lib/libcrypto/man/OpenSSL_add_all_algorithms.3
head/secure/lib/libcrypto/man/PEM_bytes_read_bio.3
head/secure/lib/libcrypto/man/PEM_read.3
head/secure/lib/libcrypto/man/PEM_read_CMS.3
head/secure/lib/libcrypto/man/PEM_read_bio_PrivateKey.3
head/secure/lib/libcrypto/man/PEM_read_bio_ex.3
head/secure/lib/libcrypto/man/PEM_write_bio_CMS_stream.3
head/secure/lib/libcrypto/man/PEM_write_bio_PKCS7_stream.3
head/secure/lib/libcrypto/man/PKCS12_create.3
head/secure/lib/libcrypto/man/PKCS12_newpass.3
head/secure/lib/libcrypto/man/PKCS12_parse.3
head/secure/lib/libcrypto/man/PKCS5_PBKDF2_HMAC.3
head/secure/lib/libcrypto/man/PKCS7_decrypt.3
head/secure/lib/libcrypto/man/PKCS7_encrypt.3
head/secure/lib/libcrypto/man/PKCS7_sign.3
head/secure/lib/libcrypto/man/PKCS7_sign_add_signer.3
head/secure/lib/libcrypto/man/PKCS7_verify.3
head/secure/lib/libcrypto/man/RAND_DRBG_generate.3
head/secure/lib/libcrypto/man/RAND_DRBG_get0_master.3
head/secure/lib/libcrypto/man/RAND_DRBG_new.3
head/secure/lib/libcrypto/man/RAND_DRBG_reseed.3
head/secure/lib/libcrypto/man/RAND_DRBG_set_callbacks.3
head/secure/lib/libcrypto/man/RAND_DRBG_set_ex_data.3
head/secure/lib/libcrypto/man/RAND_add.3
head/secure/lib/libcrypto/man/RAND_bytes.3
head/secure/lib/libcrypto/man/RAND_cleanup.3
head/secure/lib/libcrypto/man/RAND_egd.3
head/secure/lib/libcrypto/man/RAND_load_file.3
head/secure/lib/libcrypto/man/RAND_set_rand_method.3
head/secure/lib/libcrypto/man/RC4_set_key.3
head/secure/lib/libcrypto/man/RIPEMD160_Init.3
head/secure/lib/libcrypto/man/RSA_blinding_on.3
head/secure/lib/libcrypto/man/RSA_check_key.3
head/secure/lib/libcrypto/man/RSA_generate_key.3
head/secure/lib/libcrypto/man/RSA_get0_key.3
head/secure/lib/libcrypto/man/RSA_meth_new.3
head/secure/lib/libcrypto/man/RSA_new.3
head/secure/lib/libcrypto/man/RSA_padding_add_PKCS1_type_1.3
head/secure/lib/libcrypto/man/RSA_print.3
head/secure/lib/libcrypto/man/RSA_private_encrypt.3
head/secure/lib/libcrypto/man/RSA_public_encrypt.3
head/secure/lib/libcrypto/man/RSA_set_method.3
head/secure/lib/libcrypto/man/RSA_sign.3
head/secure/lib/libcrypto/man/RSA_sign_ASN1_OCTET_STRING.3
head/secure/lib/libcrypto/man/RSA_size.3
head/secure/lib/libcrypto/man/SCT_new.3
head/secure/lib/libcrypto/man/SCT_print.3
head/secure/lib/libcrypto/man/SCT_validate.3
head/secure/lib/libcrypto/man/SHA256_Init.3
head/secure/lib/libcrypto/man/SMIME_read_CMS.3
head/secure/lib/libcrypto/man/SMIME_read_PKCS7.3
head/secure/lib/libcrypto/man/SMIME_write_CMS.3
head/secure/lib/libcrypto/man/SMIME_write_PKCS7.3
head/secure/lib/libcrypto/man/SSL_CIPHER_get_name.3
head/secure/lib/libcrypto/man/SSL_COMP_add_compression_method.3
head/secure/lib/libcrypto/man/SSL_CONF_CTX_new.3
head/secure/lib/libcrypto/man/SSL_CONF_CTX_set1_prefix.3
head/secure/lib/libcrypto/man/SSL_CONF_CTX_set_flags.3
head/secure/lib/libcrypto/man/SSL_CONF_CTX_set_ssl_ctx.3
head/secure/lib/libcrypto/man/SSL_CONF_cmd.3
head/secure/lib/libcrypto/man/SSL_CONF_cmd_argv.3
head/secure/lib/libcrypto/man/SSL_CTX_add1_chain_cert.3
head/secure/lib/libcrypto/man/SSL_CTX_add_extra_chain_cert.3
head/secure/lib/libcrypto/man/SSL_CTX_add_session.3
head/secure/lib/libcrypto/man/SSL_CTX_config.3
head/secure/lib/libcrypto/man/SSL_CTX_ctrl.3
head/secure/lib/libcrypto/man/SSL_CTX_dane_enable.3
head/secure/lib/libcrypto/man/SSL_CTX_flush_sessions.3
head/secure/lib/libcrypto/man/SSL_CTX_free.3
head/secure/lib/libcrypto/man/SSL_CTX_get0_param.3
head/secure/lib/libcrypto/man/SSL_CTX_get_verify_mode.3
head/secure/lib/libcrypto/man/SSL_CTX_has_client_custom_ext.3
head/secure/lib/libcrypto/man/SSL_CTX_load_verify_locations.3
head/secure/lib/libcrypto/man/SSL_CTX_new.3
head/secure/lib/libcrypto/man/SSL_CTX_sess_number.3
head/secure/lib/libcrypto/man/SSL_CTX_sess_set_cache_size.3
head/secure/lib/libcrypto/man/SSL_CTX_sess_set_get_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_sessions.3
head/secure/lib/libcrypto/man/SSL_CTX_set0_CA_list.3
head/secure/lib/libcrypto/man/SSL_CTX_set1_curves.3
head/secure/lib/libcrypto/man/SSL_CTX_set1_sigalgs.3
head/secure/lib/libcrypto/man/SSL_CTX_set1_verify_cert_store.3
head/secure/lib/libcrypto/man/SSL_CTX_set_alpn_select_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_cert_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_cert_store.3
head/secure/lib/libcrypto/man/SSL_CTX_set_cert_verify_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_cipher_list.3
head/secure/lib/libcrypto/man/SSL_CTX_set_client_cert_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_client_hello_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_ct_validation_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_ctlog_list_file.3
head/secure/lib/libcrypto/man/SSL_CTX_set_default_passwd_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_ex_data.3
head/secure/lib/libcrypto/man/SSL_CTX_set_generate_session_id.3
head/secure/lib/libcrypto/man/SSL_CTX_set_info_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_keylog_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_max_cert_list.3
head/secure/lib/libcrypto/man/SSL_CTX_set_min_proto_version.3
head/secure/lib/libcrypto/man/SSL_CTX_set_mode.3
head/secure/lib/libcrypto/man/SSL_CTX_set_msg_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_num_tickets.3
head/secure/lib/libcrypto/man/SSL_CTX_set_options.3
head/secure/lib/libcrypto/man/SSL_CTX_set_psk_client_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_quiet_shutdown.3
head/secure/lib/libcrypto/man/SSL_CTX_set_read_ahead.3
head/secure/lib/libcrypto/man/SSL_CTX_set_record_padding_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_security_level.3
head/secure/lib/libcrypto/man/SSL_CTX_set_session_cache_mode.3
head/secure/lib/libcrypto/man/SSL_CTX_set_session_id_context.3
head/secure/lib/libcrypto/man/SSL_CTX_set_session_ticket_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_split_send_fragment.3
head/secure/lib/libcrypto/man/SSL_CTX_set_ssl_version.3
head/secure/lib/libcrypto/man/SSL_CTX_set_stateless_cookie_generate_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_timeout.3
head/secure/lib/libcrypto/man/SSL_CTX_set_tlsext_servername_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_tlsext_status_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_tlsext_ticket_key_cb.3
head/secure/lib/libcrypto/man/SSL_CTX_set_tlsext_use_srtp.3
head/secure/lib/libcrypto/man/SSL_CTX_set_tmp_dh_callback.3
head/secure/lib/libcrypto/man/SSL_CTX_set_verify.3
head/secure/lib/libcrypto/man/SSL_CTX_use_certificate.3
head/secure/lib/libcrypto/man/SSL_CTX_use_psk_identity_hint.3
head/secure/lib/libcrypto/man/SSL_CTX_use_serverinfo.3
head/secure/lib/libcrypto/man/SSL_SESSION_free.3
head/secure/lib/libcrypto/man/SSL_SESSION_get0_cipher.3
head/secure/lib/libcrypto/man/SSL_SESSION_get0_hostname.3
head/secure/lib/libcrypto/man/SSL_SESSION_get0_id_context.3
head/secure/lib/libcrypto/man/SSL_SESSION_get0_peer.3
head/secure/lib/libcrypto/man/SSL_SESSION_get_compress_id.3
head/secure/lib/libcrypto/man/SSL_SESSION_get_ex_data.3
head/secure/lib/libcrypto/man/SSL_SESSION_get_protocol_version.3
head/secure/lib/libcrypto/man/SSL_SESSION_get_time.3
head/secure/lib/libcrypto/man/SSL_SESSION_has_ticket.3
head/secure/lib/libcrypto/man/SSL_SESSION_is_resumable.3
head/secure/lib/libcrypto/man/SSL_SESSION_print.3
head/secure/lib/libcrypto/man/SSL_SESSION_set1_id.3
head/secure/lib/libcrypto/man/SSL_accept.3
head/secure/lib/libcrypto/man/SSL_alert_type_string.3
head/secure/lib/libcrypto/man/SSL_alloc_buffers.3
head/secure/lib/libcrypto/man/SSL_check_chain.3
head/secure/lib/libcrypto/man/SSL_clear.3
head/secure/lib/libcrypto/man/SSL_connect.3
head/secure/lib/libcrypto/man/SSL_do_handshake.3
head/secure/lib/libcrypto/man/SSL_export_keying_material.3
head/secure/lib/libcrypto/man/SSL_extension_supported.3
head/secure/lib/libcrypto/man/SSL_free.3
head/secure/lib/libcrypto/man/SSL_get0_peer_scts.3
head/secure/lib/libcrypto/man/SSL_get_SSL_CTX.3
head/secure/lib/libcrypto/man/SSL_get_all_async_fds.3
head/secure/lib/libcrypto/man/SSL_get_ciphers.3
head/secure/lib/libcrypto/man/SSL_get_client_random.3
head/secure/lib/libcrypto/man/SSL_get_current_cipher.3
head/secure/lib/libcrypto/man/SSL_get_default_timeout.3
head/secure/lib/libcrypto/man/SSL_get_error.3
head/secure/lib/libcrypto/man/SSL_get_extms_support.3
head/secure/lib/libcrypto/man/SSL_get_fd.3
head/secure/lib/libcrypto/man/SSL_get_peer_cert_chain.3
head/secure/lib/libcrypto/man/SSL_get_peer_certificate.3
head/secure/lib/libcrypto/man/SSL_get_peer_signature_nid.3
head/secure/lib/libcrypto/man/SSL_get_psk_identity.3
head/secure/lib/libcrypto/man/SSL_get_rbio.3
head/secure/lib/libcrypto/man/SSL_get_session.3
head/secure/lib/libcrypto/man/SSL_get_shared_sigalgs.3
head/secure/lib/libcrypto/man/SSL_get_verify_result.3
head/secure/lib/libcrypto/man/SSL_get_version.3
head/secure/lib/libcrypto/man/SSL_in_init.3
head/secure/lib/libcrypto/man/SSL_key_update.3
head/secure/lib/libcrypto/man/SSL_library_init.3
head/secure/lib/libcrypto/man/SSL_load_client_CA_file.3
head/secure/lib/libcrypto/man/SSL_new.3
head/secure/lib/libcrypto/man/SSL_pending.3
head/secure/lib/libcrypto/man/SSL_read.3
head/secure/lib/libcrypto/man/SSL_read_early_data.3
head/secure/lib/libcrypto/man/SSL_rstate_string.3
head/secure/lib/libcrypto/man/SSL_session_reused.3
head/secure/lib/libcrypto/man/SSL_set1_host.3
head/secure/lib/libcrypto/man/SSL_set_bio.3
head/secure/lib/libcrypto/man/SSL_set_connect_state.3
head/secure/lib/libcrypto/man/SSL_set_fd.3
head/secure/lib/libcrypto/man/SSL_set_session.3
head/secure/lib/libcrypto/man/SSL_set_shutdown.3
head/secure/lib/libcrypto/man/SSL_set_verify_result.3
head/secure/lib/libcrypto/man/SSL_shutdown.3
head/secure/lib/libcrypto/man/SSL_state_string.3
head/secure/lib/libcrypto/man/SSL_want.3
head/secure/lib/libcrypto/man/SSL_write.3
head/secure/lib/libcrypto/man/UI_STRING.3
head/secure/lib/libcrypto/man/UI_UTIL_read_pw.3
head/secure/lib/libcrypto/man/UI_create_method.3
head/secure/lib/libcrypto/man/UI_new.3
head/secure/lib/libcrypto/man/X509V3_get_d2i.3
head/secure/lib/libcrypto/man/X509_ALGOR_dup.3
head/secure/lib/libcrypto/man/X509_CRL_get0_by_serial.3
head/secure/lib/libcrypto/man/X509_EXTENSION_set_object.3
head/secure/lib/libcrypto/man/X509_LOOKUP_hash_dir.3
head/secure/lib/libcrypto/man/X509_LOOKUP_meth_new.3
head/secure/lib/libcrypto/man/X509_NAME_ENTRY_get_object.3
head/secure/lib/libcrypto/man/X509_NAME_add_entry_by_txt.3
head/secure/lib/libcrypto/man/X509_NAME_get0_der.3
head/secure/lib/libcrypto/man/X509_NAME_get_index_by_NID.3
head/secure/lib/libcrypto/man/X509_NAME_print_ex.3
head/secure/lib/libcrypto/man/X509_PUBKEY_new.3
head/secure/lib/libcrypto/man/X509_SIG_get0.3
head/secure/lib/libcrypto/man/X509_STORE_CTX_get_error.3
head/secure/lib/libcrypto/man/X509_STORE_CTX_new.3
head/secure/lib/libcrypto/man/X509_STORE_CTX_set_verify_cb.3
head/secure/lib/libcrypto/man/X509_STORE_add_cert.3
head/secure/lib/libcrypto/man/X509_STORE_get0_param.3
head/secure/lib/libcrypto/man/X509_STORE_new.3
head/secure/lib/libcrypto/man/X509_STORE_set_verify_cb_func.3
head/secure/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3
head/secure/lib/libcrypto/man/X509_check_ca.3
head/secure/lib/libcrypto/man/X509_check_host.3
head/secure/lib/libcrypto/man/X509_check_issued.3
head/secure/lib/libcrypto/man/X509_check_private_key.3
head/secure/lib/libcrypto/man/X509_cmp_time.3
head/secure/lib/libcrypto/man/X509_digest.3
head/secure/lib/libcrypto/man/X509_dup.3
head/secure/lib/libcrypto/man/X509_get0_notBefore.3
head/secure/lib/libcrypto/man/X509_get0_signature.3
head/secure/lib/libcrypto/man/X509_get0_uids.3
head/secure/lib/libcrypto/man/X509_get_extension_flags.3
head/secure/lib/libcrypto/man/X509_get_pubkey.3
head/secure/lib/libcrypto/man/X509_get_serialNumber.3
head/secure/lib/libcrypto/man/X509_get_subject_name.3
head/secure/lib/libcrypto/man/X509_get_version.3
head/secure/lib/libcrypto/man/X509_new.3
head/secure/lib/libcrypto/man/X509_sign.3
head/secure/lib/libcrypto/man/X509_verify_cert.3
head/secure/lib/libcrypto/man/X509v3_get_ext_by_NID.3
head/secure/lib/libcrypto/man/d2i_DHparams.3
head/secure/lib/libcrypto/man/d2i_PKCS8PrivateKey_bio.3
head/secure/lib/libcrypto/man/d2i_PrivateKey.3
head/secure/lib/libcrypto/man/d2i_SSL_SESSION.3
head/secure/lib/libcrypto/man/d2i_X509.3
head/secure/lib/libcrypto/man/i2d_CMS_bio_stream.3
head/secure/lib/libcrypto/man/i2d_PKCS7_bio_stream.3
head/secure/lib/libcrypto/man/i2d_re_X509_tbs.3
head/secure/lib/libcrypto/man/o2i_SCT_LIST.3
head/secure/lib/libssl/Version.map (contents, props changed)
head/secure/usr.bin/openssl/man/CA.pl.1
head/secure/usr.bin/openssl/man/asn1parse.1
head/secure/usr.bin/openssl/man/ca.1
head/secure/usr.bin/openssl/man/ciphers.1
head/secure/usr.bin/openssl/man/cms.1
head/secure/usr.bin/openssl/man/crl.1
head/secure/usr.bin/openssl/man/crl2pkcs7.1
head/secure/usr.bin/openssl/man/dgst.1
head/secure/usr.bin/openssl/man/dhparam.1
head/secure/usr.bin/openssl/man/dsa.1
head/secure/usr.bin/openssl/man/dsaparam.1
head/secure/usr.bin/openssl/man/ec.1
head/secure/usr.bin/openssl/man/ecparam.1
head/secure/usr.bin/openssl/man/enc.1
head/secure/usr.bin/openssl/man/engine.1
head/secure/usr.bin/openssl/man/errstr.1
head/secure/usr.bin/openssl/man/gendsa.1
head/secure/usr.bin/openssl/man/genpkey.1
head/secure/usr.bin/openssl/man/genrsa.1
head/secure/usr.bin/openssl/man/list.1
head/secure/usr.bin/openssl/man/nseq.1
head/secure/usr.bin/openssl/man/ocsp.1
head/secure/usr.bin/openssl/man/openssl.1
head/secure/usr.bin/openssl/man/passwd.1
head/secure/usr.bin/openssl/man/pkcs12.1
head/secure/usr.bin/openssl/man/pkcs7.1
head/secure/usr.bin/openssl/man/pkcs8.1
head/secure/usr.bin/openssl/man/pkey.1
head/secure/usr.bin/openssl/man/pkeyparam.1
head/secure/usr.bin/openssl/man/pkeyutl.1
head/secure/usr.bin/openssl/man/prime.1
head/secure/usr.bin/openssl/man/rand.1
head/secure/usr.bin/openssl/man/req.1
head/secure/usr.bin/openssl/man/rsa.1
head/secure/usr.bin/openssl/man/rsautl.1
head/secure/usr.bin/openssl/man/s_client.1
head/secure/usr.bin/openssl/man/s_server.1
head/secure/usr.bin/openssl/man/s_time.1
head/secure/usr.bin/openssl/man/sess_id.1
head/secure/usr.bin/openssl/man/smime.1
head/secure/usr.bin/openssl/man/speed.1
head/secure/usr.bin/openssl/man/spkac.1
head/secure/usr.bin/openssl/man/srp.1
head/secure/usr.bin/openssl/man/storeutl.1
head/secure/usr.bin/openssl/man/ts.1
head/secure/usr.bin/openssl/man/tsget.1
head/secure/usr.bin/openssl/man/verify.1
head/secure/usr.bin/openssl/man/version.1
head/secure/usr.bin/openssl/man/x509.1
Directory Properties:
head/crypto/openssl/ (props changed)
head/secure/lib/libcrypto/Version.map (props changed)
Log:
Merge OpenSSL 1.1.1a.
20/11/2018
9:04 pm
base/head
emaste
in head/lib/csu: amd64 common i386
Modificado:
head/lib/csu/amd64/reloc.c
head/lib/csu/common/ignore_init.c
head/lib/csu/common/notes.h
head/lib/csu/i386/crt1_s.S
head/lib/csu/i386/reloc.c
Log:
csu: use BSD-1-clause license on csu files

Copyright on these files is held by kib@ and/or the Foundation, and both
agree to this change.

Approved by: kib
20/11/2018
8:59 pm
base/head
emaste
head/lib/csu/common
Modificado:
head/lib/csu/common/crtbrand.c
Log:
Add NT_FREEBSD_FEATURE_CTL ELF note to csu

This note will be used to allow binaries to opt out of, or in to,
upcoming vulnerability mitigation and other features. It is not yet
connected but being added now to facilitate testing and ensure
compatibility with existing kernels and tools.

Reviewed by: brooks, jhb, kib, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17438
20/11/2018
8:32 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_ntptime.c
Log:
Clear pad bytes in the struct exported by kern.ntp_pll.gettime.

Reported by: Thomas Barabosch, Fraunhofer FKIE
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
20/11/2018
7:31 pm
base/head
zeising
head/sys/powerpc/conf
Modificado:
head/sys/powerpc/conf/GENERIC
Log:
Enable evdev on ppc32

Enable evdev on ppc32 as well, similar to what was done i386 and amd64 in
r340387 and ppc64 in r340632.

Evdev can be used by X and is used by wayland to handle input devices.

Approved by: jhibbits
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18049
20/11/2018
6:38 pm
base/head
ae
in head: sbin/ipfw sys/netinet
Modificado:
head/sbin/ipfw/ipv6.c
head/sys/netinet/ip_fw.h
Log:
Make multiline APPLY_MASK() macro to be function-like.

Reported by: cem
MFC after: 1 week
20/11/2018
6:13 pm
base/head
markj
head/tests/sys/netinet
Modificado:
head/tests/sys/netinet/ip_reass_test.c
Log:
Plug a trivial memory leak.

CID: 1396911
MFC with: r340485
20/11/2018
6:10 pm
base/head
markj
head/sbin/dumpon
Modificado:
head/sbin/dumpon/dumpon.c
Log:
Avoid clobbering a user-specified -g value after r340547.

CID: 1396919
MFC with: r340547
20/11/2018
4:54 pm
base/head
emaste
in head/stand/i386: btx/btx btx/btxldr gptboot
Modificado:
head/stand/i386/btx/btx/Makefile
head/stand/i386/btx/btxldr/Makefile
head/stand/i386/gptboot/Makefile
Log:
stand: remove CLANG_NO_IAS from btx and gptboot

Many components under stand/ had CLANG_NO_IAS added when Clang's
Integrated Assembler (IAS) did not handle .codeNN directives. Clang
gained support quite some time ago, and we can now build stand/ with
IAS.

Note that in some cases there are small differences in the generated
output, so CLANG_NO_IAS should be removed only after testing (or after
finding no differences in the output).

PR: 205250, 233094
Sponsored by: The FreeBSD Foundation
20/11/2018
3:14 pm
base/head
mjg
head/sys/fs/tmpfs
Modificado:
head/sys/fs/tmpfs/tmpfs.h
head/sys/fs/tmpfs/tmpfs_subr.c
head/sys/fs/tmpfs/tmpfs_vfsops.c
Log:
tmpfs: use unr64 for inode numbers

Sponsored by: The FreeBSD Foundation
20/11/2018
3:12 pm
base/head
markj
head/sys/arm64/arm64
Modificado:
head/sys/arm64/arm64/pmap.c
Log:
Handle kernel superpage mappings in pmap_remove_l2().

PR: 233088
Reviewed by: alc, andrew, kib
Tested by: sbruno
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17981
20/11/2018
2:59 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/sys_pipe.c
Log:
pipe: use unr64

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18054
20/11/2018
2:58 pm
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/subr_unit.c
head/sys/sys/systm.h
Log:
Implement unr64

Important users of unr like tmpfs or pipes can get away with just
ever-increasing counters, making the overhead of managing the state
for 32 bit counters a pessimization.

Change it to an atomic variable. This can be further sped up by making
the counts variable "allocate" ranges and store them per-cpu.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18054
20/11/2018
2:52 pm
base/head
kib
head/libexec/rtld-elf
Modificado:
head/libexec/rtld-elf/rtld.c
Log:
rtld: when immediate bind mode is requested, process irelocs in PLT
immediately after other PLT relocs.

Otherwise, if the object has relro page, we write to readonly page,
and we would need to use mprotect(2) two more times to fix it. Note
that resolve_object_ifunc() does nothing when called second time, so
there is no need to avoid existing call.

Reported and tested by: emaste
PR: 233333
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
20/11/2018
2:18 pm
base/head
tijl
head/sys/compat/linux
Modificado:
head/sys/compat/linux/linux_socket.c
Log:
Fix another user address dereference in linux_sendmsg syscall.

This was hidden behind the LINUX_CMSG_NXTHDR macro which dereferences its
second argument. Stop using the macro as well as LINUX_CMSG_FIRSTHDR. Use
the size field of the kernel copy of the control message header to obtain
the next control message.

PR: 217901
MFC after: 2 days
X-MFC-With: r340631
20/11/2018
10:01 am
base/head
0mp
head/share/man/man7
Modificado:
head/share/man/man7/ports.7
Log:
ports(7): Do not mention deprecated WITH_OPENSSL_PORT.

Reviewed by: eadler
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18045
20/11/2018
7:11 am
base/head
imp
head/sys/sys
Modificado:
head/sys/sys/time.h
Log:
Ensure that all values of ns, us and ms work for {n,u,m}stosbt

Integer overflows and wrong constants limited the accuracy of these
functions and created situatiosn where sbttoXs(Xstosbt(Y)) != Y. This
was especailly true in the ns case where we had millions of values
that were wrong.

Instead, used fixed constants because there's no way to say ceil(X)
for integer math. Document what these crazy constants are.

Also, use a shift one fewer left to avoid integer overflow causing
incorrect results, and adjust the equasion accordingly. Document this.

Allow times >= 1s to be well defined for these conversion functions
(at least the Xstosbt). There's too many users in the tree that they
work for >= 1s.

This fixes a failure on boot to program firmware on the mlx4
NIC. There was a msleep(1000) in the code. Prior to my recent rounding
changes, msleep(1000) worked, but msleep(1001) did not because the old
code rounded to just below 2^64 and the new code rounds to just above
it (overflowing, causing the msleep(1000) to really sleep 1ms).

A test program to test all cases will be committed shortly. The test
exaustively tries every value (thanks to bde for the test).

Sponsored by: Netflix, Inc
Differential Revision: https://reviews.freebsd.org/D18051
20/11/2018
1:59 am
base/head
rmacklem
head/sys/fs/nfsserver
Modificado:
head/sys/fs/nfsserver/nfs_nfsdport.c
Log:
Improve sanity checking for the dircount hint argument to
NFSv3's ReaddirPlus and NFSv4's Readdir operations. The code
checked for a zero argument, but did not check for a very large value.
This patch clips dircount at the server's maximum data size.

MFC after: 1 week
20/11/2018
1:56 am
base/head
rmacklem
head/sys/fs/nfs
Modificado:
head/sys/fs/nfs/nfs_commonsubs.c
Log:
nfsm_advance() would panic() when the offs argument was negative.
The code assumed that this would indicate a corrupted mbuf chain, but
it could simply be caused by bogus RPC message data.
This patch replaces the panic() with a printf() plus error return.

MFC after: 1 week
20/11/2018
1:52 am
base/head
rmacklem
head/sys/fs/nfsserver
Modificado:
head/sys/fs/nfsserver/nfs_nfsdsocket.c
Log:
r304026 added code that started statistics gathering for an operation
before the operation number (the variable called "op") was sanity checked.
This patch moves the code down to below the range sanity check for "op".
20/11/2018
12:08 am
base/head
marius
head/sys/sparc64/sparc64
Modificado:
head/sys/sparc64/sparc64/support.S
Log:
Given that the idea of D15374 was to "make memmove a first class citizen",
provide a _MEMMOVE extension of _MEMCPY that deals with overlap based on
the previous bcopy(9) implementation and use the former for bcopy(9) and
memmove(9). This addresses my D15374 review comment, avoiding extra MOVs
in case of memmove(9) and trashing the stack pointer.
20/11/2018
12:06 am
base/head
tmunro
head/usr.bin/pom
Modificado:
head/usr.bin/pom/pom.c
Log:
pom: Fix fencepost bugs.

Under some conditions pom would report "waning" and then "full", show
higher percentages than it should, and get confused by DST. Fix.

Before:

2018.01.30: The Moon is Waxing Gibbous (97% of Full)
2018.01.31: The Moon is Waning Gibbous (100% of Full)
2018.02.01: The Moon is Full
2018.02.02: The Moon is Waning Gibbous (98% of Full)

After:

2018.01.30: The Moon is Waxing Gibbous (96% of Full)
2018.01.31: The Moon is Waxing Gibbous (99% of Full)
2018.02.01: The Moon is Full
2018.02.02: The Moon is Waning Gibbous (97% of Full)

PR: 231705
Submitted by: Andrew Gierth
Approved by: allanjude (mentor)
MFC after: 2 weeks
Differential Revision: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231705
19/11/2018
11:56 pm
base/head
marius
head/sys/dev/sdhci
Modificado:
head/sys/dev/sdhci/sdhci_acpi.c
Log:
For consistency within the front-end, prefer SDHCI_{READ,WRITE}_{2,4}()
to sdhci_acpi_{read,write}_{2,4}() in the sdhci_acpi_set_uhs_timing()
added in r340543.
19/11/2018
11:54 pm
base/head
jhibbits
in head/sys/powerpc: fpu include powerpc
Modificado:
head/sys/powerpc/fpu/fpu_emu.c
head/sys/powerpc/include/pcb.h
head/sys/powerpc/powerpc/exec_machdep.c
Log:
powerpc: Sync icache on SIGILL, in case of cache issues

The update of jemalloc to 5.1.0 exposed a cache syncing issue on a Freescale
e500 base system. There was already code in the FPU emulator to address
this, but it was limited to a single static variable, and did not attempt to
sync the cache. This pulls that out to the higher level program exception
handler, and syncs the cache.

If a SIGILL is hit a second time at the same address, it will be treated as
a real illegal instruction, and handled accordingly.
19/11/2018
10:18 pm
base/head
emaste
head/rescue/rescue
Modificado:
head/rescue/rescue/Makefile
Log:
rescue: set NO_SHARED in Makefile

The rescue binary is built statically via the Makefile generated by
crunchgen, but that does not trigger other shared/static logic in
bsd.prog.mk - in particular disabling retpolineplt with static linking.

PR: 233336
Reported by: Charlie Li
Sponsored by: The FreeBSD Foundation
19/11/2018
9:59 pm
base/head
np
in head/sys: conf dev/cxgbe/firmware
Adicional:
head/sys/dev/cxgbe/firmware/t4fw-1.22.0.3.bin.uu (contents, props changed)
head/sys/dev/cxgbe/firmware/t5fw-1.22.0.3.bin.uu (contents, props changed)
head/sys/dev/cxgbe/firmware/t6fw-1.22.0.3.bin.uu (contents, props changed)
Eliminado:
head/sys/dev/cxgbe/firmware/t4fw-1.19.1.0.bin.uu
head/sys/dev/cxgbe/firmware/t5fw-1.19.1.0.bin.uu
head/sys/dev/cxgbe/firmware/t6fw-1.19.1.0.bin.uu
Modificado:
head/sys/conf/files
head/sys/dev/cxgbe/firmware/t4fw_interface.h
head/sys/modules/cxgbe/t4_firmware/Makefile
head/sys/modules/cxgbe/t5_firmware/Makefile
head/sys/modules/cxgbe/t6_firmware/Makefile
Log:
cxgbe(4): Update T4/5/6 firmwares to 1.22.0.3.

Obtained from: Chelsio Communications
MFC after: 2 months
Sponsored by: Chelsio Communications
19/11/2018
8:48 pm
base/head
emaste
head/share/mk
Modificado:
head/share/mk/bsd.prog.mk
Log:
Avoid retpolineplt with static linking

Statically linked binaries linked with -zretpolineplt crash at startup
as lld produces a broken PLT.

PR: 233336
Sponsored by: The FreeBSD Foundation
19/11/2018
8:45 pm
base/head
bcr
head/usr.bin/fortune/datfiles
Modificado:
head/usr.bin/fortune/datfiles/freebsd-tips
Log:
Add a fortune describing how to upload a machine's dmesg information to the
NYCBUG database.

We want to encourage our users to upload their dmesgs so that the project can
get a better insight into what kind of hardware is run on. This helps in making
data-driven decisions about i.e., platform and driver support.

Note that dmesgs may contain sensitive information like hardware serial numbers,
hence uploading them without review is discouraged.

Reviewed by: brooks, imp, allanjude
Approved by: allanjude
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D17705
19/11/2018
6:58 pm
base/head
arichardson
head/tools/build
Modificado:
head/tools/build/Makefile
Log:
Add capsicum_helpers.h to -legacy if needed

This fixes bootstrap of capsicumized strings on FreeBSD 11.

Reviewed By: oshogbo, bdrewery
Differential Revision: https://reviews.freebsd.org/D17971
19/11/2018
6:29 pm
base/head
bwidawsk
in head/sys: dev/acpica kern sys
Modificado:
head/sys/dev/acpica/acpi_ec.c
head/sys/kern/subr_bus.c
head/sys/sys/bus.h
Log:
acpi: fix acpi_ec_probe to only check EC devices

This patch utilizes the fixed_devclass attribute in order to make sure
other acpi devices with params don't get confused for an EC device.

The existing code assumes that acpi_ec_probe is only ever called with a
dereferencable acpi param. Aside from being incorrect because other
devices of ACPI_TYPE_DEVICE may be probed here which aren't ec devices,
(and they may have set acpi private data), it is even more nefarious if
another ACPI driver uses private data which is not dereferancable. This
will result in a pointer deref during boot and therefore boot failure.

On X86, as it stands today, no other devices actually do this (acpi_cpu
checks for PROCESSOR type devices) and so there is no issue. I ran into
this because I am adding such a device which gets probed before
acpi_ec_probe and sets private data. If ARM ever has an EC, I think
they'd run into this issue as well.

There have been several iterations of this patch. Earlier
iterations had ECDT enumerated ECs not call into the probe/attach
functions of this driver. This change was Suggested by: jhb@.

Reviewed by: jhb
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D16635
19/11/2018
6:24 pm
base/head
trasz
head/lib/libthr/thread
Modificado:
head/lib/libthr/thread/thr_init.c
Log:
Make libthr(3) use sysconf(_SC_NPROCESSORS_CONF); this shaves off
two calls to sysctl(2) from the binary startup.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18046
19/11/2018
6:23 pm
base/head
trasz
head/lib/libc/gen
Modificado:
head/lib/libc/gen/sysconf.c
Log:
Make sysconf(_SC_PAGESIZE) return the value from getpagesize(3).
That avoids a syscall - getpagesize(3) gets the value from the ELF
aux strings.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17989
19/11/2018
6:12 pm
base/head
emaste
head/lib/libc
Modificado:
head/lib/libc/Makefile
Log:
libc: forcibly disable BIND_NOW

Building libc WITH_BIND_NOW results in segfault at process start. For
now force BIND_NOW off until the root cause can be identified and fixed.

PR: 233333
Sponsored by: The FreeBSD Foundation
19/11/2018
5:33 pm
base/head
markj
head/sys/fs/fuse
Modificado:
head/sys/fs/fuse/fuse_internal.c
head/sys/fs/fuse/fuse_internal.h
Log:
Remove comments made obsolete by the ino64 work.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
19/11/2018
5:22 pm
base/head
oshogbo
head/lib/libcasper/services/cap_dns
Modificado:
head/lib/libcasper/services/cap_dns/cap_dns.c
Log:
libcasper: provide compatibility with the old version of service

Some external tools like tcpdump(1) have upstream the changes with old limits
name. Because of that provide compatibility with the old names.

Reported by: emaste
19/11/2018
5:17 pm
base/head
alc
head/sys/vm
Modificado:
head/sys/vm/swap_pager.c
Log:
Use swp_pager_isondev() throughout. Submitted by: ota@j.email.ne.jp

Change swp_pager_isondev()'s return type to bool.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D16712
19/11/2018
5:09 pm
base/head
kevans
head/sbin/bectl/tests
Modificado:
head/sbin/bectl/tests/bectl_test.sh
Log:
bectl(8) tests: attempt to load the ZFS module

Observed in a CI test image, bectl_create test will run and be marked as
skipped because the module is not loaded. The first zpool invocation will
automagically load the module, but bectl_create is still skipped. Subsequent
tests all pass as expected because the module is now loaded and everything
is OK.

MFC after: 3 days
19/11/2018
4:47 pm
base/head
kevans
head/lib/libbe
Modificado:
head/lib/libbe/be.c
Log:
libbe(3): Handle non-ZFS rootfs better

If rootfs isn't ZFS, current version will emit an error claiming so and fail
to initialize libbe. As a consumer, bectl -r (undocumented) can be specified
to operate on a BE independently of whether on a UFS or ZFS root.

Unbreak this for the UFS case by only erroring out the init if we can't
determine a ZFS dataset for rootfs and no BE root was specified. Consumers
of libbe should take care to ensure that rootfs is non-empty if they're
trying to use it, because this could certainly be the case.

Some check is needed before zfs_path_to_zhandle because it will
unconditionally emit to stderr if the path isn't a ZFS filesystem, which is
unhelpful for our purposes.

This should also unbreak the bectl(8) tests on a UFS root, as is the case in
Jenkins' -test runs.

MFC after: 3 days
19/11/2018
3:36 pm
base/head
zeising
head/sys/powerpc/conf
Modificado:
head/sys/powerpc/conf/GENERIC64
Log:
Enable evdev on ppc64

Enable evdev on ppc64 as well, similar to what was done for amd64 and i386
in r340387.

Evdev can be used by X and is used by wayland to handle input devices.

Approved by: mmacy
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18026
19/11/2018
3:31 pm
base/head
tijl
head/sys/compat/linux
Modificado:
head/sys/compat/linux/linux_socket.c
Log:
Do proper copyin of control message data in the Linux sendmsg syscall.

Instead of calling m_append with a user address, allocate an mbuf cluster
and copy data into it using copyin. For the SCM_CREDS case, instead of
zeroing a stack variable and appending that to the mbuf, zero part of the
mbuf cluster directly. One mbuf cluster is also the size limit used by
the FreeBSD sendmsg syscall (uipc_syscalls.c:sockargs()).

PR: 217901
Reviewed by: kib
MFC after: 3 days
19/11/2018
9:36 am
base/head
hselasky
head/sys/kern
Modificado:
head/sys/kern/kern_sysctl.c
Log:
Minor code factoring. No functional change.

MFC after: 1 week
Sponsored by: Mellanox Technologies
19/11/2018
9:35 am
base/head
hselasky
head/sys/kern
Modificado:
head/sys/kern/kern_sysctl.c
Log:
Be more verbose when a sysctl fails to unregister.
Print name of sysctl in question.

MFC after: 1 week
Sponsored by: Mellanox Technologies
19/11/2018
7:27 am
base/head
eugen
head/sys/netgraph
Modificado:
head/sys/netgraph/ng_source.c
Log:
Unbreak ng_source(4) for 64-bit platforms including amd64.
19/11/2018
6:48 am
base/head
sgalabov
head/sys/mips/mediatek
Modificado:
head/sys/mips/mediatek/mtk_soc.c
Log:
Fix access to cpu_model[] in mtk_soc_set_cpu_model()

There may be cases where cpu_model[] may not be 32bit aligned, so it is
better to not try to access it as such in order to avoid unaligned access.

Sponsored by: Smartcom - Bulgaria AD
19/11/2018
3:52 am
base/head
jchandra
head/sys/arm64/arm64
Modificado:
head/sys/arm64/arm64/gicv3_its.c
Log:
gitv3_its: fixes for multiple GIC ITS blocks

First pass of support for multiple GIC ITS blocks with ACPI.
Changes are to:
* register the correct subset of interrupts with pic_register
in case of ACPI.
* initialize just the cpu interface for the first ITS, when
domain information is not avialable. This has to be done
until we split the per-CPU init to do LPI setup just once.
* remove duplicate check for the GIC ITS domain, the sc_cpus
are setup from domain, so the check again in per-CPU init
seems unnecessary.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17841
19/11/2018
3:43 am
base/head
jchandra
head/sys/dev/pci
Modificado:
head/sys/dev/pci/pci_host_generic.c
head/sys/dev/pci/pci_host_generic_acpi.c
head/sys/dev/pci/pci_host_generic_fdt.c
Log:
pci_host_generic : move activate/release to generic code

Now that the ACPI and FDT implementations for activating and
deactivating resources are the same, we can move it to
pci_host_generic.c. No functional changes.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17793
19/11/2018
3:34 am
base/head
jchandra
in head/sys/dev: acpica pci
Modificado:
head/sys/dev/acpica/acpi_resource.c
head/sys/dev/pci/pci_host_generic.c
Log:
pci_host_generic, acpi_resource: drop unneeded code

Now that we are handling PCI resources in pci_host_generic_acpi.c, we
don't need these change (made by r336129)

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17792
19/11/2018
3:16 am
base/head
jchandra
in head/sys/dev: acpica pci
Modificado:
head/sys/dev/acpica/acpi.c
head/sys/dev/pci/pci_host_generic_acpi.c
Log:
acpica, pci_host_generic_acpi: redo pci_host_generic_acpi.c

This is a major update for pci_host_generic_acpi.c, the current
implementation has some gaps that are better fixed up in one go.
The changes are to:
* Follow x86 method of not adding PCI resources to PCI host bridge in
ACPI code. This has been moved to pci_host_generic_acpi.c, where we
walk thru its resources of the host bridge and add them.
* Fixup code in pci_host_generic_acpi.c to read all decoded ranges
and update the 'ranges' property. This allows us to share most of
the code with generic implementation (and the FDT one).
* Parse and setup IO ranges and bus ranges when walking the resources
above. Drop most of the changes related to this from acpica code.
* Add the ECAM memory area as mem resource 0. Implement the logic to
get the ECAM area from MCFG (using bus range which we now decode),
or from _CBA (using _BBN/bus range). Drop aarch64 ifdefs from acpica
code which did part of this.
* Switch resource activation to similar code as FDT implementation,
this can be moved into generic implementation in a later pass.
* Drop the mechanism of using the 7th bit of bus number as the domain,
this is not correct and will work only in very specific cases. Use
_SEG as PCI domain and use the bus ranges of the host bridge to
provide start bus number.

This commit should not make any functional change to dev/acpica/acpi.c
for other architectures, almost all the changes there are to revert
earlier additions in this file done for aarch64.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17791
19/11/2018
3:02 am
base/head
jchandra
in head/sys: arm/arm dev/acpica
Modificado:
head/sys/arm/arm/generic_timer.c
head/sys/dev/acpica/acpi.c
head/sys/dev/acpica/acpi_pcib.c
head/sys/dev/acpica/acpi_resource.c
head/sys/dev/acpica/acpivar.h
Log:
acpica: rework INTRNG interrupts

On arm64 (where INTRNG is enabled), the interrupts have to be mapped
with ACPI_BUS_MAP_INTR() before adding them as resources to devices.

The earlier code did the mapping before calling acpi_set_resource(),
which bypassed code that checked for PCI link interrupts.

To fix this, move the call to map interrupts into acpi_set_resource()
and that requires additional work to lookup interrupt properties.
The changes here are to:
* extend acpi_lookup_irq_handler() to lookup an irq in the ACPI
resources
* create a helper function acpi_map_intr() which uses the updated
acpi_lookup_irq_handler() to look up an irq, and then map it
with ACPI_BUS_MAP_INTR()
* use acpi_map_intr() in acpi_pcib_route_interrupt() to map
pci link interrupts.

With these changes, we can drop the ifdefs in acpi_resource.c, and
we can also drop the call for mapping interrupts in generic_timer.c

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17790
19/11/2018
2:55 am
base/head
jchandra
head/sys/dev/pci
Modificado:
head/sys/dev/pci/pci_host_generic.c
head/sys/dev/pci/pci_host_generic.h
head/sys/dev/pci/pci_host_generic_acpi.c
head/sys/dev/pci/pci_host_generic_fdt.c
Log:
pci_host_generic*: basic implementation of bus range

Both ACPI and FDT support bus ranges for pci host bridges. Update
pci_host_generic*.[ch] with a default implementation to support this.
This will be used in the next set of changes for ACPI based host
bridge. No functional changes in this commit.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17657
19/11/2018
2:43 am
base/head
jchandra
head/sys/dev/pci
Modificado:
head/sys/dev/pci/pci_host_generic.c
head/sys/dev/pci/pci_host_generic_fdt.c
Log:
pci_host_generic: allocate resources against devices

Fix up pci_host_generic.c and pci_host_generic_fdt.c to allocate
resources against devices that requested them. Currently the
allocation happens against the pcib, which is incorrect.

This is needed for the upcoming changes for fixing up
pci_host_generic_acpi.c

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17656
19/11/2018
2:38 am
base/head
jchandra
head/sys/dev/pci
Modificado:
head/sys/dev/pci/pci_host_generic.c
Log:
pci_host_generic: remove unneeded ThunderX2 quirk

The current quirk implementation writes a fixed address to the PCI BAR
to fix a firmware bug. The PCI BARs are allocated by firmware and will
change depending on PCI devices present. So using a fixed address here
is not correct.

This quirk worked around a firmware bug that programmed the MSI-X bar
of the SATA controller incorrectly. The newer firmware does not have
this issue, so it is better to drop this quirk altogether.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D17655
19/11/2018
2:30 am
base/head
kevans
in head: etc/mtree sbin/bectl sbin/bectl/tests
Adicional:
head/sbin/bectl/tests/
head/sbin/bectl/tests/Makefile (contents, props changed)
head/sbin/bectl/tests/bectl_test.sh (contents, props changed)
Modificado:
head/etc/mtree/BSD.tests.dist
head/sbin/bectl/Makefile
Log:
bectl(8): Add some regression tests

These tests operate on a file-backed zpool that gets created in the kyua
temp dir. root and ZFS support are both required for these tests. Current
tests cover create, destroy, export/import, jail, list (kind of), mount,
rename, and jail.

List tests should later be extended to cover formatting and the different
list flags, but for now only covers basic "are create/destroy actually
reflected properly"

MFC after: 3 days
19/11/2018
2:16 am
base/head
kevans
head/lib/libbe
Modificado:
head/lib/libbe/be.c
head/lib/libbe/be_impl.h
Log:
libbe(3): Properly account for altroot when creating new BEs

Previously we would blindly copy the 'mountpoint' property, which includes
the altroot. The altroot needs to be snipped off prior to setting it on the
new BE, though, or you'll end up with a new BE and a mountpoint of /mnt with
altroot=/mnt

MFC after: 3 days
19/11/2018
2:12 am
base/head
kevans
in head: lib/libbe sbin/bectl
Modificado:
head/lib/libbe/be.c
head/lib/libbe/be.h
head/lib/libbe/be_info.c
head/lib/libbe/libbe.3
head/sbin/bectl/bectl.c
Log:
bectl(3)/libbe(3): Allow BE root to be specified

Add an undocumented -r option preceding the bectl subcommand to specify a BE
root to operate out of. This will remain undocumented for now, as some
caveats apply:

- BEs cannot be activated in the pool that doesn't contain the rootfs
- bectl create cannot work out of the box without the -e option right now,
since it defaults to the rootfs and cross-pool cloning doesn't work like
that (IIRC)

Plumb the BE root through to libbe(3) so that some things -can- be done to
it, e.g.

bectl -r tank/ROOT create -e default upgrade
bectl -r tank/ROOT mount upgrade /mnt

this aides in some upgrade setups where rootfs is not necessarily ZFS, and
also makes it easier/possible to regression-test bectl when combined with a
file-backed zpool.

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18029
19/11/2018
12:54 am
base/head
kbowling
in head/sys: kern sys
Modificado:
head/sys/kern/uipc_sockbuf.c
head/sys/sys/sockbuf.h
Log:
Retire sbsndptr() KPI

As of r340465 all consumers use sbsndptr_adv and sbsndptr_noadv

Reviewed by: gallatin
Approved by: krion (mentor)
Differential Revision: https://reviews.freebsd.org/D17998
18/11/2018
7:55 pm
base/head
arichardson
head
Modificado:
head/Makefile.inc1
Log:
Fix -DNO_CLEAN amd64 build after r340463

Without this change I got the following error:
clang-7: error: no such file or directory: '..../lib/libc/amd64/string/bzero.S'

Reviewed By: mjg
Differential Revision: https://reviews.freebsd.org/D18031
18/11/2018
12:23 pm
base/head
oshogbo
head/usr.bin/brandelf
Modificado:
head/usr.bin/brandelf/Makefile
head/usr.bin/brandelf/brandelf.c
Log:
brandelf: capsicumize it
18/11/2018
12:03 pm
base/head
oshogbo
head/usr.bin/brandelf
Modificado:
head/usr.bin/brandelf/brandelf.c
Log:
brandelf: fix style nits

No functional change intended.

Reviewed by: emaste, markj
Differential Revision: https://reviews.freebsd.org/D17966
18/11/2018
11:11 am
base/head
oshogbo
head/lib/libcasper/services/cap_dns
Modificado:
head/lib/libcasper/services/cap_dns/cap_dns.3
Log:
Update the names in the LIMITS and EXAMPLES sections after r340363.

Reported by: markj
18/11/2018
1:58 am
base/head
markj
head/sbin/dumpon
Modificado:
head/sbin/dumpon/dumpon.8
head/sbin/dumpon/dumpon.c
Log:
Change dumpon(8)'s handling of -g.

Rather than using a special value to denote "use the default router",
treat the absence of the -g option to mean the same thing. The
in-kernel netdump client will always attempt to reach the server
directly before falling back to the configured gateway anyway. This
change makes it cleaner to support a hostname value for -g.

Reviewed by: cem
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18025
18/11/2018
1:27 am
base/head
alc
head/sys/vm
Modificado:
head/sys/vm/vm_map.c
Log:
Tidy up vm_map_simplify_entry() and its recently introduced helper
functions. Notably, reflow the text of some comments so that they
occupy fewer lines, and introduce an assertion in one of the new
helper functions so that it is not misused by a future caller.

In collaboration with: Doug Moore
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D17635
18/11/2018
12:52 am
base/head
marius
head/sys/dev/sdhci
Modificado:
head/sys/dev/sdhci/sdhci.c
head/sys/dev/sdhci/sdhci.h
head/sys/dev/sdhci/sdhci_acpi.c
Log:
Add a quirk handling for AMDI0040 controllers allowing them to do HS400.

Submitted by: Shreyank Amartya (original version)
17/11/2018
9:35 pm
base/head
asomers
head/sbin/mount_fusefs
Modificado:
head/sbin/mount_fusefs/mount_fusefs.8
Log:
mount_fusefs.8: expand HISTORY section

Note that fuse was available from ports long before joining the base system.
Also, update the upstream URL.

MFC after: 2 weeks
17/11/2018
7:19 pm
base/head
kevans
head/lib/libbe
Modificado:
head/lib/libbe/be_access.c
Log:
libbe(3): Rewrite be_unmount to stop mucking with getmntinfo(2)

Go through the ZFS layer instead; given a BE, we can derive the dataset,
zfs_open it, then zfs_unmount. ZFS takes care of the dirty details and
likely gets it more correct than we did for more interesting setups.

MFC after: 3 days
17/11/2018
7:15 pm
base/head
kevans
head/lib/libbe
Modificado:
head/lib/libbe/be.c
head/lib/libbe/be_info.c
Log:
libbe(3): rewrite init to support chroot usage

libbe(3) currently uses zfs_be_root and locates which of its children is
currently mounted at "/". This is reasonable, but not correct in the case of
a chroot, for two reasons:

- chroot root may be of a different zpool than zfs_be_root
- chroot root will not show up as mounted at "/"

Fix both of these by rewriting libbe_init to work from the rootfs down.
zfs_path_to_zhandle on / will resolve to the dataset mounted at the new
root, rather than the real root. From there, we can derive the BE root/pool
and grab the bootfs off of the new pool. This does no harm in the average
case, and opens up bectl to operating on different pools for scenarios where
one may be, for instance, updating a pool that generally gets re-rooted into
from a separate UFS root or zfs bootpool.

While here, I've also:
- Eliminated the check for /boot and / to be on the same partition. This
leaves one open to a setup where /boot (and consequently, kernel/modules)
are not included in the boot environment. This may very well be an
intentional setup done by someone that knows what they're doing, we should
not kill BE usage because of it.

- Eliminated the validation bits of BEs and snapshots that enforced
'mountpoint' to be "/" -- this broke when trying to operate on an imported
pool with an altroot, but we need not be this picky.

Reported by: philip
Reviewed by: philip, allanjude (previous version)
Tested by: philip
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18012
17/11/2018
5:21 pm
base/head
marius
head/sys/dev/mmc
Modificado:
head/sys/dev/mmc/mmc.c
Log:
- Restore setting the clock for devices which support the default/legacy
transfer mode only (lost with r321385). [1]
- Similarly, don't try to set the power class on MMC devices that comply
to version 4.0 of the system specification but are operated in default/
legacy transfer or 1-bit bus mode as no power class is specified for
these cases. Trying to set a power class nevertheless resulted in an -
albeit harmless - error message.

PR: 231713 [1]
17/11/2018
4:13 pm
base/head
bz
head/sys/netinet
Modificado:
head/sys/netinet/if_ether.c
Log:
Improve the comment for arpresolve_full() in if_ether.c.
No functional changes.

MFC after: 6 weeks
17/11/2018
4:08 pm
base/head
bz
head/sys/netinet
Modificado:
head/sys/netinet/if_ether.c
head/sys/netinet/if_ether.h
Log:
Retire arpresolve_addr(), which is not used anywhere, from if_ether.c.
17/11/2018
12:59 pm
base/head
yuripv
head/contrib/netbsd-tests/lib/libc/locale
Modificado:
head/contrib/netbsd-tests/lib/libc/locale/t_mbstowcs.c
Log:
Make mbstowcs_basic test pass, now that we have more ctype definitions.

Reported by: jenkins
Approved by: kib (mentor, implicit)
17/11/2018
10:36 am
base/head
yuripv
in head: share/ctypedef tools/tools/locale
Eliminado:
head/tools/tools/locale/etc/common.UTF-8.src
head/tools/tools/locale/etc/manual-input.UTF-8
Modificado:
head/share/ctypedef/C.UTF-8.src
head/tools/tools/locale/Makefile
head/tools/tools/locale/tools/utf8-rollup.pl
Log:
Use UnicodeData.txt to create UTF-8 ctype map.

This should provide more complete coverage of currently defined Unicode
characters as compared to manually assembled one we use currently.

Comparison of original and new UTF-8 ctype maps by character class:

TYPE ORIG NEW
alnum 94229 126029
alpha 93557 125419
blank 4 2
cntrl 73 137685
digit 469 622
graph 109615 137203
lower 1478 2145
print 109641 137222
punct 3428 797
rune 110481 274907
space 33 24
upper 983 1781
xdigit 469 622

Large number of added cntrl definitions is due to the fact that private-use
planes are currently defined as such, this can change in the future.

Discussed with: bapt
Approved by: kib (mentor, implicit)
MFC after: 1 month
Differential revision: https://reviews.freebsd.org/D17842
17/11/2018
12:03 am
base/head
brooks
head/sys/dev/pci
Modificado:
head/sys/dev/pci/pci_user.c
Log:
Fix stray tab.

Reported by: jbeich
MFC after: 3 days
MFC with: r340489
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18011
16/11/2018
11:58 pm
base/head
brooks
head/sys/dev/pci
Modificado:
head/sys/dev/pci/pci_user.c
Log:
Fix freebsd32 support for PCIOCGETCONF.

This fixes regresssions in pciconf -l and some ports as reported on
freebsd-current:

https://lists.freebsd.org/pipermail/freebsd-current/2018-November/072144.html

Reported by: jbeich
Reviewed by: kib (also proposed an idential patch)
Tested by: jbeich
MFC after: 3 days
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18011
16/11/2018
11:39 pm
base/head
jhb
in head/sys/x86: include x86 xen
Modificado:
head/sys/x86/include/intr_machdep.h
head/sys/x86/x86/msi.c
head/sys/x86/xen/pvcpu_enum.c
head/sys/x86/xen/xen_msi.c
Log:
Axe MINIMUM_MSI_INT.

Just allow MSI interrupts to always start at the end of the I/O APIC
pins. Since existing machines already have more than 255 I/O APIC
pins, IRQ 255 is no longer reliably invalid, so just remove the
minimum starting value for MSI.

Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D17991
16/11/2018
9:27 pm
base/head
kib
in head/sys: amd64/vmm/intel x86/include x86/x86
Modificado:
head/sys/amd64/vmm/intel/vmx.c
head/sys/x86/include/specialreg.h
head/sys/x86/x86/cpu_machdep.c
head/sys/x86/x86/identcpu.c
Log:
Align IA32_ARCH_CAP MSR definitions and use with SDM rev. 068.

SDM rev. 068 was released yesterday and it contains the description of
the MSR 0x10a IA32_ARCH_CAP. This change adds symbolic definitions for
all bits present in the document, and decode them in the CPU
identification lines printed on boot.

But also, the document defines SSB_NO as bit 4, while FreeBSD used but
2 to detect the need to work-around Speculative Store Bypass
issue. Change code to use the bit from SDM.

Similarly, the document describes bit 3 as an indicator that L1TF
issue is not present, in particular, no L1D flush is needed on
VMENTRY. We used RDCL_NO to avoid flushing, and again I changed the
code to follow new spec from SDM.

In fact my Apollo Lake machine with latest ucode shows this:
IA32_ARCH_CAPS=0x19

Reviewed by: bwidawsk
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D18006
16/11/2018
7:08 pm
base/head
jhb
in head/sys/dev/cxgbe: crypto tom
Modificado:
head/sys/dev/cxgbe/crypto/t4_crypto.c
head/sys/dev/cxgbe/crypto/t4_crypto.h
head/sys/dev/cxgbe/tom/t4_tls.c
head/sys/dev/cxgbe/tom/t4_tls.h
Log:
Consolidate on a single set of constants for SCMD fields.

Both ccr(4) and the TOE TLS code had separate sets of constants for
fields in SCMD messages.

Sponsored by: Chelsio Communications
16/11/2018
7:04 pm
base/head
markj
head/tests/sys/netinet
Adicional:
head/tests/sys/netinet/ip_reass_test.c (contents, props changed)
Modificado:
head/tests/sys/netinet/Makefile
Log:
Add regression tests for r340313 and r340483.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17926
16/11/2018
6:59 pm
base/head
markj
in head: . tests/sys/netinet
Adicional:
head/tests/sys/netinet/so_reuseport_lb_test.c
- copied unchanged from r340483, head/tests/sys/netinet/reuseport_lb.c
Eliminado:
head/tests/sys/netinet/reuseport_lb.c
Modificado:
head/ObsoleteFiles.inc
head/tests/sys/netinet/Makefile
Log:
Rename the SO_REUSEPORT_LB test file to be consistent with other tests.

MFC after: 1 week
16/11/2018
6:32 pm
base/head
jtl
head/sys/netinet
Modificado:
head/sys/netinet/ip_reass.c
head/sys/netinet/ip_var.h
Log:
Add some additional length checks to the IPv4 fragmentation code.

Specifically, block 0-length fragments, even when the MF bit is clear.
Also, ensure that every fragment with the MF bit clear ends at the same
offset and that no subsequently-received fragments exceed that offset.

Reviewed by: glebius, markj
MFC after: 3 days
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D17922
16/11/2018
5:07 pm
base/head
mjg
in head/sys: compat/linux kern sys
Modificado:
head/sys/compat/linux/linux_fork.c
head/sys/kern/kern_exit.c
head/sys/kern/kern_fork.c
head/sys/kern/kern_kthread.c
head/sys/kern/kern_proc.c
head/sys/kern/kern_prot.c
head/sys/kern/sys_procdesc.c
head/sys/kern/sys_process.c
head/sys/sys/proc.h
Log:
proc: always store parent pid in p_oppid

Doing so removes the dependency on proctree lock from sysctl process list
export which further reduces contention during poudriere -j 128 runs.

Reviewed by: kib (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17825
16/11/2018
4:51 pm
base/head
imp
head/sys/dev/nvme
Modificado:
head/sys/dev/nvme/nvme.c
Log:
Remove do-nothing nvme_modevent.

nvme_modevent no longer does anything interesting, remove it.

Sponsored by: Netflix
16/11/2018
4:23 pm
base/head
hselasky
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/kernel.h
Log:
Define asm macro in the LinuxKPI.

Submitted by: Johannes Lundberg
MFC after: 1 week
Sponsored by: Mellanox Technologies
16/11/2018
4:19 pm
base/head
hselasky
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/ktime.h
Log:
Implement ktime_get_ts64() function macro in the LinuxKPI.

Submitted by: Johannes Lundberg
MFC after: 1 week
Sponsored by: Mellanox Technologies
16/11/2018
2:29 pm
base/head
0mp
head/share/man/man7
Modificado:
head/share/man/man7/development.7
Log:
development(7): Replace "reboot" with "shutdown -r now"

We generally document shutdown(8) instead of reboot(8) as it's better for
interactive use.

In modern FreeBSD is matters a lot less, it's mostly just convention. One
minor thing is that shutdown(8) produces a global message, while reboot(8)
does not. It is believed that historically, some versions of reboot did not
do appropriate safe shutdown checks and just rebooted.

It's also just consistency: for example the handbook[1] documents shutdown.

There is actually another important difference between reboot and shutdown
-r now: reboot does not run /etc/rc.shutdown. This is because reboot has
its own shutdown procedure and does not signal init like init 6 and
shutdown -r now do (except in the case of rerooting via reboot -r).

A few years ago jilles@ proposed changing reboot's default to signalling
init (preserving reboot -q which just invokes the reboot system call), but
this was not accepted. Perhaps this can be tried again for 13.0.

[1]: https://www.freebsd.org/doc/handbook/boot-shutdown.html

Reported by: eadler
Reviewed by: eadler, jilles
Approved by: krion (mentor)
Differential Revision: https://reviews.freebsd.org/D16843
16/11/2018
2:21 pm
base/head
ae
head/sys/net
Modificado:
head/sys/net/if_ipsec.c
Log:
Allow configuration of several ipsec interfaces with the same tunnel
endpoints.

This can be used to configure several IPsec tunnels between two hosts
with different security associations.

Obtained from: Yandex LLC
MFC after: 2 weeks
Sponsored by: Yandex LLC
16/11/2018
11:17 am
base/head
sgalabov
head/sys/mips/mediatek
Modificado:
head/sys/mips/mediatek/mtk_machdep.c
head/sys/mips/mediatek/mtk_soc.c
head/sys/mips/mediatek/mtk_soc.h
head/sys/mips/mediatek/mtk_sysctl.h
Log:
Implement support for sysctl hw.model for Mediatek/Ralink SoCs

These SoCs have CHIPID registers, which store the Chip model, according
to the manufacturer; make use of those in order to better identify
the chip we're actually running on.

If we're unable to read the CHIPID registers for some reason we will
use the string "unknown " as a value for hw.model.

Reported by: yamori813@yahoo.co.jp
Sponsored by: Smartcom - Bulgaria AD
16/11/2018
10:20 am
base/head
vmaffione
head/share/man/man9
Modificado:
head/share/man/man9/ifnet.9
Log:
ifnet(9): Add description of IFCAP_NETMAP

Describe IFCAP_NETMAP adding a cross reference to netmap(4).

Reviewed by: bcr, 0mp
Approved by: gnn (mentor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17988
16/11/2018
3:42 am
base/head
karels
head/sys/net/altq
Modificado:
head/sys/net/altq/altq_cbq.h
head/sys/net/altq/altq_rmclass.h
Log:
Fix flags collision causing inability to enable CBQ in ALTQ

The CBQ BORROW flag conflicts with the RMCF_CODEL flag; the
two sets of definitions actually define the same things. The symptom
is that a kernel with CBQ support and not CODEL fails to load a QoS
policy with the obscure error "pfctl: DIOCADDALTQ: Cannot allocate memory."
If ALTQ_DEBUG is enabled, the error becomes a little clearer:
"rmc_newclass: CODEL not configured for CBQ!" is printed by the kernel.
There really shouldn't be two sets of macros that have to be defined
consistently, but the include structure isn't right for exporting
CBQ flags to altq_rmclass.h. Re-align the definitions, and add
CTASSERTs in the kernel to ensure that the definitions are consistent.

PR: 215716
Reviewed by: pkelsey
MFC after: 2 weeks
Sponsored by: Forcepoint LLC
Differential Revision: https://reviews.freebsd.org/D17758
16/11/2018
1:27 am
base/head
jhb
head/sys/dev/cxgbe/tom
Modificado:
head/sys/dev/cxgbe/tom/t4_tom.h
Log:
Restore the header to fix build of cxgbe(4) TOM.

vmem's are not just used for TLS memory in TOM and the #include actually
predates the TLS code so should not have been removed when the TLS vmem
moved in r340466.

Pointy hat to: jhb
Sponsored by: Chelsio Communications
16/11/2018
12:44 am
base/head
mjg
in head: lib/libc/amd64/string sys/amd64/amd64
Modificado:
head/lib/libc/amd64/string/memset.S
head/sys/amd64/amd64/support.S
Log:
amd64: handle small memset buffers with overlapping stores

Instead of jumping to locations which store the exact number of bytes,
use displacement to move the destination.

In particular the following clears an area between 8-16 (inclusive)
branch-free:

movq %r10,(%rdi)
movq %r10,-8(%rdi,%rcx)

For instance for rcx of 10 the second line is rdi + 10 - 8 = rdi + 2.
Writing 8 bytes starting at that offset overlaps with 6 bytes written
previously and writes 2 new, giving 10 in total.

Provides a nice win for smaller stores. Other ones are erratic depending
on the microarchitecture.

General idea taken from NetBSD (restricted use of the trick) and bionic
string functions (use for various ranges like in this patch).

Reviewed by: kib (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17660
15/11/2018
11:31 pm
base/head
jhb
head/sys/dev/cxgbe/tom
Modificado:
head/sys/dev/cxgbe/tom/t4_tls.c
Log:
Remove bogus roundup2() of the key programming work request header.

The key context is always placed immediately after the work request
header. The total work request length has to be rounded up by 16
however.

MFC after: 1 month
Sponsored by: Chelsio Communications
15/11/2018
11:10 pm
base/head
jhb
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_main.c
Log:
Change the quantum for TLS key addresses to 32 bytes.

The addresses passed when reading and writing keys are always shifted
right by 5 as the memory locations are addressed in 32-byte chunks, so
the quantum needs to be 32, not 8.

MFC after: 1 month
Sponsored by: Chelsio Communications
15/11/2018
11:03 pm
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_proc.c
Log:
Remove mostly-useless proc provider probes.

For some reason the proc UMA zone's ctor, dtor and init functions are
instrumented, but these functions are always available through FBT.
Moreover, the probes are not part of the original Solaris proc
provider, aren't documented, have no uses (e.g., in dwatch(8)) and
have no clear use to begin with. Therefore, remove them.

Reviewed by: rpaulo
Differential Revision: https://reviews.freebsd.org/D2169
15/11/2018
11:00 pm
base/head
jhb
in head/sys/dev/cxgbe: . tom
Modificado:
head/sys/dev/cxgbe/adapter.h
head/sys/dev/cxgbe/t4_main.c
head/sys/dev/cxgbe/tom/t4_tls.c
head/sys/dev/cxgbe/tom/t4_tom.c
head/sys/dev/cxgbe/tom/t4_tom.h
Log:
Move the TLS key map into the adapter softc so non-TOE code can use it.

Sponsored by: Chelsio Communications
15/11/2018
10:47 pm
base/head
jhb
head/sys/dev/cxgbe/tom
Modificado:
head/sys/dev/cxgbe/tom/t4_tls.c
Log:
Use sbsndptr_adv() instead of sbsndptr() for TOE TLS.

For TOE TLS, we just want to advance the send pointer to skip over the
record just sent to the TOE. The recently added sbsndptr_adv() is
sufficient for that and is cheaper.

MFC after: 1 month
Sponsored by: Chelsio Communications
15/11/2018
8:28 pm
base/head
mjg
head/lib/libc/amd64/string
Modificado:
head/lib/libc/amd64/string/memset.S
Log:
amd64: sync up libc memset with the kernel version

- tidy up memset to have rax set earlier for small sizes
- finish the tail in memset with an overlapping store
- align memset buffers to 16 bytes before using rep stos

Sponsored by: The FreeBSD Foundation
15/11/2018
8:20 pm
base/head
mjg
head/lib/libc/amd64/string
Adicional:
head/lib/libc/amd64/string/bzero.c (contents, props changed)
Eliminado:
head/lib/libc/amd64/string/bzero.S
Modificado:
head/lib/libc/amd64/string/Makefile.inc
head/lib/libc/amd64/string/memset.S
Log:
amd64: convert libc bzero to a C func to avoid future bloat

Reviewed by: kib (previous version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17549
15/11/2018
6:37 pm
base/head
jhb
in head/sys/x86: include x86 xen
Modificado:
head/sys/x86/include/intr_machdep.h
head/sys/x86/x86/msi.c
head/sys/x86/xen/xen_intr.c
head/sys/x86/xen/xen_msi.c
Log:
Convert the number of MSI IRQs on x86 from a constant to a tunable.

The number of MSI IRQs still defaults to 512, but it can now be
changed at boot time via the machdep.num_msi_irqs tunable.

Reviewed by: kib, royger (older version)
Reviewed by: markj
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D17977
15/11/2018
5:05 pm
base/head
loos
head/sys/arm/mv
Modificado:
head/sys/arm/mv/mv_spi.c
Log:
Set the SPI clock speed and polarity on each transfer to catch up with
recent changes in spibus and allow the use of different SPI modes on
the same bus.

Reported by: ian
Sponsored by: Rubicon Communications, LLC (Netgate)
15/11/2018
4:29 pm
base/head
loos
head/sys/arm/conf
Modificado:
head/sys/arm/conf/ARMADA38X
Log:
Comment MD_ROOT and remove 'device re' which is not part of the system and
can be loaded as module.
15/11/2018
4:13 pm
base/head
asomers
head/lib/libc/sys
Modificado:
head/lib/libc/sys/fcntl.2
Log:
fcntl.2: document an additional error condition

MFC after: 2 weeks
15/11/2018
4:02 pm
base/head
imp
head/sys/cam/scsi
Modificado:
head/sys/cam/scsi/scsi_all.c
head/sys/cam/scsi/scsi_all.h
Log:
Introduce scsi_ata_setfeatures() as a convenient way to make
a passthru ATA SETFEATURES command.

Sponsored by: Netflix, Inc
15/11/2018
4:02 pm
base/head
imp
head/sys/cam
Modificado:
head/sys/cam/cam_iosched.c
head/sys/cam/cam_iosched.h
Log:
Add cam_iosched_set_latfcn to set a latency callback for high latency.

It's often useful to have a callback when an I/O takes more than a
threshold amount of time. This adds the infrastructure for periph
devices to register one.

One use-case is as a debugging aide when you need a semi-realtime
indication of an I/O outlier so you can trigger bus capture gear for
vendor analysis.

Sponsored by: Netflix, Inc
15/11/2018
4:02 pm
base/head
imp
head/sys/kern
Modificado:
head/sys/kern/kern_sysctl.c
Log:
Do proper conversion to/from sbt.

Doh! sbttoX and Xtosbt were backwards. While they ran, they produced
bogus results.

Pointy hat to: imp@
15/11/2018
4:02 pm
base/head
imp
head/sys/sys
Modificado:
head/sys/sys/time.h
Log:
When converting ns,us,ms to sbt, return the ceil() of the result
rather than the floor(). Returning the floor means that
sbttoX(Xtosbt(y)) != y for almost all values of y. In practice, this
results in a difference of at most 1 in the lsb of the sbintime_t.
This difference is meaningless for all current users of these
functions, but is important for the newly introduced sysctl conversion
routines which implicitly rely on the transformation being idempotent.

Sponsored by: Netflix, Inc
14/11/2018
11:15 pm
base/head
imp
in head/sys/cam: ata scsi
Modificado:
head/sys/cam/ata/ata_da.c
head/sys/cam/scsi/scsi_da.c
Log:
Remove trailing white space in advance of other changes.
14/11/2018
8:36 pm
base/head
shurd
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Clear RX completion queue state veriables in iflib_stop()

iflib_stop() was not resetting the rxq completion queue state variables.
This meant that for any driver that has receive completion queues, after a
reinit, iflib would start asking what's available on the rx side starting at
whatever the completion queue index was prior to the stop, instead of at 0.

Submitted by: pkelsey
Reported by: pkelsey
MFC after: 3 days
Sponsored by: Limelight Networks
14/11/2018
7:10 pm
base/head
glebius
head/sys/kern
Modificado:
head/sys/kern/init_main.c
Log:
Initialize compatibility epoch tracker for thread0. Fixes
panics for drivers that call if_maddr_lock() during startup.

Reported by: cy
14/11/2018
7:06 pm
base/head
sef
head/usr.sbin/mountd
Modificado:
head/usr.sbin/mountd/mountd.c
Log:
mountd has no way to configure the listen queue depth; rather than add a new
option, we pass -1 down to listen, which causes it to use the
kern.ipc.soacceptqueue sysctl.

Approved by: mav
MFC after: 2 weeks
Sponsored by: iXsystems Inc
14/11/2018
6:45 pm
base/head
jhb
head/sys/x86/x86
Modificado:
head/sys/x86/x86/msi.c
Log:
Revert r332735 and fix MSI-X to properly fail allocations when full.

The off-by-one errors in 332735 weren't actual errors and were
preventing the last MSI interrupt source from being used. Instead,
the issue is that when all MSI interrupt sources were allocated, the
loop in msix_alloc() would terminate with 'msi' still set to non-null.
The only check for 'i' overflowing was in the 'msi' == NULL case, so
msix_alloc() would try to reuse the last MSI interrupt source instead
of failing.

Fix by moving the check for all sources being in use to just after the
loop.

Reviewed by: kib, markj
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17976
14/11/2018
6:38 pm
base/head
garga
head/usr.sbin/ntp/ntpd
Modificado:
head/usr.sbin/ntp/ntpd/Makefile
Log:
Fix typo introduced in r340439 - s/ETN/ETC/

Reported by: jhb, yuripv
Approved by: eugen
MFC after: 3 days
X-MFC-With: 340439
Sponsored by: Rubicon Communications, LLC (Netgate)
14/11/2018
4:19 pm
base/head
garga
head/usr.sbin/ntp/ntpd
Modificado:
head/usr.sbin/ntp/ntpd/Makefile
Log:
Fix /etc/ntp permissions. According to mtree it must be 0700

Reviewed by: imp
Approved by: imp
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D17973
14/11/2018
4:18 pm
base/head
markj
head/share/man/man4
Modificado:
head/share/man/man4/Makefile
Log:
Hook mac_ntpd.4 up to the build.

PR: 232757
Submitted by: Yasuhiro KIMURA
MFC after: 3 days
14/11/2018
4:15 pm
base/head
markj
head
Modificado:
head/ObsoleteFiles.inc
Log:
Fix the path to malloc_domain.9.

Reported by: yuripv
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
14/11/2018
3:39 pm
base/head
vmaffione
in head/sys/dev: netmap virtio/network
Modificado:
head/sys/dev/netmap/if_vtnet_netmap.h
head/sys/dev/virtio/network/if_vtnet.c
head/sys/dev/virtio/network/if_vtnetvar.h
Log:
vtnet: fix netmap support

netmap(4) support for vtnet(4) was incomplete and had multiple bugs.
This commit fixes those bugs to bring netmap on vtnet in a functional state.

Changelist:
- handle errors returned by virtqueue_enqueue() properly (they were
previously ignored)
- make sure netmap XOR rest of the kernel access each virtqueue.
- compute the number of netmap slots for TX and RX separately, according to
whether indirect descriptors are used or not for a given virtqueue.
- make sure sglist are freed according to their type (mbufs or netmap
buffers)
- add support for mulitiqueue and netmap host (aka sw) rings.
- intercept VQ interrupts directly instead of intercepting them in txq_eof
and rxq_eof. This simplifies the code and makes it easier to make sure
taskqueues are not running for a VQ while it is in netmap mode.
- implement vntet_netmap_config() to cope with changes in the number of queues.

Reviewed by: bryanv
Approved by: gnn (mentor)
MFC after: 3 days
Sponsored by: Sunny Valley Networks
Differential Revision: https://reviews.freebsd.org/D17916
14/11/2018
3:23 pm
base/head
shurd
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Prevent POLA violation with TSO/CSUM offload

Ensure that any time CSUM_IP_TSO or CSUM_IP6_TSO is set that the corresponding
CSUM_IP6?_TCP / CSUM_IP flags are also set.

Rather than requireing drivers to bake-in an understanding that TSO implies
checksum offloads, make it explicit.

This change requires us to move the IFLIB_NEED_ZERO_CSUM implementation to
ensure it's zeroed for TSO.

Reported by: Jacob Keller
MFC after: 1 week
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D17801
14/11/2018
3:16 pm
base/head
shurd
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Fix leaks caused by ifc_nhwtxqs never being initialized

r333502 removed initialization of ifc_nhwtxqs, and it's not clear
there's a need to copy it into the struct iflib_ctx at all. Use
ctx->ifc_sctx->isc_ntxqs instead.

Further, iflib_stop() did not clear the last ring in the case where
isc_nfl != isc_nrxqs (such as when IFLIB_HAS_RXCQ is set). Use
ctx->ifc_sctx->isc_nrxqs here instead of isc_nfl.

Reported by: pkelsey
Reviewed by: pkelsey
MFC after: 3 days
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D17979
14/11/2018
3:15 pm
base/head
0mp
head/contrib/smbfs/smbutil
Modificado:
head/contrib/smbfs/smbutil/smbutil.1
Log:
smbutil(1): Improve mdoc formatting.

Also, make the path to the example configuration file absolute.

Reviewed by: bcr
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D17985
14/11/2018
2:26 pm
base/head
loos
in head/sys/arm: conf mv
Adicional:
head/sys/arm/mv/mv_spi.c (contents, props changed)
Modificado:
head/sys/arm/conf/ARMADA38X
head/sys/arm/conf/GENERIC
head/sys/arm/mv/files.arm7
Log:
Add the driver for the SPI controller on ARMADA38X.

Tested on Clearfog (Pro) and SG-3100.

Sponsored by: Rubicon Communications, LLC (Netgate)
14/11/2018
2:18 pm
base/head
kib
in head: lib/libc/sys share/man/man5
Modificado:
head/lib/libc/sys/getdirentries.2
head/share/man/man5/dir.5
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
head/sys/fs/cd9660/cd9660_vnops.c
head/sys/fs/devfs/devfs_vnops.c
head/sys/fs/ext2fs/ext2_lookup.c
head/sys/fs/fdescfs/fdesc_vnops.c
head/sys/fs/msdosfs/msdosfs_vnops.c
head/sys/fs/nandfs/nandfs_vnops.c
head/sys/fs/pseudofs/pseudofs_vnops.c
head/sys/fs/udf/udf_vnops.c
head/sys/ufs/ufs/ufs_vnops.c
Log:
Add d_off support for multiple filesystems.

The d_off field has been added to the dirent structure recently.
Currently filesystems don't support this feature. Support has been
added and tested for zfs, ufs, ext2fs, fdescfs, msdosfs and unionfs.
A stub implementation is available for cd9660, nandfs, udf and
pseudofs but hasn't been tested.

Motivation for this feature: our usecase is for a userspace nfs server
(nfs-ganesha) with zfs. At the moment we cache direntry offsets by
calling lseek once per entry, with this patch we can get the offset
directly from getdirentries(2) calls which provides a significant
speedup.

Submitted by: Jack Halford
Reviewed by: mckusick, pfg, rmacklem (previous versions)
Sponsored by: Gandi.net
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D17917
14/11/2018
1:06 pm
base/head
trasz
head/contrib/jemalloc/src
Modificado:
head/contrib/jemalloc/src/extent.c
Log:
Pick 57553c3b1a5592dc4c03f3c6831d9b794e523865 from upstream:

Avoid touching all pages in extent_recycle for debug build.

We may have a large number of pages with *zero set (since they are populated on
demand). Only check the first page to avoid paging in all of them.

This makes it easy to compare performance with and without 'retain:true'.

Discussed with: jasone
Obtained from: Qi Wang
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
14/11/2018
9:06 am
base/head
yuripv
head/lib/libc/locale
Modificado:
head/lib/libc/locale/c16rtomb.c
head/lib/libc/locale/c32rtomb.c
head/lib/libc/locale/mbrtoc16.c
head/lib/libc/locale/mbrtoc32.c
Log:
Fix WITHOUT_ICONV build after r340276.

Reported by: olivier
Approved by: kib (mentor, implicit)
14/11/2018
8:45 am
base/head
se
in head: . usr.sbin/ctm/ctm
Modificado:
head/UPDATING
head/usr.sbin/ctm/ctm/ctm.1
head/usr.sbin/ctm/ctm/ctm.c
Log:
Prepare move of ctm from base to a port (misc/ctm) by:
- Adding a note to UPDATING
- Adding a note to the history section of the manpage ctm.1
- Adding a message printed to STDERR to the ctm program

This version is meant for release in FreeBSD-12.0 and should remain in
FreeBSD-12 over its life-time.

A follow-up commit will remove ctm from -CURRENT after the MFC to 12
has happened.

Approved by: imp, rgrimes, bcr (man-page)
MFC after: 3 days
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D17969
14/11/2018
4:50 am
base/head
cem
head/sys/dev/amdtemp
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id E10F611094F0;
Wed, 14 Nov 2018 04:50:30 +0000 (UTC) (envelope-from cem@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 644058CFEF;
Wed, 14 Nov 2018 04:50:30 +0000 (UTC) (envelope-from cem@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 403921A489;
Wed, 14 Nov 2018 04:50:30 +0000 (UTC) (envelope-from cem@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAE4oURd043646;
Wed, 14 Nov 2018 04:50:30 GMT (envelope-from cem@FreeBSD.org)
Received: (from cem@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAE4oUWW043645;
Wed, 14 Nov 2018 04:50:30 GMT (envelope-from cem@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org
using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
14/11/2018
3:42 am
base/head
cem
in head/sys/dev: amdsmn amdtemp
Modificado:
head/sys/dev/amdsmn/amdsmn.c
head/sys/dev/amdtemp/amdtemp.c
Log:
amdsmn(4)/amdtemp(4): Attach to Ryzen 2 hostbridges

As reported, tested, and patch supplied by Johannes.

There may be future work to do to support multiple sensors, but for now, any
sensor at all is a strict improvement for Ryzen 2 systems.

PR: 228480
Submitted by: Johannes Lundberg (earlier version)
Reported by: deischen@, Johannes, and numerous others
MFC after: 3.72 days
14/11/2018
12:46 am
base/head
brooks
in head/sys: compat/freebsd32 kern
Eliminado:
head/sys/compat/freebsd32/capabilities.conf
Modificado:
head/sys/compat/freebsd32/Makefile
head/sys/compat/freebsd32/syscalls.conf
head/sys/kern/makesyscalls.sh
Log:
Use the main capabilities.conf for freebsd32.

Allow the location of capabilities.conf to be configured.

Also allow a per-abi syscall prefix to be configured with the
abi_func_prefix syscalls.conf variable and check syscalls against
entries in capabilities.conf with and without the prefix amended.

Take advantage of these two features to allow use shared capabilities.conf
between the default syscall vector and the freebsd32 compatability
layer. We've been inconsistent about keeping the two in sync as
evidenced by the bugs fixed in r340294. This eliminates that problem
going forward.

Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17932
14/11/2018
12:33 am
base/head
glebius
head/sys/kern
Modificado:
head/sys/kern/kern_thread.c
Log:
Fix build on some architectures after r340413. On amd64 epoch.h
appeared to be included implicitly.
14/11/2018
12:21 am
base/head
cem
head/usr.sbin/cpucontrol
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 80C3F1101F1E;
Wed, 14 Nov 2018 00:21:51 +0000 (UTC) (envelope-from cem@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 01CD082FC6;
Wed, 14 Nov 2018 00:21:51 +0000 (UTC) (envelope-from cem@FreeBSD.org)
Received: from repo.freebsd.org (repo.freebsd.org
[IPv6:2610:1c1:1:6068::e6a:0])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client did not present a certificate)
by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D6F3B17A40;
Wed, 14 Nov 2018 00:21:50 +0000 (UTC) (envelope-from cem@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAE0LoB5008218;
Wed, 14 Nov 2018 00:21:50 GMT (envelope-from cem@FreeBSD.org)
Received: (from cem@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAE0LnWL008210;
Wed, 14 Nov 2018 00:21:49 GMT (envelope-from cem@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: cem set sender to cem@FreeBSD.org
using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
14/11/2018
12:21 am
base/head
mckusick
head/sbin/dump
Modificado:
head/sbin/dump/dump.h
head/sbin/dump/main.c
head/sbin/dump/traverse.c
Log:
Fix build break from dump incompatibility I introduced in -r340411

Pointy-hat to: mckusick
14/11/2018
12:12 am
base/head
mmacy
head/sys/kern
Modificado:
head/sys/kern/subr_epoch.c
Log:
epoch(9) revert r340097 - no longer a need for multiple sections per cpu

I spoke with Samy Bahra and recent changes to CK to make ck_epoch_call and
ck_epoch_poll not modify the record have eliminated the need for this.
13/11/2018
11:57 pm
base/head
glebius
head/sys/kern
Modificado:
head/sys/kern/subr_epoch.c
Log:
style(9), mostly adjusting overly long lines.
13/11/2018
11:53 pm
base/head
imp
head/sys/dev/tws
Modificado:
head/sys/dev/tws/tws.c
head/sys/dev/tws/tws_cam.c
head/sys/dev/tws/tws_services.h
Log:
Remove support for versions prior to FreeBSD 7.0 from twa(4)

This was for pre-7.0 CAM support. Neither the CAM nor the busdma
changes over the years have not been ifdef'd. The code cannot build
on 6.x anymore. Support for 6.4 ended in 2010, so remove them.
13/11/2018
11:45 pm
base/head
glebius
head/sys/kern
Modificado:
head/sys/kern/genoffset.c
head/sys/kern/subr_epoch.c
Log:
With epoch not inlined, there is no point in using _lite KPI. While here,
remove some unnecessary casts.
13/11/2018
11:44 pm
base/head
glebius
head/sbin/dump
Modificado:
head/sbin/dump/dump.h
head/sbin/dump/main.c
head/sbin/dump/traverse.c
Log:
Plug build break after r340411.
13/11/2018
11:20 pm
base/head
glebius
in head/sys: kern sys
Modificado:
head/sys/kern/subr_epoch.c
head/sys/sys/epoch.h
Log:
The dualism between epoch_tracker and epoch_thread is fragile and
unnecessary. So, expose CK types to kernel and use a single normal
structure for epoch_tracker.

Reviewed by: jtl, gallatin
13/11/2018
11:08 pm
base/head
mmacy
head/sys/amd64/conf
Modificado:
head/sys/amd64/conf/NOTES
Log:
Add ZFS to amd64 NOTES to catch future breakage of static linking
13/11/2018
10:58 pm
base/head
glebius
in head/sys: kern net sys
Modificado:
head/sys/kern/kern_thread.c
head/sys/kern/subr_epoch.c
head/sys/net/if.c
head/sys/net/if_var.h
head/sys/sys/epoch.h
head/sys/sys/proc.h
Log:
For compatibility KPI functions like if_addr_rlock() that used to have
mutexes but now are converted to epoch(9) use thread-private epoch_tracker.
Embedding tracker into ifnet(9) or ifnet derived structures creates a non
reentrable function, that will fail miserably if called simultaneously from
two different contexts.
A thread private tracker will provide a single tracker that would allow to
call these functions safely. It doesn't allow nested call, but this is not
expected from compatibility KPIs.

Reviewed by: markj
13/11/2018
10:41 pm
base/head
imp
head/sys/dev/nvme
Modificado:
head/sys/dev/nvme/nvme_ns.c
Log:
Use atomic_load_acq_int() here too to poll done, ala r328521
13/11/2018
9:40 pm
base/head
mckusick
in head: lib/libufs sbin/clri sbin/ffsinfo sbin/fsck_ffs
Adicional:
head/lib/libufs/getinode.3 (contents, props changed)
Modificado:
head/lib/libufs/Makefile
head/lib/libufs/inode.c
head/lib/libufs/libufs.h
head/sbin/clri/clri.c
head/sbin/ffsinfo/ffsinfo.c
head/sbin/fsck_ffs/dir.c
head/sbin/fsck_ffs/fsck.h
head/sbin/fsck_ffs/gjournal.c
head/sbin/fsck_ffs/inode.c
head/sbin/fsck_ffs/main.c
head/sbin/fsck_ffs/pass5.c
head/sbin/fsirand/fsirand.c
head/sbin/growfs/growfs.c
head/sbin/newfs/mkfs.c
head/sbin/tunefs/tunefs.c
head/sys/ufs/ffs/ffs_extern.h
head/sys/ufs/ffs/ffs_inode.c
head/sys/ufs/ffs/ffs_snapshot.c
head/sys/ufs/ffs/ffs_softdep.c
head/sys/ufs/ffs/ffs_subr.c
head/sys/ufs/ffs/ffs_vfsops.c
head/tools/diag/prtblknos/main.c
Log:
In preparation for adding inode check-hashes, clean up and
document the libufs interface for fetching and storing inodes.
The undocumented getino / putino interface has been replaced
with a new getinode / putinode interface.

Convert the utilities that had been using the undocumented
interface to use the new documented interface.

No functional change (as for now the libufs library does not
do inode check-hashes).

Reviewed by: kib
Tested by: Peter Holm
Sponsored by: Netflix
13/11/2018
9:29 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_mutex.c
head/sys/kern/kern_rwlock.c
Log:
locks: plug warnings about unitialized variables

They only showed up after I redefined LOCKSTAT_ENABLED to 0.

doing_lockprof in mutex.c is a real (but harmless) bug. Should the
value be non-zero it will do checks for lock profiling which would
otherwise be skipped.

state in rwlock.c is a wart from the compiler, the value can't be
used if lock profiling is not enabled.

Sponsored by: The FreeBSD Foundation
13/11/2018
8:48 pm
base/head
vangyzen
head/sys/kern
Modificado:
head/sys/kern/kern_rmlock.c
head/sys/kern/kern_rwlock.c
head/sys/kern/kern_sx.c
Log:
Make no assertions about lock state when the scheduler is stopped.

Change the assert paths in rm, rw, and sx locks to match the lock
and unlock paths. I did this for mutexes in r306346.

Reported by: Travis Lane
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
13/11/2018
8:07 pm
base/head
markj
in head: lib/libnv lib/libnv/tests sys/contrib/libnv
Modificado:
head/lib/libnv/common_impl.h
head/lib/libnv/msgio.c
head/lib/libnv/tests/nvlist_send_recv_test.c
head/sys/contrib/libnv/nvpair.c
Log:
Ensure that libnv can be used when kern.trap_enotcap=1.

libnv used fcntl(fd, F_GETFL) to test whether fd is a valid file
descriptor. Aside from being racy, this check requires CAP_FCNTL
rights on fd. Instead, use fcntl(fd, F_GETFD), which does not require
any capability rights.

Also remove some redundant fd_is_valid() checks to avoid extra system
calls; in many cases we were performing this check immediately before
dup()ing the descriptor.

Reviewed by: cem, oshogbo (previous version)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17963
13/11/2018
7:53 pm
base/head
gjb
in head: . release/scripts
Modificado:
head/Makefile.inc1
head/release/scripts/make-manifest.sh
Log:
In followup to r340406, remove doc from the EXTRA_DISTRIBUTIONS
list and remaining references from the script used to create the
MANIFEST file used by bsdinstall(8).

No MFC is planned at this time.

Sponsored by: The FreeBSD Foundation
13/11/2018
7:51 pm
base/head
gjb
head/release/scripts
Modificado:
head/release/scripts/make-manifest.sh
Log:
The roff ascii.gz documentation installed to /usr/share/doc
was removed in r318881 when roff was removed from the base
system.

This results in the doc.txz distribution set containing a
single directory (./) which is empty.

Remove the "Additional documentation" option from the menu
selection of bsdinstall(8), as the plain-text documentation
installed in /usr/share/doc is installed as part of the
packageworld target.

The doc entry has not been removed from EXTRA_DISTRIBUTIONS
in Makefile.inc1, in case its removal triggers an issue with
freebsd-update(8), which is currently aware of the world/doc
component, so the empty doc.txz continues to be created as
a precaution.

Noticed by: rgrimes
MFC after: 2 days
MFC before: 12.0-RC1
Sponsored by: The FreeBSD Foundation
13/11/2018
7:44 pm
base/head
markj
head/sys/vm
Modificado:
head/sys/vm/uma_core.c
head/sys/vm/uma_int.h
Log:
Add accounting to per-domain UMA full bucket caches.

In particular, track the current size of the cache and maintain an
estimate of its working set size. This will be used to decide how
much to shrink various caches when the kernel attempts to reclaim
pages. As a secondary effect, it makes statistics aggregation (done
by, e.g., vmstat -z) cheaper since sysctl_vm_zone_stats() no longer
needs to iterate over lists of cached buckets.

Discussed with: alc, glebius, jeff
Tested by: pho (previous version)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D16666
13/11/2018
7:02 pm
base/head
glebius
in head/sys: kern sys
Eliminado:
head/sys/sys/epoch_private.h
Modificado:
head/sys/kern/subr_epoch.c
head/sys/sys/epoch.h
Log:
Uninline epoch(9) entrance and exit. There is no proof that modern
processors would benefit from avoiding a function call, but bloating
code. In fact, clang created an uninlined real function for many
object files in the network stack.

- Move epoch_private.h into subr_epoch.c. Code copied exactly, avoiding
any changes, including style(9).
- Remove private copies of critical_enter/exit.

Reviewed by: kib, jtl
Differential Revision: https://reviews.freebsd.org/D17879
13/11/2018
6:40 pm
base/head
markj
in head/sys: kern sys
Modificado:
head/sys/kern/subr_blist.c
head/sys/sys/blist.h
Log:
Allow allocations across meta boundaries.

Remove restrictions that prevent allocation requests to cross the
boundary between two meta nodes.

Replace the bmu_avail field in meta nodes with a bitmap that identifies
which subtrees have some free memory, and iterate over the nonempty
subtrees only in blst_meta_alloc. If free memory is scarce, this should
make searching for it faster.

Put the code for handling the next-leaf allocation in a separate
function. When taking blocks from the next leaf empties the leaf, be
sure to clear the appropriate bit in its parent, and so on, up to the
least-common ancestor of this leaf and the next.

Eliminate special terminator nodes, and rely instead on the fact that
there is a 0-bit at the end of the bitmask at the root of the tree that
will stop a meta_alloc search, or a next-leaf search, before the search
falls off the end of the tree. Make sure that the tree is big enough to
have space for that 0-bit.

Eliminate special all-free indicators. Lazy initialization of subtrees
stands in the way of having an allocation span a meta-node boundary, so
a subtree of all free blocks is not treated specially. Subtrees of
all-allocated blocks are still recognized by looking at the bitmask at
the root and finding 0.

Don't print all-allocated subtrees. Do print the bitmasks for meta
nodes, when tree-printing.

Submitted by: Doug Moore
Reviewed by: alc
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D12635
13/11/2018
6:20 pm
base/head
markj
head/sys/riscv/include
Modificado:
head/sys/riscv/include/cpu.h
Log:
RISC-V: Implement get_cyclecount(9).

Add the missing implementation for get_cyclecount(9) on RISC-V by
reading the cycle CSR.

Submitted by: Mitchell Horne
Reviewed by: jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17953
13/11/2018
6:12 pm
base/head
markj
head/sys/riscv/include
Modificado:
head/sys/riscv/include/cpufunc.h
head/sys/riscv/include/riscvreg.h
Log:
RISC-V: Add macros for reading performance counter CSRs.

The RISC-V spec defines several performance counter CSRs such as: cycle,
time, instret, hpmcounter(3...31). They are defined to be 64-bits wide
on all RISC-V architectures. On RV64 and RV128 they can be read from a
single CSR. On RV32, additional CSRs (given the suffix "h") are present
which contain the upper 32 bits of these counters, and must be read as
well. (See section 2.8 in the User ISA Spec for full details.)

This change adds macros for reading these values safely on any RISC-V
ISA length. Obviously we aren't supporting anything other than RV64
at the moment, but this ensures we won't need to change how we read
these values if we ever do.

Submitted by: Mitchell Horne
Reviewed by: jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17952
13/11/2018
3:28 pm
base/head
andrew
head/lib/csu/common
Modificado:
head/lib/csu/common/crtbegin.c
Log:
Run __cxa_finalize in shared objects in the destructor path.

When we have .dtors call them before .dtor handling, otherwise call from
a destructor.

PR: 233056
MFC with: r339738
Sponsored by: DARPA, AFRL
13/11/2018
1:57 pm
base/head
eugen
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw.8
Log:
Fix part of the SYNOPSIS documenting LIST OF RULES AND PREPROCESSING
that is still referred as last section of the SYNOPSIS later
but was erroneously situated in the section IN-KERNEL NAT.

MFC after: 1 month
13/11/2018
9:19 am
base/head
kbowling
head/sys/powerpc/conf
Modificado:
head/sys/powerpc/conf/GENERIC64
Log:
powerpc64: reduce GENERIC64 diff versus amd64 GENERIC

Reviewed by: jhibbits
Approved by: timur (mentor)
Differential Revision: https://reviews.freebsd.org/D17515
13/11/2018
4:34 am
base/head
kevans
head/sys/kern
Modificado:
head/sys/kern/kern_environment.c
Log:
Add dynamic_kenv assertion to init_static_kenv

Both to formally document the requirement that this not be called after the
dynamic kenv is setup, and to perhaps help static analyzers figure out
what's going on. While calling init_static_kenv this late isn't fatal, there
are some caveats that the caller should be aware of:

- Late calls are effectively a no-op, as far as default FreeBSD is
concerned, as everything will switch to searching the dynamic kenv once it's
available.

- Each of the kern_getenv calls will leak memory, as it's assumed that
these are searching static environment and allocations will not be made.

As such, this usage is not sensible and should be detected.
13/11/2018
1:30 am
base/head
emaste
head/contrib/elftoolchain/strings
Modificado:
head/contrib/elftoolchain/strings/strings.c
Log:
Revert r340385, strings capability mode

This needs to be reworked for bootstrapping.
12/11/2018
10:18 pm
base/head
kevans
in head/sys/dts: . arm arm/overlays arm64 arm64/overlays
Adicional:
head/sys/dts/arm/Makefile.inc (contents, props changed)
head/sys/dts/arm64/Makefile.inc (contents, props changed)
Modificado:
head/sys/dts/Makefile.inc
head/sys/dts/arm/Makefile
head/sys/dts/arm/overlays/Makefile
head/sys/dts/arm64/Makefile
head/sys/dts/arm64/overlays/Makefile
head/sys/dts/mips/Makefile
head/sys/dts/powerpc/Makefile
Log:
Fix test-dts{,o} targets

There were two main problems here:

1.) sys/dts/Makefile.inc is not included from various */overlays directories
by default, only ../Makefile.inc
2.) When shelling out for DTS/DTSO, cwd != .CURDIR, so enumeration always
failed

These changes allow make test-dts and make test-dtso to function in their
respective directories.

Reviewed by: manu
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17961
12/11/2018
9:01 pm
base/head
zeising
in head/sys: amd64/conf i386/conf
Modificado:
head/sys/amd64/conf/GENERIC
head/sys/amd64/conf/MINIMAL
head/sys/i386/conf/GENERIC
head/sys/i386/conf/MINIMAL
Log:
Add evdev support to amd64 and i386 kernels

Include evdev support and drivers in the amd64 and i386 GENERIC and MINIMAL
kernels. Evdev is used by X and wayland to handle input devices, and this
change, together with upcomming changes in ports will make us handle input
devices better in graphical UIs.

Reviewed by: wulf, bapt, imp
Approved by: imp
Differential Revision: https://reviews.freebsd.org/D17912
12/11/2018
8:44 pm
base/head
emaste
in head: lib share/mk targets/pseudo/userland/lib
Modificado:
head/lib/Makefile
head/share/mk/bsd.linker.mk
head/targets/pseudo/userland/lib/Makefile.depend
Log:
retire LINKER_FEATURES filter flag

And build libdl unconditionally. All supported FreeBSD linkers accept
-F / --filter so there is no need to test for support.

Discussed with: kib
Sponsored by: The FreeBSD Foundation
12/11/2018
8:38 pm
base/head
emaste
head/contrib/elftoolchain/strings
Modificado:
head/contrib/elftoolchain/strings/strings.c
Log:
strings: enter capability mode when operating on stdin

Reviewed by: oshogbo
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
12/11/2018
7:17 pm
base/head
kib
in head/sys: amd64/amd64 x86/include x86/x86
Modificado:
head/sys/amd64/amd64/machdep.c
head/sys/x86/include/x86_var.h
head/sys/x86/x86/identcpu.c
Log:
Apply fix to un-cripple max cpu id on BSP earlier.

We need to know actual value for the standard extended features before
ifuncs are resolved.

Reported and tested by: madpilot
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
12/11/2018
7:12 pm
base/head
kib
head/lib/libc
Modificado:
head/lib/libc/Versions.def
Log:
Create namespace for the symbols added during 13-CURRENT cycle.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
12/11/2018
6:43 pm
base/head
oshogbo
head/usr.bin/wc
Modificado:
head/usr.bin/wc/wc.c
Log:
s/caph_enter_capser/caph_enter_casper/g

Reported by: npn
12/11/2018
6:37 pm
base/head
oshogbo
head/lib/libcasper/services/cap_fileargs
Modificado:
head/lib/libcasper/services/cap_fileargs/cap_fileargs.c
Log:
Fix typo in the comparison.
This fix build with gcc.

Reported by: jenkins
12/11/2018
6:34 pm
base/head
oshogbo
head/usr.bin/wc
Modificado:
head/usr.bin/wc/wc.c
Log:
s/caph_enter_with_casper/caph_enter_casper/

Reported by: npn
12/11/2018
6:01 pm
base/head
oshogbo
head/usr.bin/wc
Modificado:
head/usr.bin/wc/wc.c
Log:
wc: We should sandbox wc only if Capers is available.
12/11/2018
5:59 pm
base/head
oshogbo
head/usr.bin/head
Modificado:
head/usr.bin/head/Makefile
head/usr.bin/head/head.c
Log:
head: sandbox using capsicum

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D14409
12/11/2018
5:57 pm
base/head
jch
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_netmap.c
Log:
cxgbe/netmap: Fix cxgbe netmap when interface is DOWN

A kernel panic can occur if the cxgbe interface is DOWN
when activating netmap. This patch prevents the driver
from freeing up cxgbe netmap resources when they have not
been allocated.

Submitted by: Nicolas Witkowski
Reviewed by: np
MFC after: 1 week
Sponsored by: Verisign, Inc.
Differential Revision: https://reviews.freebsd.org/D17802
12/11/2018
5:47 pm
base/head
oshogbo
head/usr.bin/wc
Modificado:
head/usr.bin/wc/Makefile
head/usr.bin/wc/wc.c
Log:
wc: sandbox wc using capsicum

Reviewed by: AllanJude, emaste
Differential Revision: https://reviews.freebsd.org/D14409
12/11/2018
5:40 pm
base/head
oshogbo
in head: lib/libcasper/services
Adicional:
head/lib/libcasper/services/cap_fileargs/
head/lib/libcasper/services/cap_fileargs/Makefile (contents, props changed)
head/lib/libcasper/services/cap_fileargs/cap_fileargs.3 (contents, props changed)
head/lib/libcasper/services/cap_fileargs/cap_fileargs.c (contents, props changed)
head/lib/libcasper/services/cap_fileargs/cap_fileargs.h (contents, props changed)
Modificado:
head/lib/libcasper/services/Makefile
head/share/mk/src.libnames.mk
Log:
libcasper: introduce cap_fileargs service

cap_fileargs is a Casper service which helps to sandbox applications that need
access to the filesystem namespace. The main purpose of the service is to make
easy to capsicumize applications that works on multiple files passed in argv.

We have a couple example of using it but we still treat this service as an
experimental one.

Reviewed by: emsate (previous version), jonathan (partially)
Discussed with: many
Differential Revision: https://reviews.freebsd.org/D14407
12/11/2018
5:10 pm
base/head
kevans
head/sys/conf
Modificado:
head/sys/conf/dtb.mk
Log:
dtb.mk: Fix passing of ECHO to make_dtb{,o}.sh
12/11/2018
4:55 pm
base/head
brooks
head
Modificado:
head/Makefile.libcompat
Log:
Use ...-freebsd13.0 in -target strings.

Reported by: Mark Millard
12/11/2018
4:44 pm
base/head
oshogbo
head/usr.bin/head
Modificado:
head/usr.bin/head/head.c
Log:
head: fix style nits

No functional change intended.

Reviewed by: emaste
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D14498
12/11/2018
3:59 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/kern_jail.c
Log:
Allow set ether/vlan PCP operation from the VNET jails.

The vlan interfaces can be created from vnet jails, it seems, so it
sounds logical to allow pcp configuration as well.

Reviewed by: bz, hselasky (previous version)
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D17777
12/11/2018
3:52 pm
base/head
oshogbo
in head: . contrib/tcpdump contrib/traceroute
Modificado:
head/ObsoleteFiles.inc
head/contrib/tcpdump/tcpdump.c
head/contrib/traceroute/traceroute.c
head/lib/libcasper/services/cap_dns/Makefile
head/lib/libcasper/services/cap_dns/cap_dns.3
head/lib/libcasper/services/cap_dns/cap_dns.c
head/lib/libcasper/services/cap_dns/tests/dns_test.c
head/sbin/ping/ping.c
Log:
libcasper: ange the name of limits in cap_dns so the intentions are obvious.

Reported by: pjd
MFC after: 3 weeks
12/11/2018
1:26 pm
base/head
tuexen
head/usr.bin/systat
Modificado:
head/usr.bin/systat/fetch.c
head/usr.bin/systat/icmp6.c
head/usr.bin/systat/ip.c
head/usr.bin/systat/ip6.c
head/usr.bin/systat/tcp.c
head/usr.bin/systat/zarc.c
Log:
Fix printing of 64-bit counters on 32-bit ppc platforms.

Several statistic counters are uint64_t values and are printed by systat
using %lu. This results in displaying wrong numbers. Use PRIu64 instead.
While there, print variables of size_t using %zd.

MFC after:i 3 days
Differential Revision: https://reviews.freebsd.org/D17838
12/11/2018
11:20 am
base/head
ae
in head: sbin/ipfw sys/netinet6 sys/netpfil/ipfw/nptv6
Modificado:
head/sbin/ipfw/ipfw.8
head/sbin/ipfw/ipfw2.h
head/sbin/ipfw/nptv6.c
head/sys/netinet6/ip_fw_nptv6.h
head/sys/netpfil/ipfw/nptv6/nptv6.c
head/sys/netpfil/ipfw/nptv6/nptv6.h
Log:
Add ability to use dynamic external prefix in ipfw_nptv6 module.

Now an interface name can be specified for nptv6 instance instead of
ext_prefix. The module will track if_addr_ext events and when suitable
IPv6 address will be added to specified interface, it will be configured
as external prefix. When address disappears instance becomes unusable,
i.e. it doesn't match any packets.

Reviewed by: 0mp (manpages)
Tested by: Dries Michiels
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17765
12/11/2018
7:14 am
base/head
delphij
head/usr.bin/uuencode
Modificado:
head/usr.bin/uuencode/uuencode.c
Log:
Make outfile constant.

MFC after: 2 weeks
12/11/2018
5:24 am
base/head
cem
head/sys/kern
Modificado:
head/sys/kern/kern_mbuf.c
Log:
netdump: Fix netdumping with INVARIANTS kernels

Correct boneheaded assertion I added in r339501. Mea culpa.

The intent is to notice when an M_WAITOK zone allocation would fail during
netdump, not to prevent all use of mbufs during netdump.

Reviewed by: markj
X-MFC-With: r339501
Differential Revision: https://reviews.freebsd.org/D17957
11/11/2018
1:41 pm
base/head
yuripv
head/share/timedef
Modificado:
head/share/timedef/de_AT.ISO8859-15.src
head/share/timedef/de_AT.UTF-8.src
head/share/timedef/de_DE.ISO8859-15.src
head/share/timedef/de_DE.UTF-8.src
Log:
Use blank am_pm and t_fmt_ampm for de_AT and de_DE locales as apparently
they use 24-hour clock notation. The visible change is that w(1) now
uses 24-hour clock format as it checks for t_fmt_ampm presence.

PR: 231771
Submitted by: Christoph Sch├Ânweiler
Reviewed by: bapt
Approved by: kib (mentor, implicit)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17945
11/11/2018
1:46 am
base/head
kib
head/lib/libc/sys
Modificado:
head/lib/libc/sys/access.2
head/lib/libc/sys/chflags.2
head/lib/libc/sys/chmod.2
head/lib/libc/sys/chown.2
head/lib/libc/sys/link.2
head/lib/libc/sys/open.2
head/lib/libc/sys/stat.2
head/lib/libc/sys/unlink.2
head/lib/libc/sys/utimensat.2
Log:
First draft of documentation for AT/O_BENEATH handling of the absolute
paths.

It was decided that committing the code and drafting of the man page
update is better than allowing the code to rot until wordsmithing
happens.

Reviewed by: jilles (previous version)
Discussed with: brooks, jilles, emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D17714
11/11/2018
12:57 am
base/head
trasz
head/share/man/man5
Modificado:
head/share/man/man5/nsswitch.conf.5
Log:
Update nsswitch.conf(5) man page to make it clear additional sources
might be provided by third party software.

Reviewed by: bcr
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17934
11/11/2018
12:39 am
base/head
vangyzen
head/usr.sbin/periodic/etc/daily
Modificado:
head/usr.sbin/periodic/etc/daily/440.status-mailq
Log:
Fix daily mailq script for Postfix and daily_show_success="NO"

Exit with a zero status when Postfix reports "Mail queue is empty" so this
section won't appear in the report at all when daily_show_success="NO".

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
11/11/2018
12:21 am
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/sysv_shm.c
Log:
Remove one-use variable.

This also removes a lot of #ifdefs and cleans up a warning when the
AUDIT kernel option is defined, but neither KDTRACE_HOOKS nor MAC are.

Reported and tested by: danger
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
11/11/2018
12:04 am
base/head
kib
in head/sys: kern sys
Modificado:
head/sys/kern/vfs_lookup.c
head/sys/sys/namei.h
Log:
Allow absolute paths for O_BENEATH.

The path must have a tail which does not escape starting/topping
directory. The documentation will come shortly, see the man pages
commit message for the reason of separate commit.

Reviewed by: jilles (previous version)
Discussed with: emaste
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D17714
10/11/2018
11:49 pm
base/head
trasz
head/share/man/man4
Modificado:
head/share/man/man4/ddb.4
Log:
Random tweaks to ddb(4) manual page.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
10/11/2018
11:07 pm
base/head
trasz
in head: lib/libc/net share/man/man5
Modificado:
head/lib/libc/net/nsdispatch.c
head/share/man/man5/nsswitch.conf.5
Log:
Don't call stat(2) on nsswitch.conf(5) every time nsdispatch(3)
and dependent functions (eg getpwname(3)) get called. This can
improve performance of binaries that perform a lot of name
lookups, such as gssd(8). It also matches documented behaviour
of Linux and Solaris.

The old code is left in place, should anyone need it, guarded
by #ifdef NS_REREAD_CONF.

Reviewed by: imp, bcr
MFC after: 2 weeks
Relnotes: yes
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17934
10/11/2018
10:14 pm
base/head
wulf
head/sys/dev/usb/input
Modificado:
head/sys/dev/usb/input/uhid.c
head/sys/dev/usb/input/wmt.c
Log:
wmt(4): Add PNP record so it could be picked by devd/devmatch.

Fix uhid(4) conflict with blacklisting of multitouch HID-usages
in uhid(4) probe handler.

Reviewed by: imp
No objections from: hps
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17689
10/11/2018
9:02 pm
base/head
manu
in head/sys/gnu/dts: arm arm64/allwinner arm64/altera
Adicional:
head/sys/gnu/dts/arm/am335x-osd3358-sm-red.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/am335x-osd3358-sm-red.dts
head/sys/gnu/dts/arm/am335x-sancloud-bbe.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/am335x-sancloud-bbe.dts
head/sys/gnu/dts/arm/armada-388-helios4.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/armada-388-helios4.dts
head/sys/gnu/dts/arm/at91-dvk_som60.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-dvk_som60.dts
head/sys/gnu/dts/arm/at91-dvk_su60_somc.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-dvk_su60_somc.dtsi
head/sys/gnu/dts/arm/at91-dvk_su60_somc_lcm.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-dvk_su60_somc_lcm.dtsi
head/sys/gnu/dts/arm/at91-gatwick.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-gatwick.dts
head/sys/gnu/dts/arm/at91-som60.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-som60.dtsi
head/sys/gnu/dts/arm/at91-wb45n.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-wb45n.dts
head/sys/gnu/dts/arm/at91-wb45n.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-wb45n.dtsi
head/sys/gnu/dts/arm/at91-wb50n.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-wb50n.dts
head/sys/gnu/dts/arm/at91-wb50n.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/at91-wb50n.dtsi
head/sys/gnu/dts/arm/bcm2835-rpi-cm1-io1.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/bcm2835-rpi-cm1-io1.dts
head/sys/gnu/dts/arm/bcm2835-rpi-cm1.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/bcm2835-rpi-cm1.dtsi
head/sys/gnu/dts/arm/gemini-sl93512r.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/gemini-sl93512r.dts
head/sys/gnu/dts/arm/gr-peach-audiocamerashield.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/gr-peach-audiocamerashield.dtsi
head/sys/gnu/dts/arm/imx31-lite.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx31-lite.dts
head/sys/gnu/dts/arm/imx51-zii-scu2-mezz.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx51-zii-scu2-mezz.dts
head/sys/gnu/dts/arm/imx51-zii-scu3-esb.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx51-zii-scu3-esb.dts
head/sys/gnu/dts/arm/imx53-kp-ddc.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx53-kp-ddc.dts
head/sys/gnu/dts/arm/imx53-kp-hsc.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx53-kp-hsc.dts
head/sys/gnu/dts/arm/imx53-kp.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx53-kp.dtsi
head/sys/gnu/dts/arm/imx6dl-icore-mipi.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx6dl-icore-mipi.dts
head/sys/gnu/dts/arm/imx6sll-evk.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx6sll-evk.dts
head/sys/gnu/dts/arm/imx6sll-pinfunc.h
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx6sll-pinfunc.h
head/sys/gnu/dts/arm/imx6sll.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx6sll.dtsi
head/sys/gnu/dts/arm/imx6ul-ccimx6ulsbcexpress.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx6ul-ccimx6ulsbcexpress.dts
head/sys/gnu/dts/arm/imx6ul-ccimx6ulsom.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/imx6ul-ccimx6ulsom.dtsi
head/sys/gnu/dts/arm/keystone-k2g-netcp.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/keystone-k2g-netcp.dtsi
head/sys/gnu/dts/arm/omap4-l4.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/omap4-l4.dtsi
head/sys/gnu/dts/arm/r9a06g032-rzn1d400-db.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/r9a06g032-rzn1d400-db.dts
head/sys/gnu/dts/arm/r9a06g032.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/r9a06g032.dtsi
head/sys/gnu/dts/arm/s5pv210-aries.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/s5pv210-aries.dtsi
head/sys/gnu/dts/arm/s5pv210-fascinate4g.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/s5pv210-fascinate4g.dts
head/sys/gnu/dts/arm/s5pv210-galaxys.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/s5pv210-galaxys.dts
head/sys/gnu/dts/arm/tegra20-colibri-iris.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/tegra20-colibri-iris.dts
head/sys/gnu/dts/arm/tegra20-colibri.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/tegra20-colibri.dtsi
head/sys/gnu/dts/arm/vf610-zii-cfu1.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/vf610-zii-cfu1.dts
head/sys/gnu/dts/arm/vf610-zii-ssmb-spu3.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/vf610-zii-ssmb-spu3.dts
head/sys/gnu/dts/arm/zynq-zturn.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm/zynq-zturn.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-amarula-relic.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/allwinner/sun50i-a64-amarula-relic.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-pinebook.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/allwinner/sun50i-a64-pinebook.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxl-s805x-p241.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/amlogic/meson-gxl-s805x-p241.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxl-s905w-p281.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/amlogic/meson-gxl-s905w-p281.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxl-s905w-tx3-mini.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/amlogic/meson-gxl-s905w-tx3-mini.dts
head/sys/gnu/dts/arm64/broadcom/stingray/bcm958802a802x.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/broadcom/stingray/bcm958802a802x.dts
head/sys/gnu/dts/arm64/broadcom/stingray/stingray-board-base.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/broadcom/stingray/stingray-board-base.dtsi
head/sys/gnu/dts/arm64/broadcom/stingray/stingray-pcie.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/broadcom/stingray/stingray-pcie.dtsi
head/sys/gnu/dts/arm64/mediatek/mt6797-x20-dev.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/mediatek/mt6797-x20-dev.dts
head/sys/gnu/dts/arm64/qcom/pm8005.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/qcom/pm8005.dtsi
head/sys/gnu/dts/arm64/qcom/pm8998.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/qcom/pm8998.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3399-ficus.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/rockchip/rk3399-ficus.dts
head/sys/gnu/dts/arm64/rockchip/rk3399-gru-bob.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/rockchip/rk3399-gru-bob.dts
head/sys/gnu/dts/arm64/rockchip/rk3399-gru-chromebook.dtsi
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/rockchip/rk3399-gru-chromebook.dtsi
head/sys/gnu/dts/arm64/ti/
- copied from r340335, vendor/device-tree/dist/src/arm64/ti/
head/sys/gnu/dts/arm64/xilinx/avnet-ultra96-rev1.dts
- copied unchanged from r340335, vendor/device-tree/dist/src/arm64/xilinx/avnet-ultra96-rev1.dts
Eliminado:
head/sys/gnu/dts/arm/exynos4412-tmu-sensor-conf.dtsi
head/sys/gnu/dts/arm/exynos5420-tmu-sensor-conf.dtsi
head/sys/gnu/dts/arm/mt7623n-rfb-nand.dts
head/sys/gnu/dts/arm/mt7623n-rfb.dtsi
head/sys/gnu/dts/arm/tegra20-colibri-512.dtsi
head/sys/gnu/dts/arm/tegra20-iris-512.dts
head/sys/gnu/dts/arm64/exynos/exynos5433-tmu-g3d-sensor-conf.dtsi
head/sys/gnu/dts/arm64/exynos/exynos5433-tmu-sensor-conf.dtsi
head/sys/gnu/dts/arm64/exynos/exynos7-tmu-sensor-conf.dtsi
head/sys/gnu/dts/arm64/xilinx/zynqmp-ep108-clk.dtsi
head/sys/gnu/dts/arm64/xilinx/zynqmp-ep108.dts
Modificado:
head/sys/gnu/dts/arm/am335x-baltos.dtsi
head/sys/gnu/dts/arm/am335x-evm.dts
head/sys/gnu/dts/arm/am335x-evmsk.dts
head/sys/gnu/dts/arm/am335x-sl50.dts
head/sys/gnu/dts/arm/am33xx.dtsi
head/sys/gnu/dts/arm/am3517-evm.dts
head/sys/gnu/dts/arm/am3517-som.dtsi
head/sys/gnu/dts/arm/am4372.dtsi
head/sys/gnu/dts/arm/am437x-gp-evm.dts
head/sys/gnu/dts/arm/am571x-idk.dts
head/sys/gnu/dts/arm/am572x-idk-common.dtsi
head/sys/gnu/dts/arm/am57xx-idk-common.dtsi
head/sys/gnu/dts/arm/armada-388-clearfog-base.dts
head/sys/gnu/dts/arm/armada-388-clearfog-pro.dts
head/sys/gnu/dts/arm/armada-388-clearfog.dts
head/sys/gnu/dts/arm/armada-388-clearfog.dtsi
head/sys/gnu/dts/arm/armada-38x-solidrun-microsom.dtsi
head/sys/gnu/dts/arm/aspeed-ast2500-evb.dts
head/sys/gnu/dts/arm/aspeed-bmc-opp-romulus.dts
head/sys/gnu/dts/arm/aspeed-bmc-opp-witherspoon.dts
head/sys/gnu/dts/arm/aspeed-bmc-opp-zaius.dts
head/sys/gnu/dts/arm/aspeed-g4.dtsi
head/sys/gnu/dts/arm/aspeed-g5.dtsi
head/sys/gnu/dts/arm/at91-sama5d2_ptc_ek.dts
head/sys/gnu/dts/arm/at91sam9261.dtsi
head/sys/gnu/dts/arm/at91sam9263.dtsi
head/sys/gnu/dts/arm/at91sam9rl.dtsi
head/sys/gnu/dts/arm/at91sam9x5.dtsi
head/sys/gnu/dts/arm/bcm-cygnus.dtsi
head/sys/gnu/dts/arm/bcm2837.dtsi
head/sys/gnu/dts/arm/bcm283x.dtsi
head/sys/gnu/dts/arm/bcm4708-asus-rt-ac56u.dts
head/sys/gnu/dts/arm/bcm4708-asus-rt-ac68u.dts
head/sys/gnu/dts/arm/bcm4708-buffalo-wzr-1750dhp.dts
head/sys/gnu/dts/arm/bcm4708-linksys-ea6300-v1.dts
head/sys/gnu/dts/arm/bcm4708-luxul-xap-1510.dts
head/sys/gnu/dts/arm/bcm4708-luxul-xwc-1000.dts
head/sys/gnu/dts/arm/bcm4708-netgear-r6250.dts
head/sys/gnu/dts/arm/bcm4708-netgear-r6300-v2.dts
head/sys/gnu/dts/arm/bcm4708-smartrg-sr400ac.dts
head/sys/gnu/dts/arm/bcm47081-asus-rt-n18u.dts
head/sys/gnu/dts/arm/bcm47081-buffalo-wzr-600dhp2.dts
head/sys/gnu/dts/arm/bcm47081-buffalo-wzr-900dhp.dts
head/sys/gnu/dts/arm/bcm47081-luxul-xap-1410.dts
head/sys/gnu/dts/arm/bcm47081-luxul-xwr-1200.dts
head/sys/gnu/dts/arm/bcm47081-tplink-archer-c5-v2.dts
head/sys/gnu/dts/arm/bcm4709-asus-rt-ac87u.dts
head/sys/gnu/dts/arm/bcm4709-buffalo-wxr-1900dhp.dts
head/sys/gnu/dts/arm/bcm4709-linksys-ea9200.dts
head/sys/gnu/dts/arm/bcm4709-netgear-r7000.dts
head/sys/gnu/dts/arm/bcm4709-netgear-r8000.dts
head/sys/gnu/dts/arm/bcm4709-tplink-archer-c9-v1.dts
head/sys/gnu/dts/arm/bcm47094-dlink-dir-885l.dts
head/sys/gnu/dts/arm/bcm47094-linksys-panamera.dts
head/sys/gnu/dts/arm/bcm47094-luxul-abr-4500.dts
head/sys/gnu/dts/arm/bcm47094-luxul-xbr-4500.dts
head/sys/gnu/dts/arm/bcm47094-luxul-xwr-3100.dts
head/sys/gnu/dts/arm/bcm47094-netgear-r8500.dts
head/sys/gnu/dts/arm/bcm47094.dtsi
head/sys/gnu/dts/arm/bcm5301x.dtsi
head/sys/gnu/dts/arm/bcm53573.dtsi
head/sys/gnu/dts/arm/bcm63138.dtsi
head/sys/gnu/dts/arm/bcm94708.dts
head/sys/gnu/dts/arm/bcm94709.dts
head/sys/gnu/dts/arm/bcm953012er.dts
head/sys/gnu/dts/arm/bcm953012hr.dts
head/sys/gnu/dts/arm/bcm953012k.dts
head/sys/gnu/dts/arm/berlin2.dtsi
head/sys/gnu/dts/arm/berlin2q.dtsi
head/sys/gnu/dts/arm/da850-enbw-cmc.dts
head/sys/gnu/dts/arm/da850-evm.dts
head/sys/gnu/dts/arm/da850-lcdk.dts
head/sys/gnu/dts/arm/da850-lego-ev3.dts
head/sys/gnu/dts/arm/da850.dtsi
head/sys/gnu/dts/arm/dra7-evm-common.dtsi
head/sys/gnu/dts/arm/dra7-evm.dts
head/sys/gnu/dts/arm/dra7.dtsi
head/sys/gnu/dts/arm/dra71-evm.dts
head/sys/gnu/dts/arm/dra72-evm-common.dtsi
head/sys/gnu/dts/arm/dra74x.dtsi
head/sys/gnu/dts/arm/dra76-evm.dts
head/sys/gnu/dts/arm/dra76x.dtsi
head/sys/gnu/dts/arm/emev2-kzm9d.dts
head/sys/gnu/dts/arm/emev2.dtsi
head/sys/gnu/dts/arm/exynos3250.dtsi
head/sys/gnu/dts/arm/exynos4.dtsi
head/sys/gnu/dts/arm/exynos4210.dtsi
head/sys/gnu/dts/arm/exynos4412-midas.dtsi
head/sys/gnu/dts/arm/exynos4412.dtsi
head/sys/gnu/dts/arm/exynos5.dtsi
head/sys/gnu/dts/arm/exynos5250.dtsi
head/sys/gnu/dts/arm/exynos5410.dtsi
head/sys/gnu/dts/arm/exynos5420-cpus.dtsi
head/sys/gnu/dts/arm/exynos5420.dtsi
head/sys/gnu/dts/arm/exynos5422-cpus.dtsi
head/sys/gnu/dts/arm/gemini-dlink-dir-685.dts
head/sys/gnu/dts/arm/gemini-sq201.dts
head/sys/gnu/dts/arm/highbank.dts
head/sys/gnu/dts/arm/imx23-evk.dts
head/sys/gnu/dts/arm/imx28-evk.dts
head/sys/gnu/dts/arm/imx31.dtsi
head/sys/gnu/dts/arm/imx50-evk.dts
head/sys/gnu/dts/arm/imx50-pinfunc.h
head/sys/gnu/dts/arm/imx50.dtsi
head/sys/gnu/dts/arm/imx51-babbage.dts
head/sys/gnu/dts/arm/imx51-eukrea-mbimxsd51-baseboard.dts
head/sys/gnu/dts/arm/imx51-zii-rdu1.dts
head/sys/gnu/dts/arm/imx51.dtsi
head/sys/gnu/dts/arm/imx53-ppd.dts
head/sys/gnu/dts/arm/imx53-qsb-common.dtsi
head/sys/gnu/dts/arm/imx53.dtsi
head/sys/gnu/dts/arm/imx6dl-colibri-eval-v3.dts
head/sys/gnu/dts/arm/imx6dl-mamoj.dts
head/sys/gnu/dts/arm/imx6dl-nit6xlite.dts
head/sys/gnu/dts/arm/imx6dl-nitrogen6x.dts
head/sys/gnu/dts/arm/imx6dl-riotboard.dts
head/sys/gnu/dts/arm/imx6dl.dtsi
head/sys/gnu/dts/arm/imx6q-apalis-eval.dts
head/sys/gnu/dts/arm/imx6q-apalis-ixora-v1.1.dts
head/sys/gnu/dts/arm/imx6q-apalis-ixora.dts
head/sys/gnu/dts/arm/imx6q-cm-fx6.dts
head/sys/gnu/dts/arm/imx6q-icore-mipi.dts
head/sys/gnu/dts/arm/imx6q-nitrogen6_max.dts
head/sys/gnu/dts/arm/imx6q-nitrogen6_som2.dts
head/sys/gnu/dts/arm/imx6q-nitrogen6x.dts
head/sys/gnu/dts/arm/imx6q-var-dt6customboard.dts
head/sys/gnu/dts/arm/imx6q.dtsi
head/sys/gnu/dts/arm/imx6qdl-apalis.dtsi
head/sys/gnu/dts/arm/imx6qdl-colibri.dtsi
head/sys/gnu/dts/arm/imx6qdl-icore.dtsi
head/sys/gnu/dts/arm/imx6qdl-nit6xlite.dtsi
head/sys/gnu/dts/arm/imx6qdl-nitrogen6_max.dtsi
head/sys/gnu/dts/arm/imx6qdl-nitrogen6_som2.dtsi
head/sys/gnu/dts/arm/imx6qdl-nitrogen6x.dtsi
head/sys/gnu/dts/arm/imx6qdl-sabreauto.dtsi
head/sys/gnu/dts/arm/imx6qdl-sabresd.dtsi
head/sys/gnu/dts/arm/imx6qdl-wandboard.dtsi
head/sys/gnu/dts/arm/imx6qdl-zii-rdu2.dtsi
head/sys/gnu/dts/arm/imx6qdl.dtsi
head/sys/gnu/dts/arm/imx6qp-nitrogen6_max.dts
head/sys/gnu/dts/arm/imx6qp-nitrogen6_som2.dts
head/sys/gnu/dts/arm/imx6sl-evk.dts
head/sys/gnu/dts/arm/imx6sl.dtsi
head/sys/gnu/dts/arm/imx6sx-nitrogen6sx.dts
head/sys/gnu/dts/arm/imx6sx-sdb-reva.dts
head/sys/gnu/dts/arm/imx6sx.dtsi
head/sys/gnu/dts/arm/imx6ul-pico-hobbit.dts
head/sys/gnu/dts/arm/imx6ul.dtsi
head/sys/gnu/dts/arm/imx6ull-colibri-wifi.dtsi
head/sys/gnu/dts/arm/imx6ull.dtsi
head/sys/gnu/dts/arm/imx7d-nitrogen7.dts
head/sys/gnu/dts/arm/imx7d-sdb.dts
head/sys/gnu/dts/arm/imx7d.dtsi
head/sys/gnu/dts/arm/imx7s.dtsi
head/sys/gnu/dts/arm/iwg20d-q7-common.dtsi
head/sys/gnu/dts/arm/iwg20d-q7-dbcm-ca.dtsi
head/sys/gnu/dts/arm/keystone-k2e-netcp.dtsi
head/sys/gnu/dts/arm/keystone-k2g-evm.dts
head/sys/gnu/dts/arm/keystone-k2g-ice.dts
head/sys/gnu/dts/arm/keystone-k2g.dtsi
head/sys/gnu/dts/arm/keystone-k2hk-netcp.dtsi
head/sys/gnu/dts/arm/keystone-k2l-netcp.dtsi
head/sys/gnu/dts/arm/logicpd-som-lv.dtsi
head/sys/gnu/dts/arm/logicpd-torpedo-37xx-devkit.dts
head/sys/gnu/dts/arm/ls1021a.dtsi
head/sys/gnu/dts/arm/mt7623.dtsi
head/sys/gnu/dts/arm/mt7623n-bananapi-bpi-r2.dts
head/sys/gnu/dts/arm/omap3-cm-t3517.dts
head/sys/gnu/dts/arm/omap3-cm-t3730.dts
head/sys/gnu/dts/arm/omap3-evm-common.dtsi
head/sys/gnu/dts/arm/omap3-igep0020-rev-f.dts
head/sys/gnu/dts/arm/omap3-igep0030-rev-g.dts
head/sys/gnu/dts/arm/omap3-zoom3.dts
head/sys/gnu/dts/arm/omap4-droid4-xt894.dts
head/sys/gnu/dts/arm/omap4-duovero-parlor.dts
head/sys/gnu/dts/arm/omap4-duovero.dtsi
head/sys/gnu/dts/arm/omap4-panda-common.dtsi
head/sys/gnu/dts/arm/omap4-panda-es.dts
head/sys/gnu/dts/arm/omap4-sdp.dts
head/sys/gnu/dts/arm/omap4-var-som-om44-wlan.dtsi
head/sys/gnu/dts/arm/omap4.dtsi
head/sys/gnu/dts/arm/omap4460.dtsi
head/sys/gnu/dts/arm/omap5-board-common.dtsi
head/sys/gnu/dts/arm/omap5.dtsi
head/sys/gnu/dts/arm/pxa2xx.dtsi
head/sys/gnu/dts/arm/pxa3xx.dtsi
head/sys/gnu/dts/arm/qcom-ipq4019.dtsi
head/sys/gnu/dts/arm/qcom-ipq8064.dtsi
head/sys/gnu/dts/arm/qcom-msm8974-lge-nexus5-hammerhead.dts
head/sys/gnu/dts/arm/r7s72100-genmai.dts
head/sys/gnu/dts/arm/r7s72100-gr-peach.dts
head/sys/gnu/dts/arm/r7s72100-rskrza1.dts
head/sys/gnu/dts/arm/r7s72100.dtsi
head/sys/gnu/dts/arm/r8a73a4-ape6evm.dts
head/sys/gnu/dts/arm/r8a73a4.dtsi
head/sys/gnu/dts/arm/r8a7740-armadillo800eva.dts
head/sys/gnu/dts/arm/r8a7740.dtsi
head/sys/gnu/dts/arm/r8a7743-iwg20d-q7-dbcm-ca.dts
head/sys/gnu/dts/arm/r8a7743-iwg20d-q7.dts
head/sys/gnu/dts/arm/r8a7743-iwg20m.dtsi
head/sys/gnu/dts/arm/r8a7743-sk-rzg1m.dts
head/sys/gnu/dts/arm/r8a7743.dtsi
head/sys/gnu/dts/arm/r8a7745-iwg22d-sodimm-dbhd-ca.dts
head/sys/gnu/dts/arm/r8a7745-iwg22d-sodimm.dts
head/sys/gnu/dts/arm/r8a7745-iwg22m.dtsi
head/sys/gnu/dts/arm/r8a7745-sk-rzg1e.dts
head/sys/gnu/dts/arm/r8a7745.dtsi
head/sys/gnu/dts/arm/r8a77470.dtsi
head/sys/gnu/dts/arm/r8a7778-bockw.dts
head/sys/gnu/dts/arm/r8a7778.dtsi
head/sys/gnu/dts/arm/r8a7779-marzen.dts
head/sys/gnu/dts/arm/r8a7779.dtsi
head/sys/gnu/dts/arm/r8a7790-lager.dts
head/sys/gnu/dts/arm/r8a7790.dtsi
head/sys/gnu/dts/arm/r8a7791-koelsch.dts
head/sys/gnu/dts/arm/r8a7791-porter.dts
head/sys/gnu/dts/arm/r8a7791.dtsi
head/sys/gnu/dts/arm/r8a7792-blanche.dts
head/sys/gnu/dts/arm/r8a7792-wheat.dts
head/sys/gnu/dts/arm/r8a7792.dtsi
head/sys/gnu/dts/arm/r8a7793-gose.dts
head/sys/gnu/dts/arm/r8a7793.dtsi
head/sys/gnu/dts/arm/r8a7794-alt.dts
head/sys/gnu/dts/arm/r8a7794-silk.dts
head/sys/gnu/dts/arm/r8a7794.dtsi
head/sys/gnu/dts/arm/r8a77xx-aa104xd12-panel.dtsi
head/sys/gnu/dts/arm/r8a77xx-aa121td01-panel.dtsi
head/sys/gnu/dts/arm/rk3036-evb.dts
head/sys/gnu/dts/arm/rk3036-kylin.dts
head/sys/gnu/dts/arm/rk3036.dtsi
head/sys/gnu/dts/arm/rk3066a-bqcurie2.dts
head/sys/gnu/dts/arm/rk3066a-marsboard.dts
head/sys/gnu/dts/arm/rk3066a-mk808.dts
head/sys/gnu/dts/arm/rk3066a-rayeager.dts
head/sys/gnu/dts/arm/rk3066a.dtsi
head/sys/gnu/dts/arm/rk3188-px3-evb.dts
head/sys/gnu/dts/arm/rk3188-radxarock.dts
head/sys/gnu/dts/arm/rk3188.dtsi
head/sys/gnu/dts/arm/rk3228-evb.dts
head/sys/gnu/dts/arm/rk3229-evb.dts
head/sys/gnu/dts/arm/rk3229.dtsi
head/sys/gnu/dts/arm/rk322x.dtsi
head/sys/gnu/dts/arm/rk3288-evb-act8846.dts
head/sys/gnu/dts/arm/rk3288-evb-rk808.dts
head/sys/gnu/dts/arm/rk3288-evb.dtsi
head/sys/gnu/dts/arm/rk3288-fennec.dts
head/sys/gnu/dts/arm/rk3288-firefly-beta.dts
head/sys/gnu/dts/arm/rk3288-firefly-reload-core.dtsi
head/sys/gnu/dts/arm/rk3288-firefly-reload.dts
head/sys/gnu/dts/arm/rk3288-firefly.dts
head/sys/gnu/dts/arm/rk3288-firefly.dtsi
head/sys/gnu/dts/arm/rk3288-miqi.dts
head/sys/gnu/dts/arm/rk3288-phycore-rdk.dts
head/sys/gnu/dts/arm/rk3288-phycore-som.dtsi
head/sys/gnu/dts/arm/rk3288-popmetal.dts
head/sys/gnu/dts/arm/rk3288-r89.dts
head/sys/gnu/dts/arm/rk3288-rock2-som.dtsi
head/sys/gnu/dts/arm/rk3288-rock2-square.dts
head/sys/gnu/dts/arm/rk3288-tinker.dts
head/sys/gnu/dts/arm/rk3288-veyron-analog-audio.dtsi
head/sys/gnu/dts/arm/rk3288-veyron-brain.dts
head/sys/gnu/dts/arm/rk3288-veyron-chromebook.dtsi
head/sys/gnu/dts/arm/rk3288-veyron-jaq.dts
head/sys/gnu/dts/arm/rk3288-veyron-jerry.dts
head/sys/gnu/dts/arm/rk3288-veyron-mickey.dts
head/sys/gnu/dts/arm/rk3288-veyron-minnie.dts
head/sys/gnu/dts/arm/rk3288-veyron-pinky.dts
head/sys/gnu/dts/arm/rk3288-veyron-sdmmc.dtsi
head/sys/gnu/dts/arm/rk3288-veyron-speedy.dts
head/sys/gnu/dts/arm/rk3288-veyron.dtsi
head/sys/gnu/dts/arm/rk3288-vyasa.dts
head/sys/gnu/dts/arm/rk3288.dtsi
head/sys/gnu/dts/arm/rk3xxx.dtsi
head/sys/gnu/dts/arm/rv1108-evb.dts
head/sys/gnu/dts/arm/rv1108.dtsi
head/sys/gnu/dts/arm/s5pv210-pinctrl.dtsi
head/sys/gnu/dts/arm/sama5d2-pinfunc.h
head/sys/gnu/dts/arm/sama5d3.dtsi
head/sys/gnu/dts/arm/sama5d3_emac.dtsi
head/sys/gnu/dts/arm/sama5d4.dtsi
head/sys/gnu/dts/arm/sh73a0-kzm9g.dts
head/sys/gnu/dts/arm/sh73a0.dtsi
head/sys/gnu/dts/arm/socfpga_arria10.dtsi
head/sys/gnu/dts/arm/ste-nomadik-stn8815.dtsi
head/sys/gnu/dts/arm/stm32f429.dtsi
head/sys/gnu/dts/arm/stm32f746.dtsi
head/sys/gnu/dts/arm/stm32mp157-pinctrl.dtsi
head/sys/gnu/dts/arm/stm32mp157c-ed1.dts
head/sys/gnu/dts/arm/stm32mp157c-ev1.dts
head/sys/gnu/dts/arm/stm32mp157c.dtsi
head/sys/gnu/dts/arm/sun4i-a10-inet97fv2.dts
head/sys/gnu/dts/arm/sun4i-a10.dtsi
head/sys/gnu/dts/arm/sun5i.dtsi
head/sys/gnu/dts/arm/sun6i-a31.dtsi
head/sys/gnu/dts/arm/sun7i-a20.dtsi
head/sys/gnu/dts/arm/sun8i-a23-a33.dtsi
head/sys/gnu/dts/arm/sun8i-a33.dtsi
head/sys/gnu/dts/arm/sun8i-a83t-allwinner-h8homlet-v2.dts
head/sys/gnu/dts/arm/sun8i-a83t-bananapi-m3.dts
head/sys/gnu/dts/arm/sun8i-a83t-cubietruck-plus.dts
head/sys/gnu/dts/arm/sun8i-a83t.dtsi
head/sys/gnu/dts/arm/sun8i-h2-plus-bananapi-m2-zero.dts
head/sys/gnu/dts/arm/sun8i-h3-beelink-x2.dts
head/sys/gnu/dts/arm/sun8i-h3.dtsi
head/sys/gnu/dts/arm/sun8i-r40-bananapi-m2-ultra.dts
head/sys/gnu/dts/arm/sun8i-r40.dtsi
head/sys/gnu/dts/arm/sunxi-h3-h5.dtsi
head/sys/gnu/dts/arm/sunxi-libretech-all-h3-cc.dtsi
head/sys/gnu/dts/arm/tegra114-dalmore.dts
head/sys/gnu/dts/arm/tegra114-roth.dts
head/sys/gnu/dts/arm/tegra114-tn7.dts
head/sys/gnu/dts/arm/tegra114.dtsi
head/sys/gnu/dts/arm/tegra124-apalis-v1.2.dtsi
head/sys/gnu/dts/arm/tegra124-apalis.dtsi
head/sys/gnu/dts/arm/tegra124-jetson-tk1.dts
head/sys/gnu/dts/arm/tegra124-nyan.dtsi
head/sys/gnu/dts/arm/tegra124-venice2.dts
head/sys/gnu/dts/arm/tegra124.dtsi
head/sys/gnu/dts/arm/tegra20-harmony.dts
head/sys/gnu/dts/arm/tegra20-paz00.dts
head/sys/gnu/dts/arm/tegra20-seaboard.dts
head/sys/gnu/dts/arm/tegra20-tamonten.dtsi
head/sys/gnu/dts/arm/tegra20-trimslice.dts
head/sys/gnu/dts/arm/tegra20-ventana.dts
head/sys/gnu/dts/arm/tegra20.dtsi
head/sys/gnu/dts/arm/tegra30-apalis.dtsi
head/sys/gnu/dts/arm/tegra30-beaver.dts
head/sys/gnu/dts/arm/tegra30-cardhu.dtsi
head/sys/gnu/dts/arm/tegra30-colibri.dtsi
head/sys/gnu/dts/arm/tegra30.dtsi
head/sys/gnu/dts/arm/uniphier-pxs2.dtsi
head/sys/gnu/dts/arm/zynq-cc108.dts
head/sys/gnu/dts/arm/zynq-microzed.dts
head/sys/gnu/dts/arm/zynq-parallella.dts
head/sys/gnu/dts/arm/zynq-zc702.dts
head/sys/gnu/dts/arm/zynq-zc706.dts
head/sys/gnu/dts/arm/zynq-zc770-xm010.dts
head/sys/gnu/dts/arm/zynq-zc770-xm011.dts
head/sys/gnu/dts/arm/zynq-zc770-xm012.dts
head/sys/gnu/dts/arm/zynq-zc770-xm013.dts
head/sys/gnu/dts/arm/zynq-zed.dts
head/sys/gnu/dts/arm/zynq-zybo-z7.dts
head/sys/gnu/dts/arm/zynq-zybo.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-bananapi-m64.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-nanopi-a64.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-olinuxino.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-orangepi-win.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-pine64.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-sopine-baseboard.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-sopine.dtsi
head/sys/gnu/dts/arm64/allwinner/sun50i-a64-teres-i.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-a64.dtsi
head/sys/gnu/dts/arm64/allwinner/sun50i-h5-orangepi-pc2.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-h6-pine-h64.dts
head/sys/gnu/dts/arm64/allwinner/sun50i-h6.dtsi
head/sys/gnu/dts/arm64/altera/socfpga_stratix10.dtsi
head/sys/gnu/dts/arm64/altera/socfpga_stratix10_socdk.dts
head/sys/gnu/dts/arm64/amlogic/meson-axg-s400.dts
head/sys/gnu/dts/arm64/amlogic/meson-axg.dtsi
head/sys/gnu/dts/arm64/amlogic/meson-gx-p23x-q20x.dtsi
head/sys/gnu/dts/arm64/amlogic/meson-gxbb-nanopi-k2.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxl-s905d-p230.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxl-s905d-p231.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxm-khadas-vim2.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxm-q200.dts
head/sys/gnu/dts/arm64/amlogic/meson-gxm-q201.dts
head/sys/gnu/dts/arm64/arm/juno-r1.dts
head/sys/gnu/dts/arm64/arm/juno-r2.dts
head/sys/gnu/dts/arm64/arm/juno.dts
head/sys/gnu/dts/arm64/broadcom/northstar2/ns2.dtsi
head/sys/gnu/dts/arm64/broadcom/stingray/bcm958742-base.dtsi
head/sys/gnu/dts/arm64/broadcom/stingray/stingray-clock.dtsi
head/sys/gnu/dts/arm64/broadcom/stingray/stingray.dtsi
head/sys/gnu/dts/arm64/exynos/exynos5433.dtsi
head/sys/gnu/dts/arm64/exynos/exynos7.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls1012a-frdm.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1012a-qds.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1012a-rdb.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1012a.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls1043-post.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls1043a-qds.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1043a-rdb.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1043a.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls1046-post.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls1046a-qds.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1046a-rdb.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1046a.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls1088a-qds.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1088a-rdb.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls1088a.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls2080a-qds.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls2080a-rdb.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls2080a-simu.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls2080a.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls2088a-qds.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls2088a-rdb.dts
head/sys/gnu/dts/arm64/freescale/fsl-ls2088a.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls208xa-qds.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls208xa-rdb.dtsi
head/sys/gnu/dts/arm64/freescale/fsl-ls208xa.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-bman-portals.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-10g-0.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-10g-1.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-1g-0.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-1g-1.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-1g-2.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-1g-3.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-1g-4.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0-1g-5.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-fman3-0.dtsi
head/sys/gnu/dts/arm64/freescale/qoriq-qman-portals.dtsi
head/sys/gnu/dts/arm64/hisilicon/hi3660-hikey960.dts
head/sys/gnu/dts/arm64/hisilicon/hi3660.dtsi
head/sys/gnu/dts/arm64/hisilicon/hi6220-hikey.dts
head/sys/gnu/dts/arm64/hisilicon/hi6220.dtsi
head/sys/gnu/dts/arm64/hisilicon/hip07.dtsi
head/sys/gnu/dts/arm64/marvell/armada-37xx.dtsi
head/sys/gnu/dts/arm64/marvell/armada-8040-mcbin.dts
head/sys/gnu/dts/arm64/marvell/armada-cp110.dtsi
head/sys/gnu/dts/arm64/mediatek/mt2712e.dtsi
head/sys/gnu/dts/arm64/mediatek/mt7622-rfb1.dts
head/sys/gnu/dts/arm64/mediatek/mt7622.dtsi
head/sys/gnu/dts/arm64/mediatek/mt8173.dtsi
head/sys/gnu/dts/arm64/nvidia/tegra194-p2888.dtsi
head/sys/gnu/dts/arm64/nvidia/tegra194.dtsi
head/sys/gnu/dts/arm64/qcom/apq8016-sbc.dtsi
head/sys/gnu/dts/arm64/qcom/apq8096-db820c.dtsi
head/sys/gnu/dts/arm64/qcom/msm8916.dtsi
head/sys/gnu/dts/arm64/qcom/msm8996.dtsi
head/sys/gnu/dts/arm64/qcom/sdm845-mtp.dts
head/sys/gnu/dts/arm64/qcom/sdm845.dtsi
head/sys/gnu/dts/arm64/renesas/r8a7795-es1-h3ulcb-kf.dts
head/sys/gnu/dts/arm64/renesas/r8a7795-es1-h3ulcb.dts
head/sys/gnu/dts/arm64/renesas/r8a7795-es1-salvator-x.dts
head/sys/gnu/dts/arm64/renesas/r8a7795-es1.dtsi
head/sys/gnu/dts/arm64/renesas/r8a7795-h3ulcb-kf.dts
head/sys/gnu/dts/arm64/renesas/r8a7795-h3ulcb.dts
head/sys/gnu/dts/arm64/renesas/r8a7795-salvator-x.dts
head/sys/gnu/dts/arm64/renesas/r8a7795-salvator-xs.dts
head/sys/gnu/dts/arm64/renesas/r8a7795.dtsi
head/sys/gnu/dts/arm64/renesas/r8a7796-m3ulcb-kf.dts
head/sys/gnu/dts/arm64/renesas/r8a7796-m3ulcb.dts
head/sys/gnu/dts/arm64/renesas/r8a7796-salvator-x.dts
head/sys/gnu/dts/arm64/renesas/r8a7796-salvator-xs.dts
head/sys/gnu/dts/arm64/renesas/r8a7796.dtsi
head/sys/gnu/dts/arm64/renesas/r8a77965.dtsi
head/sys/gnu/dts/arm64/renesas/r8a77970-eagle.dts
head/sys/gnu/dts/arm64/renesas/r8a77970-v3msk.dts
head/sys/gnu/dts/arm64/renesas/r8a77970.dtsi
head/sys/gnu/dts/arm64/renesas/r8a77980-condor.dts
head/sys/gnu/dts/arm64/renesas/r8a77980-v3hsk.dts
head/sys/gnu/dts/arm64/renesas/r8a77980.dtsi
head/sys/gnu/dts/arm64/renesas/r8a77990-ebisu.dts
head/sys/gnu/dts/arm64/renesas/r8a77990.dtsi
head/sys/gnu/dts/arm64/renesas/r8a77995-draak.dts
head/sys/gnu/dts/arm64/renesas/r8a77995.dtsi
head/sys/gnu/dts/arm64/renesas/salvator-common.dtsi
head/sys/gnu/dts/arm64/renesas/salvator-x.dtsi
head/sys/gnu/dts/arm64/renesas/salvator-xs.dtsi
head/sys/gnu/dts/arm64/renesas/ulcb-kf.dtsi
head/sys/gnu/dts/arm64/renesas/ulcb.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3328-evb.dts
head/sys/gnu/dts/arm64/rockchip/rk3328-rock64.dts
head/sys/gnu/dts/arm64/rockchip/rk3328.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3368-evb-act8846.dts
head/sys/gnu/dts/arm64/rockchip/rk3368-evb.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3368-geekbox.dts
head/sys/gnu/dts/arm64/rockchip/rk3368-orion-r68-meta.dts
head/sys/gnu/dts/arm64/rockchip/rk3368-px5-evb.dts
head/sys/gnu/dts/arm64/rockchip/rk3368-r88.dts
head/sys/gnu/dts/arm64/rockchip/rk3368.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3399-evb.dts
head/sys/gnu/dts/arm64/rockchip/rk3399-firefly.dts
head/sys/gnu/dts/arm64/rockchip/rk3399-gru-kevin.dts
head/sys/gnu/dts/arm64/rockchip/rk3399-gru.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3399-op1-opp.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3399-opp.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3399-puma-haikou.dts
head/sys/gnu/dts/arm64/rockchip/rk3399-puma.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3399-sapphire-excavator.dts
head/sys/gnu/dts/arm64/rockchip/rk3399-sapphire.dtsi
head/sys/gnu/dts/arm64/rockchip/rk3399.dtsi
head/sys/gnu/dts/arm64/socionext/uniphier-ld11-global.dts
head/sys/gnu/dts/arm64/socionext/uniphier-ld20-global.dts
head/sys/gnu/dts/arm64/socionext/uniphier-ld20.dtsi
head/sys/gnu/dts/arm64/sprd/sc2731.dtsi
head/sys/gnu/dts/arm64/sprd/sc9860.dtsi
head/sys/gnu/dts/arm64/sprd/whale2.dtsi
head/sys/gnu/dts/arm64/xilinx/zynqmp-zcu100-revC.dts
head/sys/gnu/dts/arm64/xilinx/zynqmp-zcu102-revA.dts
head/sys/gnu/dts/arm64/xilinx/zynqmp-zcu106-revA.dts
head/sys/gnu/dts/arm64/xilinx/zynqmp-zcu111-revA.dts
head/sys/gnu/dts/arm64/xilinx/zynqmp.dtsi
Directory Properties:
head/sys/gnu/dts/arm/ (props changed)
head/sys/gnu/dts/arm64/ (props changed)
Log:
Update our devicetree to 4.19 for arm and arm64

MFC after: 2 months
10/11/2018
8:42 pm
base/head
kevans
head/lib/libbe
Modificado:
head/lib/libbe/be.c
Log:
libbe(3): Set canmount properly when activating a new BE

The previously activated BE should have canmount=noauto set on it upon
activation of the new BE, but we previously did not touch canmount on either
old or new BE.

PR: 233113
MFC after: 3 days
10/11/2018
8:33 pm
base/head
markj
head/sys/vm
Modificado:
head/sys/vm/vm_object.c
Log:
Re-apply r336984, reverting r339934.

r336984 exposed the bug fixed in r340241, leading to the initial revert
while the bug was being hunted down. Now that the bug is fixed, we
can revert the revert.

Discussed with: alc
MFC after: 3 days
10/11/2018
8:26 pm
base/head
cem
head/bin/rm
Modificado:
head/bin/rm/rm.1
head/bin/rm/rm.c
Log:
rm(1): Formalize non-functional status of -P flag

-P was introduced in 4.4BSD-Lite2 around 1994. It overwrote file contents
with a pass of 0xff, 0x00, then 0xff, in a low effort attempt to "really
delete" files.

It has no user-visible effect; at the end of the day, the file is unlinked via
the filesystem. Furthermore, the utility of overwriting files with patterned
data is extremely limited due to caveats at every layer of the stack[0] and
therefore mostly futile. At the least, three passes is likely wasteful on
modern hardware[1]. It could also be seen as a violation of the "Unix
Philosophy" to do one thing per tiny, composable program.

Since 1994, FreeBSD has left it alone; OpenBSD replaced it with a single
pass of arc4random(3) output in 2012[2]; and NetBSD implemented partial, but
explicitly incomplete support for U.S. DoD 5220.22-M, "National Industrial
Security Program Operating Manual" in 2004[3].

NetBSD's enhanced comment above rm_overwrite makes a strong case for removing
the flag entirely:

> This is an expensive way to keep people from recovering files from your
> non-snapshotted FFS filesystems using fsdb(8). Really. No more.
>
> It is impossible to actually conform to the exact procedure given in
> [NISPOM] if one is overwriting a file, not an entire disk, because the
> procedure requires examination and comparison of the disk's defect lists.
> Any program that claims to securely erase *files* while conforming to the
> standard, then, is not correct.
>
> Furthermore, the presence of track caches, disk and controller write
> caches, and so forth make it extremely difficult to ensure that data have
> actually been written to the disk, particularly when one tries to repeatedly
> overwrite the same sectors in quick succession. We call fsync(), but
> controllers with nonvolatile cache, as well as IDE disks that just plain lie
> about the stable storage of data, will defeat this.
>
> [NISPOM] requires physical media destruction, rather than any technique of
> the sort attempted here, for secret data.

As a first step towards evental removal, make it a placebo. It's not like
it was serving any security function. It is not defined in or mentioned by
POSIX.

If you are security conscious and need to erase your files, use a
woodchipper. At a minimum, the entire disk needs to be overwritten, not
just one file.

[0]: https://www.ru.nl/publish/pages/909282/draft-paper.pdf
[1]: https://commons.erau.edu/cgi/viewcontent.cgi?article=1131&context=jdfsl
[2]: https://github.com/openbsd/src/commit/7c5c57ba81b5fe8ff2d4899ff643af18c
[3]: https://github.com/NetBSD/src/commit/fdf0a7a25e59af958fca1e2159921562cd

Reviewed by: markj, Daniel O'Connor (previous version)
Differential Revision: https://reviews.freebsd.org/D17906
10/11/2018
8:26 pm
base/head
emaste
head/share/man/man7
Modificado:
head/share/man/man7/build.7
Log:
build(7): clarify buildenv target can be used for non-cross builds

make buildenv can be used for building for the same architecture as
the host (perhaps this is a degenerate case of cross-building).
TARGET and TARGET_ARCH do not need to be set in this case.

Reviewed by: bdrewery
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10759
10/11/2018
7:09 pm
base/head
vangyzen
head
Modificado:
head/Makefile
Log:
Update comment about 'universe' disk usage

It's 167 GB now (or 81 GB with ZFS lz4).

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
10/11/2018
5:49 pm
base/head
eugen
head/usr.sbin/periodic/etc/weekly
Modificado:
head/usr.sbin/periodic/etc/weekly/340.noid
Log:
weekly/340.noid: suppress warning on non-existent jail.conf

MFC after: 1 month
10/11/2018
4:58 pm
base/head
woodsb02
head
Modificado:
head/UPDATING
Log:
Add UPDATING entry for newsyslog.conf changes introduced by r340318

Approved by: cem
Differential Revision: https://reviews.freebsd.org/D17936
10/11/2018
3:10 pm
base/head
vmaffione
head/tools/tools/netmap
Modificado:
head/tools/tools/netmap/pkt-gen.8
head/tools/tools/netmap/pkt-gen.c
Log:
netmap: pkt-gen: several updates from upstream

Various improvements to the netmap pkt-gen program:

- indentation fixes
- support for IPV6
- fixes to checksum computation
- support for NS_MOREFRAG
- rate limiting in ping mode

Reviewed by: bcr, 0mp
Approved by: gnn (mentor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D17698
10/11/2018
2:35 pm
base/head
eugen
head/usr.sbin/periodic/etc/weekly
Modificado:
head/usr.sbin/periodic/etc/weekly/340.noid
Log:
Sigh... Fix another breakage after r340322: spell "sysrc" correctly.

MFC after: 1 month
10/11/2018
2:25 pm
base/head
eugen
head/usr.sbin/periodic/etc/weekly
Modificado:
head/usr.sbin/periodic/etc/weekly/340.noid
Log:
Fix breakage after r340322: add missing "-n" to invocation of sysrc.

MFH: 1 month
10/11/2018
2:21 pm
base/head
eugen
head/usr.sbin/periodic/etc/weekly
Modificado:
head/usr.sbin/periodic/etc/weekly/340.noid
Log:
Prevent periodic/etc/weekly/340.noid from descending into root directories
of jails. Jails have their own user/group databases and this script
can produce multiple false warnings, not to mention significant extra
load in case of large jailed subtrees. Leave this check for jailed
invocations of the same script.

MFC after: 1 month
10/11/2018
2:11 pm
base/head
eugen
in head/libexec/rc: . rc.d
Modificado:
head/libexec/rc/rc.conf
head/libexec/rc/rc.d/jail
Log:
Move definition of $jail_conf variable to /etc/defaults/rc.conf
from jail startup script so it can be successfully queried
with the command "sysrc jail_conf".

MFC after: 1 month
10/11/2018
12:03 pm
base/head
eugen
head/usr.sbin/jail
Modificado:
head/usr.sbin/jail/jail.8
head/usr.sbin/jail/jail.c
head/usr.sbin/jail/jailp.h
Log:
jail(8): introduce new command option -e to exhibit
a list of configured non-wildcard jails with their parameters,
no matter running or not.

The option -e takes separator argument that is used
to separate printed parameters. It will be used with following
additions to system periodic scripts to differentiate parts
of directory tree belonging jails as opposed to host's.

MFC after: 1 month
10/11/2018
10:46 am
base/head
woodsb02
head/usr.sbin/newsyslog
Modificado:
head/usr.sbin/newsyslog/newsyslog.8
head/usr.sbin/newsyslog/newsyslog.conf
Log:
newsyslog.conf: Restrict included files in default config to [!.]*.conf

The new default config will only include files from the following
directories which end with '.conf' and do not beginning with a '.'
character:
- /etc/newsyslog.conf.d/
- /usr/local/etc/newsyslog.conf.d/

This matches the syslog.conf(5) functionality, and also prevents '.sample' or
'.pkgnew' files being included. This is important for ports which install files
in /usr/local/etc/newsyslog.conf.d/ and also for pkgbase.

Approved by: eadler
Approved by: bapt
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D17086
10/11/2018
3:10 am
base/head
asomers
head/lib/libjail
Modificado:
head/lib/libjail/jail.c
Log:
libjail: fix handling of allow.mount.fusefs in jailparam_init

fusefs is inconsistently named. The kernel module is named "fuse", but the
mount helper is named "mount_fusefs" and the jail(8) parameter is named
"allow.mount.fusefs". Special case it in libjail.

Reviewed by: jamie
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17929
10/11/2018
3:00 am
base/head
markj
head/sys/netinet
Modificado:
head/sys/netinet/ip_reass.c
Log:
Ensure that IP fragments do not extend beyond IP_MAXPACKET.

Such fragments are obviously invalid, and when processed may end up
violating the sort order (by offset) of fragments of a given packet.
This doesn't appear to be exploitable, however.

Reviewed by: emaste
Discussed with: jtl
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17914
10/11/2018
2:37 am
base/head
jhibbits
head/sys/powerpc/aim
Modificado:
head/sys/powerpc/aim/mmu_oea64.c