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
22/01/2019
5:39 pm
base/head
brooks
head/sys/net
Modificado:
head/sys/net/if.c
Log:
Rework CASE_IOC_IFGROUPREQ() to require a case before the macro.

This is more compatible with formatting tools and looks more normal.

Reported by: jhb (on a different review)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18442
22/01/2019
1:11 pm
base/head
se
head/usr.sbin/kbdmap
Modificado:
head/usr.sbin/kbdmap/kbdmap.c
Log:
Silence a CI warning regarding the use of strcpy().

While this is a false positive (a sufficiently large buffer has been
allocated in the line above), the use of strdup() simplifies and clarifies
the code.

MFC after: 2 weeks
22/01/2019
12:56 pm
base/head
kib
head/sys/sys
Modificado:
head/sys/sys/rmlock.h
head/sys/sys/rwlock.h
Log:
Remove unused *_sysinit_flags() declarations.

Submitted by: Sebastian Huber
MFC after: 3 days
22/01/2019
4:36 am
base/head
pkelsey
head/sys/modules/vmware/vmxnet3
Modificado:
head/sys/modules/vmware/vmxnet3/Makefile
Log:
Add missing dependency to vmxnet3 Makefile and clean it up a bit otherwise.

MFC after: 1 week
22/01/2019
3:53 am
base/head
gonzo
head/sys/compat/ndis
Modificado:
head/sys/compat/ndis/kern_windrv.c
head/sys/compat/ndis/pe_var.h
Log:
[ndis] Fix unregistered use of FPU by NDIS in kernel on amd64

amd64 miniport drivers are allowed to use FPU which triggers "Unregistered use
of FPU in kernel" panic.

Wrap all variants of MSCALL with fpu_kern_enter/fpu_kern_leave. To reduce
amount of allocations/deallocations done via
fpu_kern_alloc_ctx/fpu_kern_free_ctx maintain cache of fpu_kern_ctx elements.

Based on the patch by Paul B Mahol

PR: 165622
Submitted by: Vlad Movchan
MFC after: 1 month
22/01/2019
2:56 am
base/head
kp
head/tests/sys/netpfil/pf/ioctl
Modificado:
head/tests/sys/netpfil/pf/ioctl/validation.c
Log:
pf tests: Check size validation in DIOCGETSRCNODES

Ensure that invalid sizes for DIOCGETSRCNODES do not cause panics.

MFC after: 1 week
22/01/2019
2:54 am
base/head
pkelsey
head/sbin/pfctl
Modificado:
head/sbin/pfctl/pfctl_altq.c
Log:
Remove unused function gsc_destroy()

gsc_destroy() is no longer needed as of r343287.

MFC after: 1 week
22/01/2019
2:13 am
base/head
kp
head/sys/netpfil/pf
Modificado:
head/sys/netpfil/pf/pf_ioctl.c
Log:
pf: Validate psn_len in DIOCGETSRCNODES

psn_len is controlled by user space, but we allocated memory based on it.
Check how much memory we might need at most (i.e. how many source nodes we
have) and limit the allocation to that.

Reported by: markj
MFC after: 1 week
22/01/2019
1:44 am
base/head
avos
head/sys/dev/iwn
Modificado:
head/sys/dev/iwn/if_iwn.c
Log:
iwn(4): drop i_seq field initialization for A-MPDU frames.

It is done by net80211 since r319460.

MFC after: 24 days
X-MFC-With: 343094
22/01/2019
1:11 am
base/head
pkelsey
in head/sys: dev/vmware/vmxnet3 net
Modificado:
head/sys/dev/vmware/vmxnet3/if_vmx.c
head/sys/dev/vmware/vmxnet3/if_vmxvar.h
head/sys/net/iflib.c
head/sys/net/iflib.h
Log:
onvert vmx(4) to being an iflib driver.

Also, expose IFLIB_MAX_RX_SEGS to iflib drivers and add
iflib_dma_alloc_align() to the iflib API.

Performance is generally better with the tunable/sysctl
dev.vmx..iflib.tx_abdicate=1.

Reviewed by: shurd
MFC after: 1 week
Relnotes: yes
Sponsored by: RG Nets
Differential Revision: https://reviews.freebsd.org/D18761
22/01/2019
12:56 am
base/head
pkelsey
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Fix various resource leaks that can occur in the error paths of
iflib_device_register() and iflib_pseudo_register().

Reviewed by: shurd
MFC after: 1 week
Sponsored by: RG Nets
Differential Revision: https://reviews.freebsd.org/D18760
21/01/2019
11:54 pm
base/head
markj
head/sys/fs/nfsserver
Modificado:
head/sys/fs/nfsserver/nfs_nfsdport.c
Log:
nfs: Zero the buffers exported by NFSSVC_DUMPCLIENTS and DUMPLOCKS.

Note that these interfaces are available only to root.

admbugs: 765
Reported by: Vlad Tsyrklevich
Reviewed by: rmacklem
MFC after: 1 day
Security: Kernel memory disclosure
Sponsored by: The FreeBSD Foundation
21/01/2019
8:56 pm
base/head
markj
head/lib/libcapsicum
Modificado:
head/lib/libcapsicum/capsicum_helpers.3
Log:
List caph_limit_stream() in the synopsis.

Fix typos while here.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation
21/01/2019
7:38 pm
base/head
markj
in head/sys/riscv: include riscv
Modificado:
head/sys/riscv/include/riscvreg.h
head/sys/riscv/riscv/copyinout.S
Log:
Optimize RISC-V copyin(9)/copyout(9) routines.

The existing copyin(9) and copyout(9) routines on RISC-V perform only a
simple byte-by-byte copy. Improve their performance by performing
word-sized copies where possible.

Submitted by: Mitchell Horne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18851
21/01/2019
7:37 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/copyinout.S
Log:
Deduplicate common code in copyin()/copyout() with a macro.

No functional change intended.

Submitted by: Mitchell Horne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18850
21/01/2019
7:21 pm
base/head
emaste
head/usr.sbin/freebsd-update
Modificado:
head/usr.sbin/freebsd-update/freebsd-update.sh
Log:
freebsd-update: Allow upgrade from pre-release builds

Update r343122 to include -ALPHA, -BETA and -RC releases as
upgrade-able via freebsd-update.

PR: 234771
Submitted by: Gerald Aryeetey
Reported by: delphij, des
Reviewed by: delphij
MFC with: r343122
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18881
21/01/2019
7:04 pm
base/head
emaste
head/usr.sbin/freebsd-update
Modificado:
head/usr.sbin/freebsd-update/freebsd-update.sh
Log:
freebsd-update: Update /etc/passwd after password db changes

Add -p to pwd_mkdb in order to ensure password db changes are also
included in /etc/passwd.

PR: 165954, 232921, 229487
Submitted by: Gerald Aryeetey
Reviewed by: jilles
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18827
21/01/2019
6:41 pm
base/head
emaste
head/usr.sbin/freebsd-update
Modificado:
head/usr.sbin/freebsd-update/freebsd-update.sh
Log:
frebsd-update: fix --currently-running after r343122

PR: 234771
Submitted by: Gerald Aryeetey
Reported by: Brandon Schneider
MFC with: r343122
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18896
21/01/2019
6:42 pm
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_main.c
Log:
cxgbe(4): Allow negative values in hw.cxgbe.fw_install and take them to
mean that the driver should taste the firmware in the KLD and use that
firmware's version for all its fw_install checks.

The driver gets firmware version information from compiled-in values by
default and this change allows custom (or older/newer) firmware modules
to be used with the stock driver.

There is no change in default behavior.

MFC after: 1 week
Sponsored by: Chelsio Communications
21/01/2019
6:07 pm
base/head
markj
head/sys/dev/hwpmc
Modificado:
head/sys/dev/hwpmc/hwpmc_mod.c
Log:
hwpmc: Plug memory disclosures from PMC_OP_{GETPMCINFO,GETCPUINFO}.

admbugs: 765
Reported by: Vlad Tsyrklevich
MFC after: 1 day
Security: Kernel memory disclosure
Sponsored by: The FreeBSD Foundation
21/01/2019
5:58 pm
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_main.c
Log:
cxgbe(4): Use a truncated firmware header for version checks. All the
version numbers are towards the begining of the header.

MFC after: 1 week
Sponsored by: Chelsio Communications
21/01/2019
5:12 pm
base/head
emaste
head/sys/compat/linux
Modificado:
head/sys/compat/linux/linux_misc.c
Log:
linuxulator: fix stack memory disclosure in linux_sigaltstack

Most siginfo_to_lsiginfo callers already zeroed the l_siginfo_t before
callit it, but linux_waitid did not. Instead of zeroing in the called
function to address linux_waitid (as in commit 2e6ebe70), just do it in
linux_waitid.

admbugs: 765
Reported by: Vlad Tsyrklevich
Reviewed by: Andrew
MFC after: 1 day
Security: Kernel stack memory disclosure
Sponsored by: The FreeBSD Foundation
21/01/2019
4:25 pm
base/head
emaste
head/sys/amd64/linux
Modificado:
head/sys/amd64/linux/linux_machdep.c
Log:
linuxulator: fix stack memory disclosure in linux_sigaltstack

admbugs: 765
Reported by: Vlad Tsyrklevich
Reviewed by: andrew
MFC after: 1 day
Security: Kernel memory disclosure
Sponsored by: The FreeBSD Foundation
21/01/2019
4:21 pm
base/head
emaste
head/sys/compat/linux
Modificado:
head/sys/compat/linux/linux_ioctl.c
Log:
linuxulator: fix stack memory disclosure in linux_ioctl_termio

admbugs: 765
Reported by: Vlad Tsyrklevich
Reviewed by: andrew
MFC after: 1 day
Security: Kernel stack memory disclosure
Sponsored by: The FreeBSD Foundation
21/01/2019
4:19 pm
base/head
emaste
head/sys/compat/linux
Modificado:
head/sys/compat/linux/linux_ioctl.c
Log:
linuxulator: fix stack memory disclosure in linux_ioctl_v4l

admbugs: 765
Reported by: Vlad Tsyrklevich
Reviewed by: andrew
MFC after: 1 day
Security: Kernel stack memory disclosure
Sponsored by: The FreeBSD Foundation
21/01/2019
3:27 pm
base/head
gjb
head/usr.bin/units
Modificado:
head/usr.bin/units/units.1
Log:
Correct a typo: was -> way.

Submitted by: Larry Hynes
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
21/01/2019
2:35 pm
base/head
kevans
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/if_awg.c
Log:
awg: fix soft reset failure with no link

U-Boot will leave the ephy reset de-asserted and the MAC soft reset will
fail on these boards with internal PHY and no link established. Toggle reset
again before proceeding to attach/init.

MFC after: 1 week
21/01/2019
4:50 am
base/head
avos
head/sbin/devd
Modificado:
head/sbin/devd/devd.conf
Log:
Fix duplicate wpa_supplicant(8) / hostapd(8) startup with devd(8)

Do not invoke 'wlan_up' function from devd(8) on interface
creation event (an example to create such event:
'ifconfig wlan0 create wlandev rtwn0');
they're typically produced during 'service netif (re)start'
and result in duplicate interface initialization.

From the user side if WPA option is used, this result in messages like:
- /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
or
- wpa_supplicant already running? (pid=xxxx).
(for HOSTAP interfaces this race may result in startup failure).

As a side effect, wpa_supplicant(8) / hostapd(8) will not be
invoked when new wlan(4) interface is created manually and
corresponding configuration for it is present in rc.conf(5).

This change does not affect device attach / removal events.

MFC after: 5 days
21/01/2019
3:57 am
base/head
markj
head/usr.bin/cmp/tests
Modificado:
head/usr.bin/cmp/tests/cmp_test2.sh
Log:
Fix cmp(1) tests for "special" mode.

Test failures don't seem to propagate up if atf_check is run in
a pipeline. Thus, the tests continued to pass despite the bug reverted
in r343245.

MFC after: 1 week
21/01/2019
3:47 am
base/head
markj
head/usr.bin/cmp
Modificado:
head/usr.bin/cmp/cmp.c
Log:
Revert r343117.

It breaks the special mode specified by passing "-" as one of the
input files. Revert for now while we discuss a fix.

PR: 234885
Reported by: delphij
MFC after: now
21/01/2019
3:38 am
base/head
avos
head/sbin/devd
Modificado:
head/sbin/devd/devd.conf
Log:
devd.conf(5): add otus(4) into wifi-driver-regex

MFC after: 5 days
21/01/2019
1:45 am
base/head
kevans
head/sys/dev/iwm
Modificado:
head/sys/dev/iwm/if_iwm.c
Log:
iwm(4): Fix possible null pointer indirection

Obtained from: DragonFlyBSD (obtained from Haiku)
MFC after: 1 week
21/01/2019
12:53 am
base/head
avos
head/sys/dev/usb/wlan
Modificado:
head/sys/dev/usb/wlan/if_urtw.c
head/sys/dev/usb/wlan/if_urtwvar.h
Log:
urtw(4): add length checks in Rx path.

- Check if buffer can contain Rx descriptor before accessing it.
- Verify upper / lower bounds for frame length.
- Do not pass too short frames into ieee80211_find_rxnode().

While here:
- Move cleanup to the function end.
- Reuse IEEE80211_IS_DATA() macro.

MFC after: 1 week
21/01/2019
12:09 am
base/head
avos
head/sys/dev/iwn
Modificado:
head/sys/dev/iwn/if_iwn.c
Log:
iwn(4): drop return code from iwn_*attach functions (they cannot fail)

While here, add missing trace 'end' marker in iwn5000_attach().

MFC after: 1 week
21/01/2019
12:03 am
base/head
avos
head/sys/dev/usb/wlan
Modificado:
head/sys/dev/usb/wlan/if_run.c
Log:
run(4): add more length checks in Rx path.

- Discard frames that are bigger than MCLBYTES (to prevent buffer overrun).
- Check buffer length before accessing its contents.
- Fix len <-> dmalen check - the last includes Rx Wireless information
structure size.
- Fix out-of-bounds read during Rx node search for ACK / CTS frames
(monitor mode only).

While here:
- Mark few suspicious places with comments.
- Move common cleanup to the function end.

MFC after: 1 week
20/01/2019
9:09 pm
base/head
gonzo
head/stand/mips/beri/boot2
Modificado:
head/stand/mips/beri/boot2/boot2.c
Log:
Unbreak mip64 build after r328437

Add exit and getchar functions to beri/boot2 code. They are required by
panic_action functin introduced in r328437
20/01/2019
11:30 pm
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_filter.c
Log:
cxgbe(4): Clear the reply-pending status of a hashfilter when the reply
indicates an error. Also, do not remove it twice from the hf list in
this case.

Submitted by: Krishnamraju Eraparaju @ Chelsio
MFC after: 1 week
Sponsored by: Chelsio Communicatons
20/01/2019
10:08 pm
base/head
trasz
in head: bin/csh bin/sh share/skel
Modificado:
head/bin/csh/csh.login
head/bin/csh/dot.cshrc
head/bin/sh/profile
head/share/skel/dot.cshrc
head/share/skel/dot.profile
Log:
Don't mess with BLOCKSIZE in shell startup files - it's set by login.conf(5);
there's no need to even mention it in shell rc files. Not that it's wrong;
just pointless and somewhat misleading.

Reviewed by: jilles
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18809
20/01/2019
10:34 pm
base/head
gonzo
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Add more profile-enabled libraries to remove when WITHOUT_PROFILE is defined

PR: 230898
Submitted by: Herbert J. Skuhra
MFC after: 1 week
20/01/2019
8:29 pm
base/head
gonzo
in head/sys/dev/usb: . quirk
Modificado:
head/sys/dev/usb/quirk/usb_quirk.c
head/sys/dev/usb/usbdevs
Log:
Add KBD_BOOTPROTO quirk for Logitech G510s USB keyboard

PR: 232136
Submitted by: dgilbert@eicat.ca
MFC after: 1 week
20/01/2019
7:47 pm
base/head
gonzo
head/usr.bin/systat
Modificado:
head/usr.bin/systat/devs.c
Log:
Fix crash in systat(4) when certain commands are called without arguments

Add check for missing arguments to dsmatchselect and dsselect

PR: 219689
Submitted by: Marko Turk
MFC after: 1 week
20/01/2019
3:17 pm
base/head
avos
in head: sys/amd64/conf sys/arm/conf sys/conf
Modificado:
head/sys/amd64/conf/GENERIC
head/sys/arm/conf/RK3188
head/sys/conf/NOTES
head/sys/conf/config.mk
head/sys/conf/options
head/sys/i386/conf/GENERIC
head/sys/mips/conf/ERL
head/sys/mips/conf/OCTEON1
head/sys/sparc64/conf/GENERIC
head/tools/tools/nanobsd/pcengines/ALIX_DSK
Log:
Remove IEEE80211_AMPDU_AGE config option.

It is noop since r297774.
20/01/2019
7:55 pm
base/head
gonzo
head/usr.bin/systat
Modificado:
head/usr.bin/systat/devs.c
Log:
Fix inconsistency in return values introduced by r343222

Consistently return 1 or the case of missing arguments in both functions

PR: 219689
MFC after: 1 week
X-MFC-With: 343222
20/01/2019
2:25 pm
base/head
jilles
head/bin/sh
Modificado:
head/bin/sh/histedit.c
Log:
sh: Send libedit "ferr" output to fd 2

The libedit "fout" output must be sent to fd 2 since it contains prompts
that POSIX says must be sent to fd 2. However, the libedit "ferr" output
receives error messages such as from "bind" that make no sense to send to fd
1.
20/01/2019
1:39 pm
base/head
avos
in head/sys: net80211 sys
Modificado:
head/sys/net80211/ieee80211.c
head/sys/net80211/ieee80211_freebsd.c
head/sys/net80211/ieee80211_freebsd.h
head/sys/net80211/ieee80211_ioctl.c
head/sys/net80211/ieee80211_var.h
head/sys/sys/param.h
Log:
net80211: resolve ioctl <-> detach race for ieee80211com structure

Since r287197 ieee80211com is a part of drivers softc; as a result,
after detach all pointers to it (iv_ic, ni_ic) are invalid. Most
possible users (tasks, interrupt handlers) are blocked / removed
when device is stopped; however, ioctl handlers were not tracked
and may crash if ieee80211com structure is accessed.

Since ieee80211com pointer access from ieee80211vap structure is not
protected by lock (constant after interface creation) and used in
many other places just use reference counting for ioctl handlers;
on detach set 'detached' flag and wait until reference counter goes to 0.

For HEAD ieee80211vap size was changed (__FreeBSD_version bumped);
however, in stable branches I'm going to split / reuse the last
iv_spare field for KBI stability.

Tested with:
- rsu(4), SIOCSIFCAP (-rxcsum) ioctl;
- rtwn_pci(4), SIOCG80211 / IEEE80211_IOC_HTPROTMODE ioctl.

MFC after: 1 week
20/01/2019
5:52 am
base/head
gonzo
head/sys/fs/smbfs
Modificado:
head/sys/fs/smbfs/smbfs_vnops.c
Log:
[smbfs] Allow semicolon in mounts that support long names

Semicolon is a legal character in long names but not in 8.3 format.
Move it to respective character set.

PR: 140068
Submitted by: tom@uffner.com
MFC after: 3 weeks
20/01/2019
12:45 am
base/head
gonzo
in head: sbin/ifconfig sys/net80211
Adicional:
head/sys/net80211/ieee80211_wps.h (contents, props changed)
Modificado:
head/sbin/ifconfig/ifieee80211.c
head/sys/net80211/ieee80211.h
Log:
[ifconfig] Print more WPS attributes in verbose "list scan" output

- Move WPS related defines to dedicated file
- Add handlers for more WPS attributes

PR: 217317
Submitted by: J.R. Oldroyd
MFC after: 3 weeks
19/01/2019
8:45 pm
base/head
tsoome
head/sys/dev/ixgbe
Modificado:
head/sys/dev/ixgbe/ixgbe_82599.c
head/sys/dev/ixgbe/ixgbe_common.c
Log:
ixgbe: this statement may fall through warnings with gcc

The recent gcc versions (7 and 8 at least) can check for switch case
statements for fall through (implicit-fallthrough). When fall through
is intentional, the default method for warning suppression is to place
comment /* FALLTHROUGH */ exactly before next case statement.

Differential Revision: https://reviews.freebsd.org/D18577
19/01/2019
4:04 pm
base/head
avos
head/sys/net80211
Modificado:
head/sys/net80211/ieee80211_crypto.c
Log:
net80211: drop m_pullup call from ieee80211_crypto_decap.

For most wireless drivers Rx mbuf is allocated as one
contiguous chunk; only few are using chains for allocations -
but even then at least MCLBYTES (minus Rx descriptor size) is
available in the first mbuf.

In addition to the above, m_pullup was never called here - otherwise,
reallocation will break post-crypto_decap logic (ieee80211_decap,
ieee80211_deliver_data...), so just remove it; length check is left
in case if some truncated frame appears here.

PR: 234241
MFC after: 1 week
19/01/2019
5:31 am
base/head
gonzo
head/sys/dev/aic7xxx
Modificado:
head/sys/dev/aic7xxx/aic79xx_pci.c
Log:
[aic7xxx] Use correct product name 29320LPE instead of non-existent 39320LPE

The PCI id belongs to Adaptec 29320LPE controller. The same fix also was
merged[1] to OpenBSD driver ~6 years ago.

[1] https://github.com/openbsd/src/commit/f997b5

PR: 172133
Submitted by: henning.petersen@t-online.de
MFC after: 1 week
19/01/2019
5:20 am
base/head
jhibbits
head/sys/contrib/ncsw/user/env
Modificado:
head/sys/contrib/ncsw/user/env/xx.c
Log:
dpaa: fix 32-bit build

Book-E powerpc uses 64-bit vm_paddr_t, and 32-bit powerpc has 32-bit pointers,
so gcc errors with cast to pointer from integer of different size. As this will
not actually be used in reality anyway, simply quiet the warning by casting
through uintptr_t.

MFC after: 3 weeks
MFC with: r343168
19/01/2019
4:47 am
base/head
jhibbits
in head/sys/powerpc: powerpc pseries
Modificado:
head/sys/powerpc/powerpc/intr_machdep.c
head/sys/powerpc/pseries/xics.c
Log:
powerpc: Fix opaque irq data initialization

The powerpc_intr structure is not zero-initialized, so on an invariants
build would panic in the xics driver with an invalid pointer. Also fix the
xics driver to share the private data setup code between xics_enable() and
xics_bind().

Reported by: Leonardo Bianconi
19/01/2019
4:54 am
base/head
jhibbits
head/sys/contrib/ncsw/user/env
Modificado:
head/sys/contrib/ncsw/user/env/xx.c
Log:
powerpc/dpaa: Handle DMAP virtual addresses in DPAA

sendfile(2) appears to now use DMAP wherever possible. These addresses are not
managed by pmap, so pmap_kextract() returns a 0 physical address, causing
failure.

This change fixes nginx running on P5020 SoC.

MFC after: 3 weeks
18/01/2019
11:54 pm
base/head
cem
head/sys/amd64/vmm
Modificado:
head/sys/amd64/vmm/x86.c
Log:
vmm(4): Mask Spectre feature bits on AMD hosts

For parity with Intel hosts, which already mask out the CPUID feature
bits that indicate the presence of the SPEC_CTRL MSR, do the same on
AMD.

Eventually we may want to have a better support story for guests, but
for now, limit the damage of incorrectly indicating an MSR we do not yet
support.

Eventually, we may want a generic CPUID override system for
administrators, or for minimum supported feature set in heterogenous
environments with failover. That is a much larger scope effort than
this bug fix.

PR: 235010
Reported by: Rys Sommefeldt
Sponsored by: Dell EMC Isilon
18/01/2019
11:26 pm
base/head
jhibbits
head/usr.bin/top
Modificado:
head/usr.bin/top/top.c
Log:
Fix top(1) long options handling

getopt_long(3) requires the long options be terminated by a NULL block.
Without the terminator, an invalid long option results in a segmentation
fault.

Reported by: Brandon Bergren
MFC after: 1 week
18/01/2019
11:00 pm
base/head
marck
head/usr.sbin/jail
Modificado:
head/usr.sbin/jail/command.c
Log:
Clarify error messages a bit.

X-Found-With: r343112
MFC after: 1 month
18/01/2019
10:20 pm
base/head
wulf
in head/sys: dev/atkbdc sys
Modificado:
head/sys/dev/atkbdc/psm.c
head/sys/sys/mouse.h
Log:
psm(4): detect Lenovo top-button clickpads

libinput has special handling for Lenovo ThinkPad *40 series, where it
treats clicks on the top button area as if they came from the TrackPoint:
https://wayland.freedesktop.org/libinput/doc/latest/t440-support.html

Detect these devices and set the corresponding evdev property.

Submitted by: Greg V
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18676
18/01/2019
9:46 pm
base/head
brooks
head/sys/netinet
Modificado:
head/sys/netinet/siftr.c
Log:
Make SIFTR work again after r342125 (D18443).

Correct a logic error.

Only disable when already enabled or enable when disabled.

Submitted by: Richard Scheffenegger
Reviewed by: Cheng Cui
Obtained from: Cheng Cui
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18885
18/01/2019
9:30 pm
base/head
brooks
in head: include/protocols libexec/talkd usr.bin/talk
Modificado:
head/include/protocols/talkd.h
head/libexec/talkd/talkd.c
head/usr.bin/talk/invite.c
head/usr.bin/talk/look_up.c
Log:
Use a private definition of osockaddr rather then relying on type
namespace polution in sys/socket.h.

Also remove support for operation on 4.3BSD.

PR: 224529
Differential Revision: https://reviews.freebsd.org/D14505
18/01/2019
9:00 pm
base/head
gonzo
in head/sys/dev/usb: . quirk
Modificado:
head/sys/dev/usb/quirk/usb_quirk.c
head/sys/dev/usb/usbdevs
Log:
[usb] Add HID_IGNORE quirks for multiple UPS devices

Without HID_IGNORE quirk enabled these models appear in the system as a uhid
devices while NUT (Network UPS Tool) expects them to be ugen.

PR: 131521
Submitted by: Naoyuki Tai , John Bayly
MFC after: 1 week
18/01/2019
8:35 pm
base/head
dim
head
Modificado:
head/ObsoleteFiles.inc
Log:
Remove leading slash from OLD_DIRS assignment in ObsoleteFiles.inc. The
"make delete-old" mechanism will already take care of such prefixes, and
this prevents a double leading slash from being displayed.
18/01/2019
6:22 pm
base/head
emaste
head/usr.sbin/freebsd-update
Modificado:
head/usr.sbin/freebsd-update/freebsd-update.8
Log:
freebsd-update.8: mandoc -Tlint fixes

PR: 185389
Reported by: bcr
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
18/01/2019
5:41 pm
base/head
emaste
head/usr.sbin/freebsd-update
Modificado:
head/usr.sbin/freebsd-update/freebsd-update.sh
Log:
freebsd-update: Use BASEDIR when checking for src component

src could potentially be installed under the based dir
and not under the root or vice versa.

PR: 224048
Submitted by: Gerald Aryeetey
Reviewed by: delphij
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18849
18/01/2019
1:43 pm
base/head
kib
head/sys/x86/x86
Modificado:
head/sys/x86/x86/busdma_bounce.c
Log:
i386/PAE busdma: allow more bounce pages.

If i386 has more than 4G of memory, allow the same number of busdma
bounce pages as for amd64. In fact, in this case bouncing sometimes
is much heavier than on amd64.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D18854
18/01/2019
1:38 pm
base/head
kib
in head/sys/x86: include x86
Modificado:
head/sys/x86/include/busdma_impl.h
head/sys/x86/x86/busdma_bounce.c
head/sys/x86/x86/busdma_machdep.c
Log:
x86 busdma: fix mis-use of bus_addr_t where vm_paddr_t is assumed.

Right now bus_addr_t and vm_paddr_t are always aliased to the same
underlying integer type on x86, which makes the interchange hard to
detect. Shortly, i386 kernel would use uint64_t for vm_paddr_t to
enable automatic use of PAE paging structures if hardware allows it,
while bus_addr_t would be extended to 64bit only when PAE option is
specified.

Fix all places that were identified as using bus_addr_t while page
address was assumed. This was performed by testing the complete PAE
merging patch on machine with > 4G of RAM enabled.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D18854
18/01/2019
1:35 pm
base/head
kib
head/sys/vm
Modificado:
head/sys/vm/vm_phys.c
head/sys/vm/vm_phys.h
head/sys/vm/vm_reserv.c
Log:
MI VM: Make it possible to set size of superpage at boot instead of compile time.

In order to allow single kernel to use PAE pagetables on i386 if
hardware supports it, and fall back to classic two-level paging
structures if not, superpage code should be able to adopt to either 2M
or 4M superpages size. There I make MI VM structures large enough to
track the biggest possible superpage, by allowing architecture to
define VM_NFREEORDER_MAX and VM_LEVEL_0_ORDER_MAX constants.
Corresponding VM_NFREEORDER and VM_LEVEL_0_ORDER symbols can be
defined as runtime values and must be less than the _MAX constants.
If architecture does not define _MAXs, it is assumed that _MAX ==
normal constant.

Reviewed by: markj
Tested by: pho (as part of the larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18853
18/01/2019
10:54 am
base/head
kib
head/sys/dev/nvdimm
Modificado:
head/sys/dev/nvdimm/nvdimm_spa.c
head/sys/dev/nvdimm/nvdimm_var.h
Log:
nvdimm: initialize SPA uuids statically.

The SPA ids are published numbers, so it's safe (if not a bit
annoying) to copy them into a source file.

Submitted by: D Scott Phillips
Sponsored by: Intel Corporation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18733
18/01/2019
10:45 am
base/head
kib
head/sys/dev/nvdimm
Modificado:
head/sys/dev/nvdimm/nvdimm.c
head/sys/dev/nvdimm/nvdimm_var.h
Log:
nvdimm: add a driver for the NVDIMM root device

The NVDIMM root device is parent to the individual ACPI NVDIMM
devices. Add a driver for the NVDIMM root device that can own
enumeration of NVDIMM devices as well as NVDIMM SPA ranges that the
system has.

Submitted by: D Scott Phillips
Sponsored by: Intel Corporation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18346
18/01/2019
8:19 am
base/head
kp
head/sys/netpfil/pf
Modificado:
head/sys/netpfil/pf/if_pfsync.c
Log:
pf: fix pfsync breaking carp

Fix missing initialisation of sc_flags into a valid sync state on clone which
breaks carp in pfsync.

This regression was introduce by r342051.

PR: 235005
Submitted by: smh@FreeBSD.org
Pointy hat to: kp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18882
18/01/2019
4:23 am
base/head
gonzo
head/sys/cam/ata
Modificado:
head/sys/cam/ata/ata_da.c
Log:
[ata] Add workaround for KingDian S200 SSD crash on receiving TRIM command

- Add ADA_Q_NO_TRIM quirk to be used with the device that falsely advertise TRIM support
- Add ADA_Q_NO_TRIM entry for KingDian S200 SSD

PR: 222802
Submitted by: Bertrand Petit
MFC after: 1 week
18/01/2019
12:39 am
base/head
gonzo
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Add ypldap to the list of conditional obsolete files

ypldap should be removed during delete-old if WITHOUT_NIS flag is enabled

PR: 230727
Submitted by: Dmitry Wagin
MFC after: 1 week
18/01/2019
12:26 am
base/head
gonzo
head/usr.bin/compress
Modificado:
head/usr.bin/compress/compress.c
Log:
Fix descriptor/memory leak in compress(1) code

This is mostly a style fix since the code in question is not called multiple
times and doesn't have cummulative effect.

PR: 204953
Submitted by: David Binderman
MFC after: 1 week
17/01/2019
11:21 pm
base/head
cem
head/sys/dev/ioat
Modificado:
head/sys/dev/ioat/ioat.h
Log:
ioat(4): Set __result_use_check on ioat_acquire_reserve

Even M_WAITOK callers must check for failure. For example, if the device is
quiescing, either due to automatic error-recovery induced reset, or due to
administrative detach, the routine will return ENXIO and the acquire
reference will not be held. So, there is no mode in which it is safe to
assume the routine succeeds without checking.

Sponsored by: Dell EMC Isilon
17/01/2019
10:00 pm
base/head
tsoome
head/stand/libsa
Modificado:
head/stand/libsa/printf.c
head/stand/libsa/stand.h
Log:
libsa: add asprintf()

asprintf() is a nice tool for string processing.

MFC after: 2 weeks
17/01/2019
9:52 pm
base/head
tsoome
head/stand/libsa/zfs
Modificado:
head/stand/libsa/zfs/zfsimpl.c
Log:
loader should ignore active multi_vdev_crash_dump feature on zpool

Since the loader zfs reader does not need to read the dump zvol, we can
just enable the feature.

illumos issue #9051 https://www.illumos.org/issues/9051

MFC after: 2 weeks
17/01/2019
9:38 pm
base/head
emaste
head/usr.sbin/freebsd-update
Modificado:
head/usr.sbin/freebsd-update/freebsd-update.sh
Log:
freebsd-update: Clarify unsupported release upgrade error message

Notify users that upgrading from -CURRENT or -STABLE is unsupported by
freebsd-update.

Also ensure --currently-running provides a correctly formatted release
(as done by -r).

PR: 234771
Submitted by: Gerald Aryeetey
Reported by: yuri
Reviewed by: bcran
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18803
17/01/2019
8:01 pm
base/head
trasz
head/usr.sbin/nscd
Modificado:
head/usr.sbin/nscd/nscd.c
Log:
Workaround for nscd(8) failure with large entries.

It fixes a case where eg a 2KB group entry would take several seconds
to complete with cache enabled in nsswitch.conf.

MFC after: 2 weeks
Sponsored by: Chalmers University of Technology
Differential Revision: https://reviews.freebsd.org/D18392
17/01/2019
7:44 pm
base/head
cem
in head/sys/x86: include x86
Modificado:
head/sys/x86/include/specialreg.h
head/sys/x86/x86/identcpu.c
Log:
Add definitions for AMD Spectre/Meltdown CPUID information

No functional change, aside from printing recognized bits in CPU
identification.

The bits are documented in 111006-B "Indirect Branch Control Extension"[1] and
124441 "Speculative Store Bypass Disable."[2]

Notably missing (left as future work):
* Integration with hw.spec_store_bypass_disable and hw_ssb_active flag,
which are currently Intel-specific
* Integration with hw_ibrs_active global flag, which are currently
Intel-specific
* SSB_NO integration in hw_ssb_recalculate()
* Bhyve integration (PR 235010)

[1]:
https://developer.amd.com/wp-content/resources/111006-B_AMD64TechnologyIndirectBranchControlExtenstion_WP_7-18Update_FNL.pdf

[2]:
https://developer.amd.com/wp-content/resources/124441_AMD64_SpeculativeStoreBypassDisable_Whitepaper_final.pdf

PR: 235010 (related, but does not fix)
MFC after: a week
17/01/2019
6:51 pm
base/head
kevans
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/if_awg.c
Log:
Revert r343095

This was intended to fix the soft reset timeout on boot for OrangePi One/R1
with internal PHY, but seems to cause other problems later on due to soft
resetting around some state changes that may or may not make the NIC
non-functional.

Reverting this for now while a better solution is sought out.
17/01/2019
6:08 pm
base/head
eugen
in head/usr.sbin: . trim
Adicional:
head/usr.sbin/trim/
head/usr.sbin/trim/Makefile (contents, props changed)
head/usr.sbin/trim/trim.8 (contents, props changed)
head/usr.sbin/trim/trim.c (contents, props changed)
Modificado:
head/usr.sbin/Makefile
Log:
Re-add new small tool trim(8) to delete contents for blocks
on devices using wear-leveling algorithms as a few weeks passed
after review and discussion of trim(8) ceased and
we still have no utility to perform the job.

Reviewed by: hackers@
MFC after: 2 weeks
17/01/2019
5:36 pm
base/head
markj
head/usr.bin/cmp
Modificado:
head/usr.bin/cmp/cmp.c
Log:
Fix handling of rights on stdio streams.

- Limit rights on stdio before opening input files. Otherwise, open()
may return one of the standard descriptors and we end up limiting
rights such that we cannot read from one of the input files.
- Use caph_limit_stdio(), which suppresses EBADF, to ensure that
we don't emit an error if one of the stdio streams is closed.
- Don't bother further limiting rights on stdin when stdin isn't going
to be used. Doing so correctly requires checking for a number of
edge cases, and it doesn't provide any significant benefit.

PR: 234885
Reviewed by: oshogbo
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18860
17/01/2019
4:50 pm
base/head
des
in head: include lib/libc/gen libexec/rtld-elf
Modificado:
head/include/dlfcn.h
head/lib/libc/gen/dlopen.3
head/libexec/rtld-elf/rtld.c
Log:
Revert r343093 until I can address the issues raised by kib@.
17/01/2019
4:26 pm
base/head
mckusick
head/contrib/libc++/include
Modificado:
head/contrib/libc++/include/errno.h
Log:
Truely fix #if defined broken in -r343111

Pointy-hat-to: mckusick
17/01/2019
3:42 pm
base/head
mckusick
head/contrib/libc++/include
Modificado:
head/contrib/libc++/include/errno.h
Log:
Proper definition of elast3.

Reported by: Oliver Pinter
17/01/2019
3:35 pm
base/head
mckusick
head/contrib/libc++/include
Modificado:
head/contrib/libc++/include/errno.h
Log:
Fix #if defined broken in -r343111

Pointy-hat-to: mckusick
17/01/2019
2:09 pm
base/head
eugen
head/usr.sbin/jail
Modificado:
head/usr.sbin/jail/command.c
Log:
jail(8): stop crashing with SIGSEGV inside run_command() function
while processing not entirely correct jail.conf(5) file
having something like "ip4.addr = 127.0.0.1;" and no "ip4 = ...;"
so extrap variable stays NULL.

Reported by: marck
MFC after: 1 month
17/01/2019
6:35 am
base/head
mckusick
in head: cddl/lib/libdtrace contrib/libc++/include
Modificado:
head/cddl/lib/libdtrace/errno.d
head/contrib/libc++/include/__errc
head/contrib/libc++/include/errno.h
head/contrib/libxo/tests/gettext/po/pig_latin/strerror.po
head/contrib/libxo/tests/gettext/strerror.pot
head/contrib/openbsm/libbsm/bsm_errno.c
head/contrib/openbsm/sys/bsm/audit_errno.h
head/lib/libc/gen/errlst.c
head/lib/libc/nls/C.msg
head/lib/libc/sys/intro.2
head/stand/liblua/lerrno.c
head/sys/bsm/audit_errno.h
head/sys/compat/cloudabi/cloudabi_errno.c
head/sys/compat/linux/linux_errno.inc
head/sys/security/audit/bsm_errno.c
head/sys/sys/errno.h
Log:
Create new EINTEGRITY error with message "Integrity check failed".

An integrity check such as a check-hash or a cross-correlation failed.
The integrity error falls between EINVAL that identifies errors in
parameters to a system call and EIO that identifies errors with the
underlying storage media. EINTEGRITY is typically raised by intermediate
kernel layers such as a filesystem or an in-kernel GEOM subsystem when
they detect inconsistencies. Uses include allowing the mount(8) command
to return a different exit value to automate the running of fsck(8)
during a system boot.

These changes make no use of the new error, they just add it. Later
commits will be made for the use of the new error number and it will
be added to additional manual pages as appropriate.

Reviewed by: gnn, dim, brueffer, imp
Discussed with: kib, cem, emaste, ed, jilles
Differential Revision: https://reviews.freebsd.org/D18765
17/01/2019
6:34 am
base/head
gonzo
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Fix conditional obsolete files entry for WITHOUT_EXAMPLES

Add all the files under /usr/share/examples to the MK_EXAMPLES
section. OLD_DIRS entries are not removed if they're not empty so
prior to this change WITHOUT_EXAMPLES didn't have significant effect
on the updated system.

PR: 228484
Submitted by: Dmitry Wagin (original patch)
MFC after: 1 week
17/01/2019
6:22 am
base/head
gonzo
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Add optional obsolete files for the installworld without sendmail

Add two more entries for WITHOUT_SENDMAIL install. The /var/spool/clientmqueue
entry would be deleted only if there are no files/dirs in it, so the
content generated during previous lifecycle of the system is safe

PR: 228484
Submitted by: Dmitry Wagin
MFC after: 1 week
17/01/2019
4:51 am
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/kern_fork.c
Log:
Re-wrap long line after r341827.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
17/01/2019
5:15 am
base/head
kib
head/sys/amd64/vmm/intel
Modificado:
head/sys/amd64/vmm/intel/vmx.c
Log:
Trim whitespace at EoL, use tabs instead of spaces for indent.

PR: 235004
Submitted by: Jose Luis Duran
MFC after: 3 days
16/01/2019
10:29 pm
base/head
gonzo
in head/sys/dev/usb: . quirk
Modificado:
head/sys/dev/usb/quirk/usb_quirk.c
head/sys/dev/usb/usbdevs
Log:
[usb] Add quirk for SmartG2 USB memory key

PR: 167001
Submitted by: Daan Vreeken [PA4DAN]
MFC after: 1 week
16/01/2019
9:59 pm
base/head
jilles
head/lib/libedit
Modificado:
head/lib/libedit/chartype.c
Log:
libedit: Avoid out of bounds read in 'bind' command

This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c:
Make sure that argv is NULL terminated since functions like tty_stty rely
on it to be so (Gerry Swinslow)

This broke when the wide-character support was enabled in libedit. The
conversion from multibyte to wide-character did not supply the apparently
expected terminating NULL in the new argv array.

PR: 233343
Submitted by: Yuichiro NAITO
Obtained from: NetBSD
MFC after: 1 week
16/01/2019
9:13 pm
base/head
gonzo
head/sys/arm/mv
Modificado:
head/sys/arm/mv/mv_common.c
Log:
[mv] Fix invalid condition in fdt_fixup_ranges

Add parentheses to perform assignment before comparison. The prior
condition worked because fdt_parent_addr_cells returns 1 for the DTB
on which fdt_fixup_ranges is called and accidentally par_addr_cells
ends up to be set to the same value.

PR: 210705
Submitted by: David Binderman
MFC after: 1 week
16/01/2019
8:46 pm
base/head
cy
head/contrib/ipfilter
Eliminado:
head/contrib/ipfilter/pcap-bpf.h
Log:
Remove redundant ipfilter version of pcap-bpf.h. As of r214535 it was
no longer needed.

MFC after: 1 week
16/01/2019
8:20 pm
base/head
glebius
head/sys/kern
Modificado:
head/sys/kern/subr_param.c
head/sys/kern/vfs_bio.c
Log:
Fix mistake in r343030: move nswbuf calculation back to
kern_vfs_bio_buffer_alloc(), because in init_param2() nbuf
isn't really initialized yet.

Pointed out by: bde
16/01/2019
8:14 pm
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/vm_init.c
head/sys/vm/vm_kern.h
head/sys/vm/vm_pager.c
Log:
Do not reserve KVA for paging bufs in vm_ksubmap_init(), since now
they allocate it in pbuf_init(). This should have been done together
with r343030.
16/01/2019
2:42 pm
base/head
kevans
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/if_awg.c
Log:
awg: Move MAC soft reset to awg_init_locked to avoid soft reset timeout

From NetBSD: Since the MAC can get stuck in reset state with no link, ignore
reset timeouts and continue with initializing the device.

Fixes "soft reset timeout" issue at boot with no network cable plugged in.

awg_init may be called multiple times throughout normal interface usage, so
the tx/rx descriptor base address registers must be written after each MAC
reset and are moved as such.

This problem has been observed on FreeBSD, H3/H2+ devices with an internal
PHY (includes OrangePi R1, OrangePi One at least).

Reviewed by: manu, ganbold
Obtained from: NetBSD
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18844
16/01/2019
12:33 pm
base/head
avos
head/sys/dev/iwn
Modificado:
head/sys/dev/iwn/if_iwn.c
head/sys/dev/iwn/if_iwn_debug.h
head/sys/dev/iwn/if_iwnreg.h
head/sys/dev/iwn/if_iwnvar.h
Log:
iwn(4): (partially) rewrite A-MPDU Tx path

Generic Tx stats fixes:
- do not try to parse "aggregation status" for single frames; send them
to iwn_tx_done() instead;
- try to attach mbuf / node reference pair to reported BA events;
allows to fix reported status for ieee80211_tx_complete() and ifnet counters
(previously all A-MPDU frames were counted as failed - see PR 210211);
requires few more firmware bug workarounds;
- preserve short / long retry counters for wlan_amrr(4)
(disabled for now - causes significant performance degradation).
- Add new IWN_DEBUG_AMPDU debug category.
- Add one more check into iwn_tx_data() to prevent aggregation ring
overflow.
- Workaround 'seqno % 256' != 'current Tx slot' case (until D9195 is not
in the tree).
- Improve watchdog timer updates (previously watchdog check was omitted
when at least one frame was transmitted).
- Stop Tx when memory leak in currently used ring was detected (unlikely
to happen).
- Few other minor fixes.

Was previously tested with:
- Intel 6205, STA mode (Tx aggregation behaves much better now).
- Intel 4965AGN, STA mode (still unstable).

PR: 192641, 210211
Reviewed by: adrian, dhw
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D10728
16/01/2019
12:12 pm
base/head
des
in head: include lib/libc/gen libexec/rtld-elf
Modificado:
head/include/dlfcn.h
head/lib/libc/gen/dlopen.3
head/libexec/rtld-elf/rtld.c
Log:
Implement dlopenat(3).

MFC after: 3 weeks
16/01/2019
12:11 pm
base/head
avos
in head/sys/dev/rtwn: rtl8192c rtl8812a
Modificado:
head/sys/dev/rtwn/rtl8192c/r92c_tx.c
head/sys/dev/rtwn/rtl8812a/r12a_tx.c
Log:
rtwn(4): clear 'basic' rate bit before calculating RTS/CTS rate.

Rate tables have this bit set to indicate minimal set of basic rates;
however, it overlappes with MCS bit, so rate2ridx() will treat them as
an 11n rate.

Due to the current rates setup the issue can be reproduced only
in 5GHz band with 11n / protection enabled.

Tested with RTL8821AU, HOSTAP mode.

MFC after: 5 days
16/01/2019
11:33 am
base/head
tuexen
head/sys/netinet
Modificado:
head/sys/netinet/sctp_constants.h
head/sys/netinet/sctp_usrreq.c
Log:
Limit the user-controllable amount of memory the kernel allocates
via IPPROTO_SCTP level socket options.

This issue was found by running syzkaller.

MFC after: 1 week
16/01/2019
10:33 am
base/head
avos
in head/sys/dev: rtwn/usb usb
Modificado:
head/sys/dev/rtwn/usb/rtwn_usb_attach.h
head/sys/dev/usb/usbdevs
Log:
rtwn_usb(4): add new USB id for RTL8821AU

Reported by: Mike Tancsa
Tested by: Mike Tancsa
MFC after: 3 days
16/01/2019
6:10 am
base/head
kib
head/sys/x86/x86
Modificado:
head/sys/x86/x86/busdma_bounce.c
Log:
Style(9) fixes for x86/busdma_bounce.c.

Remove extra parentheses. Adjust indents and lines fill.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
16/01/2019
5:51 am
base/head
kib
head/sys/x86/x86
Modificado:
head/sys/x86/x86/busdma_bounce.c
Log:
Remove unused prototype.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
16/01/2019
5:44 am
base/head
kib
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Improve iflib busdma(9) KPI use.

- Specify BUS_DMA_NOWAIT for bus_dmamap_load() on rx refill, since
callbacks are not supposed to be used.
- Match tso/non-tso tags to corresponding tx map operations. Create
separate tso maps for tx descriptors. In particular, do not use
non-tso tag to load, unload, or destroy a map created with tso tag.
- Add missed bus_dmamap_sync() calls.
Submitted by: marius.

Reported and tested by: pho
Reviewed by: marius
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
16/01/2019
5:15 am
base/head
kib
in head: contrib/netbsd-tests/kernel lib/libc/sys sys/kern
Modificado:
head/contrib/netbsd-tests/kernel/t_sysv.c
head/lib/libc/sys/shmat.2
head/sys/kern/sysv_shm.c
head/sys/sys/shm.h
head/sys/vm/vm_map.c
head/sys/vm/vm_map.h
Log:
Implement shmat(2) flag SHM_REMAP.

Based on the description in Linux man page.

Reviewed by: markj, ngie (previous version)
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18837
16/01/2019
5:09 am
base/head
kib
head/contrib/netbsd-tests/kernel
Modificado:
head/contrib/netbsd-tests/kernel/t_sysv.c
Log:
Trim spaces at the end of lines.

Reviewed by: markj, ngie
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18837
16/01/2019
4:02 am
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/uma_int.h
Log:
Whitespace.
16/01/2019
3:52 am
base/head
jhibbits
head/sys/powerpc/fpu
Modificado:
head/sys/powerpc/fpu/fpu_sqrt.c
Log:
powerpc: Fix FPU fsqrt emulation special case results

If fsqrts is emulated with +INF as its argument, the 0 return value causes a
NULL pointer dereference, panicking the system. Follow the PowerISA and
return +INF with no FP exception.

MFC after: 1 week
16/01/2019
3:46 am
base/head
araujo
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/uart_emul.c
Log:
Fix broken uart on Win2016 guest.

Obtained from: Joyent (commit/2bf1a940afbd1382faff159e7c93c72779ca10f4)
MFC after: 3 weeks.
16/01/2019
2:19 am
base/head
cem
in head/sys: amd64/vmm x86/x86
Modificado:
head/sys/amd64/vmm/x86.c
head/sys/amd64/vmm/x86.h
head/sys/x86/x86/mp_x86.c
Log:
vmm(4): Take steps towards multicore bhyve AMD support

vmm's CPUID emulation presented Intel topology information to the guest, but
disabled AMD topology information and in some cases passed through garbage.
I.e., CPUID leaves 0x8000_001[de] were passed through to the guest, but
guest CPUs can migrate between host threads, so the information presented
was not consistent. This could easily be observed with 'cpucontrol -i 0xfoo
/dev/cpuctl0'.

Slightly improve this situation by enabling the AMD topology feature flag
and presenting at least the CPUID fields used by FreeBSD itself to probe
topology on more modern AMD64 hardware (Family 15h+). Older stuff is
probably less interesting. I have not been able to empirically confirm it
is sufficient, but it should not regress anything either.

Reviewed by: araujo (previous version)
Relnotes: sure
16/01/2019
2:13 am
base/head
mw
in head/sys: contrib/ena-com dev/ena
Modificado:
head/sys/contrib/ena-com/ena_eth_com.c
head/sys/dev/ena/ena.c
head/sys/dev/ena/ena.h
Directory Properties:
head/sys/contrib/ena-com/ (props changed)
Log:
Suppress excessive error prints in ENA TX hotpath

In FreeBSD, this is normal situation that the Tx ring is being full. In
hat case, the packet is put back into drbr and the next attempt to send
it is taken after the cleanup.

Too much logs like this can cause system instability and even cause the
device reset (because keep alive or cleanup could be missed).

To fix that, the log level of this message is changed to debug.

Upon this change upgrade the driver version to v0.8.2.

Submitted by: Michal Krawczyk
Obtained from: Semihalf
Sponsored by: Amazon, Inc.
16/01/2019
2:05 am
base/head
cy
head/contrib/ipfilter
Eliminado:
head/contrib/ipfilter/mli_ipl.c
Log:
Remove an IRIX-only source file.

MFC after: 1 week
16/01/2019
1:08 am
base/head
gonzo
in head/sys: arm64/conf dts/arm/overlays
Adicional:
head/sys/dts/arm64/overlays/spigen-rpi3.dtso (contents, props changed)
Modificado:
head/sys/arm64/conf/GENERIC
head/sys/dts/arm/overlays/spigen-rpi2.dtso
head/sys/modules/dtb/rpi/Makefile
Log:
[rpi] Reorganize spigen(4) overlays for Raspberry Pi

- Remove CS=2 entry from spigen-rpi2 since it didn't work
- Add spigen-rpi3 overlay for Raspberry Pi 3
- Enable rpi overlay modules for GENERIC kernel on aarch64

PR: 233489
Submitted by: bobf@mrp3.com
Reviewed by: db
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D16088
16/01/2019
12:39 am
base/head
araujo
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/bhyverun.c
head/usr.sbin/bhyve/block_if.c
head/usr.sbin/bhyve/consport.c
head/usr.sbin/bhyve/dbgport.c
head/usr.sbin/bhyve/gdb.c
head/usr.sbin/bhyve/mevent.c
head/usr.sbin/bhyve/pci_e82545.c
head/usr.sbin/bhyve/pci_passthru.c
head/usr.sbin/bhyve/pci_virtio_console.c
head/usr.sbin/bhyve/pci_virtio_net.c
head/usr.sbin/bhyve/pci_virtio_rnd.c
head/usr.sbin/bhyve/rfb.c
head/usr.sbin/bhyve/uart_emul.c
Log:
Use capsicum_helpers(3) that allow us to simplify the code and its functions
will return success when the kernel is built without support of
the capability mode.

It is important to note, that I'm taking a more conservative approach
with these changes and it will be done in small steps.

Reviewed by: jhb
MFC after: 6 weeks
Differential Revision: https://reviews.freebsd.org/D18744
15/01/2019
11:37 pm
base/head
sjg
head/share/mk
Modificado:
head/share/mk/bsd.confs.mk
head/share/mk/bsd.files.mk
Log:
Fix STAGE_DIR.* to handle indirect *DIR variables.

bsd.{files,conf}.mk recently changed to allow *DIR to name a variable
rather than a path.
STAGE_DIR.* need to adapt.

Reviewed by: bdrewery
Differential Revision: D18847
15/01/2019
11:35 pm
base/head
sjg
head/share/mk
Modificado:
head/share/mk/dirdeps-options.mk
Log:
Use .undef per variable

Attempting to expand a variable to a list of vars to .undef
does not actually work.

Reviewed by: bdrewery
Differential Revision: D17251
15/01/2019
10:31 pm
base/head
bz
head/sys/dev/iwm
Modificado:
head/sys/dev/iwm/if_iwm.c
Log:
With the sync from Dragonfly BSD in r318216 a bug slipped in (also still present
upstream it seems).

The tlv variable was changed to a pointer but the advancement of the data pointer
was left as sizeof(tlv). While the sizeof the (now) pointer equals the
sizeof 2 x uint32_t (size of the struct) on 64bit platforms, on 32bit platforms
the size of the advancement of the data pointer was wrong leading to
firmware load issues.

Correctly advance the data pointer by the size of the structure and not by
the size of a pointer.

PR: 219683
Submitted by: waddlesplash gamil.com (Haiku) on irc
MFC after: 1 week
15/01/2019
9:06 pm
base/head
gonzo
head/sys/dev/drm
Modificado:
head/sys/dev/drm/drm_drv.c
Log:
[drm] Fix off-by-one error when accessing driver-specific ioctl handlers array

PR: 231513
Submitted by: Young_X
Approved by: imp
MFC after: 1 week
15/01/2019
7:33 pm
base/head
glebius
in head/sys: compat/linuxkpi/common/src vm
Modificado:
head/sys/compat/linuxkpi/common/src/linux_page.c
head/sys/vm/uma_dbg.c
head/sys/vm/uma_int.h
Log:
Fix compilation failures on different arches that have vm_machdep.c not
aware of counter_u64_t by including counter.h into uma_int.h. I'm not
happy about this inclusion, but it fixes compilation ASAP.
15/01/2019
6:53 pm
base/head
jhb
head/sys/dev/cxgbe/crypto
Modificado:
head/sys/dev/cxgbe/crypto/t4_crypto.c
Log:
Reject new sessions if the necessary queues aren't initialized.

ccr reuses the control queue and first rx queue from the first port on
each adapter. The driver cannot send requests until those queues are
initialized. Refuse to create sessions for now if the queues aren't
ready. This is a workaround until cxgbe allocates one or more
dedicated queues for ccr.

PR: 233851
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D18478
15/01/2019
6:50 pm
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/uma_core.c
Log:
style(9): break long line.
15/01/2019
6:49 pm
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/uma_core.c
Log:
Remove harmless leftover from code that cycles over zone's kegs. Just use +
instead of +=. There is no functional change.
15/01/2019
6:47 pm
base/head
glebius
head/lib/libmemstat
Modificado:
head/lib/libmemstat/memstat_uma.c
Log:
This was missed in r343051: make uz_allocs, uz_frees and uz_fails counter(9).
15/01/2019
6:32 pm
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/uma_core.c
Log:
Only do uz_items accounting for zones that have a limit set in uz_max_items.
This reduces amount of locking required for these zones.

Also, for cache only zones (UMA_ZFLAG_CACHE) accounting uz_items wasn't
correct at all, since they may allocate items directly from their backing
store and then free them via UMA underflowing uz_items.

Tested by: pho
15/01/2019
6:24 pm
base/head
glebius
in head/sys: compat/linuxkpi/common/src vm
Modificado:
head/sys/compat/linuxkpi/common/src/linux_page.c
head/sys/vm/uma_core.c
head/sys/vm/uma_dbg.c
head/sys/vm/uma_int.h
Log:
Make uz_allocs, uz_frees and uz_fails counter(9). This removes some
atomic updates and reduces amount of data protected by zone lock.

During startup point these fields to EARLY_COUNTER. After startup
allocate them for all early zones.

Tested by: pho
15/01/2019
6:20 pm
base/head
jhb
head
Modificado:
head/UPDATING
Log:
Update the note about the need for COMPAT_FREEBSD kernel options.

Rather than mentioning the requirement for 4.x binaries but not
explaining why (it was assuming an upgrade from 4.x to 5.0-current),
explain when compat options are needed (for running existing host
binaries) in a more general way while using a more modern example
(COMPAT_FREEBSD11 for 11.x binaries). While here, explicitly mention
that a GENERIC kernel should always work.

Reported by: Robert Huff
Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18740
15/01/2019
5:40 pm
base/head
shurd
head/sys/netinet
Modificado:
head/sys/netinet/tcp_output.c
Log:
Fix window update issue when scaling disabled

When the TCP window scale option is not used, and the window
opens up enough in one soreceive, a window update will not be sent.

For example, if recwin == 65535, so->so_rcv.sb_hiwat >= 262144, and
so->so_rcv.sb_hiwat <= 524272, the window update will never be sent.
This is because recwin and adv are clamped to TCP_MAXWIN << tp->rcv_scale,
and so will never be >= so->so_rcv.sb_hiwat / 4
or <= so->so_rcv.sb_hiwat / 8.

This patch ensures a window update is sent if the window opens by
TCP_MAXWIN << tp->rcv_scale, which should only happen when the window
size goes from zero to the max expressible.

This issue looks like it was introduced in r306769 when recwin was clamped
to TCP_MAXWIN << tp->rcv_scale.

MFC after: 1 week
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D18821
15/01/2019
3:35 pm
base/head
emaste
head/crypto/openssh
Modificado:
head/crypto/openssh/scp.c
Log:
scp: disallow empty or current directory

Obtained from: OpenBSD scp.c 1.198
Security: CVE-2018-20685
Sponsored by: The FreeBSD Foundation
15/01/2019
9:48 am
base/head
andrew
head/sys/arm64/arm64
Modificado:
head/sys/arm64/arm64/cpufunc_asm.S
Log:
Ensure the I-Cache is correctly handled in arm64_icache_sync_range

The cache_handle_range macro to handle the arm64 instruction and data
cache operations would return when it was complete. This causes problems
for arm64_icache_sync_range and arm64_icache_sync_range_checked as they
assume they can execute the i-cache handling instruction after it has been
called.

Fix this by making this assumption correct.

While here add missing instruction barriers and adjust the style to
match the rest of the assembly.

Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18838
15/01/2019
8:59 am
base/head
kp
head/sys/netpfil/pf
Modificado:
head/sys/netpfil/pf/pf_table.c
Log:
pf: silence a runtime warning

Sometimes, for negated tables, pf can log 'pfr_update_stats: assertion failed'.
This warning does not clarify anything for users, so silence it, just as
OpenBSD has.

PR: 234874
MFC after: 1 week
15/01/2019
6:44 am
base/head
delphij
head/sys/kern
Modificado:
head/sys/kern/kern_ktr.c
Log:
Use TD_IS_IDLETHREAD instead of unrolled version.

MFC after: 2 weeks
15/01/2019
3:43 am
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/uma_core.c
Log:
Fix compilation on 32-bit.
15/01/2019
1:19 am
base/head
glebius
in head: . share/man/man9
Eliminado:
head/share/man/man9/pbuf.9
Modificado:
head/ObsoleteFiles.inc
head/share/man/man9/Makefile
Log:
Remove pbuf(9) manual page that is now nearly 100% outdated.
15/01/2019
12:52 am
base/head
gonzo
head/sys/dev/led
Modificado:
head/sys/dev/led/led.c
Log:
[led] propagate error from set_led() to the caller

Do not lose error condition by always returning 0 from set_led.
None of the calls to set_led checks for return value at the moment so
none of API consumers in base is affected.

PR: 231567
Submitted by: Bertrand Petit
MFC after: 1 week
15/01/2019
12:37 am
base/head
gonzo
head/sys/arm/mv
Modificado:
head/sys/arm/mv/mv_pci.c
Log:
[mv_pci] Increase default PCI space size for mv_pci

mv_pci driver reads PCI memory window layout from DTB data and if the
data is incomplete falls back to default value. The value is too small
to fit two PCI spaces for mwlwifi devices on WRT3200ACM so the resource
allocation for them fails. Increase the default to 4Mb from 1Mb so
the devices can be properly attached.

MFC after: 1 week
15/01/2019
12:35 am
base/head
glebius
in head/sys: kern sys
Modificado:
head/sys/kern/kern_lock.c
head/sys/sys/lockmgr.h
Log:
Add flag LK_NEW for lockinit() that is converted to LO_NEW and passed
down to lock_init(). This allows for lockinit() on a not prezeroed
memory.
15/01/2019
12:02 am
base/head
glebius
in head: lib/libmemstat sys/vm
Modificado:
head/lib/libmemstat/memstat_uma.c
head/sys/vm/uma.h
head/sys/vm/uma_core.c
head/sys/vm/uma_int.h
head/sys/vm/vm_page.c
Log:
o Move zone limit from keg level up to zone level. This means that now
two zones sharing a keg may have different limits. Now this is going
to work:

zone = uma_zcreate();
uma_zone_set_max(zone, limit);
zone2 = uma_zsecond_create(zone);
uma_zone_set_max(zone2, limit2);

Kegs no longer have uk_maxpages field, but zones have uz_items. When
set, it may be rounded up to minimum possible CPU bucket cache size.
For small limits bucket cache can also be reconfigured to be smaller.
Counter uz_items is updated whenever items transition from keg to a
bucket cache or directly to a consumer. If zone has uz_maxitems set and
it is reached, then we are going to sleep.

o Since new limits don't play well with multi-keg zones, remove them. The
idea of multi-keg zones was introduced exactly 10 years ago, and never
have had a practical usage. In discussion with Jeff we came to a wild
agreement that if we ever want to reintroduce the idea of a smart allocator
that would be able to choose between two (or more) totally different
backing stores, that choice should be made one level higher than UMA,
e.g. in malloc(9) or in mget(), or whatever and choice should be controlled
by the caller.

o Sleeping code is improved to account number of sleepers and wake them one
by one, to avoid thundering herd problem.

o Flag UMA_ZONE_NOBUCKETCACHE removed, instead uma_zone_set_maxcache()
KPI added. Having no bucket cache basically means setting maxcache to 0.

o Now with many fields added and many removed (no multi-keg zones!) make
sure that struct uma_zone is perfectly aligned.

Reviewed by: markj, jeff
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D17773
14/01/2019
3:48 pm
base/head
pfg
head/lib/msun/src
Modificado:
head/lib/msun/src/e_j0.c
head/lib/msun/src/e_j0f.c
Log:
msun: reduce diff between src/e_j0.c and src/e_j0f.c

PR: 229501
MFC after: 1 week
14/01/2019
8:23 am
base/head
lme
head/usr.sbin/bluetooth/bluetooth-config
Modificado:
head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.sh
Log:
This new version of bluetooth-config.sh tries to follow the style of other
shell scripts in base, removes the bogus "copyleft", adds the BeerWare license
header and uses rc.subr(8) new 'enable' keyword for adding entries in
rc.conf(5).

Submitted by: erdgeist
Approved by: bapt
MFC after: 2 weeks
14/01/2019
7:31 am
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/kern_malloc.c
Log:
Handle overflow in calculating max kmem size.

vm_kmem_size is u_long, and it might be not capable of holding page
count times PAGE_SIZE, even when scaled down by VM_KMEM_SIZE_SCALE. As
bde reported, 12G PAE config ends up with zero for kmem size.

Explicitly check for overflow and clamp kmem size at vm_kmem_size_max.
If we end up at zero size because VM_KMEM_SIZE_MAX is not defined,
panic with clear explanation rather then failing in a way which is
hard to relate.

Reported by: bde, pho
Tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18767
14/01/2019
6:34 am
base/head
nyan
in head/kerberos5: lib/libasn1 lib/libgssapi_krb5
Modificado:
head/kerberos5/lib/libasn1/Makefile
head/kerberos5/lib/libgssapi_krb5/Makefile
head/kerberos5/lib/libhdb/Makefile
head/kerberos5/lib/libheimntlm/Makefile
head/kerberos5/lib/libhx509/Makefile
head/kerberos5/lib/libkadm5clnt/Makefile
head/kerberos5/lib/libkadm5srv/Makefile
head/kerberos5/lib/libkdc/Makefile
head/kerberos5/lib/libkrb5/Makefile
head/kerberos5/lib/libwind/Makefile
head/kerberos5/libexec/digest-service/Makefile
head/kerberos5/libexec/hprop/Makefile
head/kerberos5/libexec/hpropd/Makefile
head/kerberos5/libexec/kadmind/Makefile
head/kerberos5/libexec/kdc/Makefile
head/kerberos5/usr.bin/hxtool/Makefile
head/kerberos5/usr.bin/kadmin/Makefile
head/kerberos5/usr.bin/string2key/Makefile
head/kerberos5/usr.bin/verify_krb5_conf/Makefile
head/kerberos5/usr.sbin/kstash/Makefile
Log:
Use ${SRCTOP}/contrib/com_err/com_err.h instead of the installed com_err.h.
This fixes build when com_err.h is not installed.

PR: 234691
MFC after: 1 week
14/01/2019
3:13 am
base/head
gonzo
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Add four kerberos CLI utilities to OptionalObsoleteFiles.inc

Add asn1_compile, make-roken, kcc, and slc to the OptionalObsoleteFiles.inc
so they would be removed during delete-old stage if the new world is built
without Kerberos support.

PR: 230725
Submitted by: Dmitry Wagin
MFC after: 1 week
14/01/2019
1:30 am
base/head
gonzo
head/stand/i386/libi386
Modificado:
head/stand/i386/libi386/biosmem.c
Log:
Add Dell Chromebook to the list of devices with E820 extmem quirk enabled

Just like for Acer C270 chromebook the E820 extmem workaround is required for
FreeBSD to boot on Dell chromebook.

PR: 204916
Submitted by: Keith White
MFC after: 1 week
13/01/2019
11:41 pm
base/head
cognet
head/sys/arm64/arm64
Modificado:
head/sys/arm64/arm64/cpufunc_asm.S
Log:
Don't forget to add the needed #includes.

Pointy hat to: cognet
13/01/2019
11:29 pm
base/head
cognet
in head/sys/arm64: arm64 include
Modificado:
head/sys/arm64/arm64/cpufunc_asm.S
head/sys/arm64/arm64/freebsd32_machdep.c
head/sys/arm64/include/cpufunc.h
Log:
Introduce cpu_icache_sync_range_checked(), that does the same thing as
cpu_icache_sync_range(), except that it sets pcb_onfault to catch any page
fault, as doing cache maintenance operations for non-mapped generates a
data abort, and use it in freebsd32_sysarch(), so that a userland program
attempting to sync the icache with unmapped addresses doesn't crash the
kernel.

Spotted out by: andrew
13/01/2019
8:33 pm
base/head
jah
head/sys/kern
Modificado:
head/sys/kern/uipc_socket.c
Log:
Handle SIGIO for listening sockets

r319722 separated struct socket and parts of the socket I/O path into
listening-socket-specific and dataflow-socket-specific pieces. Listening
socket connection notifications are now handled by solisten_wakeup() instead
of sowakeup(), but solisten_wakeup() does not currently post SIGIO to the
owning process.

PR: 234258
Reported by: Kenneth Adelman
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18664
13/01/2019
7:49 pm
base/head
cognet
in head/sys/arm64: arm64 conf include
Modificado:
head/sys/arm64/arm64/elf32_machdep.c
head/sys/arm64/arm64/freebsd32_machdep.c
head/sys/arm64/arm64/identcpu.c
head/sys/arm64/arm64/locore.S
head/sys/arm64/arm64/machdep.c
head/sys/arm64/arm64/undefined.c
head/sys/arm64/arm64/vm_machdep.c
head/sys/arm64/conf/GENERIC
head/sys/arm64/include/armreg.h
head/sys/arm64/include/elf.h
head/sys/arm64/include/frame.h
head/sys/arm64/include/reg.h
head/sys/arm64/include/ucontext.h
head/sys/arm64/include/vfp.h
Log:
Impleent COMPAT_FREEBSD32 for arm64.
This is based on early work by andrew@.
13/01/2019
5:31 am
base/head
kp
head/tests/sys/netpfil/pf
Modificado:
head/tests/sys/netpfil/pf/set_skip.sh
head/tests/sys/netpfil/pf/utils.subr
Log:
pf tests: Test PR 229241

pfctl has an issue with 'set skip on ', which causes inconsistent
behaviour: the set skip directive works initially, but does not take
effect when the same rules are re-applied.

PR: 229241
MFC after: 1 week
13/01/2019
4:51 am
base/head
jhibbits
head/sys/powerpc/booke
Modificado:
head/sys/powerpc/booke/spe.c
Log:
powerpcspe: Correct SPE high-component loading

Don't clobber the low part of the register restoring the high component of.
This could lead to very bad behavior if it's an ABI-affected register.

While here, also mark the asm volatile in the SPE high save case, to match
the load case.

Reported by: Branden Bergren (git_bdragon.rtk0.net)
MFC after: 1 week
13/01/2019
6:01 am
base/head
avos
head/sys/net80211
Modificado:
head/sys/net80211/ieee80211_output.c
Log:
net80211: provide rate validation for injected frames.

There may be various side effects (device timeout, firmware and / or
kernel panic) when an invalid (or inapplicable - e.g., an MCS rate
for 11g-only device) is set; check rates before sending the frame to
the driver.

How-to-reproduce:
Set an MCS (real or bogus - with 0x80 bit set) rate in ibp_rate0 field
for any device that uses ieee80211_isratevalid() for rate checks -
rum(4), run(4), ural(4), bwi(4) or ral(4); if kernel is compiled
with INVARIANTS the check will result in "rate %d is basic/mcs?" panic.

Tested with WUSB54GC (rum(4)), AP mode.

MFC after: 1 week
13/01/2019
5:30 am
base/head
kp
head/sbin/pfctl
Modificado:
head/sbin/pfctl/pfctl.c
Log:
pfctl: Fix 'set skip' handling for groups

When we skip on a group the kernel will automatically skip on the member
interfaces. We still need to update our own cache though, or we risk
overruling the kernel afterwards.

This manifested as 'set skip' working initially, then not working when
the rules were reloaded.

PR: 229241
MFC after: 1 week
13/01/2019
2:33 am
base/head
jhibbits
head/libexec/rtld-elf/powerpc64
Modificado:
head/libexec/rtld-elf/powerpc64/reloc.c
Log:
Fix rtld-elf compilation warning for powerpc64 ELFv2 ABI

Summary: reloc_jmpslot function parameter 'defobj' is not used when using ELFv2
ABI

Submitted by: alfredo.junior_eldorado.org.br
Reviewed By: kib, git_bdragon.rtk0.net, emaste, jhibbits
Differential Revision: https://reviews.freebsd.org/D18808
13/01/2019
2:28 am
base/head
jhibbits
head/sys/powerpc/powerpc
Modificado:
head/sys/powerpc/powerpc/elf64_machdep.c
Log:
Add AT_HWCAP / AT_HWCAP2 to elf64_sysvec_v2.

Summary:
I was working on implementing ifuncs on powerpc64 elfv2 today, and I suddenly
realized that the reason I was having so much trouble with AT_HWCAP and
AT_HWCAP2 is they are missing from the sysentvec.

After adding them, the auxv is being filled like it should.

Submitted by: Brandon Bergren (git_bdragon.rtk0.net)
Differential Revision: https://reviews.freebsd.org/D18575
13/01/2019
12:38 am
base/head
cognet
head/sys/compat/freebsd32
Modificado:
head/sys/compat/freebsd32/freebsd32_proto.h
head/sys/compat/freebsd32/freebsd32_syscalls.c
head/sys/compat/freebsd32/freebsd32_sysent.c
head/sys/compat/freebsd32/freebsd32_systrace_args.c
Log:
Regenerate sysent files after having modified syscalls.master.
13/01/2019
12:37 am
base/head
cognet
head/sys/compat/freebsd32
Modificado:
head/sys/compat/freebsd32/syscalls.master
Log:
amd64 is the only arch that doesn't require padding for 32bits syscalls, so
instead of listing every arch thar requires it, just exclude amd64.
13/01/2019
12:19 am
base/head
cognet
head/sys/kern
Modificado:
head/sys/kern/kern_tc.c
Log:
Instead of using an incomplete list of platforms that uses 64bits time_t
in 32bits mode, special case amd64, as i386 is the only arch that still
uses 32bits time_t.
12/01/2019
10:36 pm
base/head
cem
in head/sys/dev: amdsmn 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 C895714A0F6E;
Sat, 12 Jan 2019 22:36:34 +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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
server-signature RSA-PSS (4096 bits)
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id DCA7572C5B;
Sat, 12 Jan 2019 22:36:33 +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 A8FF39C85;
Sat, 12 Jan 2019 22:36:33 +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 x0CMaXgP017120;
Sat, 12 Jan 2019 22:36:33 GMT (envelope-from cem@FreeBSD.org)
Received: (from cem@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0CMaXsK017117;
Sat, 12 Jan 2019 22:36:33 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
X-Spamd-Result: default: False [-2.97 / 15.00];
local_wl_from(0.00)[FreeBSD.org];
NEURAL_HAM_MEDIUM(-1.00)[-0.999,0];
NEURAL_HAM_LONG(-1.00)[-0.999,0];
NEURAL_HAM_SHORT(-0.97)[-0.973,0];
ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
12/01/2019
10:10 pm
base/head
jhibbits
head/sys/powerpc/pseries
Modificado:
head/sys/powerpc/pseries/xics.c
Log:
powerpc/pseries: Cache the IPI vector to avoid the common static lookup

The IPI vector is static, and happens to be the most common interrupt by far
on some systems. Rather than searching for the interrupt every time, cache
the index.

This appears to yield a small performance boost, of about 8% reduction in
buildworld times, on my POWER9 system, when paired with r342975.
12/01/2019
10:05 pm
base/head
jhibbits
in head/sys/powerpc: include powermac powernv powerpc ps3
Modificado:
head/sys/powerpc/include/openpicvar.h
head/sys/powerpc/powermac/cpcht.c
head/sys/powerpc/powermac/hrowpic.c
head/sys/powerpc/powernv/opal_pci.c
head/sys/powerpc/powerpc/intr_machdep.c
head/sys/powerpc/powerpc/openpic.c
head/sys/powerpc/powerpc/pic_if.m
head/sys/powerpc/ps3/ps3pic.c
head/sys/powerpc/pseries/xics.c
Log:
powerpc: Add opaque 'private data' to interrupt vectors

The XICS and XIVE need extra data beyond irq and vector. Rather than
performing a separate search, it's better for the general interrupt facility
to hold a private pointer, since the search already must be done anyway at
that level.
12/01/2019
9:29 pm
base/head
jhibbits
in head: gnu/lib/csu lib/csu/powerpc lib/csu/powerpc64
Adicional:
head/lib/csu/powerpc/crtsavres.S (contents, props changed)
Modificado:
head/gnu/lib/csu/Makefile
head/lib/csu/powerpc/Makefile
head/lib/csu/powerpc64/Makefile
Log:
Create crtsavres.o for powerpc builds

Summary:
GCC expects to link in a crtsavres.o on powerpc platforms. On
powerpc64 this is an empty file, but on powerpc and powerpcspe this does contain
some save/restore functions, which may not actually be necessary for newer
modern GCC and clang. This appeases the in-tree gcc, though, and is needed in
order to switch to the BSD CRTRBEGIN.

PR: 233751
Reviewed By: andrew
Differential Revision: https://reviews.freebsd.org/D18826
12/01/2019
8:41 pm
base/head
andrew
head/sys/kern
Modificado:
head/sys/kern/kern_thread.c
Log:
Fix the check for the offset of td_frame and td_emuldata in struct thread.

Pointy hat: andrew
Sponsored by: DARPA, AFRL
12/01/2019
5:56 pm
base/head
cy
head/lib/libsqlite3
Modificado:
head/lib/libsqlite3/Makefile
Log:
Disable FTS3, FTS4, and RTREE in bundled and private sqlite3.

Suggested by: delphij@
Reviewed by: delphij@ (for secteam@)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18786
12/01/2019
5:52 pm
base/head
allanjude
head/share/man/man4
Modificado:
head/share/man/man4/acpi_ibm.4
Log:
Add missing documentation for dev.acpi_ibm.0.mic_led added in r335304

PR: 229074
X-MFC-With: 335304
Submitted by: Ali Abdallah
12/01/2019
2:57 pm
base/head
avos
head/sys/net80211
Modificado:
head/sys/net80211/ieee80211_amrr.c
head/sys/net80211/ieee80211_rssadapt.c
Log:
net80211: fix possible panic for some drivers after r342211

Check if rate control structures were allocated before trying to
access them in various places; this was possible before on
allocation failure (unlikely), but was revealed after r342211
where allocation was deferred.

In case if driver uses wlan_amrr(4) and it is loaded it
is possible to reproduce the panic via

sysctl net.wlan..rate_stats

(for wlan0 the number will be 0).

Tested with: RTL8188EE, AP mode + RTL8188CUS, STA mode.

MFC after: 3 days
12/01/2019
12:57 pm
base/head
nyan
head/usr.bin/ruptime
Modificado:
head/usr.bin/ruptime/ruptime.c
Log:
Fix indentation in ruptime command output for hosts in the "down" state.

PR: 234239
MFC after: 1 week
12/01/2019
12:35 pm
base/head
nyan
head/usr.bin/bc
Modificado:
head/usr.bin/bc/bc.y
Log:
Sync with OpenBSD.

bc.y: Rev 1.50
- write parse errors to stderr, prompted by Martijn Dekker
- we're only interactive if stdout en stderr are a tty as well as stdin

PR: 234430
Obtained from: OpenBSD
MFC after: 1 week
12/01/2019
11:50 am
base/head
andrew
head/tests/sys/kern
Modificado:
head/tests/sys/kern/Makefile
Log:
Temporarily disable the kcov tests. Not all architectures have
atomic_store_64 and atomic_store_64.

Sponsored by: DARPA, AFRL
12/01/2019
11:21 am
base/head
andrew
in head: sys/amd64/conf sys/arm64/conf sys/conf sys/kern
Adicional:
head/sys/kern/kern_kcov.c (contents, props changed)
head/sys/sys/kcov.h (contents, props changed)
head/tests/sys/kern/kcov.c (contents, props changed)
Modificado:
head/sys/amd64/conf/GENERIC
head/sys/arm64/conf/GENERIC
head/sys/conf/files
head/sys/conf/kern.pre.mk
head/sys/conf/options
head/sys/kern/kern_thread.c
head/sys/sys/proc.h
head/tests/sys/kern/Makefile
Log:
Add support for the Clang Coverage Sanitizer in the kernel (KCOV).

When building with KCOV enabled the compiler will insert function calls
to probes allowing us to trace the execution of the kernel from userspace.
These probes are on function entry (trace-pc) and on comparison operations
(trace-cmp).

Userspace can enable the use of these probes on a single kernel thread with
an ioctl interface. It can allocate space for the probe with KIOSETBUFSIZE,
then mmap the allocated buffer and enable tracing with KIOENABLE, with the
trace mode being passed in as the int argument. When complete KIODISABLE
is used to disable tracing.

The first item in the buffer is the number of trace event that have
happened. Userspace can write 0 to this to reset the tracing, and is
expected to do so on first use.

The format of the buffer depends on the trace mode. When in PC tracing just
the return address of the probe is stored. Under comparison tracing the
comparison type, the two arguments, and the return address are traced. The
former method uses on entry per trace event, while the later uses 4. As
such they are incompatible so only a single mode may be enabled.

KCOV is expected to help fuzzing the kernel, and while in development has
already found a number of issues. It is required for the syzkaller system
call fuzzer [1]. Other kernel fuzzers could also make use of it, either
with the current interface, or by extending it with new modes.

A man page is currently being worked on and is expected to be committed
soon, however having the code in the kernel now is useful for other
developers to use.

[1] https://github.com/google/syzkaller

Submitted by: Mitchell Horne (Earlier version)
Reviewed by: kib
Testing by: tuexen
Sponsored by: DARPA, AFRL
Sponsored by: The FreeBSD Foundation (Mitchell Horne)
Differential Revision: https://reviews.freebsd.org/D14599
12/01/2019
11:15 am
base/head
hselasky
in head/sys/dev: sound/usb usb usb/quirk
Modificado:
head/sys/dev/sound/usb/uaudio.c
head/sys/dev/sound/usb/uaudioreg.h
head/sys/dev/usb/quirk/usb_quirk.c
head/sys/dev/usb/usbdevs
Log:
snd_uaudio: Add quirks for Edirol UA-25EX in advanced driver mode.

Extend the vendor class USB audio quirk to cover devices without
the USB audio control descriptor.

PR: 234794
MFC after: 1 week
Sponsored by: Mellanox Technologies
12/01/2019
4:44 am
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_sge.c
Log:
cxgbe(4): Move some INTx specific code to a more appropriate place.
11/01/2019
10:28 pm
base/head
ngie
head/usr.bin/getconf
Modificado:
head/usr.bin/getconf/sysconf.gperf
Log:
Add Linux compatibility support for `SC_NPROCESSORS_{CONF,ONLN}` as `_SC_NPROCESSORS_{CONF,ONLN}`

The goal of this change is to make it easier to use getconf to query
the number of available processors.

Sadly it's unclear per POSIX, which form (with a preceding _ or
lacking it) is correct. I will bring this up on the Austin Group list so
this point is clarified for implementors that might rely on this getconf
variable in future POSIX spec versions.

This is something I noticed when trying to import GoogleTest to FreeBSD
as one of the CI scripts uses this variable on Linux.

MFC after: 2 weeks
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D18640
11/01/2019
7:05 pm
base/head
imp
head/share/man/man9
Adicional:
head/share/man/man9/device_delete_children.9 (contents, props changed)
Modificado:
head/share/man/man9/Makefile
Log:
Add man page for device_delete_children.

Submitted by: Jeroen Ruigrok van der Werven
Differential Revision: https://reviews.freebsd.org/D18452
11/01/2019
4:18 pm
base/head
bapt
head/usr.sbin/bluetooth/bluetooth-config
Modificado:
head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.8
Log:
Fix duplication.

The patch adding the manpage was probably applied twice, so it resulted
in duplication of the manpage
11/01/2019
3:59 pm
base/head
ram
head/sys/dev/ocs_fc
Modificado:
head/sys/dev/ocs_fc/ocs.h
head/sys/dev/ocs_fc/ocs_cam.c
Log:
Remove accessing remote node and domain objects while processing cam actions.
Issue:
ocs_fc(4) driver panics. It's induced by setting the port_state
sysctl to offline, then online, then offline, then online, and so
forth and so on in rapid succession.

Reason:
While we set the port_state to online fc discovery will start and OS
is enumerating the target discs by calling ocs_action(), then set the
port state to "offline" which deletes domain/sport/nodes.

In ocs_action()->XPT_GET_TRAN_SETTINGS we are accessing the remote
node which can be invalid to get the wwpn, wwnn and port.

Fix:
Removed accessing of remote node and domain in some ocs_action() cases.
Populated the required values from ocs_fcport.
This removes the dependency of node and domain structures while
processing XPT_PATH_INQ and XPT_GET_TRAN_SETTINGS.
We will invalidate the target entries after the device lost
timeout(30 seconds).

Approved by: ken, mav
MFC after: 3 weeks
11/01/2019
3:52 pm
base/head
lme
in head: tools/build/mk usr.sbin/bluetooth
Adicional:
head/usr.sbin/bluetooth/bluetooth-config/
head/usr.sbin/bluetooth/bluetooth-config/Makefile (contents, props changed)
head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.8 (contents, props changed)
head/usr.sbin/bluetooth/bluetooth-config/bluetooth-config.sh (contents, props changed)
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
head/usr.sbin/bluetooth/Makefile
Log:
Add `bluetooth-config` script to simplify setting up bluetooth connections to
devices like mice, keyboards, bt-audio, ...

This script currently allows scanning for nearby devices, adds one to
/etc/bluetooth/hosts, adds an entry to hcsecd's conf and if it is a HID, add an
entry to bthidd's configs, as well.

Submitted by: erdgeist
Approved by: bapt
MFC after: 2 weeks
Differential Revision: D3778
Reviewers: bapt, emax
11/01/2019
2:22 pm
base/head
rgrimes
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/bhyve.8
Log:
Fix spelling of identifier

Approved by: phk (mentor)
MFC after: 3 days
11/01/2019
11:32 am
base/head
andrew
head/sys/arm64/arm64
Modificado:
head/sys/arm64/arm64/vm_machdep.c
Log:
Fix the location of td->td_frame at the top of the kernel stack.

In cpu_thread_alloc we would allocate space for the trap frame at the top of
the kernel stack. This is just below the pcb, however due to a missing cast
the pointer arithmetic would use the pcb size, not the trapframe size. As
the pcb is larger than the trapframe this is safe, however later in cpu_fork
we include the case leading to the two disagreeing on the location.

Fix by using the same arithmetic in both locations.

Found by: An early KASAN patch
Sponsored by: DARPA, AFRL
11/01/2019
9:40 am
base/head
manu
in head/sys/gnu/dts: arm arm64/actions arm64/allwinner
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id A68191487C6B;
Fri, 11 Jan 2019 09:40:40 +0000 (UTC)
(envelope-from manu@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
server-signature RSA-PSS (4096 bits)
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 4F17E9102E;
Fri, 11 Jan 2019 09:40:40 +0000 (UTC)
(envelope-from manu@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 4328119D6B;
Fri, 11 Jan 2019 09:40:40 +0000 (UTC)
(envelope-from manu@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0B9eepw049672;
Fri, 11 Jan 2019 09:40:40 GMT (envelope-from manu@FreeBSD.org)
Received: (from manu@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0B9eZvm049646;
Fri, 11 Jan 2019 09:40:35 GMT (envelope-from manu@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: manu set sender to
manu@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
Subject: svn commit: r342936 - in head/sys/gnu/dts: arm arm64/actions
arm64/allwinner arm64/altera arm64/amd arm64/amlogic arm64/arm arm64/broadcom
arm64/broadcom/northstar2 arm64/broadcom/stingray arm64/ex...
X-SVN-Commit-Paths: in head/sys/gnu/dts: arm arm64/actions arm64/allwinner
arm64/altera arm64/amd arm64/amlogic arm64/arm arm64/broadcom
arm64/broadcom/northstar2 arm64/broadcom/stingray arm64/exynos
arm64/freescale arm6...
X-Spamd-Result: default: False [-2.98 / 15.00];
local_wl_from(0.00)[FreeBSD.org];
NEURAL_HAM_MEDIUM(-1.00)[-0.999,0];
NEURAL_HAM_SHORT(-0.99)[-0.985,0];
NEURAL_HAM_LONG(-1.00)[-0.999,0]
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/01/2019
9:20 am
base/head
manu
in head/sys/gnu/dts/include/dt-bindings: bus clock dma gce
Adicional:
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/actions,s700-cmu.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/axg-audio-clkc.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/maxim,max9485.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/px30-cru.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/qcom,dispcc-sdm845.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/r9a06g032-sysctrl.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/rk3399-ddr.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/clock/sun8i-tcon-top.h
head/sys/gnu/dts/include/dt-bindings/dma/jz4780-dma.h (contents, props changed)
head/sys/gnu/dts/include/dt-bindings/gce/
- copied from r340335, vendor/device-tree/dist/include/dt-bindings/gce/
head/sys/gnu/dts/include/dt-bindings/genpd/
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/iio/adc/at91-sama5d2_adc.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/memory/mt2712-larb-port.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/regulator/qcom,rpmh-regulator.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/reset/qcom,sdm845-aoss.h
- copied unchanged from r340335, vendor/device-tree/dist/include/dt-bindings/soc/qcom,rpmh-rsc.h
head/sys/gnu/dts/include/dt-bindings/usb/
- copied from r340335, vendor/device-tree/dist/include/dt-bindings/usb/
Directory Properties:
head/sys/gnu/dts/include/dt-bindings/clock/actions,s700-cmu.h (props changed)
head/sys/gnu/dts/include/dt-bindings/clock/axg-audio-clkc.h (props changed)
head/sys/gnu/dts/include/dt-bindings/clock/maxim,max9485.h (props changed)
head/sys/gnu/dts/include/dt-bindings/clock/px30-cru.h (props changed)
head/sys/gnu/dts/include/dt-bindings/clock/qcom,dispcc-sdm845.h (props changed)
head/sys/gnu/dts/include/dt-bindings/clock/r9a06g032-sysctrl.h (props changed)
head/sys/gnu/dts/include/dt-bindings/clock/rk3399-ddr.h (props changed)
head/sys/gnu/dts/include/dt-bindings/clock/sun8i-tcon-top.h (props changed)
head/sys/gnu/dts/include/dt-bindings/iio/adc/at91-sama5d2_adc.h (props changed)
head/sys/gnu/dts/include/dt-bindings/memory/mt2712-larb-port.h (props changed)
head/sys/gnu/dts/include/dt-bindings/regulator/qcom,rpmh-regulator.h (props changed)
head/sys/gnu/dts/include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h (props changed)
head/sys/gnu/dts/include/dt-bindings/reset/qcom,sdm845-aoss.h (props changed)
head/sys/gnu/dts/include/dt-bindings/soc/qcom,rpmh-rsc.h (props changed)
Eliminado:
head/sys/gnu/dts/include/dt-bindings/clock/exynos5440.h
Modificado:
head/sys/gnu/dts/include/dt-bindings/bus/ti-sysc.h
head/sys/gnu/dts/include/dt-bindings/clock/aspeed-clock.h
head/sys/gnu/dts/include/dt-bindings/clock/axg-clkc.h
head/sys/gnu/dts/include/dt-bindings/clock/dra7.h
head/sys/gnu/dts/include/dt-bindings/clock/gxbb-clkc.h
head/sys/gnu/dts/include/dt-bindings/clock/imx6sll-clock.h
head/sys/gnu/dts/include/dt-bindings/clock/imx6ul-clock.h
head/sys/gnu/dts/include/dt-bindings/clock/pxa-clock.h
head/sys/gnu/dts/include/dt-bindings/clock/qcom,gcc-sdm845.h
head/sys/gnu/dts/include/dt-bindings/clock/sun8i-r40-ccu.h
head/sys/gnu/dts/include/dt-bindings/pinctrl/at91.h
head/sys/gnu/dts/include/dt-bindings/pinctrl/samsung.h
head/sys/gnu/dts/include/dt-bindings/regulator/maxim,max77802.h
Directory Properties:
head/sys/gnu/dts/include/ (props changed)
head/sys/gnu/dts/include/dt-bindings/gce/mt8173-gce.h (props changed)
head/sys/gnu/dts/include/dt-bindings/usb/pd.h (props changed)
Log:
Import DTS includes from 4.19
This was missed in r340337

MFC after: 3 days
11/01/2019
8:35 am
base/head
kib
head/usr.sbin/cpucontrol
Modificado:
head/usr.sbin/cpucontrol/cpucontrol.c
Log:
cpucontrol: check for the supposed firmware file type and skip
non-regular entry.

do_update() skips entries with DT_DIR type. This does not eliminate
other entries that might exist in the directory. More, since NFS
might fill d_type with DT_UNKNOWN, dot and dotdot entries are not
skipped, then mmap(2) call failed for them when update microcode files
are located on NFS.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
11/01/2019
7:58 am
base/head
fsu
in head/sys: amd64/linux amd64/linux32 arm64/linux
Modificado:
head/sys/amd64/linux/linux_dummy.c
head/sys/amd64/linux32/linux32_dummy.c
head/sys/arm64/linux/linux_dummy.c
head/sys/i386/linux/linux_dummy.c
Log:
Fix errno values returned from DUMMY_XATTR linuxulator calls

Reported by: weiss@uni-mainz.de
Reviewed by: markj
MFC after: 1 day
Differential Revision: https://reviews.freebsd.org/D18812
11/01/2019
2:53 am
base/head
sef
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Modificado:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Log:
Change ZFS quotas to return EINVAL when not present (matches man page).

UFS will return EINVAL when quotas are not enabled on a filesystem; ZFS'
equivalent involves not having quotas (there is not way to enable or disable
quotas as such). My initial implementation had it return ENOENT, but
quotactl(2) indicates EINVAL is more appropriate.

MFC after: 2 weeks
Approved by: mav
Reviewed by: markj
Reported by: Emrion
Sponsored by: iXsystems Inc
PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234413
11/01/2019
1:54 am
base/head
ae
head/sys/netpfil/ipfw
Modificado:
head/sys/netpfil/ipfw/ip_fw2.c
Log:
Relax requirement to packet size of CARP protocol and remove version check.

CARP shares protocol number 112 with VRRP (RFC 5798). And the size of
VRRP packet may be smaller than CARP. ipfw_chk() does m_pullup() to at
least sizeof(struct carp_header) and can fail when packet is VRRP. This
leads to packet drop and message about failed pullup attempt.
Also, RFC 5798 defines version 3 of VRRP protocol, this version number
also unsupported by CARP and such check leads to packet drop.

carp_input() does its own checks for protocol version and packet size,
so we can remove these checks to be able pass VRRP packets.

PR: 234207
MFC after: 1 week
11/01/2019
1:42 am
base/head
manu
head/sys/modules/dtb/allwinner
Modificado:
head/sys/modules/dtb/allwinner/Makefile
Log:
dtb: allwinner: Add orangepi-pc to the build

PR: 226011
Submitted by: Greg V
MFC after: 1 week
11/01/2019
12:45 am
base/head
glebius
head/sys/net
Modificado:
head/sys/net/rtsock.c
Log:
Remove recursive NET_EPOCH_ENTER() from sysctl_ifmalist(), missed in r342872.
10/01/2019
11:27 pm
base/head
glebius
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Remove support for FreeBSD 9 kernel, which used to change byte order
of packet headers.
10/01/2019
5:27 pm
base/head
ngie
head/share/misc
Modificado:
head/share/misc/committers-src.dot
Log:
Update my committer name and add my new mentor relationship

## Regarding the name change

A few years ago I changed my legal name to "Enji Cooper". When I rejoined the
project, I requested that accounts@ use my legal name instead of my [previous]
nickname. This change syncs up a reference to use the proper name for clarity.

## Regarding the new mentor relationship

@emaste and @jtl graciously accepted my request to mentor me this time around
with my src commits while I get up to speed.

I am leaving my previous mentorship details in committers-src.dot for historical
reasons, per @emaste's request.

-- Thank you very much @jmmv and @rpaulo for the help with my previous
mentorship; I really appreciate it!

Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D18644
10/01/2019
4:31 pm
base/head
andrew
head/sys/arm64/include
Modificado:
head/sys/arm64/include/frame.h
Log:
Fix a comment, pushed onto is two words.

While here make the comments sentences.

Sponsored by: DARPA, AFRL
10/01/2019
2:35 pm
base/head
emaste
in head: contrib/elftoolchain
+ https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk
10/01/2019
5:49 am
base/head
avos
in head/sys/dev/rtwn/rtl8192c: . usb
Modificado:
head/sys/dev/rtwn/rtl8192c/r92c_calib.c
head/sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c
Log:
rtwn_usb(4): add IQ calibration support for RTL8192CU

The code is similar to the one for RTL8188E* and probably
should be shared with RTL8188CE (needs to be tested).

Checked with RTL8188CUS, STA mode.

MFC after: 5 days
10/01/2019
3:27 am
base/head
kevans
in head: lib/libbe sbin/bectl sbin/bectl/tests
Modificado:
head/lib/libbe/be_access.c
head/sbin/bectl/bectl.c
head/sbin/bectl/bectl_jail.c
head/sbin/bectl/tests/bectl_test.sh
Log:
libbe(3): Change be_mount to mount/unmount child datasets

This set of changes is geared towards making bectl respect deep boot
environments when they exist and are mounted. The deep BE composition
functionality (`bectl add`) remains disabled for the time being. This set of
changes has no effect for the average user. but allows deep BE users to
upgrade properly with their current setup.

libbe(3): Open the target boot environment and get a zfs handle, then pass
that with the target mountpoint to be_mount_iter; If the BE_MNT_DEEP flag is
set call zfs_iter_filesystems and mount the child datasets.

Similar logic is employed when unmounting the datasets, save for children
are unmounted first.

bectl(8): Change bectl_cmd_jail to pass the BE_MNT_DEEP flag when
calling be_mount as well as call be_unmount when cleaning up after the
jail has exited instead of umount(2) directly.

PR: 234795
Submitted by: Wes Maag (test additions by kevans)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18796
10/01/2019
2:59 am
base/head
pfg
head/gnu/usr.bin/grep
Modificado:
head/gnu/usr.bin/grep/search.c
Log:
grep(1) outputs NOT-matched lines with multi-byte characters

PR 113343
MFC after: 2 months
10/01/2019
2:01 am
base/head
ae
head/sys/netpfil/ipfw
Modificado:
head/sys/netpfil/ipfw/ip_fw_pfil.c
Log:
Fix the build with INVARIANTS.

MFC after: 1 month
10/01/2019
1:47 am
base/head
ae
head/sys/netpfil/ipfw
Modificado:
head/sys/netpfil/ipfw/ip_fw2.c
head/sys/netpfil/ipfw/ip_fw_log.c
head/sys/netpfil/ipfw/ip_fw_pfil.c
head/sys/netpfil/ipfw/ip_fw_private.h
Log:
Reduce the size of struct ip_fw_args from 240 to 128 bytes on amd64.
And refactor the code to avoid unneeded initialization to reduce overhead
of per-packet processing.

ipfw(4) can be invoked by pfil(9) framework for each packet several times.
Each call uses on-stack variable of type struct ip_fw_args to keep the
state of ipfw(4) processing. Currently this variable has 240 bytes size
on amd64. Each time ipfw(4) does bzero() on it, and then it initializes
some fields.

glebius@ has reported that they at Netflix discovered, that initialization
of this variable produces significant overhead on packet processing.
After patching I managed to increase performance of packet processing on
simple routing with ipfw(4) firewalling to about 11% from 9.8Mpps up to
11Mpps (Xeon E5-2660 v4@ + Mellanox 100G card).

Introduced new field flags, it is used to keep track of what fields was
initialized. Some fields were moved into the anonymous union, to reduce
the size. They all are mutually exclusive. dummypar field was unused, and
therefore it is removed. The hopstore6 field type was changed from
sockaddr_in6 to a bit smaller struct ip_fw_nh6. And now the size of struct
ip_fw_args is 128 bytes.

ipfw_chk() was modified to properly handle ip_fw_args.flags instead of
rely on checking for NULL pointers.

Reviewed by: gallatin
Obtained from: Yandex LLC
MFC after: 1 month
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D18690
10/01/2019
12:52 am
base/head
glebius
head/sys/netinet6
Modificado:
head/sys/netinet6/in6_mcast.c
Log:
Remove unnecessary ifdef. With INVARIANTS all KASSERTs are empty statements,
so won't be compiled in.
10/01/2019
12:37 am
base/head
glebius
head/sys/net
Modificado:
head/sys/net/if_vlan.c
Log:
Bring the comment up to date.
10/01/2019
12:25 am
base/head
glebius
head/sys/kern
Modificado:
head/sys/kern/uipc_socket.c
Log:
Simplify sosetopt() so that function has single return point. No
functional change.
10/01/2019
12:10 am
base/head
ngie
head/sbin/route
Modificado:
head/sbin/route/route.8
Log:
route(8): clarify -prefixlen description

Try to reword -prefixlen section to more clearly and accurately describe how
the -prefixlen modifier works.

While here, fix a word that igor considered a typo: aggregatable addresses is a
valid technical term per RFC-2374, however, it was superseded by the term
"aggregator" in RFC-3587.

MFC after: 1 week
Reviewed by: 0mp, crees
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D10087
09/01/2019
10:31 pm
base/head
kevans
head/lib/libbe
Modificado:
head/lib/libbe/be.c
head/lib/libbe/be_access.c
head/lib/libbe/be_impl.h
Log:
libbe(3): move altroot augmentation bits around a little bit

We could perhaps have a method that does this given a dataset, but it's yet
clear that we'll always want to bypass the altroot when we grab the
mountpoint. For now, we'll refactor things a bit so we grab the altroot
length when libbe is initialized and have a common method that does the
necessary augmentation (replace with / if it's the root, return a pointer to
later in the string if not).

This will be used in some upcoming work to make be_mount work properly for
deep BEs.

MFC after: 1 week
09/01/2019
5:23 pm
base/head
brooks
head/sys/kern
Modificado:
head/sys/kern/vfs_syscalls.c
Log:
style(9): fix the indent of a return.
09/01/2019
5:23 pm
base/head
markj
head/sys/dev/drm2/radeon
Modificado:
head/sys/dev/drm2/radeon/radeon_drv.c
head/sys/dev/drm2/radeon/radeon_drv.h
Log:
Complete the removal of obsolete ioctl handlers.

PR: 234706
Reviewed by: imp
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18778
09/01/2019
4:47 pm
base/head
markj
head/sys/net
Modificado:
head/sys/net/if_vlan.c
Log:
Stop setting if_linkmib in vlan(4) ifnets.

There are several reasons:
- The structure being exported via IFDATA_LINKSPECIFIC doesn't appear
to be a standard MIB.
- The structure being exported is private to the kernel and always
has been.
- No other drivers in common use set the if_linkmib field.
- Because IFDATA_LINKSPECIFIC can be used to overwrite the linkmib
structure, a privileged user could use it to corrupt internal
vlan(4) state. [1]

PR: 219472
Reported by: CTurt [1]
Reviewed by: kp (previous version)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18779
09/01/2019
3:03 pm
base/head
vmaffione
head/share/man/man4
Modificado:
head/share/man/man4/netmap.4
Log:
netmap: fix bridge example in netmap(4)

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194872
Reported by: adrian
MFC after: 3 days
09/01/2019
2:54 pm
base/head
vmaffione
head/share/man/man4
Modificado:
head/share/man/man4/vale.4
Log:
netmap: fix sysctl variable in vale(4)

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212333
MFC after: 3 days
09/01/2019
2:28 pm
base/head
hselasky
head/sys/netinet6
Modificado:
head/sys/netinet6/ip6_output.c
Log:
Fix loopback traffic when using non-lo0 link local IPv6 addresses.

The loopback interface can only receive packets with a single scope ID,
namely the scope ID of the loopback interface itself. To mitigate this
packets which use the scope ID are appearing as received by the real
network interface, see "origifp" in the patch. The current code would
drop packets which are designated for loopback which use a link-local
scope ID in the destination address or source address, because they
won't match the lo0's scope ID. To fix this restore the network
interface pointer from the scope ID in the destination address for
the problematic cases. See comments added in patch for a more detailed
description.

This issue was introduced with route caching (ae@).

Reviewed by: bz (network)
Differential Revision: https://reviews.freebsd.org/D18769
MFC after: 1 week
Sponsored by: Mellanox Technologies
09/01/2019
12:50 pm
base/head
avos
head/sys/net80211
Modificado:
head/sys/net80211/ieee80211_ioctl.c
Log:
net80211: fix panic when device is removed during initialization

if_dead() is called during device detach - check if interface is
still exists before trying to refresh vap MAC address
(IF_LLADDR will trigger page fault otherwise).

MFC after: 5 days
09/01/2019
11:13 am
base/head
arichardson
head/gnu/usr.bin/binutils/ld
Modificado:
head/gnu/usr.bin/binutils/ld/Makefile
head/gnu/usr.bin/binutils/ld/Makefile.mips
Log:
Avoid bsd.files.mk duplicate rule warning for bfd ldscripts

Without this change I get lots of
warning: duplicate script for target "_FILESINS_ldscripts/elf64btsmip_fbsd.xw" ignored
message for every tree walk.

Reviewed By: imp, emaste
Differential Revision: https://reviews.freebsd.org/D18783
09/01/2019
11:04 am
base/head
trasz
head/share/skel
Modificado:
head/share/skel/dot.profile
Log:
Make sh(1) recognize the default $HOME. By default /home
is a symlink; without this change, when you log in, sh(1)
won't realize the current directory (eg '/usr/home/test')
is the same as $HOME ('/home/test').

Reviewed by: jilles
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18775
09/01/2019
9:36 am
base/head
des
in head/bin/sh: . tests/expansion
Adicional:
head/bin/sh/tests/expansion/arith15.0 (contents, props changed)
Modificado:
head/bin/sh/shell.h
head/bin/sh/tests/expansion/Makefile
Log:
Fix an edge case when parsing large numbers which resulted in inconsistent
results between an expression that refers to a variable by name and the
same expression that includes the same variable by value.

Submitted by: se@
MFC after: 1 week
09/01/2019
6:36 am
base/head
tuexen
head/sys/netinet
Modificado:
head/sys/netinet/ip_output.c
Log:
Fix getsockopt() for IP_OPTIONS/IP_RETOPTS.

r336616 copies inp->inp_options using the m_dup() function.
However, this function expects an mbuf packet header at the beginning,
which is not true in this case.
Therefore, use m_copym() instead of m_dup().

This issue was found by syzkaller.
Reviewed by: mmacy@
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D18753
09/01/2019
6:21 am
base/head
imp
head/sys/dev/usb/quirk
Modificado:
head/sys/dev/usb/quirk/usb_quirk.c
Log:
Add quirk for 128MB Creative Nomad.

PR: 78984
Submitted by: Mark Kirkwood
09/01/2019
5:53 am
base/head
glebius
head/contrib/bsnmp/snmp_mibII
Modificado:
head/contrib/bsnmp/snmp_mibII/mibII.c
Log:
Timer interval is correctly counted in ticks (1/100 s) in
mibif_reset_hc_timer(). Multiplication by 10 is erroneous
and is probably a blind copy and paste from next function.

PR: 132993
Submitted by: Vitezslav Novy
09/01/2019
5:30 am
base/head
delphij
head/lib/liblzma
Modificado:
head/lib/liblzma/config.h
Log:
Enable use of Capsicum sandbox when there is only one
input file (or the input is stdin) and we are not creating
output file.

Reported by: Lasse Collin
MFC after: 1 month
09/01/2019
3:55 am
base/head
cperciva
head/release/tools
Modificado:
head/release/tools/ec2.conf
Log:
Turn off ec2_ephemeralswap for now

This script broke around FreeBSD 11.0 as a result of SWAPMETA no longer
being reported by vmstat -z; but it also needs to be reworked due to the
arrival in EC2 of nvme ephemeral disks.

I'll turn this option back on after I've found time to rewrite the
script in question.

PR: 234686
Reported by: meta@
MFC after: 1 week
09/01/2019
2:47 am
base/head
kevans
head/usr.bin/grep
Modificado:
head/usr.bin/grep/Makefile
Log:
Fix bsdgrep manpage clobbering grep(1) with default build options

The default build should install bsdgrep(1) and grep(1), with the latter
being gnugrep(1). WITH_BSD_GREP flips this situation such that we have
gnugrep(1) and grep(1), with the latter being bsdgrep(1).

Changes to start installing the zgrep script out of usr.bin/grep
inadvertently altered the default build such that grep(1) was being
installed, and it was bsdgrep(1). Correct the typo.

Reported by: bcran
MFC after: 3 days
09/01/2019
1:16 am
base/head
pjd
head/contrib/openbsm/libauditd
Modificado:
head/contrib/openbsm/libauditd/auditd_lib.c
Log:
In r316006 the getstrfromtype_locked() function was modified to return
an empty string, instead of NULL, if an entry is missing in the audit_control
file. Because of that change the getachost() function started to return
success even if the host name was not defined in the audit_control.
This in turn led to auditd_hostlen always being set (for an empty host it was
set to 0). If auditd_hostlen was not equal to -1 we were trying to append
the host name to trail file name. All this led to situation where when host
name is not defined in audit_control, auditd will create trail files with
a leading '.', which breaks auditdistd as it doesn't work with longer audit
trail file names.

Fix this by appending host name to the trail file name only if the host name
is not empty.
09/01/2019
1:11 am
base/head
glebius
in head/sys: compat/linuxkpi/common/include/linux dev/wtap
Modificado:
head/sys/compat/linuxkpi/common/include/linux/inetdevice.h
head/sys/dev/wtap/if_wtap.c
head/sys/net/altq/altq_subr.c
head/sys/net/bridgestp.c
head/sys/net/if.c
head/sys/net/if_llatbl.c
head/sys/net/if_var.h
head/sys/net/if_vlan.c
head/sys/net/route.c
head/sys/net/rtsock.c
head/sys/netinet/if_ether.c
head/sys/netinet/igmp.c
head/sys/netinet/in.c
head/sys/netinet/in_mcast.c
head/sys/netinet/in_pcb.c
head/sys/netinet/in_pcb.h
head/sys/netinet/ip_carp.c
head/sys/netinet/ip_divert.c
head/sys/netinet/ip_icmp.c
head/sys/netinet/ip_input.c
head/sys/netinet/ip_mroute.c
head/sys/netinet/ip_options.c
head/sys/netinet/ip_output.c
head/sys/netinet/netdump/netdump_client.c
head/sys/netinet/sctp_bsd_addr.c
head/sys/netinet6/icmp6.c
head/sys/netinet6/in6.c
head/sys/netinet6/in6_ifattach.c
head/sys/netinet6/in6_mcast.c
head/sys/netinet6/in6_pcb.c
head/sys/netinet6/in6_var.h
head/sys/netinet6/mld6.c
head/sys/netinet6/nd6.c
head/sys/netinet6/nd6_nbr.c
head/sys/netinet6/nd6_rtr.c
head/sys/netinet6/raw_ip6.c
head/sys/netinet6/scope6.c
head/sys/netpfil/pf/pf_if.c
head/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
Log:
Mechanical cleanup of epoch(9) usage in network stack.

- Remove macros that covertly create epoch_tracker on thread stack. Such
macros a quite unsafe, e.g. will produce a buggy code if same macro is
used in embedded scopes. Explicitly declare epoch_tracker always.

- Unmask interface list IFNET_RLOCK_NOSLEEP(), interface address list
IF_ADDR_RLOCK() and interface AF specific data IF_AFDATA_RLOCK() read
locking macros to what they actually are - the net_epoch.
Keeping them as is is very misleading. They all are named FOO_RLOCK(),
while they no longer have lock semantics. Now they allow recursion and
what's more important they now no longer guarantee protection against
their companion WLOCK macros.
Note: INP_HASH_RLOCK() has same problems, but not touched by this commit.

This is non functional mechanical change. The only functionally changed
functions are ni6_addrs() and ni6_store_addrs(), where we no longer enter
epoch recursively.

Discussed with: jtl, gallatin
09/01/2019
1:09 am
base/head
cy
head/crypto/heimdal/lib/sqlite
Eliminado:
head/crypto/heimdal/lib/sqlite/Makefile.am
head/crypto/heimdal/lib/sqlite/Makefile.in
head/crypto/heimdal/lib/sqlite/NTMakefile
head/crypto/heimdal/lib/sqlite/sqlite3.c
head/crypto/heimdal/lib/sqlite/sqlite3.h
head/crypto/heimdal/lib/sqlite/sqlite3ext.h
Log:
Remove unused sqlite3 bundled with heimdal.

Reported by: delphij@
09/01/2019
12:38 am
base/head
glebius
head/sys/net
Modificado:
head/sys/net/if.c
Log:
Remove part of comment that doesn't match reality.
09/01/2019
12:31 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/acfileio.c
head/sys/contrib/dev/acpica/common/acgetline.c
head/sys/contrib/dev/acpica/common/adfile.c
head/sys/contrib/dev/acpica/common/adisasm.c
head/sys/contrib/dev/acpica/common/adwalk.c
head/sys/contrib/dev/acpica/common/ahids.c
head/sys/contrib/dev/acpica/common/ahpredef.c
head/sys/contrib/dev/acpica/common/ahtable.c
head/sys/contrib/dev/acpica/common/ahuuids.c
head/sys/contrib/dev/acpica/common/cmfsize.c
head/sys/contrib/dev/acpica/common/dmextern.c
head/sys/contrib/dev/acpica/common/dmrestag.c
head/sys/contrib/dev/acpica/common/dmswitch.c
head/sys/contrib/dev/acpica/common/dmtable.c
head/sys/contrib/dev/acpica/common/dmtables.c
head/sys/contrib/dev/acpica/common/dmtbdump.c
head/sys/contrib/dev/acpica/common/dmtbdump1.c
head/sys/contrib/dev/acpica/common/dmtbdump2.c
head/sys/contrib/dev/acpica/common/dmtbdump3.c
head/sys/contrib/dev/acpica/common/dmtbinfo.c
head/sys/contrib/dev/acpica/common/dmtbinfo1.c
head/sys/contrib/dev/acpica/common/dmtbinfo2.c
head/sys/contrib/dev/acpica/common/dmtbinfo3.c
head/sys/contrib/dev/acpica/common/getopt.c
head/sys/contrib/dev/acpica/compiler/aslallocate.c
head/sys/contrib/dev/acpica/compiler/aslanalyze.c
head/sys/contrib/dev/acpica/compiler/aslascii.c
head/sys/contrib/dev/acpica/compiler/aslbtypes.c
head/sys/contrib/dev/acpica/compiler/aslcache.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/aslcompiler.l
head/sys/contrib/dev/acpica/compiler/aslcstyle.y
head/sys/contrib/dev/acpica/compiler/asldebug.c
head/sys/contrib/dev/acpica/compiler/asldefine.h
head/sys/contrib/dev/acpica/compiler/aslerror.c
head/sys/contrib/dev/acpica/compiler/aslexternal.c
head/sys/contrib/dev/acpica/compiler/aslfileio.c
head/sys/contrib/dev/acpica/compiler/aslfiles.c
head/sys/contrib/dev/acpica/compiler/aslfold.c
head/sys/contrib/dev/acpica/compiler/aslglobal.h
head/sys/contrib/dev/acpica/compiler/aslhelp.c
head/sys/contrib/dev/acpica/compiler/aslhelpers.y
head/sys/contrib/dev/acpica/compiler/aslhex.c
head/sys/contrib/dev/acpica/compiler/aslkeywords.y
head/sys/contrib/dev/acpica/compiler/asllength.c
head/sys/contrib/dev/acpica/compiler/asllisting.c
head/sys/contrib/dev/acpica/compiler/asllistsup.c
head/sys/contrib/dev/acpica/compiler/aslload.c
head/sys/contrib/dev/acpica/compiler/asllookup.c
head/sys/contrib/dev/acpica/compiler/aslmain.c
head/sys/contrib/dev/acpica/compiler/aslmap.c
head/sys/contrib/dev/acpica/compiler/aslmapenter.c
head/sys/contrib/dev/acpica/compiler/aslmapoutput.c
head/sys/contrib/dev/acpica/compiler/aslmaputils.c
head/sys/contrib/dev/acpica/compiler/aslmessages.c
head/sys/contrib/dev/acpica/compiler/aslmessages.h
head/sys/contrib/dev/acpica/compiler/aslmethod.c
head/sys/contrib/dev/acpica/compiler/aslnamesp.c
head/sys/contrib/dev/acpica/compiler/asloffset.c
head/sys/contrib/dev/acpica/compiler/aslopcodes.c
head/sys/contrib/dev/acpica/compiler/asloperands.c
head/sys/contrib/dev/acpica/compiler/aslopt.c
head/sys/contrib/dev/acpica/compiler/asloptions.c
head/sys/contrib/dev/acpica/compiler/aslparseop.c
head/sys/contrib/dev/acpica/compiler/aslparser.y
head/sys/contrib/dev/acpica/compiler/aslpld.c
head/sys/contrib/dev/acpica/compiler/aslpredef.c
head/sys/contrib/dev/acpica/compiler/aslprepkg.c
head/sys/contrib/dev/acpica/compiler/aslprimaries.y
head/sys/contrib/dev/acpica/compiler/aslprintf.c
head/sys/contrib/dev/acpica/compiler/aslprune.c
head/sys/contrib/dev/acpica/compiler/aslresource.c
head/sys/contrib/dev/acpica/compiler/aslresources.y
head/sys/contrib/dev/acpica/compiler/aslrestype1.c
head/sys/contrib/dev/acpica/compiler/aslrestype1i.c
head/sys/contrib/dev/acpica/compiler/aslrestype2.c
head/sys/contrib/dev/acpica/compiler/aslrestype2d.c
head/sys/contrib/dev/acpica/compiler/aslrestype2e.c
head/sys/contrib/dev/acpica/compiler/aslrestype2q.c
head/sys/contrib/dev/acpica/compiler/aslrestype2s.c
head/sys/contrib/dev/acpica/compiler/aslrestype2w.c
head/sys/contrib/dev/acpica/compiler/aslrules.y
head/sys/contrib/dev/acpica/compiler/aslstartup.c
head/sys/contrib/dev/acpica/compiler/aslstubs.c
head/sys/contrib/dev/acpica/compiler/aslsupport.l
head/sys/contrib/dev/acpica/compiler/aslsupport.y
head/sys/contrib/dev/acpica/compiler/asltokens.y
head/sys/contrib/dev/acpica/compiler/asltransform.c
head/sys/contrib/dev/acpica/compiler/asltree.c
head/sys/contrib/dev/acpica/compiler/asltypes.h
head/sys/contrib/dev/acpica/compiler/asltypes.y
head/sys/contrib/dev/acpica/compiler/aslutils.c
head/sys/contrib/dev/acpica/compiler/asluuid.c
head/sys/contrib/dev/acpica/compiler/aslwalks.c
head/sys/contrib/dev/acpica/compiler/aslxref.c
head/sys/contrib/dev/acpica/compiler/aslxrefout.c
head/sys/contrib/dev/acpica/compiler/cvcompiler.c
head/sys/contrib/dev/acpica/compiler/cvdisasm.c
head/sys/contrib/dev/acpica/compiler/cvparser.c
head/sys/contrib/dev/acpica/compiler/dtcompile.c
head/sys/contrib/dev/acpica/compiler/dtcompiler.h
head/sys/contrib/dev/acpica/compiler/dtexpress.c
head/sys/contrib/dev/acpica/compiler/dtfield.c
head/sys/contrib/dev/acpica/compiler/dtio.c
head/sys/contrib/dev/acpica/compiler/dtparser.l
head/sys/contrib/dev/acpica/compiler/dtparser.y
head/sys/contrib/dev/acpica/compiler/dtsubtable.c
head/sys/contrib/dev/acpica/compiler/dttable.c
head/sys/contrib/dev/acpica/compiler/dttable1.c
head/sys/contrib/dev/acpica/compiler/dttable2.c
head/sys/contrib/dev/acpica/compiler/dttemplate.c
head/sys/contrib/dev/acpica/compiler/dttemplate.h
head/sys/contrib/dev/acpica/compiler/dtutils.c
head/sys/contrib/dev/acpica/compiler/preprocess.h
head/sys/contrib/dev/acpica/compiler/prexpress.c
head/sys/contrib/dev/acpica/compiler/prmacros.c
head/sys/contrib/dev/acpica/compiler/prparser.l
head/sys/contrib/dev/acpica/compiler/prparser.y
head/sys/contrib/dev/acpica/compiler/prscan.c
head/sys/contrib/dev/acpica/compiler/prutils.c
head/sys/contrib/dev/acpica/components/debugger/dbcmds.c
head/sys/contrib/dev/acpica/components/debugger/dbconvert.c
head/sys/contrib/dev/acpica/components/debugger/dbdisply.c
head/sys/contrib/dev/acpica/components/debugger/dbexec.c
head/sys/contrib/dev/acpica/components/debugger/dbfileio.c
head/sys/contrib/dev/acpica/components/debugger/dbhistry.c
head/sys/contrib/dev/acpica/components/debugger/dbinput.c
head/sys/contrib/dev/acpica/components/debugger/dbmethod.c
head/sys/contrib/dev/acpica/components/debugger/dbnames.c
head/sys/contrib/dev/acpica/components/debugger/dbobject.c
head/sys/contrib/dev/acpica/components/debugger/dbstats.c
head/sys/contrib/dev/acpica/components/debugger/dbtest.c
head/sys/contrib/dev/acpica/components/debugger/dbutils.c
head/sys/contrib/dev/acpica/components/debugger/dbxface.c
head/sys/contrib/dev/acpica/components/disassembler/dmbuffer.c
head/sys/contrib/dev/acpica/components/disassembler/dmcstyle.c
head/sys/contrib/dev/acpica/components/disassembler/dmdeferred.c
head/sys/contrib/dev/acpica/components/disassembler/dmnames.c
head/sys/contrib/dev/acpica/components/disassembler/dmopcode.c
head/sys/contrib/dev/acpica/components/disassembler/dmresrc.c
head/sys/contrib/dev/acpica/components/disassembler/dmresrcl.c
head/sys/contrib/dev/acpica/components/disassembler/dmresrcl2.c
head/sys/contrib/dev/acpica/components/disassembler/dmresrcs.c
head/sys/contrib/dev/acpica/components/disassembler/dmutils.c
head/sys/contrib/dev/acpica/components/disassembler/dmwalk.c
head/sys/contrib/dev/acpica/components/dispatcher/dsargs.c
head/sys/contrib/dev/acpica/components/dispatcher/dscontrol.c
head/sys/contrib/dev/acpica/components/dispatcher/dsdebug.c
head/sys/contrib/dev/acpica/components/dispatcher/dsfield.c
head/sys/contrib/dev/acpica/components/dispatcher/dsinit.c
head/sys/contrib/dev/acpica/components/dispatcher/dsmethod.c
head/sys/contrib/dev/acpica/components/dispatcher/dsmthdat.c
head/sys/contrib/dev/acpica/components/dispatcher/dsobject.c
head/sys/contrib/dev/acpica/components/dispatcher/dsopcode.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/dswexec.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/dswscope.c
head/sys/contrib/dev/acpica/components/dispatcher/dswstate.c
head/sys/contrib/dev/acpica/components/events/evevent.c
head/sys/contrib/dev/acpica/components/events/evglock.c
head/sys/contrib/dev/acpica/components/events/evgpe.c
head/sys/contrib/dev/acpica/components/events/evgpeblk.c
head/sys/contrib/dev/acpica/components/events/evgpeinit.c
head/sys/contrib/dev/acpica/components/events/evgpeutil.c
head/sys/contrib/dev/acpica/components/events/evhandler.c
head/sys/contrib/dev/acpica/components/events/evmisc.c
head/sys/contrib/dev/acpica/components/events/evregion.c
head/sys/contrib/dev/acpica/components/events/evrgnini.c
head/sys/contrib/dev/acpica/components/events/evsci.c
head/sys/contrib/dev/acpica/components/events/evxface.c
head/sys/contrib/dev/acpica/components/events/evxfevnt.c
head/sys/contrib/dev/acpica/components/events/evxfgpe.c
head/sys/contrib/dev/acpica/components/events/evxfregn.c
head/sys/contrib/dev/acpica/components/executer/exconcat.c
head/sys/contrib/dev/acpica/components/executer/exconfig.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/exdebug.c
head/sys/contrib/dev/acpica/components/executer/exdump.c
head/sys/contrib/dev/acpica/components/executer/exfield.c
head/sys/contrib/dev/acpica/components/executer/exfldio.c
head/sys/contrib/dev/acpica/components/executer/exmisc.c
head/sys/contrib/dev/acpica/components/executer/exmutex.c
head/sys/contrib/dev/acpica/components/executer/exnames.c
head/sys/contrib/dev/acpica/components/executer/exoparg1.c
head/sys/contrib/dev/acpica/components/executer/exoparg2.c
head/sys/contrib/dev/acpica/components/executer/exoparg3.c
head/sys/contrib/dev/acpica/components/executer/exoparg6.c
head/sys/contrib/dev/acpica/components/executer/exprep.c
head/sys/contrib/dev/acpica/components/executer/exregion.c
head/sys/contrib/dev/acpica/components/executer/exresnte.c
head/sys/contrib/dev/acpica/components/executer/exresolv.c
head/sys/contrib/dev/acpica/components/executer/exresop.c
head/sys/contrib/dev/acpica/components/executer/exserial.c
head/sys/contrib/dev/acpica/components/executer/exstore.c
head/sys/contrib/dev/acpica/components/executer/exstoren.c
head/sys/contrib/dev/acpica/components/executer/exstorob.c
head/sys/contrib/dev/acpica/components/executer/exsystem.c
head/sys/contrib/dev/acpica/components/executer/extrace.c
head/sys/contrib/dev/acpica/components/executer/exutils.c
head/sys/contrib/dev/acpica/components/hardware/hwacpi.c
head/sys/contrib/dev/acpica/components/hardware/hwesleep.c
head/sys/contrib/dev/acpica/components/hardware/hwgpe.c
head/sys/contrib/dev/acpica/components/hardware/hwpci.c
head/sys/contrib/dev/acpica/components/hardware/hwregs.c
head/sys/contrib/dev/acpica/components/hardware/hwsleep.c
head/sys/contrib/dev/acpica/components/hardware/hwtimer.c
head/sys/contrib/dev/acpica/components/hardware/hwvalid.c
head/sys/contrib/dev/acpica/components/hardware/hwxface.c
head/sys/contrib/dev/acpica/components/hardware/hwxfsleep.c
head/sys/contrib/dev/acpica/components/namespace/nsaccess.c
head/sys/contrib/dev/acpica/components/namespace/nsalloc.c
head/sys/contrib/dev/acpica/components/namespace/nsarguments.c
head/sys/contrib/dev/acpica/components/namespace/nsconvert.c
head/sys/contrib/dev/acpica/components/namespace/nsdump.c
head/sys/contrib/dev/acpica/components/namespace/nsdumpdv.c
head/sys/contrib/dev/acpica/components/namespace/nseval.c
head/sys/contrib/dev/acpica/components/namespace/nsinit.c
head/sys/contrib/dev/acpica/components/namespace/nsload.c
head/sys/contrib/dev/acpica/components/namespace/nsnames.c
head/sys/contrib/dev/acpica/components/namespace/nsobject.c
head/sys/contrib/dev/acpica/components/namespace/nsparse.c
head/sys/contrib/dev/acpica/components/namespace/nspredef.c
head/sys/contrib/dev/acpica/components/namespace/nsprepkg.c
head/sys/contrib/dev/acpica/components/namespace/nsrepair.c
head/sys/contrib/dev/acpica/components/namespace/nsrepair2.c
head/sys/contrib/dev/acpica/components/namespace/nssearch.c
head/sys/contrib/dev/acpica/components/namespace/nsutils.c
head/sys/contrib/dev/acpica/components/namespace/nswalk.c
head/sys/contrib/dev/acpica/components/namespace/nsxfeval.c
head/sys/contrib/dev/acpica/components/namespace/nsxfname.c
head/sys/contrib/dev/acpica/components/namespace/nsxfobj.c
head/sys/contrib/dev/acpica/components/parser/psargs.c
head/sys/contrib/dev/acpica/components/parser/psloop.c
head/sys/contrib/dev/acpica/components/parser/psobject.c
head/sys/contrib/dev/acpica/components/parser/psopcode.c
head/sys/contrib/dev/acpica/components/parser/psopinfo.c
head/sys/contrib/dev/acpica/components/parser/psparse.c
head/sys/contrib/dev/acpica/components/parser/psscope.c
head/sys/contrib/dev/acpica/components/parser/pstree.c
head/sys/contrib/dev/acpica/components/parser/psutils.c
head/sys/contrib/dev/acpica/components/parser/pswalk.c
head/sys/contrib/dev/acpica/components/parser/psxface.c
head/sys/contrib/dev/acpica/components/resources/rsaddr.c
head/sys/contrib/dev/acpica/components/resources/rscalc.c
head/sys/contrib/dev/acpica/components/resources/rscreate.c
head/sys/contrib/dev/acpica/components/resources/rsdump.c
head/sys/contrib/dev/acpica/components/resources/rsdumpinfo.c
head/sys/contrib/dev/acpica/components/resources/rsinfo.c
head/sys/contrib/dev/acpica/components/resources/rsio.c
head/sys/contrib/dev/acpica/components/resources/rsirq.c
head/sys/contrib/dev/acpica/components/resources/rslist.c
head/sys/contrib/dev/acpica/components/resources/rsmemory.c
head/sys/contrib/dev/acpica/components/resources/rsmisc.c
head/sys/contrib/dev/acpica/components/resources/rsserial.c
head/sys/contrib/dev/acpica/components/resources/rsutils.c
head/sys/contrib/dev/acpica/components/resources/rsxface.c
head/sys/contrib/dev/acpica/components/tables/tbdata.c
head/sys/contrib/dev/acpica/components/tables/tbfadt.c
head/sys/contrib/dev/acpica/components/tables/tbfind.c
head/sys/contrib/dev/acpica/components/tables/tbinstal.c
head/sys/contrib/dev/acpica/components/tables/tbprint.c
head/sys/contrib/dev/acpica/components/tables/tbutils.c
head/sys/contrib/dev/acpica/components/tables/tbxface.c
head/sys/contrib/dev/acpica/components/tables/tbxfload.c
head/sys/contrib/dev/acpica/components/tables/tbxfroot.c
head/sys/contrib/dev/acpica/components/utilities/utaddress.c
head/sys/contrib/dev/acpica/components/utilities/utalloc.c
head/sys/contrib/dev/acpica/components/utilities/utascii.c
head/sys/contrib/dev/acpica/components/utilities/utbuffer.c
head/sys/contrib/dev/acpica/components/utilities/utcache.c
head/sys/contrib/dev/acpica/components/utilities/utcopy.c
head/sys/contrib/dev/acpica/components/utilities/utdebug.c
head/sys/contrib/dev/acpica/components/utilities/utdecode.c
head/sys/contrib/dev/acpica/components/utilities/utdelete.c
head/sys/contrib/dev/acpica/components/utilities/uterror.c
head/sys/contrib/dev/acpica/components/utilities/uteval.c
head/sys/contrib/dev/acpica/components/utilities/utexcep.c
head/sys/contrib/dev/acpica/components/utilities/utglobal.c
head/sys/contrib/dev/acpica/components/utilities/uthex.c
head/sys/contrib/dev/acpica/components/utilities/utids.c
head/sys/contrib/dev/acpica/components/utilities/utinit.c
head/sys/contrib/dev/acpica/components/utilities/utlock.c
head/sys/contrib/dev/acpica/components/utilities/utmath.c
head/sys/contrib/dev/acpica/components/utilities/utmisc.c
head/sys/contrib/dev/acpica/components/utilities/utmutex.c
head/sys/contrib/dev/acpica/components/utilities/utnonansi.c
head/sys/contrib/dev/acpica/components/utilities/utobject.c
head/sys/contrib/dev/acpica/components/utilities/utosi.c
head/sys/contrib/dev/acpica/components/utilities/utownerid.c
head/sys/contrib/dev/acpica/components/utilities/utpredef.c
head/sys/contrib/dev/acpica/components/utilities/utresdecode.c
head/sys/contrib/dev/acpica/components/utilities/utresrc.c
head/sys/contrib/dev/acpica/components/utilities/utstate.c
head/sys/contrib/dev/acpica/components/utilities/utstring.c
head/sys/contrib/dev/acpica/components/utilities/utstrsuppt.c
head/sys/contrib/dev/acpica/components/utilities/utstrtoul64.c
head/sys/contrib/dev/acpica/components/utilities/uttrack.c
head/sys/contrib/dev/acpica/components/utilities/utuuid.c
head/sys/contrib/dev/acpica/components/utilities/utxface.c
head/sys/contrib/dev/acpica/components/utilities/utxferror.c
head/sys/contrib/dev/acpica/components/utilities/utxfinit.c
head/sys/contrib/dev/acpica/components/utilities/utxfmutex.c
head/sys/contrib/dev/acpica/include/acapps.h
head/sys/contrib/dev/acpica/include/acbuffer.h
head/sys/contrib/dev/acpica/include/acclib.h
head/sys/contrib/dev/acpica/include/accommon.h
head/sys/contrib/dev/acpica/include/acconfig.h
head/sys/contrib/dev/acpica/include/acconvert.h
head/sys/contrib/dev/acpica/include/acdebug.h
head/sys/contrib/dev/acpica/include/acdisasm.h
head/sys/contrib/dev/acpica/include/acdispat.h
head/sys/contrib/dev/acpica/include/acevents.h
head/sys/contrib/dev/acpica/include/acexcep.h
head/sys/contrib/dev/acpica/include/acglobal.h
head/sys/contrib/dev/acpica/include/achware.h
head/sys/contrib/dev/acpica/include/acinterp.h
head/sys/contrib/dev/acpica/include/aclocal.h
head/sys/contrib/dev/acpica/include/acmacros.h
head/sys/contrib/dev/acpica/include/acnames.h
head/sys/contrib/dev/acpica/include/acnamesp.h
head/sys/contrib/dev/acpica/include/acobject.h
head/sys/contrib/dev/acpica/include/acopcode.h
head/sys/contrib/dev/acpica/include/acoutput.h
head/sys/contrib/dev/acpica/include/acparser.h
head/sys/contrib/dev/acpica/include/acpi.h
head/sys/contrib/dev/acpica/include/acpiosxf.h
head/sys/contrib/dev/acpica/include/acpixf.h
head/sys/contrib/dev/acpica/include/acpredef.h
head/sys/contrib/dev/acpica/include/acresrc.h
head/sys/contrib/dev/acpica/include/acrestyp.h
head/sys/contrib/dev/acpica/include/acstruct.h
head/sys/contrib/dev/acpica/include/actables.h
head/sys/contrib/dev/acpica/include/actbinfo.h
head/sys/contrib/dev/acpica/include/actbl.h
head/sys/contrib/dev/acpica/include/actbl1.h
head/sys/contrib/dev/acpica/include/actbl2.h
head/sys/contrib/dev/acpica/include/actbl3.h
head/sys/contrib/dev/acpica/include/actypes.h
head/sys/contrib/dev/acpica/include/acutils.h
head/sys/contrib/dev/acpica/include/acuuid.h
head/sys/contrib/dev/acpica/include/amlcode.h
head/sys/contrib/dev/acpica/include/amlresrc.h
head/sys/contrib/dev/acpica/include/platform/acenv.h
head/sys/contrib/dev/acpica/include/platform/acenvex.h
head/sys/contrib/dev/acpica/include/platform/acfreebsd.h
head/sys/contrib/dev/acpica/include/platform/acgcc.h
head/sys/contrib/dev/acpica/include/platform/acgccex.h
head/sys/contrib/dev/acpica/os_specific/service_layers/osunixxf.c
Directory Properties:
head/sys/contrib/dev/acpica/ (props changed)
Log:
MFV: r342867

Merge ACPICA 20190108.
08/01/2019
8:55 pm
base/head
imp
head/sys/cam/scsi
Modificado:
head/sys/cam/scsi/scsi_da.c
Log:
Add NO_SYNC_CACHE quirk for PENTAX cameras

PR: 93389
Submitted by: Demin Alexander
08/01/2019
8:01 pm
base/head
imp
head/stand/i386/libfirewire
Modificado:
head/stand/i386/libfirewire/firewire.c
Log:
biospci_write_config args were backwards

biospci_write_config args swapped length and value to write. Some
hardware coped just fine, while other hardware had issues.

PR: 155441
Submitted by: longwitz at incore dot de
08/01/2019
5:21 pm
base/head
markj
head/sys/compat/linux
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BABC14845C2;
Tue, 8 Jan 2019 17:22:00 +0000 (UTC)
(envelope-from markj@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
server-signature RSA-PSS (4096 bits)
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 449AE6E5B7;
Tue, 8 Jan 2019 17:22:00 +0000 (UTC)
(envelope-from markj@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 E7DD62CBE;
Tue, 8 Jan 2019 17:21:59 +0000 (UTC)
(envelope-from markj@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x08HLxgt009315;
Tue, 8 Jan 2019 17:21:59 GMT (envelope-from markj@FreeBSD.org)
Received: (from markj@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id x08HLxMA009314;
Tue, 8 Jan 2019 17:21:59 GMT (envelope-from markj@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: markj set sender to
markj@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
X-Spamd-Result: default: False [-2.95 / 15.00];
local_wl_from(0.00)[FreeBSD.org];
NEURAL_HAM_MEDIUM(-1.00)[-0.998,0];
NEURAL_HAM_SHORT(-0.95)[-0.953,0];
NEURAL_HAM_LONG(-1.00)[-0.998,0]
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
08/01/2019
5:08 pm
base/head
markj
head/share/termcap
Modificado:
head/share/termcap/termcap
Log:
Add termcap entries for TI Silent 703/707 terminals.

PR: 234716
Submitted by: Robert Clausecker
MFC after: 1 week
08/01/2019
3:30 pm
base/head
chuck
head/sys/dev/nvme
Modificado:
head/sys/dev/nvme/nvme_ns.c
Log:
Add NVMe drive to NOIOB quirk list

Dell-branded Intel P4600 NVMe drives benefit from NVMe 1.3's NOIOB
feature. Unfortunately just like Intel DC P4500s, they don't advertise
themselves as benefiting from this...

This changes adds P4600s to the existing list of old drives which
benefit from striping.

PR: 233969
Submitted by: David Fugate
Reviewed by: imp, mav
Approved by: imp (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18772
08/01/2019
9:41 am
base/head
0mp
head/share/man/man7
Modificado:
head/share/man/man7/ports.7
Log:
ports.7: Do not mention deprecated WITH_SSP_PORTS and WITH_GHOSTSCRIPT_VER

As mentioned in this special status report[1] from EuroBSDCon 2013,
WITH_SSP_PORTS was relevant in the FreeBSD 9 and FreeBSD 10 days.
Nowadays, -fstack-protector is set by default. Relevant knobs and variables
are documented in ports/Mk/bsd.port.mk.

WITH_GHOSTSCRIPT_VER was part of USE_GHOSTSCRIPT, which is deprecated.

[1]: https://www.freebsd.org/news/status/report-2013-09-devsummit.html#Ports-and-Packages

Reviewed by: bcr, mat, tobik
Approved by: bcr (doc)
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18056
08/01/2019
9:04 am
base/head
tuexen
head/sys/kern
Modificado:
head/sys/kern/vfs_subr.c
Log:
Avoid overfow in vtruncbuf()

Using daddr_t instead of int avoids trunclbn to become negative when it
shouldn't.
This isssue was found by running syzkaller.

Reviewed by: mckusick, kib, markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18763
08/01/2019
5:41 am
base/head
delphij
head/sys/dev/oce
Modificado:
head/sys/dev/oce/oce_if.c
head/sys/dev/oce/oce_if.h
head/sys/dev/oce/oce_mbox.c
head/sys/dev/oce/oce_sysctl.c
Log:
Added support for the SIOCGI2C ioctl.

Submitted by: Ram Kishore Vegesna
Obtained from: Broadcom
MFC after: 2 weeks
07/01/2019
11:46 pm
base/head
shurd
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Use iflib_if_init_locked() during resume instead of iflib_init_locked().

iflib_init_locked() assumes that iflib_stop() has been called, however,
it is not called for suspend. iflib_if_init_locked() calls stop then init,
so fixes the problem.

This was causing errors after a resume from suspend.

PR: 224059
Reported by: zeising
MFC after: 1 week
Sponsored by: Limelight Networks
07/01/2019
11:17 pm
base/head
glebius
head/sys/vm
Modificado:
head/sys/vm/vm_page.c
Log:
Fix regression in r331368, that broke dumping of UMA startup pages
when WITNESS is present.

Discussed with: markj
07/01/2019
10:10 pm
base/head
kib
in head: lib/libc/sys sys/vm
Modificado:
head/lib/libc/sys/mincore.2
head/sys/vm/vm_mmap.c
Log:
Add a tunable which changes mincore(2) algorithm to only report data
from the local mapping.

Enable the setting by default.
The article behind the change: https://arxiv.org/abs/1901.01161

Reviewed by: markj
Discussed with: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18764
07/01/2019
7:39 pm
base/head
cem
in head/sys/powerpc: include powernv powerpc ps3 pseries
Modificado:
head/sys/powerpc/include/platform.h
head/sys/powerpc/powernv/platform_powernv.c
head/sys/powerpc/powerpc/mp_machdep.c
head/sys/powerpc/powerpc/platform.c
head/sys/powerpc/powerpc/platform_if.m
head/sys/powerpc/ps3/platform_ps3.c
head/sys/powerpc/pseries/platform_chrp.c
Log:
powerpc: Fix regression introduced in r342771

In r342771, I introduced a regression in Power by abusing the platform
smp_topo() method as a shortcut for providing the MI information needed for
the stated sysctls. The smp_topo() method was already called later by
sched_ule (under the name cpu_topo()), and initializes a static array of
scheduler topology information. I had skimmed the smp_topo_foo() functions
and assumed they were idempotent; empirically, they are not (or at least,
detect re-initialization and panic).

Do the cleaner thing I should have done in the first place and add a
platform method specifically for core- and thread-count probing.

Reported by: luporl via jhibbits
Reviewed by: luporl
X-MFC-With: r342771
Differential Revision: https://reviews.freebsd.org/D18777
07/01/2019
5:35 pm
base/head
pfg
head/lib/msun/src
Modificado:
head/lib/msun/src/e_pow.c
Log:
pow(3): Workaround possible signed shift Undefined Behavior.

j is int32_t and thus j<<31 is undefined if j==1.

Hinted by: muusl-lib (git 688d3da0f1730daddbc954bbc2d27cc96ceee04c)
Discussed with: freebsd-numerics (kargl)
07/01/2019
4:36 pm
base/head
ian
head/sys/arm/arm
Modificado:
head/sys/arm/arm/mpcore_timer.c
Log:
Add a missing \n to a bootverbose printf.
07/01/2019
4:16 pm
base/head
kevans
head/lib/libbe
Modificado:
head/lib/libbe/be.c
Log:
libbe(3): Don't allow bootfs to be destroyed

Previously, the following sequence of events was feasible under some
circumstance:

bectl create test
bectl activate test
# the test BE dataset gets promoted and set as bootfs
bectl destroy test

I was unable to reproduce the destroy succeeding, but we should be rejecting
this before it even gets to libzfs because it would leave the system in an
inconsistent state. Forcing the user to be explicit as to which environment
should be activated instead is much better.

Reported by: Graham Perrin
MFC after: 3 days
07/01/2019
3:53 pm
base/head
emaste
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
OptionalObsoleteFiles: remove groff leftovers

usr/share/dict/eign is removed unconditionally as of r319664, so it no
longer needs to be in OptionalObsoleteFiles.

PR: 230353
Reported by: philippe.michel7 sfr.fr
07/01/2019
8:29 am
base/head
delphij
head/usr.bin/gzip
Modificado:
head/usr.bin/gzip/gzip.1
Log:
Correct documentation year.

MFC after: 2 weeks
07/01/2019
8:27 am
base/head
delphij
head/usr.bin/gzip
Adicional:
head/usr.bin/gzip/unlz.c (contents, props changed)
Modificado:
head/usr.bin/gzip/gzip.1
head/usr.bin/gzip/gzip.c
head/usr.bin/gzip/unxz.c
Log:
Port NetBSD improvements:

- Add -l support for xz files
- Add lzip support to gzip based on the example lzip decoder.

Obtained from: NetBSD
MFC after: 2 weeks
Relnotes: yes
07/01/2019
6:19 am
base/head
imp
head/sys/dev/pccard
Modificado:
head/sys/dev/pccard/pccard.c
Log:
Fix a race between setting up the interrupt handler and it firing by
setting the data prior to setting up the interrupt. Now we only set
the cookie afterwards, and that (a) cannot be helpd and (b) isn't used
in the ISR.

PR: 147127
Submitted by: hps@
07/01/2019
5:59 am
base/head
imp
head/sys/dev/pccbb
Modificado:
head/sys/dev/pccbb/pccbb.c
Log:
Fix TI PCI1520 PCI Cardbus bridge, but others affected.

On system with Celeron 1.5GHz CPU, sometimes when a PCMCIA to Compact Flash
adapter containing a Compact Flash card is inserted in the cardbus slot the
system hangs. This problem has not been observed in systems with a 2.8GHz
XEON CPU or faster.

Analysis of the cbb driver shows functional interrupts are routed to PCI
BEFORE the interrupt handler for functional interrupts has been registered.

Fix applied as described in the bug.

PR: 128040
Submitted by: Arthur Hartwig
07/01/2019
5:49 am
base/head
imp
in head: share/mk stand tools/build/options
Adicional:
head/tools/build/options/WITH_LOADER_VERBOSE (contents, props changed)
Modificado:
head/share/mk/src.opts.mk
head/stand/loader.mk
Log:
Create MK_LOADER_VERBOSE and connect it to ELF_VERBOSE in the loader
code.

PR: 18498
Submitted by: mellon at pobox dot com
07/01/2019
2:39 am
base/head
kib
head/sys/dev/ahci
Modificado:
head/sys/dev/ahci/ahci.c
Log:
Fix use of busdma(9) KPI in ahci(4).

Use BUS_DMA_NOWAIT for loads at initialization time.
Report actual numeric error code if any problem occurs at the
initialization.

Reported and tested by: pho
Reviewed by: mav
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18741
06/01/2019
11:59 pm
base/head
kib
head/contrib/xz/src/common
Modificado:
head/contrib/xz/src/common/tuklib_physmem.c
Log:
Clamp tuklib_physmem() return value to SIZE_T_MAX.

On 32bit platforms it is possible to have (much) more physical RAM
than is mappable into single address space. In this case liblzma
scales the value into a request to mmap more address space than it is
theoretically possible.

Reported and tested by: pho
Reviewed by: delphij
Discussed with: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
06/01/2019
11: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 Mac mini 4,1 (Mid-2010)

MFC after: 1 week
06/01/2019
9:43 pm
base/head
jilles
head/usr.bin/getconf
Modificado:
head/usr.bin/getconf/getconf.1
Log:
getconf(1): Minor mdoc fix

MFC after: 1 week
06/01/2019
9:34 pm
base/head
jilles
head/lib/libc/sys
Modificado:
head/lib/libc/sys/thr_wake.2
Log:
thr_wake(2): Minor mdoc fixes

MFC after: 1 week
06/01/2019
9:24 pm
base/head
cy
in head/contrib/ipfilter/ipsd: . Celler
Eliminado:
head/contrib/ipfilter/ipsd/Celler/ip_compat.h
head/contrib/ipfilter/ipsd/Makefile
head/contrib/ipfilter/ipsd/README
head/contrib/ipfilter/ipsd/ipsd.c
head/contrib/ipfilter/ipsd/ipsd.h
head/contrib/ipfilter/ipsd/ipsdr.c
head/contrib/ipfilter/ipsd/linux.h
head/contrib/ipfilter/ipsd/sbpf.c
head/contrib/ipfilter/ipsd/sdlpi.c
head/contrib/ipfilter/ipsd/slinux.c
head/contrib/ipfilter/ipsd/snit.c
Log:
Remove ipsd (IP Scan Detetor). It is unused and to my knowledge has
never been used on any platform that ipfilter has been on. However
it looks like it could be a useful utility, therefore there are plans
to make it a port one day. It lacks a man page as well.

MFC after: 1 month
06/01/2019
8:42 pm
base/head
delphij
head/usr.bin/primes
Modificado:
head/usr.bin/primes/spsp.c
Log:
Remove unneeded assert.h (there is no assertion in this file).

MFC after: 2 weeks
06/01/2019
8:39 pm
base/head
delphij
head/usr.bin/mkimg
Modificado:
head/usr.bin/mkimg/apm.c
head/usr.bin/mkimg/bsd.c
head/usr.bin/mkimg/ebr.c
head/usr.bin/mkimg/endian.h
head/usr.bin/mkimg/format.c
head/usr.bin/mkimg/gpt.c
head/usr.bin/mkimg/mbr.c
head/usr.bin/mkimg/qcow.c
head/usr.bin/mkimg/raw.c
head/usr.bin/mkimg/scheme.c
head/usr.bin/mkimg/uuid.c
head/usr.bin/mkimg/vhd.c
head/usr.bin/mkimg/vmdk.c
head/usr.bin/mkimg/vtoc8.c
Log:
Remove unneeded headers.

MFC after: 1 month
06/01/2019
4:23 pm
base/head
trasz
head/share/skel
Modificado:
head/share/skel/dot.shrc
Log:
Give sh(1) a proper default prompt instead of just "$".

Reviewed by: jilles
MFC after: 2 weeks
Relnotes: totally
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18697
06/01/2019
5:07 am
base/head
jhibbits
head/sys/contrib/ncsw/user/env
Modificado:
head/sys/contrib/ncsw/user/env/xx.c
Log:
dtsec: Fix formatting of addresses in translation error messages

Don't clamp addresses to 8 hex digits, particularly since this is primarily
used now on a 64-bit platform.

MFC after: 1 week
06/01/2019
2:39 am
base/head
avos
head/usr.sbin/powerd
Modificado:
head/usr.sbin/powerd/powerd.8
head/usr.sbin/powerd/powerd.c
Log:
powerd(8): allow to force a method of battery state query

This change allows to determine power source via sysctl or /dev/apm
when devd(8) is running (used by default).

Based on patch from PR; other changes on top of it:
- '-f' (force) -> '-s' (source) parameter renaming;
- allow 'apm' -> 'devd' transition when '-s devd' is set
(if APM is enabled);
- man page update.

Checked on amd64 with -s devd / sysctl and apm
(an extra build with forced USE_APM define set was done)

PR: 125707
Submitted by: Konstantin Stepanov
Reviewed by: bcr, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18742
06/01/2019
1:39 am
base/head
kevans
head/libexec/rc
Modificado:
head/libexec/rc/rc.subr
Log:
rc.subr: Fix typo

Originally intended as 'in case in needs to be re-invoked', but it was later
decided (by myself) that 're-invoke itself' makes it more clear that the
script is expected to use this in a way.

Reported by: Jose Luis Duran (jlduran @ github)
X-MFC-With: r342792
05/01/2019
10:45 pm
base/head
mmacy
in head: . share/mk stand/efi/boot1 stand/efi/libefi
Adicional:
head/tools/build/options/WITHOUT_LOADER_ZFS (contents, props changed)
Modificado:
head/.gitattributes
head/share/mk/src.opts.mk
head/stand/efi/boot1/Makefile
head/stand/efi/libefi/Makefile
head/stand/efi/loader/Makefile
head/stand/i386/Makefile
head/stand/i386/loader/Makefile
head/stand/libsa/Makefile
head/stand/sparc64/Makefile
head/stand/sparc64/loader/Makefile
head/stand/userboot/userboot/Makefile
head/tools/build/options/WITHOUT_ZFS
Log:
MK_ZFS -> {MK_ZFS|MK_LOADER_ZFS}, this is so we can diable userland / kernel
ZFS but keep the boot-loaders when using ZoL port.

MFC after: 1 week
Reviewed by: rgrimes
Differential Revision: https://reviews.freebsd.org/D18739
05/01/2019
9:23 pm
base/head
kevans
in head: libexec/rc share/man/man8
Modificado:
head/libexec/rc/rc.subr
head/share/man/man8/rc.subr.8
Log:
rc.subr: Provide rc_service variable for service scripts

Some rc scripts in ports (e.g. uwsgi, apache, openvpn) allow for
'application profiles' that usually require the rc script to be invoked
again for each active profile. Because there's no consistent way to
determine the path because it differs between manual/service(8) invocations
and /etc/rc invocations, this leads to patterns like these:

- www/uwsgi hardcodes the script path
- security/openvpn guesses either $_file or $0 based on $0 = /etc/rc

Instead of forcing rc scripts to guess, provide an rc_service variable to
the scripts that gets set appropriately both for direct execution or when a
script is being executed via run_rc_script (e.g. /etc/rc).

This is our analog of an OpenRC variable with the same name, different case
(RC_SERVICE).

PR: 234614
Reported by: koobs
Reviewed by: dteske, jilles
MFC after: 3 days
05/01/2019
9:07 pm
base/head
joerg
head/sys/sys
Modificado:
head/sys/sys/chio.h
Log:
Fix an old typo in the element status display bits:

INEAB -> INENAB (import is eNabled)

Note that this kernel definition is exported into chio(1), and used
for element display there.

MFC after: 1 week
05/01/2019
4:05 pm
base/head
markj
in head: sbin/rtsol usr.sbin/rtsold
Adicional:
head/usr.sbin/rtsold/cap_llflags.c (contents, props changed)
head/usr.sbin/rtsold/cap_script.c (contents, props changed)
head/usr.sbin/rtsold/cap_sendmsg.c (contents, props changed)
Eliminado:
head/usr.sbin/rtsold/probe.c
Modificado:
head/sbin/rtsol/Makefile
head/usr.sbin/rtsold/Makefile
head/usr.sbin/rtsold/dump.c
head/usr.sbin/rtsold/if.c
head/usr.sbin/rtsold/rtsock.c
head/usr.sbin/rtsold/rtsol.c
head/usr.sbin/rtsold/rtsold.c
head/usr.sbin/rtsold/rtsold.h
Log:
Capsicumize rtsol(8) and rtsold(8).

These programs parse ND6 Router Advertisement messages; rtsold(8) has
required an SA, SA-14:20.rtsold, for a bug in this code. Thus, they
are good candidates for sandboxing.

The approach taken is to run the main executable in capability mode
and use Casper services to provide functionality that cannot be
implemented within the sandbox. In particular, several custom services
were required.

- A Casper service is used to send Router Solicitation messages on a
raw ICMP6 socket. Initially I took the approach of creating a
socket for each interface upon startup, and connect(2)ing it to
the all-routers multicast group for the interface. This permits
the use of sendmsg(2) in capability mode, but only works if the
interface's link is up when rtsol(d) starts. So, instead, the
rtsold.sendmsg service is used to transmit RS messages on behalf
of the main process. One could alternately define a service
which simply creates and connects a socket for each destination
address, and returns the socket to the sandboxed process. However,
to implement rtsold's -m option we also need to read the ND6 default
router list, and this cannot be done in capability mode.
- rtsold may execute resolvconf(8) in response to RDNSS and DNSSL
options in received RA messages. A Casper service is used to
fork and exec resolvconf(8), and to reap the child process.
- A service is used to determine whether a given interface's
link-local address is useable (i.e., not duplicated or undergoing
DAD). This information is supplied by getifaddrs(3), which reads
a sysctl not available in capability mode. The SIOCGIFCONF socket
ioctl provides equivalent information and can be used in capability
mode, but I decided against it for now because of some limitations
of that interface.

In addition to these new services, cap_syslog(3) is used to send
messages to syslogd.

Reviewed by: oshogbo
Tested by: bz (previous versions)
MFC after: 2 months
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17572
05/01/2019
3:28 pm
base/head
markj
head/sys/dev/tws
Modificado:
head/sys/dev/tws/tws_user.c
Log:
Add a bounds check to the tws(4) passthrough ioctl handler.

tws_passthru() was doing a copyin of a user-specified request
without validating its length, so a malicious request could overrun
the buffer. By default, the tws(4) device file is only accessible
as root.

admbug: 825
Reported by: Anonymous of the Shellphish Grill Team
Reviewed by: delphij
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18536
05/01/2019
7:20 am
base/head
tsoome
head/stand/i386/libi386
Modificado:
head/stand/i386/libi386/biosdisk.c
Log:
With buggy int13 ah=15, we can mis-identify the floppy devices.

We have no option than trust INT13 ah=08 return code during the init phase.

PR: 234460
Reported by: Oleh Hushchenkov
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18723
05/01/2019
5:50 am
base/head
kp
head/share/man/man5
Modificado:
head/share/man/man5/pf.conf.5
Log:
pf: Remove references to pflow from the pf.conf man page

pflow no longer exists. It was removed as part of a pf update back in 2012
(r240233).

PR: 223957
MFC after: 1 week
04/01/2019
9:12 pm
base/head
kp
head/sys/kern
Modificado:
head/sys/kern/kern_sig.c
Log:
Remove unneeded NULL check for td_ucred

td_ucred is always set, so we don't need the ternary expression to check for
it.
04/01/2019
9:09 pm
base/head
hselasky
head/sys/dev/usb
Modificado:
head/sys/dev/usb/usb_hub.c
head/sys/dev/usb/usb_request.c
Log:
Reduce timeout for reading the USB HUB port status to 1000ms and try to filter
out dead USB HUB devices by implementing an error counter, so that the USB
enumeration thread does not spend all its time reading from non-responding
devices, blocking user-space access in the end.

Tested by: Matthias Apitz
MFC after: 1 week
Sponsored by: Mellanox Technologies
04/01/2019
7:20 pm
base/head
markj
head/sbin/savecore
Modificado:
head/sbin/savecore/Makefile
Log:
Disable savecore(8)'s libcasper support when WITHOUT_DYNAMICROOT=yes.

This follows the example of other Capsicumized programs in /sbin.

Reported by: Manfred Antar
MFC with: r342699
Sponsored by: The FreeBSD Foundation
04/01/2019
7:10 pm
base/head
kib
head/sys/i386/include
Modificado:
head/sys/i386/include/pmap.h
Log:
Fix i386 LINT build after r342769.

It seems that libkern/mcount.c is the only consumer of vm/pmap.h that
does not include machine/atomic.h. Make it work by bringing
machine/atomic.h when pmap.h is used for kernel non-asm .c file.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
04/01/2019
6:38 pm
base/head
gallatin
head/sys/conf
Modificado:
head/sys/conf/newvers.sh
Log:
Limit git history searches in newvers.sh

newvers.sh takes upwards of 4-5 seconds to complete on trees checked
out from github, due to searching the entire history for non-existent
git-svn metadata. Similarly, if one does not check out notes, we
again search the entire history for notes. That makes newvers.sh very
slow for many github users.

To fix this in a fair way, limit the history search to the last 10K
commits: if you're more than 10K commits out of sync, then you've
forked the project, and our SVN rev is no longer very important to you.

Due to how git implements --grep in conjunction with -n, --grep has been
removed for performance reasons (git does not seem to limit its search
to the -n limit in this case, and takes just as long as it did with no
limit).

Reviewed by: emaste, imp
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18745
04/01/2019
6:35 pm
base/head
emaste
head/lib/csu/tests
Modificado:
head/lib/csu/tests/Makefile
Log:
Add explicit csu test dependency

lib/csu/tests/dynamiclib requires libh_csu.so be built first. I'm not
sure this is the most correct/best way to address this but it solves
the issue in my testing.

PR: 233734
Sponsored by: The FreeBSD Foundation
04/01/2019
6:34 pm
base/head
cem
head/sys/sys
Modificado:
head/sys/sys/param.h
Log:
Bump __FreeBSD_version for r342771
04/01/2019
6:31 pm
base/head
cem
in head: share/man/man4 sys/kern sys/powerpc/powernv
Modificado:
head/share/man/man4/smp.4
head/sys/kern/subr_smp.c
head/sys/powerpc/powernv/platform_powernv.c
head/sys/powerpc/powerpc/mp_machdep.c
head/sys/powerpc/ps3/platform_ps3.c
head/sys/powerpc/pseries/platform_chrp.c
head/sys/sys/smp.h
head/sys/x86/x86/mp_x86.c
Log:
Expose threads-per-core and physical core count information

With new sysctls (to the best of our ability do detect them). Restructured
smp.4 slightly for clarity (keep relevant stuff closer to the top) while
documenting.

Reviewed by: markj, jhibbits (ppc parts)
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D18322
04/01/2019
6:21 pm
base/head
dab
head/sys/dev/asmc
Modificado:
head/sys/dev/asmc/asmc.c
head/sys/dev/asmc/asmcvar.h
Log:
asmc: Patch to add MacBook Pro 9,2 support

PR: 211513
Submitted by: William Theesfeld Jr
Reported by: William Theesfeld Jr
MFC after: 1 week
04/01/2019
5:33 pm
base/head
kib
head/sys/i386/include
Modificado:
head/sys/i386/include/pmap.h
Log:
i386: Use atomic 64bit load to read PDE value from PAE pagetables in
pmap_kextract().

pmap_kextract() can race with promotion/demotion on the kernel page
table, in which case current non-atomic 64bit read would see torn
value, breaking pmap_kextract(). pmap_kextract() would correctly
handle either promoted or demoted PDE, but not a mix where one word
is from a different state.

It requires PAE and > 4G memory to reproduce. We observed this in
real loads, both for intensive use of malloc(9)/free(9) where
vtoslab() returned invalid pointer to the slab, and with the use of
busdma_bounce, where incorrect page was bounced.

In collaboration with: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D18714
04/01/2019
5:31 pm
base/head
markj
in head: lib/libc/sys sys/kern sys/netinet
Modificado:
head/lib/libc/sys/send.2
head/sys/kern/uipc_socket.c
head/sys/netinet/sctp_output.c
head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
Log:
Support MSG_DONTWAIT in send*(2).

As it does for recv*(2), MSG_DONTWAIT indicates that the call should
not block, returning EAGAIN instead. Linux and OpenBSD both implement
this, so the change makes porting easier, especially since we do not
return EINVAL or so when unrecognized flags are specified.

Submitted by: Greg V
Reviewed by: tuexen
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18728
04/01/2019
5:25 pm
base/head
kib
in head/sys: amd64/amd64 i386/i386
Modificado:
head/sys/amd64/amd64/db_interface.c
head/sys/i386/i386/db_interface.c
Log:
x86: Report per-cpu IPI TLB shootdown generation in ddb 'show pcpu' output.

It is useful for inspecting tlb shootdown hangs. The smp_tlb_generation value
is available using regular ddb data inspection commands.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
04/01/2019
5:14 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/mp_machdep.c
Log:
Don't enable interrupts in init_secondary().

The MI kernel assumes that interrupts will not be enabled on APs until
after the first context switch. In particular, the problem was causing
occasional deadlocks during boot.

Remove an unneeded intr_disable() added in r335005.

Reviewed by: jhb (previous version)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18738
04/01/2019
5:10 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Fix dirty bit handling in pmap_remove_write().

Reviewed by: jhb, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18732
04/01/2019
5:08 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Clear PGA_WRITEABLE in pmap_remove_pages().

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18731
04/01/2019
4:47 pm
base/head
emaste
head/sys/conf
Modificado:
head/sys/conf/newvers.sh
Log:
newvers: retire p4 version support

Perforce no longer offers a FreeBSD client and it not a viable VCS for
FreeBSD development. Remove p4 version logic to simplify newvers.sh in
advance of other changes.

Sponsored by: The FreeBSD Foundation
04/01/2019
3:03 pm
base/head
chuck
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/pci_nvme.c
Log:
Fix bhyve's NVMe Completion Queue entry values

The function which processes Admin commands was not returning the
Command Specific value in Completion Queue Entry, Dword 0 (CDW0). This
effects commands such as Set Features, Number of Queues which returns
the number of queues supported by the device in CDW0. In this case, the
host will only create 1 queue pair (Number of Queues is zero based).
This also masked a bug in the queue counting logic.

Reviewed by: imp, araujo
Approved by: imp (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18703
04/01/2019
3:03 pm
base/head
chuck
head/usr.sbin/bhyve
Modificado:
head/usr.sbin/bhyve/pci_nvme.c
Log:
Fix bhyve's NVMe queue bookkeeping

Many size / length parameters in NVMe are "0's based", meaning, a value
of 0x0 represents 1, 0x1 represents 2, etc.. While this leads to an
efficient encoding, it can lead to subtle bugs. With respect to queues,
these parameters include:
- Maximum number of queue entries
- Maximum number of queues
- Number of Completion Queues
- Number of Submission Queues

To be consistent, convert all 0's based values from the host to 1's
based value internally. Likewise, covert internal 1's based values to
0's based values when returned to the host. This fixes an off-by-one bug
when creating IO queues and simplifies some of the code. Note that this
bug is masked by another bug.

While in the neighborhood,
- fix an erroneous queue ID check (checking CQ count when deleting SQ)
- check for queue ID of 0x0 in a few places where this is illegal
- clean up the Set Features, Number of Queues command and check for
illegal values

Reviewed by: imp, araujo
Approved by: imp (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18702
04/01/2019
2:42 pm
base/head
emaste
head/sys/conf
Modificado:
head/sys/conf/newvers.sh
Log:
newvers: avoid clearing svn revision information with nested VCS dirs

Consider the case where FreeBSD is checked out via Subversion with a
(perhaps unrelated) .git or .hg directory at a higher level - for
example,

.../.git
.../src/freebsd

Previously newvers obtained the SVN revision information via svnversion,
and then tried to obtain the SVN revision corresponding to the git or hg
commit, overwriting the existing information.

As a short term fix use a different variable for hg-svn or git-svn
information, setting $svn from hg or git info only if not empty.

Reported by: Matthias Apitz
Sponsored by: The FreeBSD Foundation
04/01/2019
4:26 am
base/head
avos
in head/sys/dev/rtwn: rtl8188e rtl8188e/pci rtl8192c
Modificado:
head/sys/dev/rtwn/rtl8188e/pci/r88ee_init.c
head/sys/dev/rtwn/rtl8188e/r88e_reg.h
head/sys/dev/rtwn/rtl8192c/r92c_reg.h
Log:
rtwn_pci(4): sync r88ee_power_on() with OpenBSD

Tested with RTL8188EE, STA mode

Submitted by: Farhan Khan
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18727
04/01/2019
4:15 am
base/head
np
head/sys/dev/cxgbe/common
Modificado:
head/sys/dev/cxgbe/common/t4_hw.c
Log:
cxgbe(4): Clear FW_OK if the firmware reports an error.

Sponsored by: Chelsio Communications
04/01/2019
3:13 am
base/head
kevans
head/lib/libc/stdlib
Modificado:
head/lib/libc/stdlib/getopt_long.c
Log:
getopt_long(3): fix case of malformed long opt

When presented with an arg string like '-l-', getopt_long will successfully
parse out the 'l' short option, then proceed to match '--' against the first
longopts entry as it later does a strncmp with len=0. This latter bit is
arguably another bug in itself, but presumably not a practical issue as all
callers of parse_long_options are already doing the right thing (except this
one pointed out).

An opt string like '-l-' should be considered malformed and throw a bad
argument rather than behaving as if '--' were passed. It cannot possibly do
what the invoker expects, and it's probably the result of a typo (ls -l- a)
rather than any intent.

Reported by: Tony Overfield
Reviewed by: imp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18616
04/01/2019
2:48 am
base/head
allanjude
head/usr.bin/lam
Modificado:
head/usr.bin/lam/lam.1
Log:
The lam(1) man page is unclear about the uppercase versions of the flags

PR: 229571
Submitted by: Tim Chase
03/01/2019
11:06 pm
base/head
mmacy
head/sys/net
Modificado:
head/sys/net/mp_ring.c
head/sys/net/mp_ring.h
Log:
mp_ring: avoid items offset difference between iflib and mp_ring
on architectures without 64-bit atomics

Reported by: Augustin Cavalier
03/01/2019
10:49 pm
base/head
mmacy
head/sys/cddl/boot/zfs
Modificado:
head/sys/cddl/boot/zfs/zfsimpl.h
Log:
zfsboot: support newer ZFS versions
declare v3 objset size/layout to fix userboot and possibly other loader issues

- fix for userboot assertion failure in zfs_dev_close in free due to out of bounds write
- fix for zfs_alloc / zfs_free mismatch assertion failure when booting GPT on BIOS
03/01/2019
9:31 pm
base/head
romain
head/lib/libc/gen
Modificado:
head/lib/libc/gen/Makefile.inc
head/lib/libc/gen/dlopen.3
Log:
Add man page for dlvsym(3)

Add a short description of the function to the appropriate man page and add
reference to it where it makes sense.

Reviewed by: bcr, markj, 0mp
Approved by: markj
Differential Revision: https://reviews.freebsd.org/D18725
03/01/2019
8:27 pm
base/head
tsoome
in head/stand/efi: include include/Guid include/Protocol
Adicional:
head/stand/efi/include/Guid/
head/stand/efi/include/Guid/MemoryTypeInformation.h (contents, props changed)
head/stand/efi/include/Guid/MtcVendor.h (contents, props changed)
head/stand/efi/include/Guid/ZeroGuid.h (contents, props changed)
head/stand/efi/include/Protocol/
head/stand/efi/include/Protocol/EdidActive.h (contents, props changed)
head/stand/efi/include/Protocol/EdidDiscovered.h (contents, props changed)
head/stand/efi/include/Protocol/EdidOverride.h (contents, props changed)
head/stand/efi/include/efigpt.h (contents, props changed)
head/stand/efi/include/efiip.h (contents, props changed)
head/stand/efi/include/efipoint.h (contents, props changed)
head/stand/efi/include/efitcp.h (contents, props changed)
head/stand/efi/include/efiudp.h (contents, props changed)
Modificado:
head/stand/efi/include/efi.h
head/stand/efi/include/efiapi.h
head/stand/efi/include/eficon.h
head/stand/efi/include/efidef.h
head/stand/efi/include/efilib.h
head/stand/efi/include/efipciio.h
head/stand/efi/libefi/env.c
head/stand/efi/loader/main.c
Log:
loader.efi: efi variable rework and lsefi command added

This update does add diag and debug capabilities to interpret the efi
variables, configuration and protocols (lsefi).

The side effect is that we add/update bunch of related headers.
03/01/2019
8:23 pm
base/head
jilles
head/bin/sh/tests/execution
Adicional:
head/bin/sh/tests/execution/env1.0 (contents, props changed)
Modificado:
head/bin/sh/tests/execution/Makefile
Log:
sh: Add test for exported but unset variables

PR: 233545
03/01/2019
8:22 pm
base/head
jilles
head/bin/sh
Modificado:
head/bin/sh/var.c
Log:
sh: Do not place exported but unset variables into the environment

PR: 233545
Submitted by: Jan Beich
Obtained from: NetBSD
03/01/2019
7:35 pm
base/head
kib
head/sys/i386/i386
Modificado:
head/sys/i386/i386/pmap.c
Log:
Fix typo in r342710.

Noted by: lidl
MFC after: 3 days
03/01/2019
4:47 pm
base/head
vmaffione
head/tests/sys/netmap
Modificado:
head/tests/sys/netmap/ctrl-api-test.c
Log:
netmap: unit tests: fix issues found by coverity scan

Reported by: asomers
MFC after: 1 week
Sponsored by: Sunny Valley Networks
03/01/2019
4:26 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Fix a use-after-free in the riscv pmap_release() implementation.

Don't bother zeroing the top-level page before freeing it. Previously,
the page was freed before being zeroed.

Reviewed by: jhb, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18720
03/01/2019
4:24 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Synchronize access to the allpmaps list.

The list will be removed with some future work.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18721
03/01/2019
4:21 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Fix some issues with the riscv pmap_protect() implementation.

- Handle VM_PROT_EXECUTE.
- Clear PTE_D and mark the page dirty when removing write access
from a mapping.
- Atomically clear PTE_W to avoid clobbering a hardware PTE update.

Reviewed by: jhb, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18719
03/01/2019
4:19 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Set PTE_U on PTEs created by pmap_enter_quick().

Otherwise prefaulted entries are not accessible from user mode and
end up triggering a fault upon access, so prefaulting has no effect.

Reviewed by: jhb, kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18718
03/01/2019
4:15 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Use regular stores to update PTEs in the riscv pmap layer.

There's no need to use atomics when the previous value isn't needed.
No functional change intended.

Reviewed by: kib
Discussed with: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18717
03/01/2019
4:11 pm
base/head
markj
head/sys/riscv/conf
Modificado:
head/sys/riscv/conf/QEMU
Log:
Configure hz=100 in the QEMU target.

We currently don't have a good way to dynamically detect whether the
kernel is running as a guest.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18715
03/01/2019
2:27 pm
base/head
hselasky
head/sys/dev/usb
Modificado:
head/sys/dev/usb/usb_generic.c
Log:
Improve USB generic debug messages. Print process ID and name when opening
and closing usb/ugenX.Y character device nodes.

MFC after: 1 week
Sponsored by: Mellanox Technologies
03/01/2019
9:03 am
base/head
tsoome
in head/stand/efi: include libefi loader
Modificado:
head/stand/efi/include/efidef.h
head/stand/efi/include/efilib.h
head/stand/efi/libefi/env.c
head/stand/efi/loader/main.c
Log:
loader.efi: update memmap command to recognize new attributes

Also move memory type to string translation to libefi for later use.

MFC after: 2 weeks
03/01/2019
3:27 am
base/head
avos
head/share/man/man4
Modificado:
head/share/man/man4/rtwnfw.4
Log:
rtwnfw(4): refresh this manpage too (add rtwn-rtl8188eefw module).

MFC after: 3 days
03/01/2019
1:01 am
base/head
kib
head/sys/net
Modificado:
head/sys/net/iflib.c
Log:
Fix typo, use boolean operator instead of bit-wise.

Reviewed by: marius, shurd
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
02/01/2019
8:31 pm
base/head
tsoome
head/stand/i386/libi386
Modificado:
head/stand/i386/libi386/devicename.c
Log:
i386_parsedev() needs to support fd devices

MFC after: 2 weeks
02/01/2019
6:35 pm
base/head
avos
in head/sys/dev: rtwn/usb usb
Modificado:
head/sys/dev/rtwn/usb/rtwn_usb_attach.h
head/sys/dev/usb/usbdevs
Log:
rtwn_usb(4): add USB id for TP-LINK TL-WN821N v5.

It is already mentioned in manpage, but was missing from the driver.

MFC after: 4 days
02/01/2019
6:30 pm
base/head
avos
head/share/man/man4
Modificado:
head/share/man/man4/rtwn.4
head/share/man/man4/rtwn_pci.4
head/share/man/man4/rtwn_usb.4
Log:
rtwn(4): refresh manpages.

- Add 'device rtwn' to rtwn_pci(4) and rtwn_usb(4) config sample;
kernel will not compile otherwise.
- Refresh devices list in rtwn_usb(4); add 'chipset' column.
- Bump Dd after this commit and r342682.

MFC after: 4 days
02/01/2019
5:34 pm
base/head
markj
head/sbin/savecore
Modificado:
head/sbin/savecore/savecore.c
Log:
Fix an error check after r342699.

Reported by: gcc
MFC with: r342699
Sponsored by: The FreeBSD Foundation
02/01/2019
5:13 pm
base/head
avos
head/sys/dev/rtwn/pci
Modificado:
head/sys/dev/rtwn/pci/rtwn_pci_rx.c
Log:
rtwn_pci(4): fix panic with INVARIANTS (due to inverted assertion logic)

MFC after: 4 days
02/01/2019
5:09 pm
base/head
markj
head/sbin/savecore
Modificado:
head/sbin/savecore/Makefile
head/sbin/savecore/savecore.c
Log:
Capsicumize savecore(8).

- Use cap_fileargs(3) to open dump devices after entering capability
mode, and use cap_syslog(3) to log messages.
- Use a relative directory fd to open output files.
- Use zdopen(3) to compress kernel dumps in capability mode.

Reviewed by: cem, oshogbo
MFC after: 2 months
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18458
02/01/2019
4:22 pm
base/head
gjb
head/release/i386
Modificado:
head/release/i386/make-memstick.sh
Log:
Escape a new line following r342283.

Sponsored by: The FreeBSD Foundation
02/01/2019
4:01 pm
base/head
markj
head/share/man/man3
Modificado:
head/share/man/man3/timeradd.3
Log:
Typo.

Reported by: Christian Barthel
MFC after: 3 days
02/01/2019
3:52 pm
base/head
markj
in head/sys/geom: concat mirror raid
Modificado:
head/sys/geom/concat/g_concat.c
head/sys/geom/mirror/g_mirror.c
head/sys/geom/raid/g_raid.c
Log:
Use g_handleattr() to reply to GEOM::candelete queries.

g_handleattr() fills out bp->bio_completed; otherwise, g_getattr()
returns an error in response to the query. This caused BIO_DELETE
support to not be propagated through stacked configurations, e.g.,
a gconcat of gmirror volumes would not handle BIO_DELETE even when
the gmirrors do. g_io_getattr() was not affected by the problem.

PR: 232676
Reported and tested by: noah.bergbauer@tum.de
MFC after: 1 week
02/01/2019
3:36 pm
base/head
markj
in head/sys: amd64/amd64 i386/i386
Modificado:
head/sys/amd64/amd64/pmap.c
head/sys/i386/i386/pmap.c
Log:
Avoid setting PG_U unconditionally in pmap_enter_quick_locked().

This KPI may in principle be used to create kernel mappings, in which
case we certainly should not be setting PG_U. In any case, PG_U must be
set on all layers in the page tables to grant user mode access, and we
were only setting it on leaf entries. Thus, this change should have no
functional impact.

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
02/01/2019
3:01 pm
base/head
avos
head/sys/conf
Modificado:
head/sys/conf/files
Log:
Refresh sys/conf/files after recent rtwn(4) update.

MFC after: 4 days
02/01/2019
6:03 am
base/head
avos
in head/sys/dev/rtwn: rtl8188e rtl8188e/usb rtl8192c
Modificado:
head/sys/dev/rtwn/rtl8188e/r88e_rom.c
head/sys/dev/rtwn/rtl8188e/usb/r88eu_attach.c
head/sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c
head/sys/dev/rtwn/rtl8192c/r92c_rom.c
head/sys/dev/rtwn/rtl8192c/r92c_var.h
head/sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c
Log:
rtwn(4): rename set_name -> set_rom_opts method and reuse it for RTL8188E*

MFC after: 4 days
02/01/2019
5:43 am
base/head
avos
in head/sys/dev/rtwn/rtl8188e: . usb
Modificado:
head/sys/dev/rtwn/rtl8188e/r88e_priv.h
head/sys/dev/rtwn/rtl8188e/usb/r88eu_attach.c
Log:
rtwn(4): rename common RTL8188E* structures.

No functional change intended.

MFC after: 4 days
02/01/2019
5:37 am
base/head
avos
head/sys/dev/rtwn/rtl8188e
Modificado:
head/sys/dev/rtwn/rtl8188e/r88e_fw.c
Log:
rtwn(4): do not try to start RTL8188E* MCU during device shutdown.

MFC after: 4 days
02/01/2019
5:30 am
base/head
avos
in head/sys/dev/rtwn/rtl8188e: . usb
Modificado:
head/sys/dev/rtwn/rtl8188e/r88e.h
head/sys/dev/rtwn/rtl8188e/r88e_init.c
head/sys/dev/rtwn/rtl8188e/usb/r88eu.h
head/sys/dev/rtwn/rtl8188e/usb/r88eu_attach.c
head/sys/dev/rtwn/rtl8188e/usb/r88eu_init.c
Log:
Move USB-specific parts from rtwn(4) to rtwn_usb(4)

MFC after: 4 days
02/01/2019
5:21 am
base/head
avos
in head/sys: dev/rtwn/pci dev/rtwn/rtl8188e
Eliminado:
head/sys/dev/rtwn/rtl8188e/usb/r88eu_rx.c
Modificado:
head/sys/dev/rtwn/pci/rtwn_pci_rx.c
head/sys/dev/rtwn/pci/rtwn_pci_var.h
head/sys/dev/rtwn/rtl8188e/r88e.h
head/sys/dev/rtwn/rtl8188e/r88e_rx.c
head/sys/dev/rtwn/rtl8188e/usb/r88eu.h
head/sys/dev/rtwn/rtl8188e/usb/r88eu_attach.c
head/sys/dev/rtwn/rtl8192c/pci/r92ce.h
head/sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c
head/sys/dev/rtwn/rtl8192c/pci/r92ce_rx.c
head/sys/dev/rtwn/rtl8192c/r92c.h
head/sys/dev/rtwn/rtl8192c/r92c_rx.c
head/sys/dev/rtwn/rtl8192c/usb/r92cu.h
head/sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c
head/sys/dev/rtwn/rtl8192c/usb/r92cu_rx.c
head/sys/modules/rtwn_usb/Makefile
Log:
rtwn_pci(4): add support for event-based Tx reports.

It will be used for RTL8188EE (and, probably, others).

MFC after: 4 days
02/01/2019
4:56 am
base/head
avos
head/sys/dev/rtwn/pci
Modificado:
head/sys/dev/rtwn/pci/rtwn_pci_rx.c
Log:
rtwn_pci(4): use proper bus_dmamap_sync flags after Tx (sync with r342672)

MFC after: 4 days
02/01/2019
4:27 am
base/head
avos
in head/sys/dev/rtwn: rtl8188e/usb rtl8192e/usb
Modificado:
head/sys/dev/rtwn/rtl8188e/usb/r88eu_attach.c
head/sys/dev/rtwn/rtl8192e/usb/r92eu_attach.c
Log:
rtwn(4): drop obsolete comment + use 'nop' function for 92eu calibration

RTL8192EU was not tested with previously added code.

MFC after: 4 days
02/01/2019
4:19 am
base/head
avos
head/sys/dev/rtwn/rtl8188e
Modificado:
head/sys/dev/rtwn/rtl8188e/r88e_calib.c
head/sys/dev/rtwn/rtl8188e/r88e_reg.h
Log:
rtwn(4): add IQ calibration support for RTL8188E*

Tested with:
* RTL8188EE, STA mode.
* RTL8188EU, STA mode.

MFC after: 4 days
02/01/2019
4:08 am
base/head
avos
in head/sys/dev/rtwn/rtl8192c: . pci
Modificado:
head/sys/dev/rtwn/rtl8192c/pci/r92ce_calib.c
head/sys/dev/rtwn/rtl8192c/r92c_reg.h
Log:
rtwn(4): provide register definitions for RTL8188CE calibration routines.

No functional change intended.

MFC after: 4 days
01/01/2019
11:41 pm
base/head
avos
head/sys/dev/rtwn/pci
Modificado:
head/sys/dev/rtwn/pci/rtwn_pci_tx.c
Log:
rtwn_pci: fix excessive packet loss on Tx with RTL8188EE.

Use proper flags for bus_dmamap_sync() in Tx path.

Tested with: RTL8188EE, STA mode

MFC after: 4 days
01/01/2019
8:12 pm
base/head
jhibbits
head/libexec/rtld-elf/powerpc64
Modificado:
head/libexec/rtld-elf/powerpc64/reloc.c
Log:
rtld-elf: Fix powerpc64 TLS handling, matching powerpc's fix

We need to subtract the TLS_TCB_SIZE to get to the real data pointer, since
r13 points to the end of the TCB structure. Prior to this, devel/protobuf-c
port broke with recent update to devel/protobuf, which exposed this issue.

Submitted by: andreast
Reported by: Piotr Kubaj
MFC after: 1 week
01/01/2019
7:56 pm
base/head
cem
head/sys/compat/linuxkpi/common/include/linux
Modificado:
head/sys/compat/linuxkpi/common/include/linux/cdev.h
Log:
linuxkpi: Remove extraneous NULL check on M_WAITOK allocation

The check was not introduced in r342628, but the subsequent unchecked access to
refs was added then, prompting a Coverity warning about "Null pointer
dereferences (FORWARD_NULL)." The warning is bogus due to M_WAITOK, but so is
the NULL check that hints it, so just remove it.

CID: 1398588
Reported by: Coverity
01/01/2019
4:57 am
base/head
bcran
head/usr.sbin/efibootmgr
Modificado:
head/usr.sbin/efibootmgr/efibootmgr.8
Log:
Update the efibootmgr(8) man page to document changes to options.
01/01/2019
12:25 am
base/head
delphij
in head: . sys/sys
Modificado:
head/COPYRIGHT
head/sys/sys/copyright.h
Log:
Happy New Year 2019!
31/12/2018
11:30 pm
base/head
scottl
head/sys/dev/mps
Modificado:
head/sys/dev/mps/mps_user.c
Log:
Port over the SCSI sense handling fix from mpr(4) in r342528, and fix
whitespace to match.
31/12/2018
11:27 pm
base/head
scottl
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mpr_user.c
Log:
Fix whitespace from r342528
31/12/2018
10:46 pm
base/head
jhb
in head/sys/x86: x86 xen
Modificado:
head/sys/x86/x86/msi.c
head/sys/x86/xen/xen_msi.c
Log:
Correct variable name in two panic messages: num_msi_irq -> num_msi_irqs.

MFC after: 1 week
31/12/2018
10:20 pm
base/head
imp
head/sys/cam/scsi
Modificado:
head/sys/cam/scsi/scsi_da.c
Log:
Add NO_RC16 quirk for Chipfancier 16GB USB stick...

Submitted by: osef.lar@gmail.com
PR: 234503
31/12/2018
6:11 pm
base/head
kib
head/sys/i386/include
Modificado:
head/sys/i386/include/pmap.h
Log:
More references to pmap_cold().

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
31/12/2018
6:05 pm
base/head
kib
head/sys/i386/i386
Modificado:
head/sys/i386/i386/pmap.c
Log:
Update comments: paging is initialized in pmap_cold().

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
31/12/2018
4:01 pm
base/head
ian
head/sys/arm/ti
Modificado:
head/sys/arm/ti/ti_spi.c
Log:
Support the SPI mode and bus clock frequency parameters set by the devices
requesting SPI transfers.

Reported by: SAITOU Toshihide
31/12/2018
3:43 pm
base/head
pfg
in head/lib/msun: ld128 src
Modificado:
head/lib/msun/ld128/e_powl.c
head/lib/msun/src/k_rem_pio2.c
Log:
msun: Fix some old typos.

Seen in a posting from July 27 by "CM Graff" in musl-libc.
31/12/2018
12:07 pm
base/head
vmaffione
head/tests/sys/netmap
Modificado:
head/tests/sys/netmap/ctrl-api-test.c
Log:
netmap: fix warnings on unit tests

Fix some printf() format string warnings raised for ctrl-api-test.c
on some architectures.

MFC after: 1 week
Sponsored by: Sunny Valley Networks
31/12/2018
11:17 am
base/head
vmaffione
in head: etc/mtree tests/sys tests/sys/netmap
Adicional:
head/tests/sys/netmap/
head/tests/sys/netmap/Makefile (contents, props changed)
head/tests/sys/netmap/ctrl-api-test.c (contents, props changed)
Modificado:
head/etc/mtree/BSD.tests.dist
head/tests/sys/Makefile
Log:
netmap: add suite of unit tests

Import the unit tests from upstream (https://github.com/luigirizzo/netmap
ba02539859d46d33), and make them ready for use with Kyua.
There are currently 38 regression tests, which test the kernel control ABI
exposed by netmap to userspace applications:

1: test for port info get
2-5: tests for basic port registration
6-9: tests for VALE
10-11: tests for getting netmap allocator info
12-15: tests for netmap pipes
16: test on polling mode
17-18: tests on options
19-27: tests for sync-kloop subsystem
28-39: tests for null ports
31-38: tests for the legacy NIOCREGIF registers

Reviewed by: ngie
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18490
31/12/2018
10:17 am
base/head
trasz
head/share/skel
Modificado:
head/share/skel/dot.shrc
Log:
Add current working directory to the default (although commented out) sh(1)
prompt, so it looks just like the tcsh(1) one when you uncomment it.

Reviewed by: jilles
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18673
31/12/2018
7:57 am
base/head
philip
head/contrib/tzdata
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F02D142A7F4;
Mon, 31 Dec 2018 07:57:39 +0000 (UTC)
(envelope-from philip@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
server-signature RSA-PSS (4096 bits)
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id A93518EA50;
Mon, 31 Dec 2018 07:57:38 +0000 (UTC)
(envelope-from philip@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 829357A1F;
Mon, 31 Dec 2018 07:57:38 +0000 (UTC)
(envelope-from philip@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBV7vckF066178;
Mon, 31 Dec 2018 07:57:38 GMT (envelope-from philip@FreeBSD.org)
Received: (from philip@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBV7vbVw066175;
Mon, 31 Dec 2018 07:57:37 GMT (envelope-from philip@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: philip set sender to
philip@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
X-Spamd-Result: default: False [-2.95 / 15.00];
local_wl_from(0.00)[FreeBSD.org];
NEURAL_HAM_MEDIUM(-1.00)[-0.999,0];
NEURAL_HAM_LONG(-1.00)[-0.998,0];
NEURAL_HAM_SHORT(-0.96)[-0.957,0];
ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
31/12/2018
12:20 am
base/head
bcran
head/usr.sbin/bsdinstall/scripts
Modificado:
head/usr.sbin/bsdinstall/scripts/bootconfig
Log:
Fix ESP generation when using a gmirror, and when booting from RO medium

When using a gmirror, entries in /dev can be removed. So instead of using
kern.disks, get the list of disks from "gpart status -sg" instead.

We assume that any 'efi' partition that can't be mounted as msdosfs should
be used as an ESP. However, the ESP on the CD/DVD can't be mounted read-write
and so was being treated as if unformatted. Try the mount as read-only
instead, to catch cases like this.

Relnotes: yes
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18645
31/12/2018
1:09 am
base/head
ian
head/sys/dev/vt
Modificado:
head/sys/dev/vt/vt_core.c
Log:
When allocating a new keyboard at vt_upgrade() time, unwind any cngrabs
done on the old keyboard and then do the corresponding number of grabs
on the new keyboard.

This fixes a race that can leave the system with a non-functioning
keyboard. It goes like this...

- The bios claims there is an AT keyboard, atkbd attaches.
- SI_SUB_INT_CONFIG_HOOKS runs.
- USB probes devices. Devices begin attaching, including disks.
- GELI prompts for a password for a just-attached disk, which results
in a cngrab() while atkbd is the keyboard.
- A USB keyboard attaches.
- vt_upgrade() runs and switches the keyboard to the new USB keyboard,
but because cngrab was never called for it, it's not activated and
keystrokes are ignored.
- Now there is no functional keyboard and no way to get one; even
plugging in a different USB keyboard doesn't help, because the console
is still grabbed, still waiting for a GELI pw.

Discussed with: ray@
31/12/2018
12:26 am
base/head
bcran
head/usr.sbin/bsdinstall/scripts
Modificado:
head/usr.sbin/bsdinstall/scripts/bootconfig
Log:
Use the --activate efibootmgr(8) flag when creating entries in bootconfig

Sponsored by: Netflix
30/12/2018
7:44 pm
base/head
pfg
head/share/man/man5
Modificado:
head/share/man/man5/Makefile
head/share/man/man5/ext2fs.5
Log:
ext2fs.5: Update the manpage.

General update of the driver description and mention some important credits.
Add a symlink for ext4fs as it is of special interest nowadays.

Fic some `mandoc -Tlint` issues while here.

MFC after: 15 days
Differential Revision: https://reviews.freebsd.org/D18445
31/12/2018
12:15 am
base/head
bcran
head
Modificado:
head/UPDATING
Log:
Add UPDATING entry for r342635.

Sponsored by: Netflix
31/12/2018
12:09 am
base/head
bcran
head/usr.sbin/efibootmgr
Modificado:
head/usr.sbin/efibootmgr/efibootmgr.c
Log:
Change the way efibootmgr works by specifying bootnum via -b parameter

Instead of passing the bootnum to each different parameter, require users
to specify -b when running operations that need a bootnum.

This allows activation of a new boot entry at the same time it's created
by adding -a onto the command line.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18648
31/12/2018
3:08 am
base/head
delphij
head/lib/libutil
Modificado:
head/lib/libutil/quotafile.c
Log:
Ensure buffer is nul-terminated.

MFC after: 2 weeks
30/12/2018
11:08 pm
base/head
marius
in head/sys: arm/broadcom/bcm2835 arm/nvidia arm/ti
Modificado:
head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
head/sys/arm/broadcom/bcm2835/bcm2835_sdhost.c
head/sys/arm/nvidia/tegra_sdhci.c
head/sys/arm/ti/ti_sdhci.c
head/sys/dev/sdhci/fsl_sdhci.c
head/sys/dev/sdhci/sdhci.c
head/sys/dev/sdhci/sdhci.h
head/sys/dev/sdhci/sdhci_acpi.c
head/sys/dev/sdhci/sdhci_fdt.c
head/sys/dev/sdhci/sdhci_pci.c
head/sys/dev/sdhci/sdhci_xenon.c
Log:
o Don't allocate resources for SDMA in sdhci(4) if the controller or the
front-end doesn't support SDMA or the latter implements a platform-
specific transfer method instead. While at it, factor out allocation
and freeing of SDMA resources to sdhci_dma_{alloc,free}() in order to
keep the code more readable when adding support for ADMA variants.

o Base the size of the SDMA bounce buffer on MAXPHYS up to the maximum
of 512 KiB instead of using a fixed 4-KiB-buffer. With the default
MAXPHYS of 128 KiB and depending on the controller and medium, this
reduces the number of SDHCI interrupts by a factor of ~16 to ~32 on
sequential reads while an increase of throughput of up to ~84 % was
seen.

Front-ends for broken controllers that only support an SDMA buffer
boundary of a specific size may set SDHCI_QUIRK_BROKEN_SDMA_BOUNDARY
and supply a size via struct sdhci_slot. According to Linux, only
Qualcomm MSM-type SDHCI controllers are affected by this, though.

Requested by: Shreyank Amartya (unconditional bump to 512 KiB)

o Introduce a SDHCI_DEPEND macro for specifying the dependency of the
front-end modules on the sdhci(4) one and bump the module version
of sdhci(4) to 2 via an also newly introduced SDHCI_VERSION in order
to ensure that all components are in sync WRT struct sdhci_slot.

o In sdhci(4):
- Make pointers const were applicable,
- replace a few device_printf(9) calls with slot_printf() for
consistency, and
- sync some local functions with their prototypes WRT static.
30/12/2018
11:04 pm
base/head
delphij
head/share/timedef
Modificado:
head/share/timedef/zh_CN.GB2312.src
head/share/timedef/zh_CN.GBK.src
head/share/timedef/zh_CN.UTF-8.src (contents, props changed)
head/share/timedef/zh_HK.UTF-8.src
head/share/timedef/zh_TW.UTF-8.src
Log:
Fix various issues with Chinese locales:

- Change short weekday names to use only one Chinese character.
(note: this is a somewhat misunfortunate compromise due to the fact
that some applications are using short buffer for weekday names,
and in ~1905 when 星期 system was created to replace the traditional
七曜 system, which can use 日月火水木金土 to represent Sunday through
Saturday with just one character without any confusion).
- for zh_CN locales: use Arabic numerals for month names, matching the
practice of all other CJK locales
- Regenerate zh_CN.{GB2312,GBK} locales from zh_CN.UTF-8.

Reported by: ygy
Reviewed by: kevlo
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18689
30/12/2018
3:46 pm
base/head
kib
in head/sys/compat/linuxkpi/common: include/linux src
Modificado:
head/sys/compat/linuxkpi/common/include/linux/cdev.h
head/sys/compat/linuxkpi/common/src/linux_compat.c
Log:
Fix linux_destroy_dev() behaviour when there are still files open from
the destroying cdev.

Currently linux_destroy_dev() waits for the reference count on the
linux cdev to drain, and each open file hold the reference.
Practically it means that linux_destroy_dev() is blocked until all
userspace processes that have the cdev open, exit. FreeBSD devfs does
not have such problem, because device refcount only prevents freeing
of the cdev memory, and separate 'active methods' counter blocks
destroy_dev() until all threads leave the cdevsw methods. After that,
attempts to enter cdevsw methods are refused with an error.

Implement somewhat similar mechanism for LinuxKPI cdevs. Demote cdev
refcount to only mean a hold on the linux cdev memory. Add sirefs
count to track both number of threads inside the cdev methods, and for
single-bit indicator that cdev is being destroyed. In the later case,
the call is redirected to the dummy cdev.

Reviewed by: markj
Discussed with: hselasky
Tested by: zeising
MFC after: 1 week
Sponsored by: Mellanox Technologies
Differential revision: https://reviews.freebsd.org/D18606
30/12/2018
3:34 pm
base/head
tsoome
head/stand/i386/libi386
Modificado:
head/stand/i386/libi386/bio.c
Log:
Add Copyright.

Reported by: Rodney W. Grimes
30/12/2018
3:58 pm
base/head
kib
head/sys/vm
Modificado:
head/sys/vm/vm_page.c
Log:
Add 'v' modifier to the ddb 'show pginfo' command to display vm_page
backing the provided kernel virtual address.

Tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
30/12/2018
3:38 pm
base/head
kib
in head/sys/compat/linuxkpi/common: include/linux src
Modificado:
head/sys/compat/linuxkpi/common/include/linux/mm.h
head/sys/compat/linuxkpi/common/src/linux_compat.c
Log:
Implement zap_vma_ptes() for managed device objects.

Reviewed by: markj
Discussed with: hselasky
Tested by: zeising
MFC after: 1 week
Sponsored by: Mellanox Technologies
Differential revision: https://reviews.freebsd.org/D18606
30/12/2018
3:28 pm
base/head
kib
head/sys/compat/linuxkpi/common/src
Modificado:
head/sys/compat/linuxkpi/common/src/linux_compat.c
Log:
Use IDX_TO_OFF().

Reviewed by: markj
Discussed with: hselasky
Tested by: zeising
MFC after: 1 week
Sponsored by: Mellanox Technologies
Differential revision: https://reviews.freebsd.org/D18606
30/12/2018
6:03 am
base/head
mckusick
head/sys/ufs/ufs
Modificado:
head/sys/ufs/ufs/ufs_vnops.c
Log:
Move ASSERT_VOP_LOCKED to top of ufs_vinit() as it should be true
when the function is entered.

Suggested by: kib
30/12/2018
8:22 am
base/head
philip
head/contrib/tzdata
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BFAF141BD0E;
Sun, 30 Dec 2018 08:22:37 +0000 (UTC)
(envelope-from philip@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
[IPv6:2610:1c1:1:606c::19:3])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
server-signature RSA-PSS (4096 bits)
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mxrelay.nyi.freebsd.org",
Issuer "Let's Encrypt Authority X3" (verified OK))
by mx1.freebsd.org (Postfix) with ESMTPS id 4B21D7429C;
Sun, 30 Dec 2018 08:22:37 +0000 (UTC)
(envelope-from philip@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 3D4CE204B2;
Sun, 30 Dec 2018 08:22:37 +0000 (UTC)
(envelope-from philip@FreeBSD.org)
Received: from repo.freebsd.org ([127.0.1.37])
by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBU8MbHB015708;
Sun, 30 Dec 2018 08:22:37 GMT (envelope-from philip@FreeBSD.org)
Received: (from philip@localhost)
by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBU8Magn015702;
Sun, 30 Dec 2018 08:22:36 GMT (envelope-from philip@FreeBSD.org)
X-Authentication-Warning: repo.freebsd.org: philip set sender to
philip@FreeBSD.org using -f
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
svn-src-head@freebsd.org
X-Spamd-Result: default: False [-2.93 / 15.00];
local_wl_from(0.00)[FreeBSD.org];
NEURAL_HAM_MEDIUM(-1.00)[-0.999,0];
NEURAL_HAM_SHORT(-0.93)[-0.935,0];
ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US];
NEURAL_HAM_LONG(-1.00)[-0.998,0]
List-Id: SVN commit messages for the src tree for head/-current

List-Unsubscribe: ,

List-Subscribe: ,

X-Original-To: svn-src-head@da3m0n8t3r.com
30/12/2018
4:39 pm
base/head
kib
head/sys/compat/linuxkpi/common/src
Modificado:
head/sys/compat/linuxkpi/common/src/linux_compat.c
Log:
Fix 32bit gcc builds after r342625.

MFC after: 1 week
Sponsored by: Mellanox Technologies
30/12/2018
3:55 pm
base/head
kib
head/sys/sys
Modificado:
head/sys/sys/param.h
Log:
Bump __FreeBSD_version since r342628 changed size of struct linux_cdev
on tier-1 i386 architecture.

Requested by: hselasky
MFC after: 1 week
Sponsored by: Mellanox Technologies
30/12/2018
8:30 am
base/head
delphij
head/share/timedef
Directory Properties:
head/share/timedef/zh_CN.UTF-8.src (props changed)
Log:
Properly set svn:mimetype for zh_CN.UTF-8.src.

MFC after: 2 weeks
30/12/2018
4:25 am
base/head
cy
head/contrib/ipfilter
Modificado:
head/contrib/ipfilter/ipf.h
Log:
TCP_PAWS_IDLE is does not exist in NetBSD and illumos. In FreeBSD
TCP_PAWS_IDLE is defined in netinet/tcp_seq.h, however this header
isn't included explicitly or implicitly at this point therefore
as far ipfilter is concerned TCP_PAWS_IDLE is not defined. Remove
the #ifdef and include netinet/tcp.h unconditionally.

MFC after: 1 week
30/12/2018
3:03 am
base/head
avos
head/sys/net80211
Modificado:
head/sys/net80211/ieee80211_output.c
Log:
net80211: fix duplicate sequence number bump for non-AMPDU QoS frames.

This should be a part of r312972.

MFC after: 4 days
30/12/2018
9:35 am
base/head
tsoome
head/stand/i386/libi386
Adicional:
head/stand/i386/libi386/bio.c (contents, props changed)
Modificado:
head/stand/i386/libi386/Makefile
head/stand/i386/libi386/biosdisk.c
head/stand/i386/libi386/libi386.h
head/stand/i386/libi386/pxe.c
Log:
loader: create bio_alloc and bio_free for bios bounce buffer

We do have 16KB buffer space defined in pxe.c, move it to bio.c and implement
bio_alloc()/bio_free() interface to make it possible to use this space for
other BIOS calls (notably, from biosdisk.c).

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D17131
30/12/2018
5:03 am
base/head
mckusick
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_vnops.c
Log:
For consistency with FFS2's fifoops2 and both versions of FFS's
vnodeops make FFS1's fifoops1 use ffs_lock. Also delete ffs_reallocblks
from fifoops1 which is needed only for fifoops2 because of its
support for extended attributes that need to allocate blocks.

Suggested by: kib
30/12/2018
1:57 am
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_main.c
Log:
cxgbe(4): Attach to two T540 variants.

MFC after: 1 week
30/12/2018
12:27 am
base/head
0mp
head/share/man/man7
Modificado:
head/share/man/man7/ports.7
Log:
ports.7: Add an example of getting dependencies without building them

While here, improve formatting of the EXAMPLES section in general.

Reviewed by: bcr
Approved by: bcr (doc)
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18682
29/12/2018
11:08 pm
base/head
crees
head/bin/pax
Modificado:
head/bin/pax/pax.1
Log:
Add a note that the use of -B option does not guarantee a size of fragment
if -z option also used.

Recommend the use of zip(1) if compressed files of predictable size needed.

PR: docs/41089
Submitted by: Sevan Janiyan
Reported by: areilly@bigpond.net.au

While here, pet igor

Reviewed by: bcr
Differential Revision: https://reviews.freebsd.org/D18686
29/12/2018
11:00 pm
base/head
0mp
head/share/man/man5
Modificado:
head/share/man/man5/style.mdoc.5
Log:
style.mdoc.5: Suggest preferred formatting for EXAMPLES

Add an example of how to format examples in EXAMPLES sections. The
suggested format is heavily based on zfs.8.

While here, capitalize subsection titles.

Reviewed by: bcr
Approved by: bcr (doc),
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18681
29/12/2018
9:36 pm
base/head
kp
head/sys/kern
Modificado:
head/sys/kern/kern_sig.c
Log:
Simplify jail ID printing on process exit

As suggested by kib@, we don't need to check p_ucred, because that's only NULL
during process creation, and cr_prison is never NULL.
29/12/2018
9:18 pm
base/head
cem
in head: lib/libzstd sys/conf sys/contrib/zstd
Adicional:
head/sys/contrib/zstd/lib/decompress/zstd_ddict.c
- copied unchanged from r342590, vendor/zstd/dist/lib/decompress/zstd_ddict.c
head/sys/contrib/zstd/lib/decompress/zstd_ddict.h
- copied unchanged from r342590, vendor/zstd/dist/lib/decompress/zstd_ddict.h
head/sys/contrib/zstd/lib/decompress/zstd_decompress_block.c
- copied unchanged from r342590, vendor/zstd/dist/lib/decompress/zstd_decompress_block.c
head/sys/contrib/zstd/lib/decompress/zstd_decompress_block.h
- copied unchanged from r342590, vendor/zstd/dist/lib/decompress/zstd_decompress_block.h
head/sys/contrib/zstd/lib/decompress/zstd_decompress_internal.h
- copied unchanged from r342590, vendor/zstd/dist/lib/decompress/zstd_decompress_internal.h
head/sys/contrib/zstd/lib/freebsd/limits.h
- copied, changed from r342590, head/sys/contrib/zstd/lib/freebsd/stddef.h
head/sys/contrib/zstd/programs/benchfn.c
- copied unchanged from r342590, vendor/zstd/dist/programs/benchfn.c
head/sys/contrib/zstd/programs/benchfn.h
- copied unchanged from r342590, vendor/zstd/dist/programs/benchfn.h
head/sys/contrib/zstd/programs/benchzstd.c
- copied unchanged from r342590, vendor/zstd/dist/programs/benchzstd.c
head/sys/contrib/zstd/programs/benchzstd.h
- copied unchanged from r342590, vendor/zstd/dist/programs/benchzstd.h
head/sys/contrib/zstd/programs/util.c
- copied unchanged from r342590, vendor/zstd/dist/programs/util.c
head/sys/contrib/zstd/tests/regression/
- copied from r342590, vendor/zstd/dist/tests/regression/
Eliminado:
head/sys/contrib/zstd/NEWS
head/sys/contrib/zstd/contrib/meson/
head/sys/contrib/zstd/programs/bench.c
head/sys/contrib/zstd/programs/bench.h
Modificado:
head/lib/libzstd/Makefile
head/sys/conf/files
head/sys/contrib/zstd/Makefile
head/sys/contrib/zstd/README.md
head/sys/contrib/zstd/appveyor.yml
head/sys/contrib/zstd/contrib/pzstd/Makefile
head/sys/contrib/zstd/contrib/seekable_format/examples/parallel_processing.c
head/sys/contrib/zstd/contrib/seekable_format/zstdseek_compress.c
head/sys/contrib/zstd/contrib/seekable_format/zstdseek_decompress.c
head/sys/contrib/zstd/doc/zstd_compression_format.md
head/sys/contrib/zstd/doc/zstd_manual.html
head/sys/contrib/zstd/lib/BUCK
head/sys/contrib/zstd/lib/Makefile
head/sys/contrib/zstd/lib/README.md
head/sys/contrib/zstd/lib/common/bitstream.h
head/sys/contrib/zstd/lib/common/compiler.h
head/sys/contrib/zstd/lib/common/cpu.h
head/sys/contrib/zstd/lib/common/debug.h
head/sys/contrib/zstd/lib/common/error_private.c
head/sys/contrib/zstd/lib/common/fse.h
head/sys/contrib/zstd/lib/common/huf.h
head/sys/contrib/zstd/lib/common/pool.c
head/sys/contrib/zstd/lib/common/zstd_common.c
head/sys/contrib/zstd/lib/common/zstd_errors.h
head/sys/contrib/zstd/lib/common/zstd_internal.h
head/sys/contrib/zstd/lib/compress/fse_compress.c
head/sys/contrib/zstd/lib/compress/hist.c
head/sys/contrib/zstd/lib/compress/hist.h
head/sys/contrib/zstd/lib/compress/huf_compress.c
head/sys/contrib/zstd/lib/compress/zstd_compress.c
head/sys/contrib/zstd/lib/compress/zstd_compress_internal.h
head/sys/contrib/zstd/lib/compress/zstd_double_fast.c
head/sys/contrib/zstd/lib/compress/zstd_fast.c
head/sys/contrib/zstd/lib/compress/zstd_lazy.c
head/sys/contrib/zstd/lib/compress/zstd_ldm.c
head/sys/contrib/zstd/lib/compress/zstd_ldm.h
head/sys/contrib/zstd/lib/compress/zstd_opt.c
head/sys/contrib/zstd/lib/compress/zstd_opt.h
head/sys/contrib/zstd/lib/compress/zstdmt_compress.c
head/sys/contrib/zstd/lib/compress/zstdmt_compress.h
head/sys/contrib/zstd/lib/decompress/huf_decompress.c
head/sys/contrib/zstd/lib/decompress/zstd_decompress.c
head/sys/contrib/zstd/lib/dictBuilder/cover.c
head/sys/contrib/zstd/lib/dictBuilder/fastcover.c
head/sys/contrib/zstd/lib/dictBuilder/zdict.c
head/sys/contrib/zstd/lib/legacy/zstd_v04.c
head/sys/contrib/zstd/lib/legacy/zstd_v05.c
head/sys/contrib/zstd/lib/zstd.h
head/sys/contrib/zstd/programs/Makefile
head/sys/contrib/zstd/programs/README.md
head/sys/contrib/zstd/programs/datagen.c
head/sys/contrib/zstd/programs/dibio.c
head/sys/contrib/zstd/programs/fileio.c
head/sys/contrib/zstd/programs/fileio.h
head/sys/contrib/zstd/programs/platform.h
head/sys/contrib/zstd/programs/util.h
head/sys/contrib/zstd/programs/zstd.1
head/sys/contrib/zstd/programs/zstd.1.md
head/sys/contrib/zstd/programs/zstdcli.c
head/sys/contrib/zstd/programs/zstdgrep
head/sys/contrib/zstd/programs/zstdgrep.1
head/sys/contrib/zstd/programs/zstdless.1
head/sys/contrib/zstd/tests/Makefile
head/sys/contrib/zstd/tests/README.md
head/sys/contrib/zstd/tests/datagencli.c
head/sys/contrib/zstd/tests/decodecorpus.c
head/sys/contrib/zstd/tests/fullbench.c
head/sys/contrib/zstd/tests/fuzz/Makefile
head/sys/contrib/zstd/tests/fuzz/simple_round_trip.c
head/sys/contrib/zstd/tests/fuzz/stream_round_trip.c
head/sys/contrib/zstd/tests/fuzz/zstd_helpers.c
head/sys/contrib/zstd/tests/fuzzer.c
head/sys/contrib/zstd/tests/libzstd_partial_builds.sh
head/sys/contrib/zstd/tests/longmatch.c
head/sys/contrib/zstd/tests/paramgrill.c
head/sys/contrib/zstd/tests/playTests.sh
head/sys/contrib/zstd/tests/poolTests.c
head/sys/contrib/zstd/tests/roundTripCrash.c
head/sys/contrib/zstd/tests/seqgen.c
head/sys/contrib/zstd/tests/symbols.c
head/sys/contrib/zstd/tests/zstreamtest.c
head/sys/contrib/zstd/zlibWrapper/Makefile
head/sys/contrib/zstd/zlibWrapper/examples/zwrapbench.c
head/sys/contrib/zstd/zlibWrapper/zstd_zlibwrapper.c
head/sys/kern/subr_compressor.c
head/usr.bin/zstd/Makefile
Directory Properties:
head/sys/contrib/zstd/ (props changed)
Log:
Update to Zstandard 1.3.8

This merge brings in a couple new files, which needed to be attached to the
build; a new dependency on , which must be stubbed; and a name
change in the Context parameter constants, from ZSTD_p_foo to ZSTD_c_foo.

Significantly, it fixes a kernel build error with GCC where floating-point
functions were included in the kernel build, by hiding them under the same
compile-time #ifdef that already covered their invocation. That issue was
introduced to FreeBSD in the 1.3.7 update and tracked upstream here:

https://github.com/facebook/zstd/issues/1386

The full 1.3.8 release notes can be found on Github:

https://github.com/facebook/zstd/releases/tag/v1.3.8

Relnotes: yes
29/12/2018
8:02 pm
base/head
ngie
head/share/man/man8
Modificado:
head/share/man/man8/rc.8
Log:
Remove legacy rc.d infrastructure references from rc(8)

Legacy rc.d scripts (.sh extension) have not been supported since
r193118. Remove the outdated references to the legacy format, as they
are no longer valid.

Bug: 193936
MFC after: 1 week
Reviewed by: cress, emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D18666
29/12/2018
6:11 pm
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Remove duplicate include of sys/mbuf.h.

Reported by: Trond Endrest
MFC after: 3 days
29/12/2018
3:55 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/kern_mib.c
Log:
For hw.{physmem,realmem,usermem} MIBs, clamp instead truncating.

If the memory size does not fit into u_long, current code truncates
the returned value and returns complete nonsense. Make the result
slightly more useful by clamping it at ULONG_MAX.

Reported and tested : pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
29/12/2018
3:49 pm
base/head
kib
head/sys/i386/i386
Modificado:
head/sys/i386/i386/pmap.c
Log:
i386: Fix allocation of the KVA frame for pmap_quick_enter_page().

Due to the typo, it shared the frame with the CMAP1 transient mapping.

In collaboration with: pho
MFC after: 3 days
Sponsored by: The FreeBSD Foundation (kib)
29/12/2018
3:21 pm
base/head
dim
head/contrib/llvm/lib/CodeGen/SelectionDAG
Modificado:
head/contrib/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Log:
Pull in r342863 from upstream llvm trunk (by Hans Wennborg):

Remove debug printf leftover from r342397

PR: 234480
MFC after: 6 weeks
X-MFC-With: r341825
29/12/2018
3:13 pm
base/head
dim
head/contrib/llvm/lib/CodeGen/SelectionDAG
Modificado:
head/contrib/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Log:
Pull in r342397 from upstream llvm trunk (by Amara Emerson):

Revert "Revert r342183 "[DAGCombine] Fix crash when store merging
created an extract_subvector with invalid index.""

Fixed the assertion failure.

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

This fixes 'Assertion failed: ((VT.getVectorNumElements() +
N2C->getZExtValue() <= N1.getValueType().getVectorNumElements()) &&
"Extract subvector overflow!"), function getNode' when building the
multimedia/aom port (with AVX2 enabled).

Reported by: jbeich
PR: 234480
MFC after: 6 weeks
X-MFC-With: r341825
29/12/2018
2:48 pm
base/head
kp
head/sys/kern
Modificado:
head/sys/kern/kern_sig.c
Log:
Make kernel print jail ID when logging a process exit

Kernel now includes jail ID when logging a process exit. jid is 0 for unjailed
processes.

Submitted by: Marie Helene Kvello-Aune
Relnotes: yes
Sponsored by: Modirum MDPay
Differential Revision: https://reviews.freebsd.org/D18618
28/12/2018
10:47 pm
base/head
emaste
head/usr.bin/ar
Modificado:
head/usr.bin/ar/write.c
Log:
ar: detect and error out on 32-bit symbol table overflow

BSD ar currently does not support the /SYM64/ 64-bit symbol table, and
previously truncated to 32-bits, silently producing corrupted archives
larger than 4GB.

This is another overflow case in addtion to r342575.

PR: 234454
Reported by: Aijaz Baig, imp
MFC after: 2 weeks
MFC with: r342575
Sponsored by: The FreeBSD Foundation
28/12/2018
9:26 pm
base/head
bcran
head/usr.sbin/efibootmgr
Modificado:
head/usr.sbin/efibootmgr/efibootmgr.8
Log:
Improve the efibootmgr(8) man page

Fix formatting, typos, and attempt to improve the wording.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18646
28/12/2018
7:49 pm
base/head
0mp
head/share/man/man5
Adicional:
head/share/man/man5/style.mdoc.5 (contents, props changed)
Modificado:
head/share/man/man5/Makefile
Log:
Add a style.mdoc(5) manual page.

The aim of this manual page is to act as a style and formatting guide for
mdoc(7) manual pages. Currently, mdoc(7) does not provide much guidance
when it comes to the usage of macros making it difficult to format manual
pages in a consistent way.

Reviewed by: bcr
Approved by: bcr (doc), krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18394
28/12/2018
5:51 pm
base/head
trasz
head/bin/sh
Modificado:
head/bin/sh/parser.c
Log:
Make sh(1) collapse $HOME into "~" in PS1.

Reviewed by: jilles
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18663
28/12/2018
5:50 pm
base/head
trasz
head/share/skel
Modificado:
head/share/skel/dot.shrc
Log:
Simplify the way we set the default sh(1) PS1. No functional changes.

Reviewed by: jilles
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18662
28/12/2018
5:00 pm
base/head
emaste
head/usr.bin/ar
Modificado:
head/usr.bin/ar/write.c
Log:
ar: detect and error out on 32-bit symbol table overflow

BSD ar currently does not support the /SYM64/ 64-bit symbol table, and
previously truncated to 32-bits, silently producing corrupted archives
larger than 4GB.

Note that this is only a partial fix; additional checks will come.

PR: 234454
Reported by: Aijaz Baig, imp
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
28/12/2018
4:08 pm
base/head
kib
head/lib/libc/string
Modificado:
head/lib/libc/string/strerror.c
Log:
Fix WITHOUT_NLS build after r342551.

Reported by: gj
MFC after: 13 days
Sponsored by: The FreeBSD Foundation
28/12/2018
3:11 pm
base/head
crees
head/usr.sbin/autofs
Modificado:
head/usr.sbin/autofs/auto_master.5
head/usr.sbin/autofs/defined.c
Log:
There is no way of escaping literal $ signs in auto_master(5), which
makes for difficulty with hidden Samba shares; shares with $ at the end
of their name. This enables the use of ${DOLLAR} to work around this.

Reviewed by: bcr (man page)
Approved by: trasz
Differential Revision: https://reviews.freebsd.org/D7048
28/12/2018
1:32 pm
base/head
jilles
head/sys/kern
Modificado:
head/sys/kern/kern_proc.c
Log:
pfind, pfind_any: Correct zombie logic

SVN r340744 erroneously changed pfind() to return any process including
zombies and pfind_any() to return only non-zombie processes.

In particular, this caused kill() on a zombie process to fail with [ESRCH].
There is no direct test case for this but /usr/tests/bin/sh/builtins/kill1.0
occasionally triggers it (as reported by lwhsu).

Conversely, returning zombies from pfind() seems likely to violate
invariants and cause panics, but I have not looked at this.

PR: 233646
Reviewed by: mjg, kib, ngie
Differential Revision: https://reviews.freebsd.org/D18665
28/12/2018
1:34 am
base/head
jhibbits
head/lib/msun/src
Modificado:
head/lib/msun/src/s_cbrt.c
head/lib/msun/src/s_cproj.c
head/lib/msun/src/s_erf.c
Log:
libm: Include float.h to get LDBL_MANT_DIG

The long double aliases of double functions are only exposed as aliases if
LDBL_MANT_DIG is 53 (same as DBL_MANT_DIG). Without float.h included these
files were not exposing weak aliases as expected, leading to link failures
if programs use the *l functions. This should fix editors/calligra on
targets with 64-bit long double, which uses erfl and erfcl. Found on
powerpc64.

Reviewed by: kargl@
27/12/2018
11:27 pm
base/head
will
head/tools/build
Modificado:
head/tools/build/beinstall.sh
Log:
beinstall: try to save progress from pkg updates.

This is primarily aimed at failed updates due to package conflicts, and
affects treatment of failed updates. Whereas before potentially a large
number of packages would need to be synced for each attempt, they can now
be persisted. Requires rsync. There may be better ways to implement this,
e.g. using secondary cache path that is only used on followup attempts and
then wiped on success, which avoids polluting current cache.
27/12/2018
10:44 pm
base/head
mav
head/sys/dev/nvd
Modificado:
head/sys/dev/nvd/nvd.c
Log:
Fix incorrectly inserted copyright in r342557.

Reported by: rgrimes
MFC after: 1 month
27/12/2018
7:15 pm
base/head
mav
head/sys/geom
Modificado:
head/sys/geom/geom_dev.c
Log:
Switch from mutexes to atomics in GEOM_DEV I/O path.

Mutexes in I/O path there were used twice per I/O to atomically access
several variables to close and/or destroy the device on last request
completion. I found the way to fit all required info into one integer,
suitable for atomic operations. It opened race window on device close,
but addition of timeout to the msleep() there should cover it.

Profiling shows removal of significant spinning time on those mutexes
and IOPS increase from ~600K to >800K to NVMe on 72-core systems.

MFC after: 1 month
Sponsored by: iXsystems, Inc.
27/12/2018
6:28 pm
base/head
mav
head/sys/dev/nvd
Modificado:
head/sys/dev/nvd/nvd.c
Log:
Reimplement nvd(4) detach handling.

Previous code typically crashed in case of NVMe device unplug or even clean
detach while some I/Os are still in flight. To fix this the new code calls
disk_gone() and waits for confirmation of all references gone before calling
disk_destroy(), freeing other resources and allowing controller detach.

While there, fix disk lists locking and reimplement unit numbers assignment.

MFC after: 1 month
Sponsored by: iXsystems, Inc.
27/12/2018
4:50 pm
base/head
emaste
head/share/man/man9
Modificado:
head/share/man/man9/vnet.9
Log:
vnet.9: clarify VNET sponsorship

The FreeBSD Foundation and NLnet Foundation sponsored the original work,
and the Foundation sponsored followon work and integration efforts by
bz@.

Sponsored by: The FreeBSD Foundation
27/12/2018
2:44 pm
base/head
0mp
head/usr.bin/iscsictl
Modificado:
head/usr.bin/iscsictl/iscsictl.8
Log:
iscsictl.8: Add missing flag parameters

- Add missing parameters to flags in the description of available options.
- Remove spaces between alternative parameters and "|".
- Align descriptions of options to the longest option.
- Use em dash instead of a hyphen.

Reviewed by: bcr
Approved by: doc (bcr)
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18608
27/12/2018
2:14 pm
base/head
andrew
head/sys/arm64/arm64
Modificado:
head/sys/arm64/arm64/trap.c
Log:
Pass VM_PROT_EXECUTE to vm_fault for instruction faults.

We need to tell vm_fault the reason for the fault was because we tried to
execute from the memory location. Without this it may return with success
as we only request read-only memory, then we return to the same location
and try to execute from the same memory address. This leads to an infinite
loop raising the same fault and returning to the same invalid location.

MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18511
27/12/2018
1:02 pm
base/head
kib
in head/lib/libc: gen include string
Modificado:
head/lib/libc/gen/errlst.c
head/lib/libc/include/errlst.h
head/lib/libc/string/strerror.c
Log:
Bump sys_errlist size to keep ABI backward-compatible for some time.

Addition of the new errno values requires adding new elements to
sys_errlist array, which is actually ABI-incompatible, since ELF
records the object size. Expand array in advance to 150 elements so
that we have our users to go over the issue only once, at least until
more than 53 new errors are added.

I did not bumped the symbol version, same as it was not done for
previous increases of the array size. Runtime linker only copies as
much data into binary object on copy relocation as the binary'object
specifies. This is not fixable for binaries which access sys_errlist
directly.

While there, correct comment and calculation of the temporary buffer
size for the message printed for unknown error. The on-stack buffer
is used only for the number and delimiter since r108603.

Requested by: mckusick
Reviewed by: mckusick, yuripv
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D18656
27/12/2018
8:48 am
base/head
danfe
head/usr.sbin/acpi/acpiconf
Modificado:
head/usr.sbin/acpi/acpiconf/acpiconf.8
Log:
Amend the `-i batt' option description and explain that the battery
is specified by its number (index), starting with zero. Previously,
sometimes users would try to literally invoke `acpiconf -i batt' in
their console and become confused as to why this did not work.

Approved by: bcr (manpages)
Differential Revision: https://reviews.freebsd.org/D18659
27/12/2018
8:29 am
base/head
hselasky
in head/sys/dev/usb: . quirk
Modificado:
head/sys/dev/usb/quirk/usb_quirk.c
head/sys/dev/usb/usbdevs
Log:
Add USB quirk for SPL Crimson Rev 1.

PR: 234380
MFC after: 1 week
Sponsored by: Mellanox Technologies
27/12/2018
7:18 am
base/head
mckusick
in head/sys: fs/ext2fs kern ufs/ffs ufs/ufs
Modificado:
head/sys/fs/ext2fs/ext2_vnops.c
head/sys/kern/vfs_subr.c
head/sys/ufs/ffs/ffs_snapshot.c
head/sys/ufs/ufs/ufs_vnops.c
Log:
When loading an inode from disk, verify that its mode is valid.
If invalid, return EINVAL. Note that inode check-hashes greatly
reduce the chance that these errors will go undetected.

Reported by: Christopher Krah
Reported as: FS-5-UFS-2: Denial Of Service in nmount-3 (ffs_read)
Reviewed by: kib
MFC after: 1 week
Sponsored by: Netflix

M sys/fs/ext2fs/ext2_vnops.c
M sys/kern/vfs_subr.c
M sys/ufs/ffs/ffs_snapshot.c
M sys/ufs/ufs/ufs_vnops.c
27/12/2018
4:53 am
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/fil.c
Log:
Remove another empty #ifdef block. This empty block also exists in
the upstream HEAD.

MFC after: 3 days
26/12/2018
11:41 pm
base/head
mav
head/sys/dev/nvme
Modificado:
head/sys/dev/nvme/nvme_qpair.c
Log:
Add descriptions to NVMe interrupts.

MFC after: 1 month
26/12/2018
11:03 am
base/head
avg
in head: cddl/contrib/opensolaris/cmd/zpool
Modificado:
head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c
head/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h
Directory Properties:
head/cddl/contrib/opensolaris/ (props changed)
head/sys/cddl/contrib/opensolaris/ (props changed)
Log:
MFV r342532: 5882 Temporary pool names

Note that this commit brings only formatting changes that were done
during the final review of the illumos change, because FreeBSD got the
main changes before illumos.

illumos/illumos-gate@04e56356520b98d5a93c496b10f02530bb6647e0
https://github.com/illumos/illumos-gate/commit/04e56356520b98d5a93c496b10f02530bb6647e0

https://www.illumos.org/issues/5882
This is an import of the temporary pool names functionality from ZoL:
https://github.com/zfsonlinux/zfs/commit/e2282ef57edc79cdce2a4b9b7e3333c56494a807
https://github.com/zfsonlinux/zfs/commit/26b42f3f9d03f85cc7966dc2fe4dfe9216601b0e
https://github.com/zfsonlinux/zfs/commit/2f3ec9006146844af6763d1fa4e823fd9047fd54
https://github.com/zfsonlinux/zfs/commit/00d2a8c92f614f49d23dea5d73f7ea7eb489ccf1
https://github.com/zfsonlinux/zfs/commit/83e9986f6eefdf0afc387f06407087bba3ead4e9
https://github.com/zfsonlinux/zfs/commit/023bbe6f017380f4a04c5060feb24dd8cdda9fce
It is intended to assist the creation and management of virtual machines
that have their rootfs on ZFS on hosts that also have their rootfs on
ZFS. These situations cause SPA namespace collisions when the standard
name rpool is used in both cases. The solution is either to give each
guest pool a name unique to the host, which is not always desireable, or
boot a VM environment containing an ISO image to install it, which is
cumbersome.

MFC after: 1 week
Sponsored by: Panzura
26/12/2018
10:48 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.h
Log:
Driver version upgrade.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:47 am
base/head
kadesai
head/sys/dev/mrsas
Modificado:
head/sys/dev/mrsas/mrsas.c
Log:
Problem statement:
Due to hardware errata in Aero controllers, reads to certain
fusion registers could intermittently return all zeroes.
This behavior is transient in nature and subsequent reads will return
valid value.

Fix:
For Aero controllers, any read will retry the read operations
from certain registers for maximum three times, if read returns zero.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:47 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 32 bit atomic request descriptor for Aero adapters.

For Aero adapters-
1. Driver will use 32 bit atomic descriptor to fire IOs and DCMDs.
2. Driver will use 64 bit request descriptor to fire IOC INIT.
3. If Aero firmware supports 32 bit atomic descriptor, then only driver will use it
otherwise driver will use 64 bit request descriptor.

For rest of adapters(Ventura, Invader and Thunderbolt), driver will use 64 bit request
descriptors only.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:46 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 latest generation MegaRAID adapters- Aero(39xx).
Driver will throw a warning message when a Configurable secure type controller is
encountered.

Submitted by: Sumit Saxena
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:44 am
base/head
kadesai
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mprvar.h
Log:
Update mpr driver version to v23.00.00.00-fbsd

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:42 am
base/head
kadesai
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mprvar.h
Log:
On Aero/Sea A0 cards retry MPT Fusion registers reads for max three times

Due to HW Errta on Aero/Sea A0 chipset on secure boot mode & on heavy IO load,
sometimes read operation on MPT Fusion registers will give zero value,
So, as a workaround driver will retry the MPT Fusion register
read operation for max three times upon reading zero value form these
registers.

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:43 am
base/head
kadesai
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mpr.c
head/sys/dev/mpr/mpr_config.c
head/sys/dev/mpr/mpr_ioctl.h
head/sys/dev/mpr/mpr_mapping.c
head/sys/dev/mpr/mpr_mapping.h
head/sys/dev/mpr/mpr_sas.c
head/sys/dev/mpr/mpr_sas.h
head/sys/dev/mpr/mpr_sas_lsi.c
head/sys/dev/mpr/mpr_user.c
head/sys/dev/mpr/mprvar.h
Log:
Update copyright information

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:41 am
base/head
kadesai
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mpr.c
Log:
Enable atomic type descriptor support only for Sea & Aero cards

Enable atomic type descriptor support only for Sea & Aero cards,
due to HW errata this atomic descriptor support has to be disabled
on Ventura cards.

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:41 am
base/head
kadesai
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mpr_pci.c
head/sys/dev/mpr/mprvar.h
Log:
Add Sea,Aero adapter support

Added deviceID's for Sea,Aero to mpr Driver
Aero:
0x00E0 Invalid
0x00E1 Configurable Secure
0x00E2 Hard Secure
0x00E3 Tampered
Sea:
0x00E4 Invalid
0x00E5 Configurable Secure
0x00E6 Hard Secure
0x00E7 Tampered

For Tampered & Invalid type cards, driver will claim the device & quit the probe function with below error message,
"HBA is in Non Secure mode"

for Configurable Secure type cards, driver will display below message in .probe() callback function,
"HBA is in Configurable Secure mode"

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:40 am
base/head
kadesai
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mpr_config.c
head/sys/dev/mpr/mpr_sas.c
head/sys/dev/mpr/mpr_sas.h
head/sys/dev/mpr/mpr_sas_lsi.c
head/sys/dev/mpr/mprvar.h
Log:
Added support for NVMe Task Management

Following list of changes done in the driver as a part of TM handling on the NVMe drives.
Below changes are only applicable on NVMe drives and only when custom NVMe TM handling bit is set to zero by IOC.

1. Issue LUN reset & Target reset TMs with Target reset method field set to Protocol Level reset (0x3),
2. For LUN & target reset TMs use the timeout value as ControllerResetTO value provided by firmware using PCie Device Page 0,
3. If LUN reset fails to terminates the IO then directly escalate to host reset instead of going for target reset TM,
4. For Abort TM use the timeout value as NVMeAbortTO value given by the IOC using Manufacturing Page 11,
5. Log message "PCie Host Reset failed" message up on receiving P

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:39 am
base/head
kadesai
head/sys/dev/mpr
Modificado:
head/sys/dev/mpr/mpr_user.c
Log:
Copy back the Sense data at proper location expected by the application

typedef struct mps_pass_thru
{
uint64_t PtrRequest;
uint64_t PtrReply;
uint64_t PtrData;
uint32_t RequestSize;
uint32_t ReplySize;
uint32_t DataSize;
uint32_t DataDirection;
uint64_t PtrDataOut;
uint32_t DataOutSize;
uint32_t Timeout;
} mps_pass_thru_t, * ptrmpssas_pass_thru_t;

In the above mps_pass_thru structure; Application expects PrtReply buffer
should contain both MPI reply followed by sense data. So, updated driver
to copy sense data at PtrReply + sizeof(MPI2 reply) location where
application wants the driver to copy back the sense data info.

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
26/12/2018
10:37 am
base/head
avg
in head: cddl/contrib/opensolaris/lib/libzfs/common
Modificado:
head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
head/cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.c
head/cddl/contrib/opensolaris/lib/libzfs_core/common/libzfs_core.h
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
Directory Properties:
head/cddl/contrib/opensolaris/ (props changed)
head/cddl/contrib/opensolaris/lib/libzfs/ (props changed)
head/sys/cddl/contrib/opensolaris/ (props changed)
Log:
MFV r342469: 9630 add lzc_rename and lzc_destroy to libzfs_core

illumos/illumos-gate@049ba636fa37a2892809192fc671bff9158a01cd
https://github.com/illumos/illumos-gate/commit/049ba636fa37a2892809192fc671bff9158a01cd

https://www.illumos.org/issues/9630
Rename and destroy are very useful operations that deserve to be in
libzfs_core. And they are not hard to implement too.

MFC after: 2 weeks
Relnotes: maybe
26/12/2018
10:38 am
base/head
kadesai
head/sys/dev/mpr/mpi
Modificado:
head/sys/dev/mpr/mpi/mpi2.h
head/sys/dev/mpr/mpi/mpi2_cnfg.h
head/sys/dev/mpr/mpi/mpi2_hbd.h
head/sys/dev/mpr/mpi/mpi2_history.txt
head/sys/dev/mpr/mpi/mpi2_init.h
head/sys/dev/mpr/mpi/mpi2_ioc.h
head/sys/dev/mpr/mpi/mpi2_pci.h
head/sys/dev/mpr/mpi/mpi2_ra.h
head/sys/dev/mpr/mpi/mpi2_raid.h
head/sys/dev/mpr/mpi/mpi2_sas.h
head/sys/dev/mpr/mpi/mpi2_targ.h
head/sys/dev/mpr/mpi/mpi2_tool.h
head/sys/dev/mpr/mpi/mpi2_type.h
Log:
Update MPI header files version to 2.00.52 from 2.00.48

Submitted by: Sreekanth Reddy
Reviewed by: Kashyap Desai
Approved by: ken
MFC after: 3 days
Sponsored by: Broadcom Inc
25/12/2018
3:18 pm
base/head
kevans
in head/sbin/bectl: . tests
Modificado:
head/sbin/bectl/bectl.8
head/sbin/bectl/bectl_jail.c
head/sbin/bectl/tests/bectl_test.sh
Log:
bectl: use jail id as the default jail name for a boot environment

By default, bectl is setting the jail 'name' parameter to the boot
environment name, which causes an error when the boot environment name is
not a valid jail name. With the attached fix, when no name is supplied, the
default jail name will be the jail id - this is is the same behavior as the
jail command.

Additionally, this commit addresses two other bugs that prevented unjailing
in scenarios where the jail name does not match the boot environment name:

1. In 'bectl_locate_jail', 'mountpoint' is used to resolve the boot
environment path, but really 'mounted' should be used. 'mountpoint' is the
path where the zfs dataset will be mounted. 'mounted' is the path where
the dataset is actually mounted.

2. in 'bectl_search_jail_paths', 'jail_getv' would fail after the first
call. Which is fine, if the boot environment you're unjailing is the next
one up. According to 'man jail_getv', it's expecting name and value
strings. 'jail_getv' is being passed an integer for the lastjid, so amend
that to use a string instead.

Test cases have been amended to reflect the bugs found.

PR: 233637
Submitted by: Rob
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18607
25/12/2018
10:15 am
base/head
hselasky
head/sys/dev/sound/usb
Modificado:
head/sys/dev/sound/usb/uaudio.c
Log:
Fix reading of USB sample rate descriptor for SPL Crimson Rev 1.

Read first one entry, then try to read the full rate descriptor table.

PR: 234380
MFC after: 1 week
Sponsored by: Mellanox Technologies
24/12/2018
11:52 pm
base/head
mav
head/sys/kern
Modificado:
head/sys/kern/kern_mtxpool.c
Log:
Increase MTX_POOL_SLEEP_SIZE from 128 to 1024.

This value remained unchanged for 15 years, and now this bump reduces
lock spinning in GEOM and BIO layers while doing ~1.6M IOPS to 4 NVMe
on 72-core system from ~25% to ~5% by the cost of additional 28KB RAM.

While there, align struct mtx_pool fields to cache lines.

MFC after: 1 month
24/12/2018
11:28 pm
base/head
mav
head/sys/dev/nvme
Modificado:
head/sys/dev/nvme/nvme_sim.c
Log:
Remove CAM SIM lock from NVMe SIM.

CAM does not require SIM lock since FreeBSD 10.4, and NVMe code never
required it at all, using per-queue locks instead. This formally allows
parallel request submission in CAM mode as much as single per-device and
per-queue locks of CAM allow.

MFC after: 1 month
24/12/2018
7:37 pm
base/head
cem
head/sys/sys
Modificado:
head/sys/sys/param.h
head/sys/sys/random.h
Log:
Enable sys/random.h #include from C++

And bump __FreeBSD_version, just in case.

PR: 234180
Submitted by: Ralf van der Enden
MFC after: 5 days
24/12/2018
4:36 pm
base/head
maxim
head/share/misc
Modificado:
head/share/misc/bsd-family-tree
Log:
DragonFly 5.4.0, 5.4.1 and FreeBSD 12.0 releases added.
24/12/2018
3:38 pm
base/head
bcran
head/usr.sbin/efibootmgr
Modificado:
head/usr.sbin/efibootmgr/efibootmgr.c
Log:
Activate support for efibootmgr(8) -b --bootnum parameter

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18647
24/12/2018
10:47 am
base/head
crees
head/share/man/man5
Modificado:
head/share/man/man5/rc.conf.5
Log:
Clarify kld_list format

PR: docs/234248
Submitted by: David Fiander
Submitted by: Miroslav Lachman
24/12/2018
6:14 am
base/head
scottl
in head/sys/dev: mpr mps
Modificado:
head/sys/dev/mpr/mpr_sas.c
head/sys/dev/mps/mps_sas.c
Log:
Further refactoring for task management commands. Also fix a related
typo from the previous commit.
24/12/2018
5:54 am
base/head
scottl
in head/sys/dev: mpr mps
Modificado:
head/sys/dev/mpr/mpr_sas.c
head/sys/dev/mps/mps_sas.c
Log:
Commands for user-initated device resets should come from the high-priority
allocator. Prior to this change, they would leak from the normal allocator.
24/12/2018
5:05 am
base/head
scottl
in head/sys/dev: mpr mps
Modificado:
head/sys/dev/mpr/mpr_sas.c
head/sys/dev/mpr/mpr_user.c
head/sys/dev/mpr/mprvar.h
head/sys/dev/mps/mps_sas.c
head/sys/dev/mps/mps_user.c
head/sys/dev/mps/mpsvar.h
Log:
First step in refactoring and fixing the error recovery and task management
code in the mpr and mps drivers. Eliminate duplicated code and fix some
comments.
24/12/2018
1:12 am
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil.h
Log:
Remove an empty #if block.

The interesting thing is that looking through Darren's commit logs,
the line containing an extern ppsratecheck() definition was removed
from the v5-1-RELEASE branch but not from HEAD (I have taken his
CVS tree and converted it to GIT). There is a commit adding an
additional #if defined to the empty block. I can only assume that
this was intentional for something later. Looking through HEAD the
extern ppsratecheck() is there. However if we put it back it would
conflict with a static ppsratecheck() definition in fil.c when
building ipftest.

Therefore we remove this empty block.

ppsratecheck() is a function in the FreeBSD kernel. However ipftest
cannot call the ppsratecheck() in the kernel. Therefore one exists in
fil.c for use when building the userland ipftest utility which
approximates the packet filter in userland for testing of ipfilter
rules against packets captured with tcpdump.

MFC after: 1 week
24/12/2018
1:12 am
base/head
cy
head
Modificado:
head/MAINTAINERS
Log:
Register a pre-commit review for ipfilter.
23/12/2018
8:51 pm
base/head
pfg
head/include
Modificado:
head/include/netdb.h
Log:
Fix mismatch from r342379.
23/12/2018
6:15 pm
base/head
pfg
in head: include lib/libc/net
Modificado:
head/include/netdb.h
head/lib/libc/net/gai_strerror.3
head/lib/libc/net/gai_strerror.c
Log:
gai_strerror() - Update string error messages according to RFC 3493.

Error messages in gai_strerror(3) vary largely among OSs.

For new software we largely replaced the obsoleted EAI_NONAME and
with EAI_NODATA but we never updated the corresponding message to better
match the intended use. We also have references to ai_flags and ai_family
which are not very descriptive for non-developer end users.

Bring new new error messages based on informational RFC 3493, which has
obsoleted RFC 2553, and make them consistent among the header adn
manpage.

MFC after: 1 month
Differentical Revision: D18630
23/12/2018
6:52 pm
base/head
kib
head/sys/kern
Modificado:
head/sys/kern/vfs_subr.c
Log:
Properly test for vmio buffer in bnoreuselist().

The presence of allocated v_object does not imply that the buffer is
necessary VMIO kind. Buffer might has been allocated before the
object created, then the buffer is malloced. Although we try to avoid
such situation, it seems to be still legitimate.

Reported and tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
23/12/2018
7:14 pm
base/head
kib
head/sys/dev/nvdimm
Modificado:
head/sys/dev/nvdimm/nvdimm_spa.c
Log:
nvdimm SPA geom: Update bio fields needed for devstat_end_transaction_bio().

Reported by: bde
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
23/12/2018
6:54 pm
base/head
kib
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_snapshot.c
Log:
Allocate v_object for the new snapshot vnode.

The vnode is not opened, so it ends up with the malloced buffers otherwise.

Reported and tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
23/12/2018
5:10 am
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_compat.h
head/sys/contrib/ipfilter/netinet/ip_fil.h
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Remove NETBSD_PF. NETBSD_PF is a flag that defines whether the pfil(9)
framework is available. pfil(9) has been in FreeBSD since FreeBSD 5
and according to svn log was first committed to HEAD in 2000, therefore
it is safe to say the check is no longer needed in FreeBSD.

pfil(9) first appeared in NetBSD 1.3 (hence the name NETBSD_PF).
Therefore it is safe to say that it is supported by every NetBSD system
today. The framework also exists in illumos.

As ipfilter code is shared and exchanged between FreeBSD and NetBSD, and
at some point in the future illumos too, and as all three platforms have
pfil(9), the redundant NETBSD_PF #defines and #ifdefs are removed.

MFC after: 1 week
23/12/2018
1:05 am
base/head
sjg
in head: contrib/bmake contrib/bmake/mk
Modificado:
head/contrib/bmake/ChangeLog
head/contrib/bmake/VERSION
head/contrib/bmake/dirname.c
head/contrib/bmake/mk/mk-files.txt
head/contrib/bmake/parse.c
head/contrib/bmake/unit-tests/varquote.mk
head/contrib/bmake/var.c
head/usr.bin/bmake/Makefile.config
Directory Properties:
head/contrib/bmake/ (props changed)
Log:
Merge bmake-20181221
22/12/2018
10:59 pm
base/head
bde
head/sys/dev/md
Modificado:
head/sys/dev/md/md.c
Log:
Fix devstat on md devices, second attempt. r341765 depends on
g_io_deliver() finishing initialization of the bio, but g_io_deliver()
actually destroys the bio. INVARIANTS makes the bug obvious by
overwriting the bio with garbage.

Restore the old order for calling devstat (except don't restore not calling
it for the error case), and translate to the devstat KPI so that this order
works.

Reviewed by: kib
22/12/2018
9:49 pm
base/head
cy
head/sys/contrib/ipfilter/netinet
Modificado:
head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
Log:
Remove the last vestiges of HP/UX from a FreeBSD-only ipfilter
source file.

MFC after: 1 week
22/12/2018
4:23 pm
base/head
vmaffione
head/sys/dev/netmap
Modificado:
head/sys/dev/netmap/netmap.c
Log:
netmap: fix txsync check in netmap poll

To check if txsync can be skipped, it is necessary to look for
unseen TX space. However, this means comparing ring->cur
against ring->tail, rather than ring->head against ring->tail
(like nm_ring_empty() does).
This change also adds some more comments to explain the optimization
performed at the beginning of netmap_poll().

MFC after: 3 days
Sponsored by: Sunny Valley Networks
22/12/2018
3:15 pm
base/head
vmaffione
head/sys/dev/netmap
Modificado:
head/sys/dev/netmap/netmap.c
Log:
netmap: fix bug in netmap_poll() optimization

The bug was introduced by r339639, although it is present in the upstream
netmap code since 2015. It is due to resetting the want_rx variable to
POLLIN, rather than resetting it to POLLIN|POLLRDNORM.
It only affects select(), which uses POLLRDNORM. poll() is not affected,
because it uses POLLIN.
Also, it only affects FreeBSD, because Linux skips the optimization
implemented by the piece of code where the bug occurs.

MFC after: 3 days
Sponsored by: Sunny Valley Networks
22/12/2018
11:38 am
base/head
eugen
in head: sbin/ifconfig share/man/man4
Modificado:
head/sbin/ifconfig/ifconfig.8
head/share/man/man4/lagg.4
Log:
ifconfig.4, lagg.4: fix documentation bug: -use_flowid needs to be used
to force local hash computation and disable usage of RSS hash
provided by driver.

PR: 234242
MFC after: 1 week
22/12/2018
9:31 am
base/head
bde
head/sys/kern
Modificado:
head/sys/kern/vfs_default.c
Log:
Oops, rounddown() for the start was misspelled roundup() in r342295,
so only aligned starts worked. This broke releasing caches in most
cases where the i/o size is smaller than the fs block size.
22/12/2018
6:08 am
base/head
kevans
head/usr.sbin/config
Modificado:
head/usr.sbin/config/config.y
Log:
config(8): Remove all instances of an option when opting out

Quick follow-up to r342362: options can appear multiple times now, so
clean up all of them as needed. For non-OPTIONS options, this has no effect
since they're already de-duplicated.

MFC after: 1 week
X-MFC-With: r342362
22/12/2018
6:02 am
base/head
kevans
head/usr.sbin/config
Modificado:
head/usr.sbin/config/config.y
Log:
config(8): Allow duplicate options to be specified

config(8)'s option handling has been written to allow duplicate options; if
the value changes, then the latest value is used and an informative message
is printed to stderr like so:

/usr/src/sys/amd64/conf/TEST: option "VERBOSE_SYSINIT" redefined from 0 to 1

Currently, this is only a possibility for cpu types, MAXUSERS, and
MACHINE_ARCH. Anything else duplicated in a config file will use the first
value set and error about duplicated options on subsequent appearances,
which is arguably unfriendly since one could specify:

include GENERIC
nooptions VERBOSE_SYSINIT
options VERBOSE_SYSINIT

to redefine the value later anyways.

Reported by: mmacy
MFC after: 1 week
21/12/2018
11:22 pm
base/head
imp
head/sbin/nvmecontrol
Modificado:
head/sbin/nvmecontrol/devlist.c
Log:
Try the first 256 units with nvmecontrol devlist.

The nvmecontrol code that did the devlist assumed that we had a
tightly-packed allocation of units. Since pci writing exists, this
isn't the case. Loop over the first 256 units, which is a reasonable
number of possible units.

Sponsored by: Netflix
21/12/2018
9:17 pm
base/head
bde
head/sys/fs/msdosfs
Modificado:
head/sys/fs/msdosfs/msdosfs_vnops.c
Log:
Fix clobbering of the fatchain cache for clustered i/o's when full
clustering is not done. The bug caused extreme slowness for large
files in some cases.

There is no way to tell VOP_BMAP() how many blocks are wanted, so for
all file systems it has to waste time in some cases by searching for
more contiguous blocks than will be accessed. For msdosfs, it also
clobbered the fatchain cache in these cases by advancing the cache to
point to the chain entry for block that won't be read. This makes
the cache useless for the next sequential i/o (or VOP_BMAP()), so the
fat chain is searched from the beginning. The cache only has 1 relevant
entry, so it is similarly useless for random i/o.

Fix this by only advancing the cache to point to the chain entry for
the first block that will be read. Clustering uses results from
VOP_BMAP(), so when more than 1 block is read by clustering, the cache
is not advanced as optimally as before, but it is at most 1 cluster
size behind and searching the chain through the blocks for this cluster
doesn't take too long.
21/12/2018
8:46 pm
base/head
np
head/sys/dev/cxgbe/tom
Modificado:
head/sys/dev/cxgbe/tom/t4_tom.h
Log:
Remove unused macros from t4_tom.h.
21/12/2018
8:30 pm
base/head
cem
in head/sys/dev: mpr mps
Modificado:
head/sys/dev/mpr/mpr.c
head/sys/dev/mpr/mpr_sas_lsi.c
head/sys/dev/mpr/mprvar.h
head/sys/dev/mps/mps.c
head/sys/dev/mps/mps_sas_lsi.c
head/sys/dev/mps/mpsvar.h
Log:
mps(4), mpr(4): remove SATA ID command cancellation hack

Add a generic mechanism to override mp?_wait_command's timeout behavior,
which continues to invoke reinit by default. Invokers who set
cm_timeout_handler may avoid automatic reinit and do their own handling.

Adapt mp?sas_get_sata_identify to this mechanism and remove its callout
hack.

Reviewed by: scottl
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D18614
21/12/2018
8:29 pm
base/head
cem
in head/sys/dev: mpr mps
Modificado:
head/sys/dev/mpr/mpr_sas.c
head/sys/dev/mpr/mpr_sas_lsi.c
head/sys/dev/mps/mps_sas.c
head/sys/dev/mps/mps_sas_lsi.c
Log:
mps(4), mpr(4): Fix lifetime of command buffer for mp?sas_get_sata_identify

In the event that the ID command timed out, mps(4)/mpr(4) did not free the
command until it could be cancelled. However, it freed the associated
buffer (cm_data). Fix the lifetime issue by freeing the associated buffer
only after Abort Task or controller reset.

Reviewed by: scottl
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D18612
21/12/2018
8:12 pm
base/head
bde
head/sys/fs/msdosfs
Modificado:
head/sys/fs/msdosfs/msdosfs_vfsops.c
Log:
Quick fix for initialization of mnt_iosize_max. (This limit controls
mainly clustering and read-ahead.) Copy the initialization from ffs,
and also copy a couple of lines of ffs's nearby style for initialization
order and whitespace.

A correct fix would de-duplicate the initialization and fix bitrot in it
instead of adding another instance of the duplication. Complications to
use the size preferred by the device have been reduced to hard-coding
slightly pessimal and/or inconsistent defaults, using large code that was
almost needed to support the complications.

For msdosfs, the result was that mnt_iosize_max was DFTLPHYS (64K) but is
now MAXPHYS (128K).
21/12/2018
5:22 pm
base/head
mav
head/usr.sbin/ctladm
Modificado:
head/usr.sbin/ctladm/ctladm.c
Log:
Fix passing wrong variables to nvlist_destroy() after r333446.

Reported by: Alexander Fedorov (IT-Grad.ru)
MFC after: 5 days
21/12/2018
2:45 pm
base/head
vmaffione
head/tools/tools/netmap
Modificado:
head/tools/tools/netmap/nmreplay.8
Log:
netmap: update nmreplay(8)

Small modifications to the nmreplay man page.
Used igor and mandoc tools to fix warnings and errors.

Reviewed by: bcr
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18629
21/12/2018
1:56 pm
base/head
vmaffione
head/tools/tools/netmap
Modificado:
head/tools/tools/netmap/nmreplay.c
Log:
netmap: nmreplay: import various fixes from upstream (2704a51839906)

Changelist:
- General reformatting
- Fix packet duplication in cons(). Whenever cons() reached the
burst limit it would send all pending packets without advancing
head. This caused the last injected packet to be sent again in
the next round.
- Fix full-speed transmissions after first loop.

MFC after: 3 days
21/12/2018
11:50 am
base/head
vmaffione
head/sys/dev/netmap
Modificado:
head/sys/dev/netmap/netmap.c
head/sys/dev/netmap/netmap_kern.h
Log:
netmap: move buf_size validation code to its own function

This code validates the netmap buf_size against the interface MTU
and maximum descriptor size, to make sure the values are consistent.
Moving this functionality to its own function is needed because this
function is also called by Linux-specific code.

MFC after: 3 days
21/12/2018
11:32 am
base/head
vmaffione
head/sys/dev/netmap
Modificado:
head/sys/dev/netmap/netmap_pipe.c
Log:
netmap: pipes: make sure both ends use the same number of slots
21/12/2018
10:41 am
base/head
ae
head/sbin/ipfw
Modificado:
head/sbin/ipfw/ipfw2.c
Log:
Allow use underscores and dots in service names without escaping.

PR: 234237
MFC after: 1 week
21/12/2018
8:15 am
base/head
bde
in head: sbin/mdconfig sys/dev/md sys/sys
Modificado:
head/sbin/mdconfig/mdconfig.8
head/sbin/mdconfig/mdconfig.c
head/sys/dev/md/md.c
head/sys/sys/mdioctl.h
Log:
Use VOP_ADVISE() with POSIX_FADV_DONTNEED instead of IO_DIRECT to
implement not double-caching for reads from vnode-backed md devices.
Use VOP_ADVISE() similarly instead of !IO_DIRECT unsimilarly for writes.
Add a "cache" option to mdconfig to allow changing the default of not
caching.

This depends on a recent commit to fix VOP_ADVISE(). A previous version
had optimizations for sequential i/o's (merge the i/o's and only uncache
for discontiguous i/o's and for full blocks), but optimizations and
knowledge of block boundaries belong in VOP_ADVISE(). Read-ahead should
also be handled better, by supporting it in md and discarding it in
VOP_ADVISE().

POSIX_FADV_DONTNEED is ignored by zfs, but so is IO_DIRECT.

POSIX_FADV_DONTNEED works better than IO_DIRECT if it is not ignored,
since it only discards from the buffer cache immediately, while
IO_DIRECT also discards from the page cache immediately.

IO_DIRECT was not used for writes since it was claimed to be too slow,
but most of the slowness for writes is from doing them synchronously by
default. Non-synchronous writes still deadlock in many cases.

IO_DIRECT only has a special implementation for ffs reads with DIRECTIO
configured. Otherwise, if it is not ignored than it uses the buffer and
page caches normally except for discarding everything after each i/o,
and then it has much the same overheads as POSIX_FADV_DONTNEED. The
overheads for reading with ffs and DIRECTIO were similar in tests of md.

Reviewed by: kib
21/12/2018
6:38 am
base/head
bde
head/sbin/mdconfig
Modificado:
head/sbin/mdconfig/mdconfig.c
Log:
Fix missing (sub)options in usage message to prepare for adding a new one.

Reviewed by: kib
21/12/2018
4:57 am
base/head
bde
head/sys/kern
Modificado:
head/sys/kern/vfs_default.c
Log:
Fix rounding in vop_stdadvise() for POSIX_FADV_NOREUSE (really
POSIX_FADV_DONTNEED). The most broken case was for applications that
advise for the whole file and then do block-aligned i/o's 1 block at
a time. Then advice is sent to VOP_ADVISE() 1 block at a time, but
in vop_stdadvise() the 1-block advice was turned into 0-block advice
for the buffer cache part.

The bugs were caused partly by callers representing the region as
(a_start, a_end), where a_end is actually the maximum, and everything
else representing the region as (start, end) where 'end' is actually
the end (1 after the maximum). The maximum a_end must be rounded up,
but was rounded down. Also, rounding to page boundaries was inconsistent.

The bugs and fixes have no effect for zfs and other file systems that
don't use the buffer cache or the page cache. Most or all file systems
currently use the default VOP_FADVISE(), but it finds a null buffer cache
and a null page cache for file systems that don't use normal methods.

Reviewed by: kib
21/12/2018
1:09 am
base/head
mckusick
head/sys/kern
Modificado:
head/sys/kern/vfs_mount.c
Log:
Some filesystems (like cd9660 and ext3) require that VFS_STATFS()
be called before VFS_ROOT() is called. Move the call for VFS_STATFS()
so that it is done after VFS_MOUNT(), but before VFS_ROOT().
This change actually improves the robustness of the mount system
call because it returns an error rather than failing silently
when VFS_STATFS() returns failure.

Reported by: Rebecca Cran
Sponsored by: Netflix
20/12/2018
10:39 pm
base/head
np
head/sys/dev/cxgbe/iw_cxgbe
Modificado:
head/sys/dev/cxgbe/iw_cxgbe/device.c
Log:
cxgbe/iw_cxgbe: Remove redundant CTRs from c4iw_alloc/c4iw_rdev_open.
This information is readily available elsewhere.

Sponsored by: Chelsio Communications
20/12/2018
10:31 pm
base/head
np
head/sys/dev/cxgbe/iw_cxgbe
Modificado:
head/sys/dev/cxgbe/iw_cxgbe/cm.c
head/sys/dev/cxgbe/iw_cxgbe/cq.c
head/sys/dev/cxgbe/iw_cxgbe/qp.c
head/sys/dev/cxgbe/iw_cxgbe/t4.h
Log:
cxgbe/iw_cxgbe: Do not terminate CTRx messages with \n.
20/12/2018
10:26 pm
base/head
rmacklem
head
Modificado:
head/UPDATING
Log:
Add an UPDATING message for r342286.
20/12/2018
10:21 pm
base/head
rmacklem
head/sys/fs/nfsserver
Modificado:
head/sys/fs/nfsserver/nfs_nfsdkrpc.c
Log:
Fix the NFSv4 server to obey vfs.nfsd.nfs_privport.

When the NFSv4 server was coded, I believed that the specification authors
did not want NFSv4 servers to require a client to use a reserved port#.
However, recently it has been noted that the Linux NFSv4 server does support
a check for a reserved port#.
Since both the FreeBSD and Linux NFSv4 clients use a reserved port# by
default, enabling vfs.nfsd.nfs_privport to require a reserved port# for
NFSv4 the same as it does for NFSv2, 3 seems reasonable.
The only case where this could cause a POLA violation is a FreeBSD NFSv4
server with vfs.nfsd.nfs_privport set, but with NFSv4 clients doing mounts
without using a reserved port# (< 1024).

Tested by: chaz.newton58@gmail.com
PR: 234106
MFC after: 1 week
20/12/2018
8:55 pm
base/head
cem
head/sys/dev/tpm
Modificado:
head/sys/dev/tpm/tpm20.c
head/sys/dev/tpm/tpm20.h
Log:
tpm(4): Fix GCC build after r342084 (TPM 2.0 driver commit)

Move static variable definition (cdevsw) to a more conventional location
(the C file it is used in), rather than a header.

This fixes the GCC warning, -Wunused-variable ("defined but not used") when
the tpm20.h header is included in files other than tpm20.c (e.g.,
tpm_tis.c).

X-MFC-with: r342084
Sponsored by: Dell EMC Isilon
20/12/2018
8:34 pm
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_sge.c
Log:
cxgbe(4): Make sure the rx queues start off with the correct timestamp
settings on initialization.

Sponsored by: Chelsio Communications
20/12/2018
7:39 pm
base/head
bcran
in head: release/amd64 release/arm64 release/i386
Modificado:
head/release/amd64/make-memstick.sh
head/release/amd64/mkisoimages.sh
head/release/arm64/make-memstick.sh
head/release/i386/make-memstick.sh
head/release/tools/vmimage.subr
head/share/man/man8/uefi.8
head/tools/boot/install-boot.sh
head/tools/boot/rootgen.sh
head/tools/tools/nanobsd/embedded/common
head/usr.sbin/bsdinstall/partedit/gpart_ops.c
head/usr.sbin/bsdinstall/partedit/partedit_arm64.c
head/usr.sbin/bsdinstall/partedit/partedit_x86.c
head/usr.sbin/bsdinstall/scripts/bootconfig
head/usr.sbin/bsdinstall/scripts/zfsboot
Log:
Rework UEFI ESP generation

Currently, the installer uses pre-created 800KB FAT12 filesystems that
it dd's onto the ESP partition.
This changeset improves that by having the installer generate a FAT32
filesystem directly onto the ESP using newfs_msdos and then copying
loader.efi into /EFI/freebsd.
For live installs it then runs efibootmgr to add a FreeBSD boot entry
in the BIOS.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D17947
20/12/2018
7:27 pm
base/head
bcran
head/stand/libsa
Modificado:
head/stand/libsa/net.c
Log:
Wait a maximum of 300 seconds for network send/recv in libsa

The reason for this change is that currently, a send/recv
takes many hours to time out.
This is suboptimal in the bootloader because it means for example
that NFS will take hours to fail before allowing subsequent access
methods such as gzip to be tried.

Setting MAXWAIT to 300 seconds (5 minutes) still allows slow
connections of 1Mb to be used to download a 30MB kernel file.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18544
20/12/2018
4:05 pm
base/head
tuexen
head/sys/netinet
Modificado:
head/sys/netinet/tcp_reass.c
Log:
Fix a regression in the TCP handling of received segments.
When receiving TCP segments the stack protects itself by limiting
the resources allocated for a TCP connections. This patch adds
an exception to these limitations for the TCP segement which is the next
expected in-sequence segment. Without this patch, TCP connections
may stall and finally fail in some cases of packet loss.

Reported by: jhb@
Reviewed by: jtl@, rrs@
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D18580
20/12/2018
3:53 pm
base/head
emaste
head/release
Modificado:
head/release/Makefile
Log:
Remove setting of long-unused MK_NCP option

NCP was removed from the tree in 2013 (r248097) and disconnected some
time before.

Reported by: bz
Sponsored by: The FreeBSD Foundation
20/12/2018
5:46 am
base/head
imp
head/sys/dev/ow
Modificado:
head/sys/dev/ow/ow_temp.c
Log:
Fix panic message when we can't create thread for one wire temperature
reading.
20/12/2018
1:35 am
base/head
np
head/sys/dev/cxgbe/iw_cxgbe
Modificado:
head/sys/dev/cxgbe/iw_cxgbe/cm.c
Log:
cxgbe/iw_cxgbe: Use -ve errno when interfacing with linuxkpi/OFED.

Submitted by: Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
20/12/2018
1:05 am
base/head
mw
head/sys/dev/tpm
Modificado:
head/sys/dev/tpm/tpm20.h
head/sys/dev/tpm/tpm_crb.c
Log:
Fix obtaining RSP address in TPM CRB for non-amd64 platforms

On amd64 the RSP address can be read in single 8-byte transaction,
which is obviously not possible on 32-bit platforms. Fix that
by performing 2 4-byte read on them.

Obtained from: Semihalf
Sponsored by: Stormshield
20/12/2018
1:00 am
base/head
np
head/sys/dev/cxgbe/iw_cxgbe
Modificado:
head/sys/dev/cxgbe/iw_cxgbe/cm.c
Log:
cxgbe/iw_cxgbe: Add a knob for testing that lets iWARP connections cycle
through 4-tuples quickly.

Submitted by: Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
19/12/2018
11:29 pm
base/head
np
in head/sys/dev/cxgbe: . iw_cxgbe
Modificado:
head/sys/dev/cxgbe/iw_cxgbe/cm.c
head/sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
head/sys/dev/cxgbe/iw_cxgbe/mem.c
head/sys/dev/cxgbe/iw_cxgbe/provider.c
head/sys/dev/cxgbe/iw_cxgbe/qp.c
head/sys/dev/cxgbe/t4_main.c
Log:
cxgbe/iw_cxgbe: Use DSGLs to write to card's memory when appropriate.

Submitted by: Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
19/12/2018
11:28 pm
base/head
yuripv
head/lib/libc/regex
Modificado:
head/lib/libc/regex/regcomp.c
Log:
regcomp: revert part of r341838 which turned out to be unrelated
and caused issues with search in less.

PR: 234066
Reviewed by: pfg
Differential revision: https://reviews.freebsd.org/D18611
19/12/2018
11:28 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_priv.c
Log:
Check for probes enabled in priv_check_cred before evaluting the error.

Sponsored by: The FreeBSD Foundation
19/12/2018
11:22 pm
base/head
imp
head/sys/mips/conf
Modificado:
head/sys/mips/conf/CI20
head/sys/mips/conf/JZ4780
Log:
Add note to 32-bit mips smp config files documenting the status
19/12/2018
11:19 pm
base/head
mjg
head/sys/sys
Modificado:
head/sys/sys/sdt.h
Log:
Provide SDT_PROBES_ENABLED for kernels without KDTRACE.

Sponsored by: The FreeBSD Foundation
19/12/2018
11:15 pm
base/head
imp
head/sys/mips/ingenic
Modificado:
head/sys/mips/ingenic/files.jz4780
Log:
32-bit mips SMP is unsupported

Per discussions on mips@, 32-bit mips SMP is now unsupported. The
files in the tree will compile for a while longer, but when the
atomic_swap_64 or similar atomic enters into the MI part of the tree,
as currently foreseen sometime next year, these ports will start to no
longer link. The JZ4780 is the only such system we have.

The UP version of this chip is unaffected by this, and will remain
supported.

Discussed on: mips@
Relnotes: yes
19/12/2018
10:57 pm
base/head
cem
in head/lib/libc: stdlib tests/stdlib
Adicional:
head/lib/libc/tests/stdlib/strfmon_test.c (contents, props changed)
Modificado:
head/lib/libc/stdlib/strfmon.c
head/lib/libc/tests/stdlib/Makefile
Log:
Allow multi-byte thousands separators in strfmon(3)

PR: 234010
Reported by: Jon Tejnung
Reviewed by: yuripv
Differential Revision: https://reviews.freebsd.org/D18605
19/12/2018
10:54 pm
base/head
imp
in head: . sys/mips/conf sys/mips/mips sys/mips/sibyte
Eliminado:
head/sys/mips/conf/SWARM
head/sys/mips/conf/SWARM.hints
head/sys/mips/conf/SWARM64
head/sys/mips/conf/SWARM64_SMP
head/sys/mips/conf/SWARM_SMP
head/sys/mips/conf/std.SWARM
head/sys/mips/sibyte/ata_zbbus.c
head/sys/mips/sibyte/files.sibyte
head/sys/mips/sibyte/sb_asm.S
head/sys/mips/sibyte/sb_bus_space.h
head/sys/mips/sibyte/sb_machdep.c
head/sys/mips/sibyte/sb_scd.c
head/sys/mips/sibyte/sb_scd.h
head/sys/mips/sibyte/sb_zbbus.c
head/sys/mips/sibyte/sb_zbpci.c
head/sys/mips/sibyte/std.sibyte
Modificado:
head/UPDATING
head/sys/mips/mips/bus_space_generic.c
Log:
Remove support for the now very old SiByte MIPS platform. It's not
relevant and is unused. It's also getting in the way of progress in
some admittedly minor ways. Better to retire it to reduce the burden
on the project.

Discussed on: freebsd-mips@
Differential Revision: https://reviews.freebsd.org/D18543
19/12/2018
10:56 pm
base/head
imp
head
Modificado:
head/UPDATING
Log:
Fix the date

The first part of the mips pruning has been commited. This part
is uncontested. Fix the date in the UPDATING file to reflect when
I made the commit. The contested parts will be committed (or not)
once those discussions complete.
19/12/2018
10:54 pm
base/head
imp
head/sys/mips/conf
Eliminado:
head/sys/mips/conf/SENTRY5
head/sys/mips/conf/SENTRY5.hints
Log:
Remove old config file for SENTRY5

This is an older broadcom part that implements the mips32 ISA. 32-bit
FreeBSD/mips now requires mips32r2, so retire this config. Most of the
broadcom port is shared with newer ports, so what little code may be
unique to this part has not been GC'd at this time.

Discussed on: freebsd-mips@
Differential Revision: https://reviews.freebsd.org/D18543
19/12/2018
10:54 pm
base/head
imp
in head: . sys/mips/conf
Eliminado:
head/sys/mips/conf/XLP
Modificado:
head/UPDATING
Log:
Remove support for running 32-bit kernels on 64-bit hardware.

This was useful in bring up. However, it causes more issues than the
support is worth (64-bit atomics being chief among them).

Discussed on: freebsd-mips@
Differential Revision: https://reviews.freebsd.org/D18543
19/12/2018
10:54 pm
base/head
imp
in head/sys/mips: conf gxemul
Eliminado:
head/sys/mips/conf/GXEMUL
head/sys/mips/conf/GXEMUL.hints
head/sys/mips/conf/GXEMUL32
head/sys/mips/gxemul/files.gxemul
head/sys/mips/gxemul/gxemul_machdep.c
head/sys/mips/gxemul/mpreg.h
head/sys/mips/gxemul/std.gxemul
Log:
Remove the GXEMUL support.

gxemul was a nice stop-gap while qemu support for mips was firmed
up. Now MALTA* + qemu is the platform of choice retire gxemul support.
It's unknown when this was last confirmed working.

Discussed on: freebsd-mips@
Differential Revision: https://reviews.freebsd.org/D18543
19/12/2018
10:47 pm
base/head
mw
head/usr.sbin/uefisign
Modificado:
head/usr.sbin/uefisign/pe.c
Log:
Fix alignment issue in uefisign

The pe_certificate structure has to be aligned to 8 bytes. [1]
Since this is now checked in edk2, any binaries signed with
older version of this tool will fail verification.

References:
[1] https://docs.microsoft.com/en-us/windows/desktop/Debug/pe-format#the-attribute-certificate-table-image-only

Submitted by: Kornel Duleba
Reviewed by: trasz
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D18554
19/12/2018
10:43 pm
base/head
mw
head/sys/modules/tpm
Modificado:
head/sys/modules/tpm/Makefile
Log:
Include the new TPM 2.0 driver in the TPM module.

Update the appropriate Makefile to build the new driver
together with the old one.

Submitted by: Kornel Duleba
Reported by: kib
Obtained from: Semihalf
Sponsored by: Stormshield
19/12/2018
10:30 pm
base/head
mjg
head/sys/security/mac
Modificado:
head/sys/security/mac/mac_internal.h
Log:
mac: reduce pessimization of sdt probe handling

Prior to the change the code would branch on return value and then check
if probes are enabled. Since vast majority of the time they are not, this
is clearly wasteful. Check probes first.

Sponsored by: The FreeBSD Foundation
19/12/2018
10:08 pm
base/head
mjg
head
Modificado:
head/Makefile.inc1
Log:
Remove iBCS2: plug a wart missed in r342242

Sponsored by: The FreeBSD Foundation
19/12/2018
10:02 pm
base/head
mjg
in head/sys: i386/ibcs2 modules modules/coff modules/ibcs2
Eliminado:
head/sys/i386/ibcs2/
head/sys/modules/coff/
head/sys/modules/ibcs2/
Modificado:
head/sys/modules/Makefile
Log:
Remove iBCS2, part3: the implementation

Reviewed by: kib (previous version)
Sponsored by: The FreeBSD Foundation
19/12/2018
9:57 pm
base/head
mjg
in head/sys: amd64/amd64 amd64/conf amd64/ia32 amd64/linux
Modificado:
head/sys/amd64/amd64/elf_machdep.c
head/sys/amd64/amd64/trap.c
head/sys/amd64/conf/NOTES
head/sys/amd64/ia32/ia32_syscall.c
head/sys/amd64/linux/linux_sysvec.c
head/sys/amd64/linux32/linux32_sysvec.c
head/sys/arm/arm/elf_machdep.c
head/sys/arm/arm/syscall.c
head/sys/arm/arm/vm_machdep.c
head/sys/arm64/arm64/elf_machdep.c
head/sys/arm64/arm64/trap.c
head/sys/arm64/linux/linux_sysvec.c
head/sys/compat/ia32/ia32_sysvec.c
head/sys/conf/files.i386
head/sys/conf/options.amd64
head/sys/conf/options.i386
head/sys/i386/Makefile
head/sys/i386/conf/NOTES
head/sys/i386/i386/elf_machdep.c
head/sys/i386/i386/trap.c
head/sys/i386/linux/linux_sysvec.c
head/sys/kern/imgact_aout.c
head/sys/kern/init_main.c
head/sys/kern/makesyscalls.sh
head/sys/mips/mips/elf_machdep.c
head/sys/mips/mips/freebsd32_machdep.c
head/sys/mips/mips/trap.c
head/sys/powerpc/powerpc/elf32_machdep.c
head/sys/powerpc/powerpc/elf64_machdep.c
head/sys/powerpc/powerpc/exec_machdep.c
head/sys/powerpc/powerpc/trap.c
head/sys/riscv/riscv/elf_machdep.c
head/sys/riscv/riscv/trap.c
head/sys/sparc64/sparc64/elf_machdep.c
head/sys/sparc64/sparc64/trap.c
head/sys/sys/sysent.h
Log:
Remove iBCS2, part2: general kernel

Reviewed by: kib (previous version)
Sponsored by: The FreeBSD Foundation
19/12/2018
9:56 pm
base/head
mjg
in head: . etc/mtree libexec/rc libexec/rc/rc.d
Eliminado:
head/share/examples/ibcs2/
Modificado:
head/ObsoleteFiles.inc
head/etc/mtree/BSD.usr.dist
head/libexec/rc/rc.conf
head/libexec/rc/rc.d/archdep
head/share/examples/Makefile
head/share/man/man4/kld.4
head/share/man/man5/rc.conf.5
head/usr.sbin/bsdconfig/startup/include/messages.subr
head/usr.sbin/bsdconfig/startup/misc
Log:
Remove iBCS2, part1: userspace

iBCS2 was disconnected from the build in 2015 (see r291419)

bsdconfig parts submitted by dteske.

Reviewed by: kib (previous version)
Sponsored by: The FreeBSD Foundation
19/12/2018
8:29 pm
base/head
mjg
head/sys/kern
Modificado:
head/sys/kern/kern_fork.c
Log:
Microoptimize corner case of ID bitmap handling.

Prior to the change we would avoidably test more possibly used IDs.

While here update the comment: there is no pidchecked variable anymore.
19/12/2018
8:27 pm
base/head
mjg
in head/sys: kern sys
Modificado:
head/sys/kern/kern_fork.c
head/sys/kern/subr_syscall.c
head/sys/sys/proc.h
Log:
Deinline vfork handling out of the syscall return path.

vfork is rarely called (comparatively to other syscalls) and it avoidably
pollutes the fast path.

Sponsored by: The FreeBSD Foundation
19/12/2018
8:25 pm
base/head
mjg
head/share/man/man9
Modificado:
head/share/man/man9/priv.9
Log:
Update priv(9) after r341827

Reported by: trasz
Sponsored by: The FreeBSD Foundation
19/12/2018
7:21 pm
base/head
np
head/sys/dev/cxgbe
Modificado:
head/sys/dev/cxgbe/t4_clip.c
Log:
cxgbe(4): Do not issue mbox commands after t4_fw_bye.

Sponsored by: Chelsio Communications
19/12/2018
6:16 pm
base/head
emaste
head/libexec/bootpd
Modificado:
head/libexec/bootpd/bootpd.c
Log:
bootpd: validate hardware type

Due to insufficient validation of network-provided data it may have been
possible for a malicious actor to craft a bootp packet which could cause
a stack buffer overflow.

admbugs: 850
Reported by: Reno Robert
Reviewed by: markj
Approved by: so
Security: FreeBSD-SA-18:15.bootpd
Sponsored by: The FreeBSD Foundation
19/12/2018
5:52 pm
base/head
markj
in head/sys/riscv: include riscv
Modificado:
head/sys/riscv/include/frame.h
head/sys/riscv/riscv/db_interface.c
head/sys/riscv/riscv/exception.S
head/sys/riscv/riscv/genassym.c
head/sys/riscv/riscv/trap.c
Log:
Replace uses of sbadaddr with stval.

The sbadaddr register was renamed in version 1.10 of the privileged
architecture specification. No functional change intended.

Submitted by: Mitchell Horne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18594
19/12/2018
5:45 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/machdep.c
Log:
Implement cpu_halt() for RISC-V.

Submitted by: Mitchell Horne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18595
19/12/2018
4:45 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 MacPro1,1

PR: 203431
Submitted by: jjr@alisa.org & holindho@saunalahti.fi
Reported by: jjr@alisa.org
MFC after: 1 week
19/12/2018
4:54 am
base/head
markj
in head/sys: conf dev/fxp modules/fxp
Modificado:
head/sys/conf/files
head/sys/conf/kern.mk
head/sys/dev/fxp/if_fxp.c
head/sys/dev/fxp/if_fxpreg.h
head/sys/modules/fxp/Makefile
Log:
Remove a use of a negative array index from fxp(4).

This fixes a warning seen when compiling amd64 GENERIC with clang 7.
Also remove the workaround added in r337324. clang 7 and gcc 4.2
generate the same code with or without the code change.

Reviewed by: imp (previous version)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18603
19/12/2018
3:08 am
base/head
avos
head/sys/net80211
Modificado:
head/sys/net80211/ieee80211_node.c
Log:
net80211: fix out-of-bounds read in ieee80211_amrr(9).

ieee80211_alloc_node() does not initialize rateset tables; that's not
expected by rate control modules and will result in array access at
index -1 - where ni_essid[] array is located (zeroed at allocation, so
there are no user-visible consequences).

Just delay rate control initialization to the moment, when rateset
tables are initiaziled; nothing will use rates here anyway.

MFC after: 4 days
19/12/2018
1:37 am
base/head
np
head/sys/dev/cxgbe/tom
Modificado:
head/sys/dev/cxgbe/tom/t4_connect.c
head/sys/dev/cxgbe/tom/t4_cpl_io.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
Log:
cxgbe/t4_tom: fixes for issues on the passive open side.

- Fix PR 227760 by getting the TOE to respond to the SYN after the call
to toe_syncache_add, not during it. The kernel syncache code calls
syncache_respond just before syncache_insert. If the ACK to the
syncache_respond is processed in another thread it may run before the
syncache_insert and won't find the entry. Note that this affects only
t4_tom because it's the only driver trying to insert and expand
syncache entries from different threads.

- Do not leak resources if an embryonic connection terminates at
SYN_RCVD because of L2 lookup failures.

- Retire lctx->synq and associated code because there is never a need to
walk the list of embryonic connections associated with a listener.
The per-tid state is still called a synq entry in the driver even
though the synq itself is now gone.

PR: 227760
MFC after: 2 weeks
Sponsored by: Chelsio Communications
19/12/2018
12:17 am
base/head
markj
head/sys/kern
Modificado:
head/sys/kern/kern_malloc.c
Log:
Fix DDB's "show malloc" after r338899.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
18/12/2018
9:43 pm
base/head
avg
head/share/man/man4
Modificado:
head/share/man/man4/cyapa.4
head/share/man/man4/isl.4
Log:
cyapa.4, isl.4: cross-reference and document use of chromebook_platform(4)

PR: 218632
Reported by: Denis Kozadaev
MFC after: 1 week
18/12/2018
7:38 pm
base/head
glebius
head/sys/dev/usb/net
Modificado:
head/sys/dev/usb/net/uhso.c
Log:
Use mbufq instead of ifqueue to queue mbufs.
18/12/2018
7:05 pm
base/head
imp
head
Modificado:
head/MAINTAINERS
Log:
Fix typo and formatting...
18/12/2018
6:52 pm
base/head
imp
head
Modificado:
head/MAINTAINERS
Log:
add pre-commit review request for drm*.
Move dev/usb/wlan to sys/dev/usb/wlan as it was the odd-man-out.
18/12/2018
5:17 pm
base/head
avg
head/sys/dev/ichwd
Modificado:
head/sys/dev/ichwd/ichwd.c
Log:
ichwd: add a few assertions about tco_version

Those should ensure correctness of ichwd_find_ich_lpc_bridge() and
ichwd_find_ich_lpc_bridge() as well as make it easier for both humans
and static analyzers to see the relation between tco_version and ich and
smb variables in ichwd_identify().

Reported by: Coverity
CID: 1396314, 1396317
MFC after: 10 days
18/12/2018
4:47 pm
base/head
markj
head/sbin/ping
Modificado:
head/sbin/ping/ping.c
Log:
Use caph_enter_casper() in ping(8).

Reported by: oshogbo
MFC with: r341837
Sponsored by: The FreeBSD Foundation
18/12/2018
12:44 pm
base/head
brooks
in head/sys: compat/freebsd32 kern sys
Modificado:
head/sys/compat/freebsd32/syscalls.master
head/sys/kern/kern_sysctl.c
head/sys/kern/syscalls.master
head/sys/sys/sysctl.h
Log:
const poison the `new` pointer of __sysctl.

Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18444
18/12/2018
5:08 am
base/head
avos
head/sys/dev/iwi
Modificado:
head/sys/dev/iwi/if_iwi.c
Log:
iwi(4): do not leak node reference when IWI_FLAG_ASSOCIATED flag is set.

MFC after: 6 days
18/12/2018
1:12 am
base/head
cy
in head/contrib/sqlite3: . tea
Adicional:
head/contrib/sqlite3/Makefile.fallback
- copied unchanged from r342177, vendor/sqlite3/dist/Makefile.fallback
head/contrib/sqlite3/tea/
- copied from r342177, vendor/sqlite3/dist/tea/
Modificado:
head/contrib/sqlite3/Makefile.am
head/contrib/sqlite3/Makefile.in
head/contrib/sqlite3/Makefile.msc
head/contrib/sqlite3/configure
head/contrib/sqlite3/configure.ac
head/contrib/sqlite3/shell.c
head/contrib/sqlite3/sqlite3.c
head/contrib/sqlite3/sqlite3.h
head/contrib/sqlite3/sqlite3ext.h
Directory Properties:
head/contrib/sqlite3/ (props changed)
Log:
MFV r342175:

Update sqlite3-3.23.1 --> sqlite3-3.26.0 (3260000)

MFC after: 3 days
Security: https://blade.tencent.com/magellan/index_en.html
No known CVE was apparently registered.
17/12/2018
9:48 pm
base/head
markj
in head/sys: dev/drm2/radeon modules/drm2/radeonkms
Eliminado:
head/sys/dev/drm2/radeon/r300_cmdbuf.c
head/sys/dev/drm2/radeon/r600_blit.c
head/sys/dev/drm2/radeon/r600_cp.c
head/sys/dev/drm2/radeon/radeon_cp.c
head/sys/dev/drm2/radeon/radeon_ioc32.c
head/sys/dev/drm2/radeon/radeon_state.c
Modificado:
head/sys/dev/drm2/radeon/r600_blit_kms.c
head/sys/dev/drm2/radeon/r600_cs.c
head/sys/dev/drm2/radeon/radeon_irq.c
head/sys/modules/drm2/radeonkms/Makefile
Log:
Remove UMS support code from radeonkms.

The code is unreachable since the entries of radeon_ioctls[] are not
associated with any device: we provide only the KMS entry points.
Moreover, r600_cp_dispatch_texture() contains an integer overflow bug
that can be triggered from userspace.[1]

Reported by: Anonymous of the Shellphish Grill Team[1]
Reviewed by: dumbbell
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18516
17/12/2018
9:34 pm
base/head
markj
head/sys/dev/ichiic
Modificado:
head/sys/dev/ichiic/ig4_pci.c
Log:
Catch up with r338948.

MFC with: r342178
17/12/2018
9:33 pm
base/head
avg
head/sys/dev/ichiic
Modificado:
head/sys/dev/ichiic/ig4_acpi.c
Log:
fix formatting and style in ig4iic_acpi_probe afetr r339754

This includes removing stray whitespace, adding a line after the
variable declaration block and removing a redundant check.

MFC after: 1 week
X-MFC with: r339754
17/12/2018
9:13 pm
base/head
markj
head/sys/dev/ichiic
Modificado:
head/sys/dev/ichiic/ig4_pci.c
Log:
Revert r336326.

In testing on a Dell Latitude 7480, having ig4.ko loaded during a
suspend caused the system to hang. It turns out that ig4iic_intr() was
being called after the device entered D3, and entered an infinite loop
because a read of the I2C status register returned all ones, causing us
to attempt to read a byte from the data buffer until one of the status
bits clears. This occured because ig4iic_pci0 shares an interrupt with
the VGA device on this laptop, so ig4iic_intr() gets called even when
there is no work to do. This is exactly the problem fixed by r342170,
which resolves the hang for me and allows suspend/resume to work with
ig4.ko loaded. So, re-enable autoloading of ig4.ko in the hope that
r342170 resolves the problem universally.

Reviewed by: gonzo
MFC after: 1 month (pending an MFC of r342170)
Differential Revision: https://reviews.freebsd.org/D18587
17/12/2018
6:35 pm
base/head
asomers
in head: tests/sys tools/build/mk
Modificado:
head/tests/sys/Makefile
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Conditionalize installtion audit(4) tests on MK_AUDIT

MK_AUDIT already controls auditd(8), praudit(1), etc. It should also control
the audit test suite.

Submitted by: ngie
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd/pull/240
17/12/2018
6:11 pm
base/head
asomers
head/tests/sys/audit
Modificado:
head/tests/sys/audit/Makefile
head/tests/sys/audit/administrative.c
Log:
audit(4) tests: require /etc/rc.d/auditd

These tests should be skipped if /etc/rc.d/auditd is missing, which could be
the case if world was built with WITHOUT_AUDIT set. Also, one test case
requires /etc/rc.d/accounting.

Submitted by: ngie
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd/pull/240
17/12/2018
5:21 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 mid-2011 Macmini 5,2

PR: 225911
Submitted by: trev
Reported by: trev
MFC after: 1 week
17/12/2018
5:11 pm
base/head
avg
in head/sys: dev/pci kern sys x86/x86
Modificado:
head/sys/dev/pci/pci.c
head/sys/kern/bus_if.m
head/sys/kern/kern_intr.c
head/sys/kern/subr_bus.c
head/sys/kern/subr_rman.c
head/sys/sys/bus.h
head/sys/sys/interrupt.h
head/sys/sys/rman.h
head/sys/x86/x86/nexus.c
Log:
add support for marking interrupt handlers as suspended

The goal of this change is to fix a problem with PCI shared interrupts
during suspend and resume.

I have observed a couple of variations of the following scenario.
Devices A and B are on the same PCI bus and share the same interrupt.
Device A's driver is suspended first and the device is powered down.
Device B generates an interrupt. Interrupt handlers of both drivers are
called. Device A's interrupt handler accesses registers of the powered
down device and gets back bogus values (I assume all 0xff). That data is
interpreted as interrupt status bits, etc. So, the interrupt handler
gets confused and may produce some noise or enter an infinite loop, etc.

This change affects only PCI devices. The pci(4) bus driver marks a
child's interrupt handler as suspended after the child's suspend method
is called and before the device is powered down. This is done only for
traditional PCI interrupts, because only they can be shared.

At the moment the change is only for x86.

Notable changes in core subsystems / interfaces:
- BUS_SUSPEND_INTR and BUS_RESUME_INTR methods are added to bus
interface along with convenience functions bus_suspend_intr and
bus_resume_intr;
- rman_set_irq_cookie and rman_get_irq_cookie functions are added to
provide a way to associate an interrupt resource with an interrupt
cookie;
- intr_event_suspend_handler and intr_event_resume_handler functions
are added to the MI interrupt handler interface.

I added two new interrupt handler flags, IH_SUSP and IH_CHANGED, to
implement the new intr_event functions. IH_SUSP marks a suspended
interrupt handler. IH_CHANGED is used to implement a barrier that
ensures that a change to the interrupt handler's state is visible
to future interrupts.
While there, I fixed some whitespace issues in comments and changed a
couple of logically boolean variables to be bool.

MFC after: 1 month (maybe)
Differential Revision: https://reviews.freebsd.org/D15755
17/12/2018
4:01 pm
base/head
avg
head/sys/cam/scsi
Modificado:
head/sys/cam/scsi/scsi_da.c
Log:
add a knob that disables detection of write protected disks

It has been reported that on some systems (with real hardware passed
through to a virtual machine) the WP detection causes USB disk probing
failures.

While here, also fix the selection of the next state in the case
of malloc failure in DA_STATE_PROBE_WP. It was DA_STATE_PROBE_RC
unconditionally even when it should have been DA_STATE_PROBE_RC16.

PR: 225794
Reported by: David Boyd
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D18496
17/12/2018
4:00 pm
base/head
sobomax
in head: share/man/man4 sys/netgraph
Modificado:
head/share/man/man4/ng_nat.4
head/sys/netgraph/ng_nat.c
head/sys/netgraph/ng_nat.h
Log:
Allow ng_nat to be attached to a ethernet interface directly via ng_ether(4)
or the likes. Add new control message types: setdlt and getdlt to switch
from default DLT_RAW (no encapsulation) to DLT_EN10MB (ethernet).

Approved by: glebius
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D18535
17/12/2018
10:17 am
base/head
se
head
Modificado:
head/ObsoleteFiles.inc
Log:
Add removed CTM files to ObsoleteFiles.inc as a follow-up to r342126.
17/12/2018
7:43 am
base/head
tsoome
head/stand/libsa/zfs
Modificado:
head/stand/libsa/zfs/zfs.c
Log:
loader: zfs reader should not probe partitionless disks (UEFI case)

With r342151 I did fix the BIOS version of zfs_probe_dev() from accessing
the whole disk, but the fix was not complete - we actually did not check
if the device name was really for whole disk. Since UEFI version
is only calling the zfs_probe_dev() with partitions and not with whole
disk, the UEFI loader was not able to find the zfs pools.

This update does correct the issue by calling archsw.arch_getdev() to
translate the device name back to dev_desc, and we have whole disk when both
partition and slice values are -1.

Reported by: alvisen_gmail.com
Differential Revision: https://reviews.freebsd.org/D18558
17/12/2018
7:09 am
base/head
grog
head/sys/dev/pci
Modificado:
head/sys/dev/pci/pci.c
Log:
Work around BIOS quirks on HPE Proliant MicroServer Gen10

PR: 221350
Submitted by: Bob Bishop
Reported by: Rafal Lukawiecki
Reviewed by: jhb
MFC after: 2 weeks
17/12/2018
5:07 am
base/head
avos
in head/sys/dev: rtwn/usb usb
Modificado:
head/sys/dev/rtwn/usb/rtwn_usb_attach.h
head/sys/dev/usb/usbdevs
Log:
Add revision number for TP-Link TL-WN722N to prevent ambiguity between
different chipsets.

MFC after: 3 days
X-MFC with: 341786
16/12/2018
11:45 pm
base/head
asomers
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
OptionalObsoleteFiles: Fix deleting usr/tests/usr.sbin/sa

It's a directory, not a file.

Reported by: ngie
MFC after: 2 weeks
X-MFC-With: 300938
16/12/2018
11:38 pm
base/head
asomers
in head: libexec/rc/rc.d tools/build/mk
Modificado:
head/libexec/rc/rc.d/Makefile
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Conditionally install /etc/rc.d/audit* based on ${MK_AUDIT}

/usr/sbin/audit(dist)?d are only installed if ${MK_AUDIT} == yes. Their
supporting scripts should only be installed in those instances as well.

Submitted by: ngie
Reviewed by: emaste
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd/pull/242
16/12/2018
6:10 pm
base/head
phk
head/sbin/mdconfig
Modificado:
head/sbin/mdconfig/mdconfig.c
Log:
Make (no)ro an alias for (no)readonly
16/12/2018
8:58 am
base/head
tsoome
head/stand/libsa/zfs
Modificado:
head/stand/libsa/zfs/zfs.c
Log:
loader: zfs reader should not probe partitionless disks

First of all, normal setups can not boot such pools as the tools
do not support installing boot programs.

Secondly, for proper pool configuration detection, we need to checks all
four label copies on disk, 2 from front and 2 from the end of the disk,
but zfs label does not contain the size of the disk - so we depend on
firmware to report the correct disk size or use information from the
partition table.

Without partition table, we only can rely on firmware to report and support
disk IO properly.

There is a specific case: 8TB disks are reported by BIOS to have 4294967295
sectors (0x00000000ffffffff), the sectors reported by OS is 15628053168
(0x00000003a3812ab0), so the reported size is less than actual but is hitting
32-bit max. Unfortuantely the real limit must be even lower because probing
this disk in this system will wnd up with hung system.

UEFI boot of this system seems not to be affected.

Reviewed by: imp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18558
16/12/2018
4:06 am
base/head
cy
head/share/man/man4
Modificado:
head/share/man/man4/ses.4
Log:
Add a missing leading / in a filename.

MFC after: 3 days
16/12/2018
1:51 am
base/head
kib
head/share/man/man9
Modificado:
head/share/man/man9/pmap_enter.9
Log:
Document new required MI behaviour of pmap_enter(9) for CoW.

Reviewed by: markj
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D18568
15/12/2018
11:20 pm
base/head
eugen
head/usr.sbin/periodic/etc/weekly
Modificado:
head/usr.sbin/periodic/etc/weekly/340.noid
Log:
periodic/weekly/340.noid: do not use sysrc(8) that depends
on bsdinstall(8) and may be non-functional
for system built WITHOUT_BSDINSTALL. (*)

Also, add a check for jails sharing whole tree with host (path=/)
and do not skip it.

Reported by: Andre.Albsmeier@siemens.com (*)
MFC after: 1 week
15/12/2018
10:02 pm
base/head
cy
head/tools/build/mk
Modificado:
head/tools/build/mk/OptionalObsoleteFiles.inc
Log:
Repair build post-r342139
15/12/2018
9:34 pm
base/head
gnn
in head: . bin/date libexec/rc/rc.d share/man/man5
Eliminado:
head/bin/date/extern.h
head/bin/date/netdate.c
head/libexec/rc/rc.d/timed
head/tools/build/options/WITHOUT_TIMED
head/usr.sbin/timed/
Modificado:
head/ObsoleteFiles.inc
head/UPDATING
head/bin/date/Makefile
head/bin/date/Makefile.depend
head/bin/date/date.c
head/libexec/rc/rc.d/Makefile
head/share/man/man5/src.conf.5
head/tools/build/mk/OptionalObsoleteFiles.inc
head/usr.sbin/Makefile
Log:
Remove, the now very outdated, timed.

Submitted by: Kyle Spiers ksspiers at gmail
Reviewed by: bcr,brooks,bz,sbruno
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D18505
15/12/2018
7:18 pm
base/head
mckusick
head/sys/kern
Modificado:
head/sys/kern/vfs_mountroot.c
Log:
Clarify panic in set_rootvnode().
Check for panic in vfs_mountroot_shuffle().

Sponsored by: Netflix
15/12/2018
7:04 pm
base/head
mckusick
head/sys/kern
Modificado:
head/sys/kern/vfs_mount.c
Log:
Under UFS/FFS the VFS_ROOT() function will return an error if the inode
check-hash fails. Panic'ing is not an appropriate response. So, check
for an error return from VFS_ROOT() and when an error is reported,
unwind and return the error.

Reported by: Gary Jennejohn (gj)
Sponsored by: Netflix
15/12/2018
6:49 pm
base/head
mckusick
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_subr.c
Log:
Ensure that the inode check-hash is not left zeroed out in the case where
the check-hash fails. Prior to the fix in -r342133 the inode with the
zeroed out check-hash was written back to disk causing further confusion.

Reported by: Gary Jennejohn (gj)
Sponsored by: Netflix
15/12/2018
6:35 pm
base/head
mckusick
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_subr.c
head/sys/ufs/ffs/ffs_vfsops.c
Log:
Reorder ffs_verify_dinode_ckhash() so that it checks the inode check-hash
before copying in the inode so that the mode and link-count are not set
if the check-hash fails. This change ensures that the vnode will be properly
unwound and recycled rather than being held in the cache.

Initialize the file mode is zero so that if the loading of the inode
fails (for example because of a check-hash failure), the vnode will be
properly unwound and recycled.

Reported by: Gary Jennejohn (gj)
Sponsored by: Netflix
15/12/2018
5:58 pm
base/head
mckusick
head/sys/ufs/ffs
Modificado:
head/sys/ufs/ffs/ffs_subr.c
Log:
Must set ip->i_effnlink = ip->i_nlink to avoid a soft updates
"panic: softdep_update_inodeblock: bad link count" when releasing
a partially initialized vnode after an inode check-hash failure.

Reported by: Gary Jennejohn
Reported by: Peter Holm (pho)
Sponsored by: Netflix
15/12/2018
5:32 pm
base/head
mckusick
head/sbin/fsck_ffs
Modificado:
head/sbin/fsck_ffs/inode.c
Log:
Fsck would find, report, and offer to fix inode check-hash failures.
If requested to fix the inode check-hash it would confirm having done
it, but then fail to make the fix. The same code is used in fsdb which,
unlike fsck, would actually fix the inode check-hash.

The discrepancy occurred because fsck has two ways to fetch inodes.
The inode by number function ginode() and the streaming inode
function getnextinode() used during pass1. Fsdb uses the ginode()
function which correctly does the fix, while fsck first encounters
the bad inode check-hash in pass1 where it is using the getnextinode()
function that failed to make the correction. This patch corrects
the getnextinode() function so that fsck now correctly fixes inodes
with incorrect inode check-hashs.

Reported by: Gary Jennejohn
Sponsored by: Netflix
15/12/2018
5:01 pm
base/head
hiren
head/sys/netinet/cc
Modificado:
head/sys/netinet/cc/cc.h
head/sys/netinet/cc/cc_cubic.c
head/sys/netinet/cc/cc_cubic.h
Log:
Revert r331567 CC Cubic: fix underflow for cubic_cwnd()

This change is causing TCP connections using cubic to hang. Need to dig more to
find exact cause and fix it.

Reported by: tj at mrsk dot me, Matt Garber (via twitter)
Discussed with: sbruno (previously), allanjude, cperciva
MFC after: 3 days
15/12/2018
4:53 pm
base/head
se
in head: share/man/man5 tools/build/mk tools/build/options
Eliminado:
head/tools/build/options/WITHOUT_CTM
head/usr.sbin/ctm/
Modificado:
head/share/man/man5/src.conf.5
head/tools/build/mk/OptionalObsoleteFiles.inc
head/usr.sbin/Makefile
Log:
Remove CTM from 13-CURRENT after the release of FreeBSD-12.0.

The removal (and creation of a port) has been pre-announced in UPDATING
1 month ago. Packages are available for all supported FreeBSD vesions.

I did not think that another entry in UPDATING is required to note the
actual removal.

No MFC is planned - CTM shall be kept in base for all releases up to 12.x.

Reviewed by: rgrimes
Approved by: imp, bcr (manpages)
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D17935
15/12/2018
3:06 pm
base/head
brooks
in head/sys/netinet: . cc
Modificado:
head/sys/netinet/cc/cc_cdg.c
head/sys/netinet/cc/cc_chd.c
head/sys/netinet/cc/cc_dctcp.c
head/sys/netinet/cc/cc_hd.c
head/sys/netinet/cc/cc_newreno.c
head/sys/netinet/cc/cc_vegas.c
head/sys/netinet/siftr.c
Log:
Fix bugs in plugable CC algorithm and siftr sysctls.

Use the sysctl_handle_int() handler to write out the old value and read
the new value into a temporary variable. Use the temporary variable
for any checks of values rather than using the CAST_PTR_INT() macro on
req->newptr. The prior usage read directly from userspace memory if the
sysctl() was called correctly. This is unsafe and doesn't work at all on
some architectures (at least i386.)

In some cases, the code could also be tricked into reading from kernel
memory and leaking limited information about the contents or crashing
the system. This was true for CDG, newreno, and siftr on all platforms
and true for i386 in all cases. The impact of this bug is largest in
VIMAGE jails which have been configured to allow writing to these
sysctls.

Per discussion with the security officer, we will not be issuing an
advisory for this issue as root access and a non-default config are
required to be impacted.

Reviewed by: markj, bz
Discussed with: gordon (security officer)
MFC after: 3 days
Security: kernel information leak, local DoS (both require root)
Differential Revision: https://reviews.freebsd.org/D18443
15/12/2018
2:58 pm
base/head
avos
in head/sys/dev: rtwn/usb usb
Modificado:
head/sys/dev/rtwn/usb/rtwn_usb_attach.h
head/sys/dev/usb/usbdevs
Log:
Add new USB id in rtwn_usb(4) (RTL8812AU)

PR: 234029
Submitted by:
MFC after: 4 days
15/12/2018
2:08 pm
base/head
dim
in head: contrib/llvm/tools/clang/lib/Basic
Modified: head/lib/clang/include/clang/Basic/Version.inc
15/12/2018
11:36 am
base/head
trasz
head/sbin/fsck_ffs
Modificado:
head/sbin/fsck_ffs/fsutil.c
Log:
Make fsck(8) use pread(2). This cuts the number of syscalls by half.

Reviewed by: kib, mckusick
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17586
15/12/2018
11:32 am
base/head
trasz
head/sys/rpc/rpcsec_gss
Modificado:
head/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c
Log:
Add kern.rpc.gss.client_max, to make it possible to bump it easily.
This can drastically lower the load on gssd(8) on large NFS servers.

Submitted by: Per Andersson
Reviewed by: rmacklem@
MFC after: 2 weeks
Sponsored by: Chalmers University of Technology
Differential Revision: https://reviews.freebsd.org/D18393
15/12/2018
10:38 am
base/head
mmel
in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips
Modificado:
head/libexec/rtld-elf/aarch64/reloc.c
head/libexec/rtld-elf/aarch64/rtld_start.S
head/libexec/rtld-elf/amd64/reloc.c
head/libexec/rtld-elf/arm/reloc.c
head/libexec/rtld-elf/i386/reloc.c
head/libexec/rtld-elf/mips/reloc.c
head/libexec/rtld-elf/powerpc/reloc.c
head/libexec/rtld-elf/powerpc64/reloc.c
head/libexec/rtld-elf/riscv/reloc.c
head/libexec/rtld-elf/rtld.c
head/libexec/rtld-elf/rtld.h
head/libexec/rtld-elf/sparc64/reloc.c
Log:
Improve R_AARCH64_TLSDESC relocation.
The original code did not support dynamically loaded libraries and used
suboptimal access to TLS variables.
New implementation removes lazy resolving of TLS relocation - due to flaw
in TLSDESC design is impossible to switch resolver function at runtime
without expensive locking.

Due to this, 3 specialized resolvers are implemented:
- load time resolver for TLS relocation from libraries loaded with main
executable (thus with known TLS offset).
- resolver for undefined thread weak symbols.
- slower lazy resolver for dynamically loaded libraries with fast path for
already resolved symbols.

PR: 228892, 232149, 233204, 232311
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18417
15/12/2018
5:47 am
base/head
cem
head/sys/contrib/zstd/lib/compress
Modificado:
head/sys/contrib/zstd/lib/compress/zstd_compress_internal.h
head/sys/contrib/zstd/lib/compress/zstd_opt.c
Log:
Revert accidentally included changes in r342108

If you're curious, please follow along in https://reviews.freebsd.org/D18537 .

Sorry for the noise.
15/12/2018
4:53 am
base/head
jhibbits
head/sys/conf
Modificado:
head/sys/conf/files.powerpc
Log:
powerpcspe: Don't require FPU_EMU for powerpcspe IEEE emulation

Build only the necessary fpu_emu files for supporting the SPE IEEE-754
emulation exception handler.

MFC after: 1 week
15/12/2018
5:46 am
base/head
cem
in head: share/man/man9 sys/contrib/zstd/lib/compress
Modificado:
head/share/man/man9/efirt.9
head/sys/contrib/zstd/lib/compress/zstd_compress_internal.h
head/sys/contrib/zstd/lib/compress/zstd_opt.c
head/sys/dev/efidev/efirt.c
head/sys/dev/ipmi/ipmi.c
head/sys/sys/efi.h
Log:
efirt: When present, attempt to use EFI runtime services to shutdown

PR: maybe related to 233998 (inconclusive at this time)
Submitted by: byuu (previous version)
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D18506
15/12/2018
2:35 am
base/head
gonzo
head/sys/arm/mv
Modificado:
head/sys/arm/mv/mv_pci.c
Log:
[mv_pci] Do not attempt to attach disabled PCI ports

Fail probe for PCI port if the respective FDT node is not enabled

Differential Revision: https://reviews.freebsd.org/D18385
14/12/2018
11:53 pm
base/head
arichardson
head/sys/tools/fdt
Modificado:
head/sys/tools/fdt/make_dtb.sh
head/sys/tools/fdt/make_dtbo.sh
Log:
make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATH

This fixes building in CheriBSD with a strict tmp path since we don't
bootstrap a cpp but pass the full path to clang-cpp instead.

While touching this file also fix all shellcheck warnings in make_dtb.sh.

Reviewed By: manu
Differential Revision: https://reviews.freebsd.org/D18376
14/12/2018
10:22 pm
base/head
mw
head/sys/dev/tpm
Modificado:
head/sys/dev/tpm/tpm_crb.c
head/sys/dev/tpm/tpm_tis.c
Log:
Fix error check for ACPI_ID_PROBE in the TPM2.0 driver

Updated API does not return pointer, so adjust the
TPM2.0 driver accordingly.

Reported by: jhb
Obtained from: Semihalf
Sponsored by: Stormshield
14/12/2018
9:17 pm
base/head
gonzo
head/sys/dev/iicbus/twsi
Modificado:
head/sys/dev/iicbus/twsi/mv_twsi.c
head/sys/dev/iicbus/twsi/twsi.h
Log:
[twsi] Make extres/clk part conditional based on the EXT_RESOURCES option value

This should fix kernel build for ARMADA38X and possibly some other ARM configs

Approved by: manu
14/12/2018
9:16 pm
base/head
arichardson
head/lib/libnv
Modificado:
head/lib/libnv/msgio.c
Log:
Allow bootstrapping libnv on macOS and Linux

MacOS/Linux do not define struct cmsgcred but we need to bootstrap libnv
when building on non-FreeBSD systems. Since they are not used during
bootstrap we can just omit these two functions there.

Reviewed By: emaste
Differential Revision: https://reviews.freebsd.org/D18472
14/12/2018
9:07 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/trap.c
Log:
Add some more checking to the RISC-V page fault handler.

- Panic immediately if witness says we're holding non-sleepable locks.
This helps ensure that we don't recurse on the pmap lock in
pmap_fault_fixup().
- Panic if the kernel faults on a user address without setting an
onfault handler.
- Panic if the fault occurred in a critical section or interrupt
handler, like we do on other platforms.
- Fix some style issues in trap_pfault().

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18561
14/12/2018
9:04 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Avoid needless TLB invalidations in pmap_remove_pages().

pmap_remove_pages() is called during process termination, when it is
guaranteed that no other CPU may access the mappings being torn down.
In particular, it unnecessary to invalidate each mapping individually
since we do a pmap_invalidate_all() at the end of the function.

Also don't call pmap_invalidate_all() while holding a PV list lock, the
global pvh lock is sufficient.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18562
14/12/2018
9:03 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Assume that pmap_l1() will return a PTE.

pmaps on RISC-V always have an L1 page table page, so we don't need to
check for this when performing lookups.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18563
14/12/2018
9:00 pm
base/head
markj
head/sys/riscv/conf
Adicional:
head/sys/riscv/conf/QEMU (contents, props changed)
Log:
Add a QEMU config for RISC-V.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18560
14/12/2018
8:57 pm
base/head
markj
head/sys/riscv/conf
Modificado:
head/sys/riscv/conf/GENERIC
Log:
Enable witness(4) in the RISC-V GENERIC config.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18559
14/12/2018
7:48 pm
base/head
imp
head/sys/mips/include
Modificado:
head/sys/mips/include/atomic.h
Log:
atomic_cmpset return value is also an int.
14/12/2018
7:14 pm
base/head
imp
head/sys/mips/include
Modificado:
head/sys/mips/include/atomic.h
Log:
atomic_fcmpset* return int, not the type of *.

fcmpset returns true/false as a int, so make the return types and
variables match the int to be consistent with other arch.

Reviewed by: cognet@
Differential Revision: https://reviews.freebsd.org/D18557
14/12/2018
6:50 pm
base/head
markj
head/sys/riscv/riscv
Modificado:
head/sys/riscv/riscv/pmap.c
Log:
Clean up the riscv pmap_bootstrap() implementation.

- Build up phys_avail[] in a single loop, excluding memory used by
the loaded kernel.
- Fix an array indexing bug in the aforementioned phys_avail[]
initialization.[1]
- Remove some unneeded code copied from the arm64 implementation.

PR: 231515 [1]
Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18464
14/12/2018
6:39 pm
base/head
manu
head/sys/arm/allwinner
Modificado:
head/sys/arm/allwinner/aw_pwm.c
Log:
allwinner: aw_pwm: Read value at attach

The booloaded might have configured the pwm controller so read the values.
14/12/2018
6:38 pm
base/head
manu
head/usr.sbin/pwm
Modificado:
head/usr.sbin/pwm/pwm.8
head/usr.sbin/pwm/pwm.c
Log:
pwm(8): Add percentage value support for duty cycle
14/12/2018
6:37 pm
base/head
manu
in head: sys/arm/allwinner sys/dev/pwm sys/sys usr.sbin/pwm
Modificado:
head/sys/arm/allwinner/aw_pwm.c
head/sys/dev/pwm/pwm_if.m
head/sys/dev/pwm/pwmbus.c
head/sys/dev/pwm/pwmbus_if.m
head/sys/sys/pwm.h
head/usr.sbin/pwm/pwm.c
Log:
pwm: Convert period and duty to unsigned int

We don't need a 64 bits value to store nanoseconds

Discused with: ian, jhibbits
14/12/2018
6:16 pm
base/head
markj
head/sys/dev/nfe
Modificado:
head/sys/dev/nfe/if_nfe.c
head/sys/dev/nfe/if_nfereg.h
Log:
Add support for the nForce MCP89 adapter.

PR: 234015
Submitted by: Andrejs Bogdanovs
MFC after: 1 week
14/12/2018
5:43 pm
base/head
mw
head/sys/dev/tpm
Modificado:
head/sys/dev/tpm/tpm_crb.c
head/sys/dev/tpm/tpm_tis.c
Log:
Fix TPM driver compilation from r342084

Include recent ACPI_ID_PROBE API change.
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/c