SVNews

NOTE: This service is experimental and subject to change! Use at your own risk!

Year:   Month: - or - Filter committers: - or -
Filter paths:
Include diffs if smaller than lines.

2017 - 05 - 24   (today)
01:06:09 - r318770
(1 hour 3 minutes ago)
by jhb
Affects: 
(2 files)
/stable/11/lib/libsysdecode/sysdecode_ioctlname.3
MFC 315310: Spell "const" properly.

PR: 217797
01:03:30 - r318769
(1 hour 5 minutes ago)
by kevlo
Affects:  /head/share/man/man9/Makefile
Add missing MLINKS for functions decribed in iflibdd(9), iflibdi(9), and
iflibtxrx(9).
01:02:35 - r318768
(1 hour 6 minutes ago)
by adrian
Affects:  /head/sys/dev/ath/if_ath_ahb.c
[ath] begin migration of AHB support to use the PCI style board data API for
calibration data.

This brings the AHB support in line with the PCI support - now other "things"
can wrap up the calibration / board data into a firmware blob and have them
probe/attach after the system has finished booting.

Note that this change requires /all/ of the AHB using kernel configurations
to change - so until I drop those changes in, this breaks AHB.

Fear not, I'll do that soon.

TODO:

* the above stuff.

Tested:

* AR9331, carambola 2, loading if_ath / wlan as modules at run time
01:01:57 - r318767
(1 hour 7 minutes ago)
by allanjude
Affects:  /head/sys/compat/freebsd32/freebsd32_sysent.c
/head/sys/kern/init_sysent.c
Followup to r318765 (capsicumize cpuset_*affinity)

Update *sysent files
01:01:43 - r318766
(1 hour 7 minutes ago)
by kevlo
Affects:  /head/share/man/man9/iflibdi.9
Remove duplicate definition of iflib_led_create().
00:58:30 - r318765
(1 hour 10 minutes ago)
by allanjude
Affects: 
(5 files)
/head/lib/libc/sys/cpuset_getaffinity.2
/head/share/man/man4/capsicum.4
/head/sys/*
Allow cpuset_{get,set}affinity in capabilities mode

bhyve was recently sandboxed with capsicum, and needs to be able to
control the CPU sets of its vcpu threads

Reviewed by: emaste, oshogbo, rwatson
MFC after: 2 weeks
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D10170
00:36:27 - r318764
(1 hour 32 minutes ago)
by jhb
Affects: 
(2 files)
/stable/11/lib/libsysdecode/flags.c
MFC 315283:
Fix sysdecode_cap_rights which currently prints bogus capability rights.

PR: 217787
00:00:55 - r318763
(2 hours 8 minutes ago)
by jhb
Affects: 
(4 files)
/stable/11/sys/amd64/conf/GENERIC
/stable/11/sys/amd64/conf/MINIMAL
/stable/11/sys/i386/conf/GENERIC
MFC 310177: Enable EARLY_AP_STARTUP on amd64 and i386 kernels by default.

PR: 199321, 203682
Discussed with: re (kib)
Relnotes: yes
2017 - 05 - 23   (yesterday)
23:40:17 - r318762
(2 hours 28 minutes ago)
by np
Affects: 
(14 files)
/head/sys/conf/files
/head/sys/dev/cxgbe/firmware/*
/head/sys/modules/cxgbe/*
cxgbe(4): Update the T4, T5, and T6 firmwares to 1.16.45.0.

The latest firmware has a number of link related fixes, support for a
new custom card, and the fix for a bug that affected rate limiting on
FreeBSD.

Obtained from: Chelsio Communications
MFC after: 1 week
Sponsored by: Chelsio Communications
22:34:18 - r318761
(3 hours 34 minutes ago)
by jhb
Affects:  /head/sys/i386/i386/machdep.c
/head/sys/x86/include/segments.h
Remove the BSD/OS 2.1 system call gate LDT entry.

An extra copy of the system call gate was added to the default LDT back
in 1996 (r18513 / r18514). However, the ability to run BSD/OS 2.1
i386 binaries under FreeBSD's native ABI is most likely no longer
needed.

Discussed with: kib
22:30:15 - r318760
(3 hours 38 minutes ago)
by landonf
Affects:  /head/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c
/head/sys/dev/bhnd/nvram/bhnd_sprom.c
bhnd(4): Fix a SPROM identification regression introduced in r315866

In r315866, we introduced a direct read of the 8-bit sromrev field from the
memory mapped SPROM/OTP device. On OTP devices that require 16-bit access
alignment, this read fails, preventing identification of the SPROM layout.

So, let's perform an aligned read of the combined 16-bit sromrev/crc field
instead.

Approved by: adrian (mentor, implicit)
22:11:45 - r318759
(3 hours 57 minutes ago)
by brd
Affects: 
(2 files)
/stable/11/usr.bin/sed/sed.1
MFC r316030, r317378: Add some useful examples to the sed man page.

Reviewed by: wblock, bcr
Differential Revision: https://reviews.freebsd.org/D9958
20:51:48 - r318758
(5 hours 17 minutes ago)
by emaste
Affects:  /head/UPDATING
UPDATING: ino64 upgrade should include COMPAT_FREEBSD11

The upgrade process requires COMPAT_FREEBSD11 to support the combination
of "old" userland and "new" kernel that exists after "make kernel" and
reboot. Mention this explicitly for those using custom kernel configs.
Once the "new" world is installed the COMPAT_FREEBSD11 could be removed
again, but that does not seem necessary to mention in UPDATING.

Reported by: kib
Sponsored by: The FreeBSD Foundation
20:25:49 - r318757
(5 hours 43 minutes ago)
by emaste
Affects:  /head/UPDATING
Add note to UPDATING for ino64 to follow the standard upgrade process

The existing upgrade process documented in UPDATING is both necessary
and sufficient for upgrading across the ino64 change. However, the
shortcut of installing both kernel + world before a single reboot has
been possible for quite some time, and several developers and users
were surprised by fallout from ino64. Add an explicit entry pointing
out that the full process must be followed.

Reviewed by: allanjude, gjb, vangyzen
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10877
19:45:31 - r318756
(6 hours 23 minutes ago)
by ngie
Affects:  /stable/10/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
:raw no longer SIGSEGVs on FreeBSD; revert the signal expectation

This is a direct commit to ^/stable/10, since this expectation was only
added to ^/stable/10's copy of t_raw.c.

PR: 216954
Sponsored by: Dell EMC Isilon
19:03:07 - r318755
(7 hours 6 minutes ago)
by lidl
Affects: 
(5 files)
/head/contrib/blacklist/bin/blacklistd.c
/head/contrib/blacklist/include/*
/head/contrib/blacklist/lib/*
Extend libblacklist support with new action types

The original blacklist library supported two notification types:
 - failed auth attempt, which incremented the failed login count
  by one for the remote address
 - successful auth attempt, which reset the failed login count
  to zero for that remote address

When the failed login count reached the limit in the configuration
file, the remote address would be blocked by a packet filter.

This patch implements a new notification type, "abusive behavior",
and accepts, but does not act on an additional type, "bad username".
It is envisioned that a system administrator will configure a small
list of "known bad usernames" that should be blocked immediately.

Reviewed by: emaste
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10604
17:41:09 - r318754
(8 hours 28 minutes ago)
by jhb
Affects:  /head/sys/boot/mips/beri/boot2/Makefile
Pass -N directly to ld via -Wl rather than passing it to the compiler driver.

In particular, clang doesn't accept -N.

Obtained from: CheriBSD
Sponsored by: DARPA / AFRL
17:34:10 - r318753
(8 hours 35 minutes ago)
by ngie
Affects:  /head/lib/libc/gen/directory.3
directory(3): add trailing comma after e.g., missed in r318699

Submitted by: bjk
MFC after: 2 weeks
MFC with: r318699
Sponsored by: Dell EMC Isilon
17:00:56 - r318752
(9 hours 8 minutes ago)
by mav
Affects: 
(6 files)
/stable/11/sbin/geom/class/mirror/*
/stable/11/sys/geom/mirror/*
MFC r309321:
Add `gmirror create` subcommand, alike to gstripe, gconcat, etc.

It is quite specific mode of operation without storing on-disk metadata.
It can be useful in some cases in combination with some external control
tools handling mirror creation and disks hot-plug.

Sponsored by: iXsystems, Inc.
16:59:24 - r318751
(9 hours 9 minutes ago)
by swills
Affects:  /head/sys/kern/kern_prot.c
/head/sys/sys/proc.h
Add security.bsd.see_jail_proc

Add security.bsd.see_jail_proc sysctl to hide jail processes from non-root
users

Reviewed by: jamie
Approved by: allanjude
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D10770
16:38:10 - r318750
(9 hours 31 minutes ago)
by pfg
Affects: 
(6 files)
/head/contrib/binutils/*
/head/contrib/gcc/*
Bring some rough support for FreeBSD S/390 to the GNU toolchain.

This is no-op and only for reference: the S/390 port seems to be elusive
in the BSDs so it is convenient to keep some trace from past efforts.
It is likely newer attempts will focus on a newer toolchain using clang
instead.

Obtained from: Perforce depot/projects/s390
16:12:50 - r318749
(9 hours 56 minutes ago)
by vangyzen
Affects: 
(8 files)
/head/include/stdio.h
/head/lib/libc/include/libc_private.h
/head/lib/libthr/thread/*
libthr: fix warnings from GCC when WARNS=6

Fix warnings about:
- redundant declarations
- a local variable shadowing a global function (dlinfo)
- an old-style function definition (with an empty parameter list)
- a variable that is possibly used uninitialized

"make tinderbox" passes this time, except for a few unrelated
kernel failures.

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10870
15:46:21 - r318748
(10 hours 22 minutes ago)
by gjb
Affects:  /head/tools/build/mk/OptionalObsoleteFiles.inc
Honor WITHOUT_TFTP for check-old* and delete-old* targets.

Submitted by: philippe dot michel7 at sfr dot fr
PR: 217949
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
15:04:29 - r318747
(11 hours 4 minutes ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Move the SA entry to the tcpmd5 module addition.

Submitted by: ae
Sponsored by: The FreeBSD Foundation
14:54:58 - r318746
(11 hours 14 minutes ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document the requirement for two SA entries, following the IPSEC
overhaul.

Submitted by: vangyzen
Sponsored by: The FreeBSD Foundation
14:38:59 - r318745
(11 hours 30 minutes ago)
by cy
Affects:  /head/sys/contrib/ipfilter/netinet/ip_nat.c
Remove redundant variable declaration.

MFC after: 3 days
13:57:55 - r318744
(12 hours 11 minutes ago)
by kib
Affects:  /head/sys/arm64/conf/GENERIC
Add COMPAT_FREEBSD11 on arm64, the arch is almost tier-1.

Discussed with: andrew, emaste
Sponsored by: The FreeBSD Foundation
12:40:50 - r318743
(13 hours 28 minutes ago)
by badger
Affects:  /stable/10/sys/sys/proc.h
/stable/11/sys/kern/kern_thread.c
/stable/11/sys/sys/proc.h
move p_sigqueue to the end of struct proc

In order to preserve KBI in stable branches, replace the existing
p_sigqueue slot with padding and move the expanded (as of r315949)
p_sigqueue to the end of the struct.

This is a repeat of r317529 (which concerned td_sigqueue in struct
thread) for p_sigqueue in struct proc.

Virtualbox modules (and possibly others) are affected without this fix.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D10843
12:03:59 - r318742
(14 hours 5 minutes ago)
by mmel
Affects: 
(3 files)
/stable/11/sys/arm/arm/pmap-v6.c
/stable/11/sys/arm/include/pmap-v6.h
MFC r318021,r318251:

  r318021:
  Introduce pmap_remap_vm_attr(), it allows to remap one VM memattr class to
  another.
  r318251:
  Clarify usage rules for pmap_remap_vm_attr(). Not a functional change.
12:00:08 - r318741
(14 hours 9 minutes ago)
by trasz
Affects:  /head/sys/mips/mips/busdma_machdep.c
Remove superfluous parentheses.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
11:08:36 - r318740
(15 hours ago)
by trasz
Affects:  /head/share/examples/Makefile
Remove unneccessary call to mtree, which, when building as an unprivileged
user (with -DNO_ROOT), resulted in warnings looking like these:

share/man/cat8:
  user (9, 3819, not modified: Operation not permitted)
  permissions (0755, 0700, modified)

The BSD.usr.mk is already taken care of in etc/Makefile.

Submitted by: Alex Richardson <alr48@cl.cam.ac.uk>
Reviewed by: bdrewery
MFC after: 1 month
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D9212
10:00:52 - r318739
(16 hours 8 minutes ago)
by kib
Affects:  /head/libexec/rtld-elf/rtld.c
For ld.so direct execution mode, implement -p option: search for the
binary in $PATH.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D10790
09:32:26 - r318738
(16 hours 36 minutes ago)
by ae
Affects: 
(4 files)
/head/sys/netipsec/*
Fix possible double releasing for SA and SP references.

There are two possible ways how crypto callback are called: directly from
caller and deffered from crypto thread.

For outbound packets the direct call chain is the following:
 IPSEC_OUTPUT() method -> ipsec[46]_common_output() ->
 -> ipsec[46]_perform_request() -> xform_output() ->
 -> crypto_dispatch() -> crypto_invoke() -> crypto_done() ->
 -> xform_output_cb() -> ipsec_process_done() -> ip[6]_output().

The SA and SP references are held while crypto processing is not finished.
The error handling code wrongly expected that crypto callback always called
from the crypto thread context, and it did references releasing in
xform_output_cb(). But when the crypto callback called directly, in case of
error the error handling code in ipsec[46]_perform_request() also did
references releasing.

To fix this, remove error handling from ipsec[46]_perform_request() and do it
in xform_output() before crypto_dispatch().

MFC after: 10 days
09:30:42 - r318737
(16 hours 38 minutes ago)
by kib
Affects: 
(11 files)
/head/sys/compat/freebsd32/*
/head/sys/kern/*
/head/sys/sys/*
Regen.
09:29:05 - r318736
(16 hours 40 minutes ago)
by kib
Affects: 
(97 files)
/head/*
Commit the 64-bit inode project.

Extend the ino_t, dev_t, nlink_t types to 64-bit ints. Modify
struct dirent layout to add d_off, increase the size of d_fileno
to 64-bits, increase the size of d_namlen to 16-bits, and change
the required alignment. Increase struct statfs f_mntfromname[] and
f_mntonname[] array length MNAMELEN to 1024.

ABI breakage is mitigated by providing compatibility using versioned
symbols, ingenious use of the existing padding in structures, and
by employing other tricks. Unfortunately, not everything can be
fixed, especially outside the base system. For instance, third-party
APIs which pass struct stat around are broken in backward and
forward incompatible ways.

Kinfo sysctl MIBs ABI is changed in backward-compatible way, but
there is no general mechanism to handle other sysctl MIBS which
return structures where the layout has changed. It was considered
that the breakage is either in the management interfaces, where we
usually allow ABI slip, or is not important.

Struct xvnode changed layout, no compat shims are provided.

For struct xtty, dev_t tty device member was reduced to uint32_t.
It was decided that keeping ABI compat in this case is more useful
than reporting 64-bit dev_t, for the sake of pstat.

Update note: strictly follow the instructions in UPDATING. Build
and install the new kernel with COMPAT_FREEBSD11 option enabled,
then reboot, and only then install new world.

Credits: The 64-bit inode project, also known as ino64, started life
many years ago as a project by Gleb Kurtsou (gleb). Kirk McKusick
(mckusick) then picked up and updated the patch, and acted as a
flag-waver. Feedback, suggestions, and discussions were carried
by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles),
and Rick Macklem (rmacklem). Kris Moore (kris) performed an initial
ports investigation followed by an exp-run by Antoine Brodin (antoine).
Essential and all-embracing testing was done by Peter Holm (pho).
The heavy lifting of coordinating all these efforts and bringing the
project to completion were done by Konstantin Belousov (kib).

Sponsored by: The FreeBSD Foundation (emaste, kib)
Differential revision: https://reviews.freebsd.org/D10439
09:20:31 - r318735
(16 hours 48 minutes ago)
by n_hibma
Affects:  /stable/11
Commit the mergeinfo for the commit to sbin/dhclient.
09:01:48 - r318734
(17 hours 7 minutes ago)
by ae
Affects: 
(4 files)
/head/sys/netipsec/*
Fix possible double releasing for SA reference.

There are two possible ways how crypto callback are called: directly from
caller and deffered from crypto thread.

For inbound packets the direct call chain is the following:
 IPSEC_INPUT() method -> ipsec_common_input() -> xform_input() ->
 -> crypto_dispatch() -> crypto_invoke() -> crypto_done() ->
 -> xform_input_cb() -> ipsec[46]_common_input_cb() -> netisr_queue().

The SA reference is held while crypto processing is not finished.
The error handling code wrongly expected that crypto callback always called
from the crypto thread context, and it did SA reference releasing in
xform_input_cb(). But when the crypto callback called directly, in case of
error (e.g. data authentification failed) the error handling in
ipsec_common_input() also did SA reference releasing.

To fix this, remove error handling from ipsec_common_input() and do it
in xform_input() before crypto_dispatch().

PR: 219356
MFC after: 10 days
08:11:55 - r318733
(17 hours 57 minutes ago)
by trasz
Affects: 
(2 files)
/stable/11/bin/stty/stty.1
MFC r317904:

.Xr resizewin from stty(1) man page.
08:10:35 - r318732
(17 hours 58 minutes ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.1
MFC r318481:

Language fixes.
08:09:44 - r318731
(17 hours 59 minutes ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.1
MFC r318138:

Revert to pre-r318116 wording to not give the false impression
that setting the kernels' idea of terminal size is somehow an
alternative to environment variables.
08:09:04 - r318730
(18 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.1
MFC r318116:

Random updates to resizewin(1) man page.
08:08:23 - r318729
(18 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.c
MFC r317935:

Sort variable declarations; no functional changes.
08:07:39 - r318728
(18 hours 1 minute ago)
by trasz
Affects: 
(3 files)
/stable/11/usr.bin/resizewin/resizewin.1
/stable/11/usr.bin/resizewin/resizewin.c
MFC rr317934:

Add resizewin -z. It makes resizewin not do anything if the terminal
size is already set to something other than zero. It's supposed to be
called from eg /etc/profile - it's not neccessary to query terminal
size when logging in over the network, because the protocol used already
takes care of this, but it's neccessary when logging over a serial line.
08:06:00 - r318727
(18 hours 3 minutes ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.c
MFC r317933:

Use tcflush(3) instead of (nonstandard) TIOCFLUSH.
08:04:36 - r318726
(18 hours 4 minutes ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.c
MFC r317909:

Make resizewin(1) discard the terminal queues, to lower the chance
for "unable to parse response" error which happens when youre typing
too fast for the machine you're running it on.
08:02:21 - r318725
(18 hours 6 minutes ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.c
MFC r317905:

Rename a variable, hopefully fixing build after r317901.
08:01:24 - r318724
(18 hours 7 minutes ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/resizewin/resizewin.c
MFC r317901:

Improve error reporting in resizewin(1).
08:01:11 - r318723
(18 hours 8 minutes ago)
by ngie
Affects:  /head/usr.sbin/bsdinstall/bsdinstall.8
bsdinstall(8): fix manpage issues

- Start new sentences on new lines.
- Separate e.g. (more of an igor thing) with commas, and rewrite some examples
  not to be enclosed in parentheses.

Reported by: igor, make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:50:42 - r318722
(18 hours 18 minutes ago)
by ngie
Affects:  /head/usr.sbin/bsdinstall/partedit/sade.8
sade(8): start new sentence on new line

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:46:10 - r318721
(18 hours 23 minutes ago)
by ngie
Affects:  /head/lib/libc/sys/kill.2
kill(2): add missing section for sysctl(9)

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:45:29 - r318720
(18 hours 23 minutes ago)
by ngie
Affects:  /head/lib/libc/sys/ptrace.2
ptrace(2): clean up trailing whitespace

Reviewed by: make manlint
MFC after: 2 weeks
07:44:43 - r318719
(18 hours 24 minutes ago)
by ngie
Affects:  /head/lib/libc/sys/open.2
open(2): fix manlint warnings

- Sort SEE ALSO .Xr entries.
- Sort sections (HISTORY comes after STANDARDS).

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:32:57 - r318718
(18 hours 36 minutes ago)
by ngie
Affects:  /head/lib/libc/sys/rctl_add_rule.2
rctl_add_rule(2): fix manlint warnings

- Fix commas (either missing or misused) after .Nm entries in SYNOPSIS

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:31:03 - r318717
(18 hours 38 minutes ago)
by ngie
Affects:  /head/lib/libc/sys/cap_enter.2
cap_enter(2): fix manlint issues

- Sort SEE ALSO section appropriately.
- Correct section for sysctl(9).

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:27:30 - r318716
(18 hours 41 minutes ago)
by markj
Affects: 
(32 files)
/stable/11/sys/*
/stable/11/usr.bin/*
MFC r308474, r308691, r309203, r309365, r309703, r309898, r310720,
r308489, r308706:
Add PQ_LAUNDRY and remove PG_CACHED pages.
07:26:45 - r318715
(18 hours 42 minutes ago)
by ngie
Affects:  /head/lib/libc/sys/_umtx_op.2
_umtx_op(2): fix minor manlint issues

- Sort .Xr entries in SEE ALSO section.
- Sort SEE ALSO and STANDARDS sections properly, in terms of the
  entire document.

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:21:26 - r318714
(18 hours 47 minutes ago)
by mmel
Affects: 
(4 files)
/stable/11/contrib/gcc/config/arm/libgcc-bpabi.ver
/stable/11/contrib/gcc/config/arm/libunwind-arm.S
/stable/11/contrib/gcc/libgcc-std.ver
MFC r318024,r318025:

  r318024:
  Fix _Unwind_Backtrace symbol version for ARM.
  r318025:
  Revert accidentally changed std.armv6 in r318024.
07:20:29 - r318713
(18 hours 48 minutes ago)
by markj
Affects:  /head/usr.bin/vmstat/vmstat.c
Let vmstat -o recognize OBJT_MGTDEVICE objects.

MFC after: 1 week
07:17:52 - r318712
(18 hours 51 minutes ago)
by ngie
Affects:  /head/lib/libc/xdr/xdr.3
xdr(3): add missing comma after xdr_sizeof(3) in SYNOPSIS

This unbreaks the .Nm declaration

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:15:57 - r318711
(18 hours 53 minutes ago)
by ngie
Affects:  /head/lib/libc/stdio/fopencookie.3
fopencookie(3): declare function pointers in SYNOPSIS correctly

Add obligatory `*` in declarations.

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:14:46 - r318710
(18 hours 54 minutes ago)
by ngie
Affects:  /head/lib/libc/stdlib/quick_exit.3
quick_exit(3): delete trailing whitespace in licensing tort

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:12:31 - r318709
(18 hours 56 minutes ago)
by ngie
Affects:  /head/lib/libc/posix1e/acl_to_text.3
acl_to_text(3): start sentences on new lines

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:11:15 - r318708
(18 hours 57 minutes ago)
by ngie
Affects:  /head/lib/libc/posix1e/acl_create_entry.3
acl_create_entry(3): separate .Nm entries with commas in SYNOPSIS

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:10:20 - r318707
(18 hours 58 minutes ago)
by ngie
Affects:  /head/lib/libc/net/sctp_send.3
sctp_send(3): start sentences on new lines

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:09:26 - r318706
(18 hours 59 minutes ago)
by ngie
Affects:  /head/lib/libc/locale/localeconv.3
localeconv(3): start sentences on new lines

Reported by: make manlint
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:08:30 - r318705
(19 hours ago)
by ngie
Affects:  /head/lib/libc/stdio/fopen.3
fopen(3): make manlint fixes

- Break on new lines.
- Use .Dv with NULL.
- Rewrap lines as necessary/when possible.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:05:34 - r318704
(19 hours 3 minutes ago)
by ngie
Affects:  /head/lib/libc/posix1e/posix1e.3
posix1e(3): reference using the section (3) when referencing libbsm with .Xr

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
07:02:01 - r318703
(19 hours 7 minutes ago)
by ngie
Affects:  /head/lib/libc/iconv/__iconv_get_list.3
__iconv_get_list: separate .Nm entries with commas

MFC after: 2 weeks
Reported by: make manlint
Sponsored by: Dell EMC Isilon
07:00:46 - r318702
(19 hours 8 minutes ago)
by ngie
Affects:  /head/contrib/libc-vis/vis.3
vis(3): delete spurious .Pp macro

MFC after: 2 weeks
Reported by: make manlint
Sponsored by: Dell EMC Isilon
06:58:08 - r318701
(19 hours 11 minutes ago)
by ngie
Affects:  /head/lib/libc/gen/tcsendbreak.3
tcsendbreak(3): delete spurious blank line at the end of the man page

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
06:56:57 - r318700
(19 hours 12 minutes ago)
by ngie
Affects:  /head/lib/libc/gen/dirname.3
dirname(3): fix section ordering

IMPLEMENTATION NOTES come before RETURN VALUES

MFC after: 2 weeks
Reported by: make manlint
Sponsored by: Dell EMC Isilon
06:55:51 - r318699
(19 hours 13 minutes ago)
by ngie
Affects:  /head/lib/libc/gen/directory.3
directory(3): delete trailing whitespace and rewrite `E.g.` as `e.g.`

Reported by: make manlint
Sponsored by: Dell EMC Isilon
06:53:31 - r318698
(19 hours 15 minutes ago)
by ngie
Affects:  /head/lib/libc/gen/basename.3
basename(3): fix section ordering

IMPLEMENTATION NOTES come before RETURN VALUES

MFC after: 2 weeks
Reported by: make manlint
Sponsored by: Dell EMC Isilon
06:20:24 - r318697
(19 hours 48 minutes ago)
by adrian
Affects:  /head/sys/mips/atheros/ar71xx_fixup.c
[ar71xx] remove dead code!
06:20:06 - r318696
(19 hours 49 minutes ago)
by adrian
Affects:  /head/sys/mips/atheros/ar71xx_caldata.c
/head/sys/mips/atheros/files.ar71xx
[ar71xx] add a very simple early boot driver called "caldata" to commit
cross-layer atrocities.

The (eventually) upcoming ath(4) changes will include being able to load
ath(4) devices on the AHB bus (ie the on-die wifi part of the SoC)
as modules.

In order for this to happen, a copy of the calibration data needs to be
copied away before the SPI driver runs or the memory map access hack
won't work.

Now, ideally (!) there'd be some driver that can come up after the MTD
pieces (eg, SPI, NAND, etc) and load into a firmware chunk the calibration
data.

(Or, really really nicely, would be an actual async firmware API that
would lead itself to having a driver schedule a file read - or a raw device
read - to get to the calibration data.)

Now, until all of the above is done - I'm going to perpetuate the layer
breaking atrocity here by simply doing the PCI bus fixup EEPROM/calibration
data hack here. This will work for any AR71xx (and later on, AR231x/AR531x)
device, as well as the handful of QCA MIPS + QCA9880v2 802.11ac boards with
NOR flash.

To use, this goes into the kernel config:

# Enable EEPROM hacks
options AR71XX_ATH_EEPROM
device ar71xx_caldata
device firmware

# This enables the ath_ahb driver (when I commit the change!) to
# pull data out of the firmware hack.
options ATH_EEPROM_FIRMWARE

In the hints file:

# ART calibration data mapping device
hint.ar71xx_caldata.0.at="nexus0"
hint.ar71xx_caldata.0.order=0

# Where the ART is - last 64k in the first 8MB of flash
hint.ar71xx_caldata.0.map.0.ath_fixup_addr=0x1fff0000
hint.ar71xx_caldata.0.map.0.ath_fixup_size=16384

# And now tell the ath(4) driver where to look!
hint.ath.0.eeprom_firmware="ar71xx_caldata.0.map.0.eeprom_firmware"

Tested:

* carambola2, AR933x SoC, using a set of ath and ath_hal modules to load

TODO:

* unify this bit of firmware loading code, as I will definitely need
  to include both the PCI bus firmware version (for PCI ID fixups too!)
  as well as AHB/on-chip calibration data.

* Commit the ath_ahb bus code

* Convert .. everything over. That'll take the majority of the time.
06:14:02 - r318695
(19 hours 55 minutes ago)
by ngie
Affects:  /head/lib/libc/gen/err.c
err(3): use `NULL`, aka `(void*)0` per POSIX instead of `(FILE *)0`

This is being done to aid humans and static analysis checkers.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
06:05:54 - r318694
(20 hours 3 minutes ago)
by ngie
Affects:  /head/usr.sbin/bsdinstall/partedit/part_wizard.c
style(9): sort headers

MFC after: 2 weeks
MFC with: r318693
Sponsored by: Dell EMC Isilon
06:04:38 - r318693
(20 hours 4 minutes ago)
by ngie
Affects:  /head/usr.sbin/bsdinstall/partedit/part_wizard.c
Some minor style(9) fixes

- Wrap at <80 columns.
- Sort by type

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
04:14:34 - r318692
(21 hours 54 minutes ago)
by markj
Affects: 
(6 files)
/user/markj/PQ_LAUNDRY_11/usr.bin/systat/*
/user/markj/PQ_LAUNDRY_11/usr.bin/top/*
/user/markj/PQ_LAUNDRY_11/usr.bin/vmstat/vmstat.c
MFC r308489, r308706:
Add the laundry page count to the displays of systat, top, and vmstat.
04:10:36 - r318691
(21 hours 58 minutes ago)
by markj
Affects: 
(124 files)
/user/markj/PQ_LAUNDRY_11/*
Merge from stable/11 at r318690.
03:48:42 - r318690
(22 hours 20 minutes ago)
by adrian
Affects:  /head/sys/dev/etherswitch/arswitch/arswitch_phy.c
[arswitch] add phy debugging to the internal PHY read/write functions.
00:13:27 - r318689
(1 day 1 hour ago)
by mav
Affects:  /head/sys/net/if_vlan.c
Add parent interface reference counting to if_vlan.

Using plain ifunit() looks like a request for troubles.

MFC after: 1 week
2017 - 05 - 22   (2 days ago)
23:31:28 - r318688
(1 day 2 hours ago)
by rpokala
Affects:  /head/sys/sys/ata.h
"struct ata_params" field "reserved206[2]" actually starts at offset 20*7*.

MFC after: 1 week
Sponsored by: Panasas
23:21:24 - r318687
(1 day 2 hours ago)
by markj
Affects:  /head/lib/libproc/proc_sym.c
Ensure that the mappings table is populated in proc_objname().

MFC after: 1 week
Sponsored by: Dell EMC Isilon
23:17:55 - r318686
(1 day 2 hours ago)
by pfg
Affects:  /head/include/ndbm.h
ndbm.h: Add a comment pointing out our non-compliance with POSIX.

Changing it to full conformance breaks the ABI.

Reference:
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/ndbm.h.html

Discussion at: https://reviews.freebsd.org/D10544
22:10:02 - r318685
(1 day 3 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/10/sys/fs/nfsclient/nfs_clcomsubs.c
MFC: r318287
Make nfscl_mtofh() return ENXIO when *nfhpp == NULL.

r317272 introduced a case where nfscl_mtofh() could return 0 when
*nfhpp is NULL. This patch makes it return ENXIO for this case.
22:02:06 - r318684
(1 day 4 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/11/sys/fs/nfsclient/nfs_clcomsubs.c
MFC: r318287
Make nfscl_mtofh() return ENXIO when *nfhpp == NULL.

r317272 introduced a case where nfscl_mtofh() could return 0 when
*nfhpp is NULL. This patch makes it return ENXIO for this case.
21:52:06 - r318683
(1 day 4 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/10/sbin/mount_nfs/mount_nfs.c
MFC: r317931
Fix mount_nfs so that it doesn't create mounttab entries for NFSv4 mounts.

The NFSv4 protocol doesn't use the Mount protocol, so it doesn't make sense
to add an entry for an NFSv4 mount to /var/db/mounttab. Also, r308871
modified umount so that it doesn't remove any entry created by mount_nfs.
21:41:34 - r318682
(1 day 4 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/11/sbin/mount_nfs/mount_nfs.c
MFC: r317931
Fix mount_nfs so that it doesn't create mounttab entries for NFSv4 mounts.

The NFSv4 protocol doesn't use the Mount protocol, so it doesn't make sense
to add an entry for an NFSv4 mount to /var/db/mounttab. Also, r308871
modified umount so that it doesn't remove any entry created by mount_nfs.
21:17:44 - r318681
(1 day 4 hours ago)
by dim
Affects: 
(419 files)
/projects/clang500-import/contrib/*
/projects/clang500-import/lib/clang/*
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r303571, and update
build glue.
20:34:51 - r318680
(1 day 5 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/proc/tst.exitcore.c
/head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/proc/tst.exitcore.ksh
/head/cddl/usr.sbin/dtrace/tests/common/proc/Makefile
Add a little helper program for tst.exitcore.ksh.

sleep(1) is capsicumized, which means that we cannot rely on it to dump
core as required by the test.

MFC after: 1 week
Sponsored by: Dell EMC Isilon
20:27:29 - r318679
(1 day 5 hours ago)
by slm
Affects:  /head/sys/dev/mpr/mpr_sas.c
Fix powerpc compiler error.

Approved by: ken
20:11:40 - r318678
(1 day 5 hours ago)
by oshogbo
Affects:  /head/sys/boot/common/dev_net.c
Replacing iterating over rootpath by strsep(3).

Submitted by: kczekirda
Reviewed by: tsoome, bapt, jhb, oshogbo
MFC after: 3 weeks
Sponsored by: Oktawave
Differential Revision: https://reviews.freebsd.org/D10726
20:00:01 - r318677
(1 day 6 hours ago)
by glebius
Affects: 
(4 files)
/head/sys/compat/ndis/*
/head/sys/dev/if_ndis/*
Fix regression in ndis(4) after r286410. This adds a bunch of checks for
whether this is a Ethernet or 802.11 device and does proper dereferencing.

PR: 213237
Submitted by: <ota j.email.ne.jp>
MFC after: 2 weeks
19:57:28 - r318676
(1 day 6 hours ago)
by davidcs
Affects:  /head/sys/dev/qlnx/qlnxe/qlnx_os.c
Check for IPV6 TCP/UDP CSUM offload in pkt header during transmits.

Submitted by:Shminderjit.Singh@cavium.com
19:57:20 - r318675
(1 day 6 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/10/sys/rpc/clnt_vc.c
MFC: r317906
Fix the client side krpc from doing TCP reconnects for ERESTART from sosend().

When sosend() replies ERESTART in the client side krpc, it indicates that
the RPC message hasn't yet been sent and that the send queue is full or
locked while a signal is posted for the process.
Without this patch, this would result in a RPC_CANTSEND reply from
clnt_vc_call(), which would cause clnt_reconnect_call() to create a new
TCP transport connection. For most NFS servers, this wasn't a serious problem,
although it did imply retries of outstanding RPCs, which could possibly
have missed the DRC.
For an NFSv4.1 mount to AmazonEFS, this caused a serious problem, since
AmazonEFS often didn't retain the NFSv4.1 session and would reply with
NFS4ERR_BAD_SESSION. This implies to the client a crash/reboot which
requires open/lock state recovery.

Three options were considered to fix this:
- Return the ERESTART all the way up to the system call boundary and then
  have the system call redone. This is fraught with risk, due to convoluted
  code paths, asynchronous I/O RPCs etc. cperciva@ worked on this, but it
  is still a work in prgress and may not be feasible.
- Set SB_NOINTR for the socket buffer. This fixes the problem, but makes
  the sosend() completely non interruptible, which kib@ considered
  inappropriate. It also would break forced dismount when a thread
  was blocked in sosend().
- Modify the retry loop in clnt_vc_call(), so that it loops for this case
  for up to 15sec. Testing showed that the sosend() usually succeeded by
  the 2nd retry. The extreme case observed was 111 loop iterations, or
  about 100msec of delay.
This third alternative is what is implemented in this patch, since the
change is:
- localized
- straightforward
- forced dismount is not broken by it.

This patch has been tested by cperciva@ extensively against AmazonEFS.
19:44:26 - r318674
(1 day 6 hours ago)
by dim
Affects:  /vendor/lldb/lldb-trunk-r303571
Tag lldb trunk r303571.
19:44:21 - r318673
(1 day 6 hours ago)
by dim
Affects: 
(5 files)
/vendor/lldb/dist/*
Vendor import of lldb trunk r303571:
https://llvm.org/svn/llvm-project/lldb/trunk@303571
19:44:18 - r318672
(1 day 6 hours ago)
by dim
Affects:  /vendor/lld/lld-trunk-r303571
Tag lld trunk r303571.
19:44:12 - r318671
(1 day 6 hours ago)
by dim
Affects: 
(35 files)
/vendor/lld/dist/COFF/*
/vendor/lld/dist/ELF/*
/vendor/lld/dist/test/*
Vendor import of lld trunk r303571:
https://llvm.org/svn/llvm-project/lld/trunk@303571
19:44:10 - r318670
(1 day 6 hours ago)
by dim
Affects:  /vendor/libc++/libc++-trunk-r303571
Tag libc++ trunk r303571.
19:44:05 - r318669
(1 day 6 hours ago)
by dim
Affects: 
(7 files)
/vendor/libc++/dist/test/libcxx/selftest/*
/vendor/libc++/dist/utils/libcxx/compiler.py
/vendor/libc++/dist/utils/libcxx/test/*
Vendor import of libc++ trunk r303571:
https://llvm.org/svn/llvm-project/libcxx/trunk@303571
19:44:02 - r318668
(1 day 6 hours ago)
by dim
Affects:  /vendor/compiler-rt/compiler-rt-trunk-r303571
Tag compiler-rt trunk r303571.
19:43:56 - r318667
(1 day 6 hours ago)
by dim
Affects: 
(29 files)
/vendor/compiler-rt/dist/include/xray/xray_interface.h
/vendor/compiler-rt/dist/lib/*
/vendor/compiler-rt/dist/test/*
Vendor import of compiler-rt trunk r303571:
https://llvm.org/svn/llvm-project/compiler-rt/trunk@303571
19:43:53 - r318666
(1 day 6 hours ago)
by dim
Affects:  /vendor/clang/clang-trunk-r303571
Tag clang trunk r303571.
19:43:45 - r318665
(1 day 6 hours ago)
by dim
Affects: 
(123 files)
/vendor/clang/dist/*
Vendor import of clang trunk r303571:
https://llvm.org/svn/llvm-project/cfe/trunk@303571
19:43:35 - r318664
(1 day 6 hours ago)
by dim
Affects:  /vendor/llvm/llvm-trunk-r303571
Tag llvm trunk r303571.
19:43:28 - r318663
(1 day 6 hours ago)
by dim
Affects: 
(544 files)
/vendor/llvm/dist/*
Vendor import of llvm trunk r303571:
https://llvm.org/svn/llvm-project/llvm/trunk@303571
19:40:56 - r318662
(1 day 6 hours ago)
by davidcs
Affects: 
(4 files)
/stable/10/sys/dev/qlnx/qlnxe/qlnx_def.h
/stable/10/sys/dev/qlnx/qlnxe/qlnx_ioctl.c
/stable/10/sys/dev/qlnx/qlnxe/qlnx_os.c
MFC r318383
 QL_DPRINT macro modfied to handle multiple args; print line#.

Submitted by:Shminderjit.Singh@cavium.com
19:36:26 - r318661
(1 day 6 hours ago)
by davidcs
Affects: 
(5 files)
/stable/10/sys/dev/qlnx/qlnxe/*
/stable/10/sys/modules/qlnx/qlnxe/Makefile
MFC r318382
 1. Move Rx Processing to fp_taskqueue(). With this CPU utilization for
  processing interrupts drops to around 1% for 100G and under 1% for
  other speeds.
 2. Use sysctls for TRACE_LRO_CNT and TRACE_TSO_PKT_LEN
 3. remove unused mtx tx_lock
 4. bind taskqueue kernel thread to the appropriate cpu core
 5. when tx_ring is full, stop further transmits till at least 1/16th of
  the Tx Ring is empty. In our case 1K entries. Also if there are
  rx_pkts to process, put the taskqueue thread to sleep for 100ms,
  before enabling interrupts.
 6. Use rx_pkt_threshold of 128.
19:34:37 - r318660
(1 day 6 hours ago)
by rmacklem
Affects: 
(2 files)
/stable/11/sys/rpc/clnt_vc.c
MFC: r317906
Fix the client side krpc from doing TCP reconnects for ERESTART from sosend().

When sosend() replies ERESTART in the client side krpc, it indicates that
the RPC message hasn't yet been sent and that the send queue is full or
locked while a signal is posted for the process.
Without this patch, this would result in a RPC_CANTSEND reply from
clnt_vc_call(), which would cause clnt_reconnect_call() to create a new
TCP transport connection. For most NFS servers, this wasn't a serious problem,
although it did imply retries of outstanding RPCs, which could possibly
have missed the DRC.
For an NFSv4.1 mount to AmazonEFS, this caused a serious problem, since
AmazonEFS often didn't retain the NFSv4.1 session and would reply with
NFS4ERR_BAD_SESSION. This implies to the client a crash/reboot which
requires open/lock state recovery.

Three options were considered to fix this:
- Return the ERESTART all the way up to the system call boundary and then
  have the system call redone. This is fraught with risk, due to convoluted
  code paths, asynchronous I/O RPCs etc. cperciva@ worked on this, but it
  is still a work in prgress and may not be feasible.
- Set SB_NOINTR for the socket buffer. This fixes the problem, but makes
  the sosend() completely non interruptible, which kib@ considered
  inappropriate. It also would break forced dismount when a thread
  was blocked in sosend().
- Modify the retry loop in clnt_vc_call(), so that it loops for this case
  for up to 15sec. Testing showed that the sosend() usually succeeded by
  the 2nd retry. The extreme case observed was 111 loop iterations, or
  about 100msec of delay.
This third alternative is what is implemented in this patch, since the
change is:
- localized
- straightforward
- forced dismount is not broken by it.

This patch has been tested by cperciva@ extensively against AmazonEFS.
19:28:38 - r318659
(1 day 6 hours ago)
by davidcs
Affects: 
(4 files)
/stable/11/sys/dev/qlnx/qlnxe/qlnx_def.h
/stable/11/sys/dev/qlnx/qlnxe/qlnx_ioctl.c
/stable/11/sys/dev/qlnx/qlnxe/qlnx_os.c
MFC r318383
 QL_DPRINT macro modfied to handle multiple args; print line#.

Submitted by:Shminderjit.Singh@cavium.com
19:28:24 - r318658
(1 day 6 hours ago)
by dim
Affects: 
(81 files)
/projects/clang500-import/*
Merge ^/head r318560 through r318657.
19:22:06 - r318657
(1 day 6 hours ago)
by davidcs
Affects: 
(5 files)
/stable/11/sys/dev/qlnx/qlnxe/*
/stable/11/sys/modules/qlnx/qlnxe/Makefile
MFC r318382
  1. Move Rx Processing to fp_taskqueue(). With this CPU utilization for
  processing interrupts drops to around 1% for 100G and under 1% for
  other speeds.
  2. Use sysctls for TRACE_LRO_CNT and TRACE_TSO_PKT_LEN
  3. remove unused mtx tx_lock
  4. bind taskqueue kernel thread to the appropriate cpu core
  5. when tx_ring is full, stop further transmits till at least 1/16th of
  the Tx Ring is empty. In our case 1K entries. Also if there are
  rx_pkts to process, put the taskqueue thread to sleep for 100ms,
  before enabling interrupts.
  6. Use rx_pkt_threshold of 128.
19:06:39 - r318656
(1 day 7 hours ago)
by dim
Affects:  /projects/clang500-import/lib/clang/libllvm/Makefile
/projects/clang500-import/lib/clang/llvm.build.mk
Following upstream trunk, enable the new global instruction selection
(GlobalISel), cleanup some defines, and adjust the libllvm Makefile for
this.
16:16:48 - r318655
(1 day 9 hours ago)
by dim
Affects:  /head/contrib/llvm/include/llvm/MC/ConstantPools.h
/head/contrib/llvm/lib/MC/ConstantPools.cpp
/head/contrib/llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
Pull in r302416 from upstream llvm trunk (by Martin Storsjö):

  [ARM] Clear the constant pool cache on explicit .ltorg directives

  Multiple ldr pseudoinstructions with the same constant value will
  reuse the same constant pool entry. However, if the constant pool is
  explicitly flushed with a .ltorg directive, we should not try to
  reference constants in the previous pool any longer, since they may
  be out of range.

  This fixes assembling hand-written assembler source which repeatedly
  loads the same constant value, across a binary size larger than the
  pc-relative fixup range for ldr instructions (4096 bytes). Such
  assembler source already uses explicit .ltorg instructions to emit
  constant pools with regular intervals. However if we try to reuse
  constants emitted in earlier pools, they end up out of range.

  This makes the output of the testcase match what binutils gas does
  (prior to this patch, it would fail to assemble).

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

This should fix "out of range pc-relative fixup value" errors, when
compiling certain ARM inline assembly for www/webkit-gtk[23].

Reported by: mmel
MFC after: 3 days
16:13:30 - r318654
(1 day 9 hours ago)
by dim
Affects:  /head/lib/Makefile
For now, disable building libc++experimental for arm, since there are a
number of static assertion failures in the time_t related parts.

Reported by: mmel, kib
16:11:46 - r318653
(1 day 9 hours ago)
by gjb
Affects: 
(4 files)
/stable/10/usr.bin/sort/sort.1.in
/stable/11/usr.bin/sort/sort.1.in
MFC r305613 (gabor):
 Fix typo.

PR: 211245
Sponsored by: The FreeBSD Foundation
16:07:17 - r318652
(1 day 10 hours ago)
by gjb
Affects: 
(2 files)
/stable/11/etc/rc
MFC r307469 (imp):
 Allow root_rw_mount to be both lower and upper case. Before, if it was
 upper case, you'd wind up with a read-only filesystem when you should
 sometimes.

PR: 213549
Sponsored by: The FreeBSD Foundation
15:53:30 - r318651
(1 day 10 hours ago)
by ngie
Affects:  /head/sys/Makefile
Remove glimpse make target added in r181432

The textproc/glimpse port expired over 3 years ago because there weren't any
more publicly available distfiles, and because it lacked a maintainer. Remove
the target as it's no longer executable on FreeBSD.

Differential Revision: D10764
MFC after: 1 month
Reviewed by: imp
Sponsored by: Dell EMC Isilon
15:51:17 - r318650
(1 day 10 hours ago)
by gjb
Affects: 
(4 files)
/stable/10/usr.bin/grep/grep.1
/stable/11/usr.bin/grep/grep.1
MFC r313955 (emaste):
 bsdgrep: document ignored option -u

 MSDOS and Windows GNU grep uses -u to mean "print byte offsets as if
 running on an UNIX system." The option has no effect on systems that
 do not use CRLF line endings.

PR: 171200
Sponsored by: The FreeBSD Foundation
15:29:10 - r318649
(1 day 10 hours ago)
by tuexen
Affects:  /head/sys/netinet/tcp_usrreq.c
/head/sys/netinet6/udp6_usrreq.c
The connect() system call should return -1 and set errno to EAFNOSUPPORT
if it is called on a TCP socket
 * with an IPv6 address and the socket is bound to an
  IPv4-mapped IPv6 address.
 * with an IPv4-mapped IPv6 address and the socket is bound to an
  IPv6 address.
Thanks to Jonathan T. Leighton for reporting this issue.

Reviewed by: bz gnn
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D9163
15:12:49 - r318648
(1 day 10 hours ago)
by asomers
Affects: 
(2 files)
/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
MFC r318189:

vdev_geom may associate multiple vdevs per g_consumer

vdev_geom.c currently uses the g_consumer's private field to point to a
vdev_t. That way, a GEOM event can cause a change to a ZFS vdev. For
example, when you remove a disk, the vdev's status will change to REMOVED.
However, vdev_geom will sometimes attach multiple vdevs to the same GEOM
consumer. If this happens, then geom events will only be propagated to one
of the vdevs.

Fix this by storing a linked list of vdevs in g_consumer's private field.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c

* g_consumer.private now stores a linked list of vdev pointers associated
  with the consumer instead of just a single vdev pointer.

* Change vdev_geom_set_physpath's signature to more closely match
  vdev_geom_set_rotation_rate

* Don't bother calling g_access in vdev_geom_set_physpath. It's guaranteed
  that we've already accessed the consumer by the time we get here.

* Don't call vdev_geom_set_physpath in vdev_geom_attach. Instead, call it
  in vdev_geom_open, after we know that the open has succeeded.

PR: 218634
Reviewed by: gibbs
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D10391
14:46:13 - r318647
(1 day 11 hours ago)
by zbb
Affects: 
(10 files)
/head/share/man/man4/ena.4
/head/sys/*
Add support for Amazon Elastic Network Adapter (ENA) NIC

ENA is a networking interface designed to make good use of modern CPU
features and system architectures.

The ENA device exposes a lightweight management interface with a
minimal set of memory mapped registers and extendable command set
through an Admin Queue.

The driver supports a range of ENA devices, is link-speed independent
(i.e., the same driver is used for 10GbE, 25GbE, 40GbE, etc.), and has
a negotiated and extendable feature set.

Some ENA devices support SR-IOV. This driver is used for both the
SR-IOV Physical Function (PF) and Virtual Function (VF) devices.

ENA devices enable high speed and low overhead network traffic
processing by providing multiple Tx/Rx queue pairs (the maximum number
is advertised by the device via the Admin Queue), a dedicated MSI-X
interrupt vector per Tx/Rx queue pair, and CPU cacheline optimized
data placement.

The ENA driver supports industry standard TCP/IP offload features such
as checksum offload and TCP transmit segmentation offload (TSO).
Receive-side scaling (RSS) is supported for multi-core scaling.

The ENA driver and its corresponding devices implement health
monitoring mechanisms such as watchdog, enabling the device and driver
to recover in a manner transparent to the application, as well as
debug logs.

Some of the ENA devices support a working mode called Low-latency
Queue (LLQ), which saves several more microseconds. This feature will
be implemented for driver in future releases.

Submitted by: Michal Krawczyk <mk@semihalf.com>
  Jakub Palider <jpa@semihalf.com>
  Jan Medala <jan@semihalf.com>
Obtained from: Semihalf
Sponsored by: Amazon.com Inc.
Differential revision: https://reviews.freebsd.org/D10427
14:21:45 - r318646
(1 day 11 hours ago)
by gjb
Affects:  /head/release/Makefile
/head/release/scripts/pkg-stage.sh
Allow PORTSDIR to be overridden in the pkg-stage target.

Submitted by: Johannes Jost Meixner (original)
PR: 218393
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
14:21:07 - r318645
(1 day 11 hours ago)
by gjb
Affects:  /head/gnu/usr.bin/groff/tmac/mdoc.local.in
Add 11.1 to the mdoc(7) mdoc.local.in.

Sponsored by: The FreeBSD Foundation
13:56:34 - r318644
(1 day 12 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r318576, efivar(8) addition.

Sponsored by: The FreeBSD Foundation
13:55:59 - r318643
(1 day 12 hours ago)
by gjb
Affects:  /head/usr.sbin/efivar/efivar.8
Correct the "first appeared in" version for efivar(8).

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
13:27:31 - r318642
(1 day 12 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r315514, if_ipsec(4) addition.

Submitted by: ae
Sponsored by: The FreeBSD Foundation
13:21:28 - r318641
(1 day 12 hours ago)
by vangyzen
Affects:  /head/lib/libthr/Makefile
Revert r318583 (libthr: use default WARNS level of 6)

Revert this while I fix RISC-V, SPARC, and probably all architectures
that use GCC.

Reported by: kib
Pointy hat to: vangyzen
Sponsored by: Dell EMC
13:15:59 - r318640
(1 day 12 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Fix typo: s/LDD/LLD/

Spotted by: vangyzen
Sponsored by: The FreeBSD Foundation
13:00:11 - r318639
(1 day 13 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r309312, PCI passthrough enabled on Hyper-V VMs.
Document r314091, hv_netvsc(4) SR-IOV/VF support.
Document r316272, Hyper-V Gen 2 support.
Document r317119, Hyper-V synthetic keyboard support.

Submitted by: sephe
Sponsored by: The FreeBSD Foundation
13:00:10 - r318638
(1 day 13 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r318472, LDD enabled by default on arm64.

Submitted by: andrew
Sponsored by: The FreeBSD Foundation
12:35:31 - r318637
(1 day 13 hours ago)
by mmel
Affects: 
(2 files)
/stable/11/sys/arm/include/vmparam.h
MFC r318530:

  Increase maximum text segment size. LLVM binaries are huge...
12:28:20 - r318636
(1 day 13 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Fix typo and grammar.

Submitted by: pfg
Sponsored by: The FreeBSD Foundation
11:45:45 - r318635
(1 day 14 hours ago)
by emaste
Affects:  /head/sys/compat/freebsd32/freebsd32_sysent.c
/head/sys/kern/init_sysent.c
Regen sysent after r318634, no open(2) in capability mode

Sponsored by: The FreeBSD Foundation
11:43:19 - r318634
(1 day 14 hours ago)
by emaste
Affects:  /head/sys/compat/freebsd32/capabilities.conf
/head/sys/kern/capabilities.conf
disallow open(2) in capability mode

Previously open(2) was allowed in capability mode, with a comment that
suggested this was likely the case to facilitate debugging. The system
call would still fail later on, but it's better to disallow the syscall
altogether.

We now have the kern.trap_enotcap sysctl or PROC_TRAPCAP_CTL proccontrol
to aid in debugging.

In any case libc has translated open() to the openat syscall since
r277032.

Reviewed by: kib, rwatson
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10850
11:41:17 - r318633
(1 day 14 hours ago)
by royger
Affects:  /head/usr.sbin/bsdinstall/scripts/script
bsdinstall: do not use distextract in scripted mode

It requires a tty, which might not be available in scripted installs. Instead
extract the sets manually using tar.

Reviewed by: tsoome
Sponsored by: Citrix Systems R&D
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D10736
11:38:39 - r318632
(1 day 14 hours ago)
by royger
Affects:  /head/usr.sbin/bsdinstall/scripts/script
bsdinstall: mount is not needed for the ZFS install case

Because the datasets are already mounted by zfsboot, and the mount script
doesn't know anything about ZFS. Also do not execute the "umount" script for
ZFS for the same reasons.

Reviewed by: dteske, tsoome
Sponsored by: Citrix Systems R&D
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D10738
11:33:44 - r318631
(1 day 14 hours ago)
by royger
Affects:  /head/sys/dev/xen/netfront/netfront.c
xen/netfront: don't drop the RX lock in xn_rxeof

Since netfront uses different locks for the RX and TX paths there's no need to
drop the RX lock before calling if_input.

Suggested by: jhb
Tested by: cperciva
Sponsored by: Citrix Systems R&D
MFC with: r318523
10:28:17 - r318630
(1 day 15 hours ago)
by n_hibma
Affects:  /stable/11/sbin/dhclient/dhclient.c
/stable/11/sbin/dhclient/options.c
MFC:

  ------------------------------------------------------------------------
  r317923 | n_hibma | 2017-05-07 23:11:28 +0200 (Sun, 07 May 2017) | 8 lines

  Fix the output of very large rebind, renew and lease time options in
  lease file.

  Some routers set very large values for rebind time (Netgear) and these
  are erroneously reported as negative in the leasefile. This was due to a
  wrong printf format specification of %ld for an unsigned long on 32-bit
  platforms.

  ------------------------------------------------------------------------
  r317915 | n_hibma | 2017-05-07 21:59:37 +0200 (Sun, 07 May 2017) | 16 lines

  Fix handling of large DHCP expiry values.

  They would overflow a signed 32-bit time_t on 32 bit architectures. This
  was taken care of, but a compiler optimisation makes this behave
  erratically. This could be resolved by adding a -fwrapv flag, but
  instead we can check the value before adding the current timestamp to
  it.

  In the lease file values are still wrong though:

  option dhcp-rebinding-time -644245096;

PR: 218980
08:20:50 - r318629
(1 day 17 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/ofed/drivers/net/mlx4/eq.c
/stable/9/sys/ofed/drivers/net/mlx4/main.c
MFC r318531:

mlx4: Use the CQ quota for SRIOV when creating completion EQs

When creating EQs to handle CQ completion events for the PF or for
VFs, we create enough EQE entries to handle completions for the max
number of CQs that can use that EQ.

When SRIOV is activated, the max number of CQs a VF (or the PF) can
obtain is its CQ quota (determined by the Hypervisor resource
tracker). Therefore, when creating an EQ, the number of EQE entries
that the VF should request for that EQ is the CQ quota value (and not
the total number of CQs available in the firmware).

Under SRIOV, the PF, also must use its CQ quota, because the resource
tracker also controls how many CQs the PF can obtain.

Using the firmware total CQs instead of the CQ quota when creating EQs
resulted wasting MTT entries, due to allocating more EQEs than were
needed.

Sponsored by: Mellanox Technologies
08:19:08 - r318628
(1 day 17 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/ofed/drivers/net/mlx4/eq.c
/stable/10/sys/ofed/drivers/net/mlx4/main.c
MFC r318531:

mlx4: Use the CQ quota for SRIOV when creating completion EQs

When creating EQs to handle CQ completion events for the PF or for
VFs, we create enough EQE entries to handle completions for the max
number of CQs that can use that EQ.

When SRIOV is activated, the max number of CQs a VF (or the PF) can
obtain is its CQ quota (determined by the Hypervisor resource
tracker). Therefore, when creating an EQ, the number of EQE entries
that the VF should request for that EQ is the CQ quota value (and not
the total number of CQs available in the firmware).

Under SRIOV, the PF, also must use its CQ quota, because the resource
tracker also controls how many CQs the PF can obtain.

Using the firmware total CQs instead of the CQ quota when creating EQs
resulted wasting MTT entries, due to allocating more EQEs than were
needed.

Sponsored by: Mellanox Technologies
08:17:07 - r318627
(1 day 17 hours ago)
by hselasky
Affects: 
(3 files)
/stable/11/sys/ofed/drivers/net/mlx4/eq.c
/stable/11/sys/ofed/drivers/net/mlx4/main.c
MFC r318531:

mlx4: Use the CQ quota for SRIOV when creating completion EQs

When creating EQs to handle CQ completion events for the PF or for
VFs, we create enough EQE entries to handle completions for the max
number of CQs that can use that EQ.

When SRIOV is activated, the max number of CQs a VF (or the PF) can
obtain is its CQ quota (determined by the Hypervisor resource
tracker). Therefore, when creating an EQ, the number of EQE entries
that the VF should request for that EQ is the CQ quota value (and not
the total number of CQs available in the firmware).

Under SRIOV, the PF, also must use its CQ quota, because the resource
tracker also controls how many CQs the PF can obtain.

Using the firmware total CQs instead of the CQ quota when creating EQs
resulted wasting MTT entries, due to allocating more EQEs than were
needed.

Sponsored by: Mellanox Technologies
06:29:20 - r318626
(1 day 19 hours ago)
by ngie
Affects: 
(3 files)
/stable/10/sys/boot/efi/boot1/boot1.c
/stable/10/sys/boot/efi/boot1/boot_module.h
MFC r316103:

Remove redundant declarations

They're already defined in libstand.h
06:26:22 - r318625
(1 day 19 hours ago)
by ngie
Affects: 
(3 files)
/stable/11/sys/boot/efi/boot1/boot1.c
/stable/11/sys/boot/efi/boot1/boot_module.h
MFC r316103:

Remove redundant declarations

They're already defined in libstand.h
06:24:43 - r318624
(1 day 19 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/share/man/man4/usb.4
MFC r317594:

usb(4): manpage cleanup

1. Wrap at <80 columns for readability when editing. Rewrap some lines
  prematurely wrapped to better fit in <80 columns and not waste
  vertical space.
2. Fix SEE ALSO sorting (sort by section first, then manpage name).
3. Tweak the compound device description slightly by adding soft stops
  via commas.

Sponsored by Dell EMC Isilon
06:20:58 - r318623
(1 day 19 hours ago)
by ngie
Affects: 
(5 files)
/stable/10/sbin/mount/mount.8
/stable/10/sbin/mount_cd9660/mount_cd9660.8
/stable/10/share/man/man5/*
MFC r315775:

Add a post-humous manpage for cd9660(5), the ISO-9660 file system

Describe (briefly) how to compile the filesystem into the kernel and
load as a module.

Reference cd9660(5) in mount(8) and mount_cd9660(8).
06:20:22 - r318622
(1 day 19 hours ago)
by ngie
Affects: 
(5 files)
/stable/11/sbin/mount/mount.8
/stable/11/sbin/mount_cd9660/mount_cd9660.8
/stable/11/share/man/man5/*
MFC r315775:

Add a post-humous manpage for cd9660(5), the ISO-9660 file system

Describe (briefly) how to compile the filesystem into the kernel and
load as a module.

Reference cd9660(5) in mount(8) and mount_cd9660(8).
06:19:27 - r318621
(1 day 19 hours ago)
by ngie
Affects:  /stable/11/share/man/man5/src.conf.5
Regenerate src.conf(5)
06:18:15 - r318620
(1 day 19 hours ago)
by ngie
Affects:  /stable/11/share/man/man5/src.conf.5
Revert commit again to correct it

Obviously my brain's on autopilot tonight
06:17:14 - r318619
(1 day 19 hours ago)
by ngie
Affects:  /stable/11/share/man/man5/src.conf.5
MFC r311135:

Add documentation for MK_EFI added in r307243
06:15:50 - r318618
(1 day 19 hours ago)
by ngie
Affects: 
(3 files)
/stable/11/tools/build/options/WITHOUT_EFI
/stable/11/tools/build/options/WITH_EFI
MFC r311135:

Add documentation for MK_EFI added in r307243
06:12:30 - r318617
(1 day 19 hours ago)
by ngie
Affects:  /stable/10/share/man/man5/src.conf.5
Regenerate src.conf(5) per r318614
06:10:46 - r318616
(1 day 19 hours ago)
by ngie
Affects:  /stable/10/share/man/man5/src.conf.5
Revert r318615 to correct commit message
06:09:47 - r318615
(1 day 19 hours ago)
by ngie
Affects:  /stable/10/share/man/man5/src.conf.5
MFC r315766,r315768:

r315766:

Note that tools/build/options/makeman automatically generated src.conf(5)

This (as a bonus) fixes mdoc warnings with src.conf(5) :)..

r315768:

Remove the .Pa portion I added to the .An macro in AUTHORS section

That doesn't work (mandoc complains about the macro being empty).

That's what I get for being clever and not verifying before committing
things again *sigh*.

Partyhat to: ngie
06:08:20 - r318614
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/tools/build/options/makeman
MFC r315766,r315768:

r315766:

Note that tools/build/options/makeman automatically generated src.conf(5)

This (as a bonus) fixes mdoc warnings with src.conf(5) :)..

r315768:

Remove the .Pa portion I added to the .An macro in AUTHORS section

That doesn't work (mandoc complains about the macro being empty).

That's what I get for being clever and not verifying before committing
things again *sigh*.

Partyhat to: ngie
06:08:19 - r318613
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/tools/build/options/makeman
MFC r315766,r315768:

r315766:

Note that tools/build/options/makeman automatically generated src.conf(5)

This (as a bonus) fixes mdoc warnings with src.conf(5) :)..

r315768:

Remove the .Pa portion I added to the .An macro in AUTHORS section

That doesn't work (mandoc complains about the macro being empty).

That's what I get for being clever and not verifying before committing
things again *sigh*.

Partyhat to: ngie
06:07:09 - r318612
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/share/man/man3/intro.3
MFC r315793:

intro(3): fix markup

- Use `Em` with `.It` macro when referring to other libraries, instead of
  `Xr`.
- Use `.Em` instead of `.Xr` when referring to libraries.
- Remove commented out lines.
06:06:48 - r318611
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/share/man/man3/intro.3
MFC r315793:

intro(3): fix markup

- Use `Em` with `.It` macro when referring to other libraries, instead of
  `Xr`.
- Use `.Em` instead of `.Xr` when referring to libraries.
- Remove commented out lines.
06:05:35 - r318610
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/usr.bin/which/which.c
MFC r317160:

Clean up trailing whitespace

No functional changes
06:05:14 - r318609
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/usr.bin/which/which.c
MFC r317160:

Clean up trailing whitespace

No functional changes
06:04:20 - r318608
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/usr.sbin/rpcbind/rpcbind.c
MFC r317154:

Print out the signal number on exit in terminate(..) if WARMSTART is compiled
into rpcbind.

The signal number can provide helpful diagnostic info.

Obtained from: Isilon OneFS
06:03:51 - r318607
(1 day 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/usr.sbin/rpcbind/rpcbind.c
MFC r317154:

Print out the signal number on exit in terminate(..) if WARMSTART is compiled
into rpcbind.

The signal number can provide helpful diagnostic info.

Obtained from: Isilon OneFS
03:01:35 - r318606
(1 day 23 hours ago)
by cy
Affects:  /head/sys/contrib/ipfilter/netinet/ip_fil.h
Refactor & compact struct i6addr_t #ifdef: remove redundant structure
definintion when USE_INET6 is false.

MFC after: 1 week
02:30:15 - r318605
(1 day 23 hours ago)
by sephe
Affects: 
(2 files)
/stable/10/sys/net/if_vlan_var.h
MFC 318512

  net/vlan: Revert 305177

  Miss read the parentheses.

  Reported by: oleg@
  Reviewed by: hps@
  Sponsored by: Microsoft
02:09:27 - r318604
(1 day 23 hours ago)
by sephe
Affects: 
(2 files)
/stable/11/sys/net/ethernet.h
MFC 318512

  net/vlan: Revert 305177

  Miss read the parentheses.

  Reported by: oleg@
  Reviewed by: hps@
  Sponsored by: Microsoft
01:10:12 - r318603
(2 days ago)
by emaste
Affects:  /head/contrib/elftoolchain/nm/nm.1
nm: document 'r' symbol type

PR: 219245
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
2017 - 05 - 21   (3 days ago)
23:55:58 - r318602
(2 days 2 hours ago)
by adrian
Affects:  /head/sys/mips/atheros/ar71xx_machdep.c
[ar71xx] fix up dump space a la what jhb@ did elsewhere a while ago.
23:15:32 - r318601
(2 days 2 hours ago)
by adrian
Affects: 
(4 files)
/head/contrib/compiler-rt/lib/builtins/*
/head/lib/libcompiler_rt/Makefile.inc
[libcompiler-rt] add bswapdi2/bswapsi2

This is required for mips gcc 6.3 userland to build/run.

Reviewed by: emaste, dim
Approved by: emaste
Differential Revision: https://reviews.freebsd.org/D10838
22:28:28 - r318600
(2 days 3 hours ago)
by bapt
Affects:  /head/usr.bin/catman/catman.1
/head/usr.bin/catman/catman.c
Make catman(1) use mandoc(1) by default

catman(1) checks if mandoc(1) do support the manpage before trying to generate
the catpage and falls back on nroff, using the same mechanism as man(1).
22:10:08 - r318599
(2 days 3 hours ago)
by bjk
Affects:  /head/usr.sbin/efivar/efivar.8
Updates for efivar.8

Fix spelling [1], appease igor and mandoc -Tlint, and adopt the
language style to be more consistent with our corpus.

PR: 219434 [1]
Submitted by: olgeni [1]
21:33:15 - r318598
(2 days 4 hours ago)
by dim
Affects:  /head/lib/libc++experimental/Makefile
Add PICFLAG to build libc++experimental.a, so it can be used in all
situations.

Noticed by: kib
20:00:49 - r318597
(2 days 6 hours ago)
by emaste
Affects:  /head/sys/fs/msdosfs/msdosfs_conv.c
msdosfs: constify

Obtained from: NetBSD
Sponsored by: The FreeBSD Foundation
19:48:16 - r318596
(2 days 6 hours ago)
by emaste
Affects:  /head/sys/fs/msdosfs/fat.h
msdosfs: correct constant and typo in comment

Revisions:
fat.h 1.5 1.6

Obtained from: NetBSD
Sponsored by: The FreeBSD Foundation
19:29:28 - r318595
(2 days 6 hours ago)
by emaste
Affects: 
(7 files)
/head/sys/fs/msdosfs/*
msdosfs: capitalize FAT appropriately

Diff reduction with NetBSD, including some nearby minor whitespace or
style fixes.

Obtained from: NetBSD
Sponsored by: The FreeBSD Foundation
17:07:12 - r318594
(2 days 9 hours ago)
by dim
Affects: 
(4 files)
/head/lib/Makefile
/head/lib/libc++experimental/Makefile
/head/tools/build/mk/OptionalObsoleteFiles.inc
Add libc++experimental.a for std::experimental support

This adds a separate library for supporting std::experimental features.
It is purposefully static, and must be explicitly linked into programs
using -lc++experimental.

PLEASE NOTE: there is NO WARRANTY as to any stability or continuing
existence of the features in the std::experimental parts of the C++
library!

Reviewed by: ed
Differential Revision: https://reviews.freebsd.org/D10840
15:37:08 - r318593
(2 days 10 hours ago)
by asomers
Affects:  /head/tests/sys/aio/aio_kqueue_test.c
/head/tests/sys/aio/lio_kqueue_test.c
Fix build of AIO tests with -DDEBUG

Also, redefine some constants for clarity. No functional change.

MFC after: 1 week
14:35:16 - r318592
(2 days 11 hours ago)
by jilles
Affects:  /head/usr.bin/compress/compress.c
/head/usr.bin/compress/tests/compress_test.sh
compress: Allow uncompress -c with multiple pathnames, as required by POSIX.

Per POSIX, allow passing multiple pathnames to uncompress -c, concatenating
the uncompressed data.

Passing multiple pathnames to compress -c remains disallowed, since the
result cannot be decompressed.

PR: 219387
Reported by: Jörg Schilling
14:05:32 - r318591
(2 days 12 hours ago)
by jilles
Affects: 
(5 files)
/head/etc/mtree/BSD.tests.dist
/head/usr.bin/compress/Makefile
/head/usr.bin/compress/tests/*
compress: Add basic tests.
00:06:36 - r318590
(3 days 2 hours ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/include/asm/smp.h
Add get_cpu() and put_cpu().

MFC after: 1 week
2017 - 05 - 20   (4 days ago)
23:25:07 - r318589
(3 days 2 hours ago)
by rmacklem
Affects:  /head/usr.sbin/mountd/exports.5
Update the exports.5 man page to reflect the change in default uid/gid
made by r318262.

This is a content change.
18:16:26 - r318588
(3 days 7 hours ago)
by cy
Affects:  /head/usr.sbin/nscd/query.c
Fix up two assertions following malloc(). vangyzen@ notified me of
the second one. The first one is fixed as well.

Reported by: vangyzen@
MFC after: 1 week
18:02:31 - r318587
(3 days 8 hours ago)
by des
Affects:  /head/contrib/top/top.c
Add -w to usage string.

Reported by: Jamie Landeg-Jones <jamie@catflap.org>
MFC after: 1 week
17:42:58 - r318586
(3 days 8 hours ago)
by vangyzen
Affects:  /head/contrib/dma/dma.8
dma.8: fix problems reported by igor and 'mandoc -Tlint'

dma.8:77:contraction:Queue the mail, but [don't] attempt to deliver it.
dma.8:85:repeated:s [are are] ignored.
dma.8:87:contraction:[Don't] run in the background.
dma.8:201:contraction:Use the catch-all alias only if you [don't] want any
local mail to be

mandoc: dma.8:308:5: WARNING: macro neither callable nor escaped: Sm

MFC after: 3 days
17:39:23 - r318585
(3 days 8 hours ago)
by vangyzen
Affects:  /head/contrib/dma/dma.8
dma.8: use the correct name for 'SECURETRANSFER'

The code uses 'SECURETRANS', but the config file uses 'SECURETRANSFER'.

MFC after: 3 days
17:33:47 - r318584
(3 days 8 hours ago)
by vangyzen
Affects:  /head/lib/libthr/Makefile
/head/lib/libthr/thread/thr_stack.c
/head/lib/libthr/thread/thr_symbols.c
libthr: Use CLI flags instead of pragmas to disable warnings

People tweaking the build system or compilers tend to look into
the Makefile and not into the source. Having some warning controls
in the Makefile and some in the source code is surprising.

Pragmas have the advantage that they leave the warnings enabled
for more code, but that advantage isn't very relevant in these cases.

Requested by: kib
Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10832
17:32:30 - r318583
(3 days 8 hours ago)
by vangyzen
Affects:  /head/lib/libthr/Makefile
libthr: use default WARNS level of 6

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10832
17:32:01 - r318582
(3 days 8 hours ago)
by vangyzen
Affects: 
(5 files)
/head/lib/libc/gen/*
/head/lib/libc/include/spinlock.h
/head/lib/libthr/thread/*
Remove old spinlock_debug code from libc

This no longer seems useful. Remove it.

This was prompted by a "cast discards volatile qualifier" warning
in libthr when WARNS=6.

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10832
17:30:48 - r318581
(3 days 8 hours ago)
by vangyzen
Affects:  /head/lib/libthr/thread/thr_rwlock.c
libthr: change CHECK_AND_INIT_RWLOCK to an inline function

This was prompted by a compiler warning about 'ret' shadowing
a local variable in the callers of the macro.

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10832
17:29:36 - r318580
(3 days 8 hours ago)
by vangyzen
Affects:  /head/lib/libthr/Makefile
libthr: disable thread-safety warnings

These warnings don't make sense for code that implements
the locking primitives.

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10832
17:09:27 - r318579
(3 days 8 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/11/share/mk/bsd.init.mk
MFC r317863:

  Fix some "don't build" optimizations from r308599 not working due to a typo.
16:58:48 - r318578
(3 days 9 hours ago)
by cy
Affects:  /head/usr.sbin/nscd/query.c
Fix non-recoverable name resolution failures due to negative cache
entries never expiring. This patch honours the negative cache timeout.

To test/experience the failure do the following:

1. Edit /etc/ncd.conf to adjust the cache timeouts as follows:

  positive-time-to-live hosts 30
  negative-time-to-live hosts 1

2. Ensure that nsswitch.conf hosts line contains something like:

  hosts: files cache dns

  Note that cache must be specified before dns.

3. Start nscd.

4. Run the following command:

  while true; do nc -z -w 3 www.google.com 80; sleep 5; done

5. While running the command, remove or comment out all nameserver
  statements in /etc/resolv.conf. After a short while you will notice
  non-recoverable name rsolution failures.

6. Uncomment or replace all nameserver statements back into
  /etc/resolv.conf. Take note that name resolution never recovers.
  To recover nscd must be restarted. This patch fixes this.

PR: 207804
Submitted by: Jov <amutu@amutu.com>
MFC after: 1 week
16:47:00 - r318577
(3 days 9 hours ago)
by mr
Affects:  /head/etc/periodic/daily/800.scrub-zfs
Improve time-since-last-scrub calculation.
This can be needed to compensate anticongestion delays in 410.pkg-audit or
480.leapfile-ntpd.

PR: 217622
Submitted by: wbe@psr.com
MFC after: 2 weeks
16:12:44 - r318576
(3 days 9 hours ago)
by kib
Affects: 
(44 files)
/stable/11/*
MFC efivar(8) (by imp):

List of revisions merged:
r307070
r307071
r307072
r307074
r307189
r307224
r307339
r307390
r307391
r309776
r314231
r314232
r314615
r314616
r314617
r314618
r314619
r314620
r314621
r314623
r314890
r314925
r314926
r314927
r314928
r315770
r315771

Discussed with: gjb (re), imp
Sponsored by: The FreeBSD Foundation
11:40:37 - r318575
(3 days 14 hours ago)
by dim
Affects:  /head/etc/mtree/BSD.include.dist
After r317383 (removal of NATM), also remove usr/include/dev/utopia from
BSD.include.dist.
11:20:03 - r318574
(3 days 14 hours ago)
by emaste
Affects: 
(4 files)
/head/contrib/netbsd-tests/usr.bin/grep/t_grep.sh
/head/usr.bin/grep/*
bsdgrep: Correct per-line line metadata printing

Metadata printing with -b, -H, or -n flags suffered from a few flaws:

1) -b/offset printing was broken when used in conjunction with -o

2) With -o, bsdgrep did not print metadata for every match/line, just
  the first match of a line

3) There were no tests for this

Address these issues by outputting this data per-match if the -o flag is
specified, and prior to outputting any matches if -o but not --color,
since --color alone will not generate a new line of output for every
iteration over the matches.

To correct -b output, fudge the line offset as we're printing matches.

While here, make sure we're using grep_printline in -A context. Context
printing should *never* look at the parsing context, just the line.

The tests included do not pass with gnugrep in base due to it exhibiting
similar quirky behavior that bsdgrep previously exhibited.

Submitted by: Kyle Evans <kevans91@ksu.edu>
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D10580
06:01:09 - r318573
(3 days 20 hours ago)
by matthew
Affects:  /svnadmin/conf/access
Take in jkh's commit bit, at his own request

Approved by: core (implicit)
05:12:32 - r318572
(3 days 20 hours ago)
by jhibbits
Affects: 
(5 files)
/stable/11/sys/cddl/dev/*
/stable/11/sys/powerpc/booke/trap_subr.S
/stable/11/sys/powerpc/include/trap.h
MFC r314370,r318130,r318167:

  DTrace related fixes for PowerPC.

  r314370:
  Unbreak kernel breakpoints, broken for ~4 years now
  r318130:
  Fix the encoded instruction for FBT traps on powerpc
  r318167:
  Fix stack tracing in dtrace for powerpc
03:51:31 - r318571
(3 days 22 hours ago)
by emaste
Affects:  /head/contrib/netbsd-tests/usr.bin/grep/t_grep.sh
/head/usr.bin/grep/util.c
bsdgrep: emit more than MAX_LINE_MATCHES per line

We should not set an arbitrary cap on the number of matches on a line,
and in any case MAX_LINE_MATCHES of 32 is much too low. Instead, if we
match more than MAX_LINE_MATCHES, keep processing and matching from the
last match until all are found.

For the regression test, we produce 4096 matches (larger than we expect
we'll ever set MAX_LINE_MATCHES) and make sure we actually get 4096
lines of output with the -o flag.

We'll also make sure that every distinct line is getting its own line
number to detect line metadata not being printed as appropriate along
the way.

PR: 218811
Submitted by: Kyle Evans <kevans91@ksu.edu>
Reported by: jbeich
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D10577
01:04:47 - r318570
(4 days 1 hour ago)
by rmacklem
Affects:  /projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c
Check for the correct layout stateid when the server has already issued a
layout to the client for the file. This check is required by RFC5661.
01:04:19 - r318569
(4 days 1 hour ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r316613, C standard library has been updated to make use
of reallocarray(3).
Document r318121, system libraries have been updated to make use
of reallocarray(3).
Document r315282, GNU __nonnull__ attribute have been replaced with
the more benign Clang nullability attributes.

Submitted by: pfg
Sponsored by: The FreeBSD Foundation
01:04:18 - r318568
(4 days 1 hour ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r316613, C standard library has been updated to make use
of reallocarray(3).
Document r318121, system libraries have been updated to make use
of reallocarray(3).

Submitted by: pfg
Sponsored by: The FreeBSD Foundation
01:04:18 - r318567
(4 days 1 hour ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
s/nullability attribute/nullability qualifier/

Sponsored by: The FreeBSD Foundation
00:43:52 - r318566
(4 days 1 hour ago)
by adrian
Affects: 
(8 files)
/head/sys/net80211/*
[net80211] prepare for A-MSDU/A-MPDU offload crypto / sequence number checking.

When doing AMSDU offload, the driver (for now!) presents 802.11 frames with
the same sequence number and crypto sequence number / IV values up to the stack.
But, this will trip afoul over the sequence number detection.

So drivers now have a way to signify that a frame is part of an offloaded
AMSDU group, so we can just ensure that we pass those frames up to the
stack.

The logic will be a bit messy - the TL;DR will be that if it's part of
the previously seen sequence number then it belongs in the same burst.
But if we get a repeat of the same sequence number (eg we sent an ACK
but the receiver didn't hear it) then we shouldn't be passing those frames
up. So, we can't just say "all subframes go up", we need to track
whether we've seen the end of a burst of frames for the given sequence
number or not, so we know whether to actually pass them up or not.

The first part of doing all of this is to ensure the ieee80211_rx_stats
struct is available in the RX sequence number check path and the
RX ampdu reorder path. So, start by passing the pointer into these
functions to avoid doing another lookup.

The actual support will come in a subsequent commit once I know the
functionality actually works!
00:42:47 - r318565
(4 days 1 hour ago)
by emaste
Affects:  /head/usr.bin/grep/file.c
bsdgrep: fix segfault with --mmap

r313948 partially fixed --mmap behavior but was incomplete. This commit
generally reverts it and does it the more correct way- by just consuming
the rest of the buffer and moving on.

PR: 219402
Submitted by: Kyle Evans <kevans91@ksu.edu>
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D10820
00:41:12 - r318564
(4 days 1 hour ago)
by kib
Affects: 
(2 files)
/stable/11/libexec/rtld-elf/rtld.c
MFC r318256:
Style.
2017 - 05 - 19   (5 days ago)
23:01:55 - r318563
(4 days 3 hours ago)
by jhb
Affects: 
(2 files)
/stable/11/sys/sys/proc.h
MFC 318360: Fix p_endcopy.

For p_endcopy to work correctly, it must be the name of the next element
in struct proc after the end of the copy region, not the name of the
last element in the copy region. Currently, the last element
(p_elf_flags) is not being copied. In addition, the p_xexit and
p_xsig fields should not be copied on fork, so move them out of the
copy region.

Note that for stable/11 the fix is a bit simpler than in HEAD as it
merely consists of formally moving p_xexit and p_xsig out of the
copy region by shrinking the end of the copy region.
22:54:45 - r318562
(4 days 3 hours ago)
by jhb
Affects:  /head/sys/arm/conf/NOTES
Exclude ccr(4) from arm LINT since it excludes cxgbe(4).
21:20:01 - r318561
(4 days 4 hours ago)
by dim
Affects: 
(197 files)
/projects/clang500-import/*
Merge ^/head r318380 through r318559.
21:18:42 - r318560
(4 days 4 hours ago)
by markj
Affects:  /stable/11/sys/libkern/crc32.c
Direct commit to fix the PC98 build.
20:22:44 - r318559
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Add missing 'driver' after manual page references where missing.

Spotted by: jhb
Sponsored by: The FreeBSD Foundation
20:20:17 - r318558
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Add a missing ')'.

Spotted by: vangyzen
Sponsored by: The FreeBSD Foundation
20:16:14 - r318557
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r305476, OpenSSH blacklistd(8) support.
Wording fixes.
Expand what GARP means.

Submitted by: lidl
Sponsored by: The FreeBSD Foundation
20:11:35 - r318556
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Add a 'Userland Debugging' section.
Document r306786, core dumps now include the process ID (PID) and
command line arguments.
Document r304499, ptrace(2) now supports events for vfork(2).

Submitted by: jhb
Sponsored by: The FreeBSD Foundation
20:11:34 - r318555
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r306520, PCI pass through with bhyve resets functions via
FLR.
Document r306471, PCI pass through with bhyve supports more dynamic
configurations.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation
20:11:33 - r318554
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r306660, Virtual Function devices on T4 and T5 adapters.
Document r306661, TCP Offload Engine on Chelsio T4+ adapters.
Document r306664, cxgbev(4) addition.
Document r309560, several cxgbe(4) and cxgbev(4) updates.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation
20:11:32 - r318553
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r312394, /dev/kmem no longer supports access via mmap().
Document r306533, devctl(8) now supports a "clear driver" command.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation
20:11:31 - r318552
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r309258, max_align_t' is now defined for C11 compliance.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation
20:11:30 - r318551
(4 days 5 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Further clarify zfsbootcfg(8).
Move kvm_close(3) entry to 'Runtime Libraries and API'.
Move cloudabi(4) to the 'Kernel Modules' section.

Submitted by: jhb
Sponsored by: The FreeBSD Foundation
20:02:32 - r318550
(4 days 6 hours ago)
by maxim
Affects:  /head/usr.sbin/devctl/devctl.8
o Missed flag restored.

PR: 219395
Submitted by: Tiwei Bie
18:23:44 - r318549
(4 days 7 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Use literal tags around 'keep state'/'keep frags' to avoid (mis)placing
a comma.

In collaboration with: adamw
Sponsored by: The FreeBSD Foundation
18:13:41 - r318548
(4 days 7 hours ago)
by emaste
Affects: 
(9 files)
/head/sys/fs/msdosfs/*
msdosfs: use C99 types

General cleanup, for diff reduction with NetBSD and future use by FAT
support in makefs.

Submitted by: Siva Mahadevan <smahadevan@freebsdfoundation.org>
Obtained from: NetBSD
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10821
18:07:28 - r318547
(4 days 8 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Fix a few grammar and ambiguity nits.

Submitted by: adamw
Sponsored by: The FreeBSD Foundation
17:14:29 - r318546
(4 days 8 hours ago)
by ngie
Affects:  /head/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh
/head/tests/sys/fs/tmpfs/Makefile
sys/fs/tmpfs/vnd_test: make md(4) allocation dynamic

The previous logic was flawed in the sense that it assumed that /dev/md3
was always available. This was a caveat I noted in r306038, that I hadn't
gotten around to solving before now.

Cache the device for the mountpoint after executing mdmfs, then use the
cached value in basic_cleanup(..) when unmounting/disconnecting the md(4)
device.

Apply sed expressions to use reuse logic in the NetBSD code that could
also be applied to FreeBSD, just with different tools.

Differential Revision: D10766
MFC after: 1 week
Reviewed by: bdrewery
Sponsored by: Dell EMC Isilon
17:04:01 - r318545
(4 days 9 hours ago)
by ngie
Affects:  /head/etc/Makefile
Install {cron.d,newsyslog.conf.d,syslog.d} via `make distribution`, not `make
install`

I incorrectly started this pattern in r277541 with the opensm newsyslog.conf.d
file,
and continued using it in r318441 and r318443.

This will fix the files being handled improperly via installworld, preventing
tools like
etcupdate, mergemaster, etc from functioning properly when comparing the
installed
contents on a system vs the contents in a source tree when doing merges.

PR: 219404
Submitted by: Dan McGregor <dan.mcgregor@usask.ca>
MFC after: 2 weeks
MFC with: r277541, r318441, r318443
Sponsored by: Dell EMC Isilon
16:22:26 - r318544
(4 days 9 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Remove an HREF from a section title.

Suggested by: asomers
Sponsored by: The FreeBSD Foundation
16:15:00 - r318543
(4 days 9 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r317373, periodic(8) sleep consolidation.

Submitted by: asomers
Sponsored by: The FreeBSD Foundation
15:57:05 - r318542
(4 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Correct a typo.

Submitted by: vangyzen
Sponsored by: The FreeBSD Foundation
13:05:40 - r318541
(4 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/ofed/drivers/net/mlx4/en_netdev.c
/stable/9/sys/ofed/drivers/net/mlx4/mlx4_en.h
MFC r317505:
Don't free uninitialized sysctl contexts in the mlx4en driver. This
can cause NULL pointer panics during failed device attach.

Differential Revision: https://reviews.freebsd.org/D8876
Sponsored by: Mellanox Technologies
13:04:09 - r318540
(4 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/ofed/drivers/net/mlx4/en_netdev.c
/stable/10/sys/ofed/drivers/net/mlx4/mlx4_en.h
MFC r317505:
Don't free uninitialized sysctl contexts in the mlx4en driver. This
can cause NULL pointer panics during failed device attach.

Differential Revision: https://reviews.freebsd.org/D8876
Sponsored by: Mellanox Technologies
13:04:05 - r318539
(4 days 13 hours ago)
by vangyzen
Affects: 
(8 files)
/head/lib/libthr/thread/*
libthr: fix warnings at WARNS=6

Fix warnings about the following when WARNS=6 (which I will commit soon):

- casting away const
- no previous 'extern' declaration for non-static variable
- others as explained by #pragmas and comments
- unused parameters

The last is the only functional change.

Reviewed by: kib
MFC after: 3 days
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10808
13:02:19 - r318538
(4 days 13 hours ago)
by hselasky
Affects: 
(3 files)
/stable/11/sys/ofed/drivers/net/mlx4/en_netdev.c
/stable/11/sys/ofed/drivers/net/mlx4/mlx4_en.h
MFC r317505:
Don't free uninitialized sysctl contexts in the mlx4en driver. This
can cause NULL pointer panics during failed device attach.

Differential Revision: https://reviews.freebsd.org/D8876
Sponsored by: Mellanox Technologies
12:56:18 - r318537
(4 days 13 hours ago)
by hselasky
Affects: 
(7 files)
/stable/9/sys/ofed/drivers/net/mlx4/*
/stable/9/sys/ofed/include/linux/mlx4/device.h
MFC r313555:
Flexible and asymmetric allocation of EQs and MSI-X vectors for PF/VFs.

Previously, the mlx4 driver queried the firmware in order to get the
number of supported EQs. Under SRIOV, since this was done before the
driver notified the firmware how many VFs it actually needs, the
firmware had to take into account a worst case scenario and always
allocated four EQs per VF, where one was used for events while the
others were used for completions. Now, when the firmware supports the
asymmetric allocation scheme, denoted by exposing num_sys_eqs > 0 (-->
MLX4_DEV_CAP_FLAG2_SYS_EQS), we use the QUERY_FUNC command to query
the firmware before enabling SRIOV. Thus we can get more EQs and MSI-X
vectors per function. Moreover, when running in the new
firmware/driver mode, the limitation that the number of EQs should be
a power of two is lifted.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8867
Sponsored by: Mellanox Technologies
12:53:50 - r318536
(4 days 13 hours ago)
by hselasky
Affects: 
(7 files)
/stable/10/sys/ofed/drivers/net/mlx4/*
/stable/10/sys/ofed/include/linux/mlx4/device.h
MFC r313555:
Flexible and asymmetric allocation of EQs and MSI-X vectors for PF/VFs.

Previously, the mlx4 driver queried the firmware in order to get the
number of supported EQs. Under SRIOV, since this was done before the
driver notified the firmware how many VFs it actually needs, the
firmware had to take into account a worst case scenario and always
allocated four EQs per VF, where one was used for events while the
others were used for completions. Now, when the firmware supports the
asymmetric allocation scheme, denoted by exposing num_sys_eqs > 0 (-->
MLX4_DEV_CAP_FLAG2_SYS_EQS), we use the QUERY_FUNC command to query
the firmware before enabling SRIOV. Thus we can get more EQs and MSI-X
vectors per function. Moreover, when running in the new
firmware/driver mode, the limitation that the number of EQs should be
a power of two is lifted.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8867
Sponsored by: Mellanox Technologies
12:51:13 - r318535
(4 days 13 hours ago)
by hselasky
Affects: 
(7 files)
/stable/11/sys/ofed/drivers/net/mlx4/*
/stable/11/sys/ofed/include/linux/mlx4/device.h
MFC r313555:
Flexible and asymmetric allocation of EQs and MSI-X vectors for PF/VFs.

Previously, the mlx4 driver queried the firmware in order to get the
number of supported EQs. Under SRIOV, since this was done before the
driver notified the firmware how many VFs it actually needs, the
firmware had to take into account a worst case scenario and always
allocated four EQs per VF, where one was used for events while the
others were used for completions. Now, when the firmware supports the
asymmetric allocation scheme, denoted by exposing num_sys_eqs > 0 (-->
MLX4_DEV_CAP_FLAG2_SYS_EQS), we use the QUERY_FUNC command to query
the firmware before enabling SRIOV. Thus we can get more EQs and MSI-X
vectors per function. Moreover, when running in the new
firmware/driver mode, the limitation that the number of EQs should be
a power of two is lifted.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8867
Sponsored by: Mellanox Technologies
12:42:33 - r318534
(4 days 13 hours ago)
by hselasky
Affects: 
(7 files)
/stable/9/sys/ofed/drivers/net/mlx4/*
/stable/9/sys/ofed/include/linux/mlx4/device.h
MFC r313556:
Change mlx4 QP allocation scheme.

When using Blue-Flame, BF, the QPN overrides the VLAN, CV, and SV
fields in the WQE. Thus, BF may only be used for QPNs with bits 6,7
unset.

The current ethernet driver code reserves a TX QP range with 256b
alignment.

This is wrong because if there are more than 64 TX QPs in use, QPNs >=
base + 65 will have bits 6/7 set.

This problem is not specific for the Ethernet driver, any entity that
tries to reserve more than 64 BF-enabled QPs should fail. Also, using
ranges is not necessary here and is wasteful.

The new mechanism introduced here will support reservation for "Eth
QPs eligible for BF" for all drivers: bare-metal, multi-PF, and VFs
(when hypervisors support WC in VMs). The flow we use is:

1. In mlx4_en, allocate Tx QPs one by one instead of a range allocation,
  and request "BF enabled QPs" if BF is supported for the function

2. In the ALLOC_RES FW command, change param1 to:
a. param1[23:0] - number of QPs
b. param1[31-24] - flags controlling QPs reservation

Bit 31 refers to Eth blueflame supported QPs. Those QPs must have bits
6 and 7 unset in order to be used in Ethernet.

Bits 24-30 of the flags are currently reserved.

When a function tries to allocate a QP, it states the required
attributes for this QP. Those attributes are considered "best-effort".
If an attribute, such as Ethernet BF enabled QP, is a must-have
attribute, the function has to check that attribute is supported
before trying to do the allocation.

In a lower layer of the code, mlx4_qp_reserve_range masks out the bits
which are unsupported. If SRIOV is used, the PF validates those
attributes and masks out unsupported attributes as well. In order to
notify VFs which attributes are supported, the VF uses QUERY_FUNC_CAP
command. This command's mailbox is filled by the PF, which notifies
which QP allocation attributes it supports.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8868
Sponsored by: Mellanox Technologies
12:39:35 - r318533
(4 days 13 hours ago)
by hselasky
Affects: 
(7 files)
/stable/10/sys/ofed/drivers/net/mlx4/*
/stable/10/sys/ofed/include/linux/mlx4/device.h
MFC r313556:
Change mlx4 QP allocation scheme.

When using Blue-Flame, BF, the QPN overrides the VLAN, CV, and SV
fields in the WQE. Thus, BF may only be used for QPNs with bits 6,7
unset.

The current ethernet driver code reserves a TX QP range with 256b
alignment.

This is wrong because if there are more than 64 TX QPs in use, QPNs >=
base + 65 will have bits 6/7 set.

This problem is not specific for the Ethernet driver, any entity that
tries to reserve more than 64 BF-enabled QPs should fail. Also, using
ranges is not necessary here and is wasteful.

The new mechanism introduced here will support reservation for "Eth
QPs eligible for BF" for all drivers: bare-metal, multi-PF, and VFs
(when hypervisors support WC in VMs). The flow we use is:

1. In mlx4_en, allocate Tx QPs one by one instead of a range allocation,
  and request "BF enabled QPs" if BF is supported for the function

2. In the ALLOC_RES FW command, change param1 to:
a. param1[23:0] - number of QPs
b. param1[31-24] - flags controlling QPs reservation

Bit 31 refers to Eth blueflame supported QPs. Those QPs must have bits
6 and 7 unset in order to be used in Ethernet.

Bits 24-30 of the flags are currently reserved.

When a function tries to allocate a QP, it states the required
attributes for this QP. Those attributes are considered "best-effort".
If an attribute, such as Ethernet BF enabled QP, is a must-have
attribute, the function has to check that attribute is supported
before trying to do the allocation.

In a lower layer of the code, mlx4_qp_reserve_range masks out the bits
which are unsupported. If SRIOV is used, the PF validates those
attributes and masks out unsupported attributes as well. In order to
notify VFs which attributes are supported, the VF uses QUERY_FUNC_CAP
command. This command's mailbox is filled by the PF, which notifies
which QP allocation attributes it supports.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8868
Sponsored by: Mellanox Technologies
12:35:23 - r318532
(4 days 13 hours ago)
by hselasky
Affects: 
(7 files)
/stable/11/sys/ofed/drivers/net/mlx4/*
/stable/11/sys/ofed/include/linux/mlx4/device.h
MFC r313556:
Change mlx4 QP allocation scheme.

When using Blue-Flame, BF, the QPN overrides the VLAN, CV, and SV
fields in the WQE. Thus, BF may only be used for QPNs with bits 6,7
unset.

The current ethernet driver code reserves a TX QP range with 256b
alignment.

This is wrong because if there are more than 64 TX QPs in use, QPNs >=
base + 65 will have bits 6/7 set.

This problem is not specific for the Ethernet driver, any entity that
tries to reserve more than 64 BF-enabled QPs should fail. Also, using
ranges is not necessary here and is wasteful.

The new mechanism introduced here will support reservation for "Eth
QPs eligible for BF" for all drivers: bare-metal, multi-PF, and VFs
(when hypervisors support WC in VMs). The flow we use is:

1. In mlx4_en, allocate Tx QPs one by one instead of a range allocation,
  and request "BF enabled QPs" if BF is supported for the function

2. In the ALLOC_RES FW command, change param1 to:
a. param1[23:0] - number of QPs
b. param1[31-24] - flags controlling QPs reservation

Bit 31 refers to Eth blueflame supported QPs. Those QPs must have bits
6 and 7 unset in order to be used in Ethernet.

Bits 24-30 of the flags are currently reserved.

When a function tries to allocate a QP, it states the required
attributes for this QP. Those attributes are considered "best-effort".
If an attribute, such as Ethernet BF enabled QP, is a must-have
attribute, the function has to check that attribute is supported
before trying to do the allocation.

In a lower layer of the code, mlx4_qp_reserve_range masks out the bits
which are unsupported. If SRIOV is used, the PF validates those
attributes and masks out unsupported attributes as well. In order to
notify VFs which attributes are supported, the VF uses QUERY_FUNC_CAP
command. This command's mailbox is filled by the PF, which notifies
which QP allocation attributes it supports.

Obtained from: Linux (dual BSD/GPLv2 licensed)
Submitted by: Dexuan Cui @ microsoft . com
Differential Revision: https://reviews.freebsd.org/D8868
Sponsored by: Mellanox Technologies
12:22:48 - r318531
(4 days 13 hours ago)
by hselasky
Affects:  /head/sys/dev/mlx4/mlx4_core/mlx4_eq.c
/head/sys/dev/mlx4/mlx4_core/mlx4_main.c
mlx4: Use the CQ quota for SRIOV when creating completion EQs

When creating EQs to handle CQ completion events for the PF or for
VFs, we create enough EQE entries to handle completions for the max
number of CQs that can use that EQ.

When SRIOV is activated, the max number of CQs a VF (or the PF) can
obtain is its CQ quota (determined by the Hypervisor resource
tracker). Therefore, when creating an EQ, the number of EQE entries
that the VF should request for that EQ is the CQ quota value (and not
the total number of CQs available in the firmware).

Under SRIOV, the PF, also must use its CQ quota, because the resource
tracker also controls how many CQs the PF can obtain.

Using the firmware total CQs instead of the CQ quota when creating EQs
resulted wasting MTT entries, due to allocating more EQEs than were
needed.

MFC after: 3 days
Sponsored by: Mellanox Technologies
11:45:14 - r318530
(4 days 14 hours ago)
by mmel
Affects:  /head/sys/arm/include/vmparam.h
Increase maximum text segment size.
LLVM binaries are huge...

MFC after: 3 days
10:16:51 - r318529
(4 days 15 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_sig.c
MFC r318243:
Do not wake up sleeping thread in reschedule_signals() if the signal
is blocked. The spurious wakeup might result in spurious EINTR.

PR: 219228
09:04:18 - r318528
(4 days 17 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_sig.c
MFC r318243:
Do not wake up sleeping thread in reschedule_signals() if the signal
is blocked. The spurious wakeup might result in spurious EINTR.

PR: 219228
08:38:03 - r318527
(4 days 17 hours ago)
by truckman
Affects:  /head/sys/netpfil/ipfw/dn_aqm_pie.c
/head/sys/netpfil/ipfw/dn_sched_fq_pie.c
Fix the queue delay estimation in PIE/FQ-PIE when the timestamp
(TS) method is used. When packet timestamp is used, the "current_qdelay"
keeps storing the last queue delay value calculated in the dequeue
function. Therefore, when a burst of packets arrives followed by
a pause, the "current_qdelay" will store a high value caused by the
burst and stick to that value during the pause because the queue
delay measurement is done inside the dequeue function. This causes
the drop probability calculation function to calculate high drop
probability value instead of zero and prevents the burst allowance
mechanism from working properly. Fix this problem by resetting
"current_qdelay" inside the drop probability calculation function
when the queue length is zero and TS option is used.

Submitted by: Rasool Al-Saadi <ralsaadi@swin.edu.au>
MFC after: 1 week
08:26:41 - r318526
(4 days 17 hours ago)
by wma
Affects:  /head/sys/arm/mv/armada38x/armada38x_mp.c
Fix boot up on ARMADA38X uniprocessor variant

Marvell Armada 380 is a uni-processor variant of the 38x SoC
family. A function platform_mp_setmaxid() was setting a hardcoded
value, which caused boot fail on A380. Fix this by relying on
the CPU count obtained from device tree nodes.

Submitted by: Marcin Wojtas <mw@semihalf.com
Obtained from: Semihalf
Sponsored by: Netgate
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10783
08:25:40 - r318525
(4 days 17 hours ago)
by wma
Affects:  /head/sys/arm/mv/mpic.c
Fix MPIC mask/unmask

Before the fix for single interrupt, both percpu and non-percpu routes
were enabled/disable at the same time.

Submitted by: Marcin Wojtas <mw@semihalf.com
Obtained from: Semihalf
Sponsored by: Stormshield, Netgate
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10716
08:24:23 - r318524
(4 days 17 hours ago)
by wma
Affects:  /head/sys/dev/etherswitch/e6000sw/e6000sw.c
/head/sys/dev/etherswitch/e6000sw/e6000swreg.h
Poll PHY status using internal e6000sw registers

e6000sw family automatically reflects PHY status in each port's registers.
Therefore it is not necessary to do a full PHY polling squence, which
results in much quicker operation and much less significant usage of
the SMI bus.

Care must be taken that the resulting ifmedia_active is identical to
what the PHY will compute, or gratuitous link status changes will
occur whenever the PHYs update function is called.

This patch implements above improvement. On the occasion set a pointer to
the proc structure to be part of software context instead of being
a global variable.

Submitted by: Marcin Wojtas <mw@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10714
08:19:51 - r318523
(4 days 17 hours ago)
by royger
Affects:  /head/sys/dev/xen/netfront/netfront.c
xen/netfront: don't drop the ring RX lock with inconsistent ring state

Make sure the RX ring lock is only released when the state of the ring is
consistent, or else concurrent calls to xn_rxeof might get an inconsistent ring
state and thus some packets might be processed twice.

Note that this is not very common, and could only happen when an interrupt is
delivered while in xn_ifinit.

Reported by: cperciva
Tested by: cperciva
MFC after: 1 week
Sponsored by: Citrix Systems R&D
08:19:39 - r318522
(4 days 17 hours ago)
by wma
Affects: 
(4 files)
/head/sys/arm/mv/*
/head/sys/dev/cesa/*
Enable proper configuration of CESA MBUS windows

For all Marvell devices, MBUS windows configuration is done
in a common place. Only CESA was an exception, so move its
related code from driver to mv_common.c. This way it uses
same proper DRAM information, same as all other interfaces
instead of parsing DT /memory node directly.

Submitted by: Marcin Wojtas <mw@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10723
08:16:47 - r318521
(4 days 17 hours ago)
by wma
Affects:  /head/sys/dev/etherswitch/e6000sw/e6000sw.c
Improve busy-wait loop during switch phy access in e6000sw

Hitherto implementation of PHY polling resulted in a risk of an
endless loop and very high occupation of the SMI bus. Improve the
operation by limiting the polling tries and adding sleepable
pause.

Submitted by: Marcin Wojtas <mw@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10713
08:11:15 - r318520
(4 days 17 hours ago)
by royger
Affects:  /head/sys/dev/xen/blkfront/blkfront.c
xen/blkfront: correctly detach a disk with active users

Call disk_gone when the backend switches to the "Closing" state and blkfront
still has pending users. This allows the disk to be detached, and will call
into xbd_closing by itself when the geom layout cleanup has finished.

Reported by: bapt
Tested by: manu
Reviewed by: bapt
Sponsored by: Citrix Systems R&D
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D10772
07:31:48 - r318519
(4 days 18 hours ago)
by eugen
Affects: 
(2 files)
/stable/10/sys/netinet/libalias/alias.c
MFC r318150:

Fix translation of transit PPtP/GRE connections for ipfw nat/natd "global" case.

PR: 218968
Approved by: ae, vsevolod (mentor)
07:28:36 - r318518
(4 days 18 hours ago)
by eugen
Affects: 
(2 files)
/stable/11/sys/netinet/libalias/alias.c
MFC r318150:

  Fix translation of transit PPtP/GRE connections for ipfw nat/natd "global"
case.

PR: 218968
Approved by: ae, vsevolod (mentor)
06:37:16 - r318517
(4 days 19 hours ago)
by delphij
Affects:  /head/sys/libkern/qsort.c
Sync qsort.c with userland r318515.

(Note that MIN macro is removed in favor of sys/param.h's version).

PR: 213922
05:12:58 - r318516
(4 days 20 hours ago)
by mav
Affects:  /head/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
Fix time handling in cv_timedwait_hires().

pthread_cond_timedwait() receives absolute time, not relative. Passing
wrong time there caused two threads of zdb to spin in a tight loop.

MFC after: 1 week
04:59:12 - r318515
(4 days 21 hours ago)
by delphij
Affects:  /head/lib/libc/stdlib/qsort.c
The current qsort(3) implementation ignores the sizes of partitions, and
always perform recursion on the left partition, then use a tail call to
handle the right partition. In the worst case this could require O(N)
levels of recursions.

Reduce the possible recursion level to log2(N) by always recursing on the
smaller partition instead.

Obtained from: PostgreSQL 9d6077abf9d6efd992a59f05ef5aba981ea32096
04:44:14 - r318514
(4 days 21 hours ago)
by delphij
Affects:  /head/lib/libc/stdlib/qsort.c
Use size_t.

Inspired by: OpenBSD src/lib/libc/stdlib/qsort.c,v 1.11
02:12:10 - r318513
(4 days 23 hours ago)
by rgrimes
Affects: 
(4 files)
/stable/10/usr.sbin/rmt/Makefile
/stable/11/usr.sbin/rmt/Makefile
MFC r314693
  Change /etc/rmt symlink from absolute to relative path,
  correcting the mistake made in r6499

Approved by: grehan (mentor)
01:42:31 - r318512
(5 days ago)
by sephe
Affects:  /head/sys/net/ethernet.h
net/vlan: Revert 305177

Miss read the parentheses.

Reported by: oleg@
Reviewed by: hps@
MFC after: 3 days
Sponsored by: Microsoft
01:23:06 - r318511
(5 days ago)
by truckman
Affects:  /head/sys/netpfil/ipfw/dn_aqm_pie.c
/head/sys/netpfil/ipfw/dn_sched_fq_pie.c
The result of right shifting a negative signed value is implementation
defined. On machines without arithmetic shift instructions, zero bits
may be shifted in from the left, giving a large positive result instead
of the desired divide-by power-of-2. Fix this by operating on the
absolute value and compensating for the possible negation later.

Reverse the order of the underflow/overflow tests and the exponential
decay calculation to avoid the possibility of an erroneous overflow
detection if p is a sufficiently small non-negative value. Also
check for negative values of prob before doing the exponential decay
to avoid another instance of of right shifting a negative value.

Tested by: Rasool Al-Saadi <ralsaadi@swin.edu.au>
MFC after: 1 week
00:43:49 - r318510
(5 days 1 hour ago)
by emaste
Affects: 
(2 files)
/stable/11/contrib/libstdc++/config/abi/pre/gnu.ver
MFC r317159: libstdc++: fix symbol version script for LLD

LLD is less tolerant of inconsistencies in the symbol version script.

- Add a ; on the last entry in a version block
- Remove duplicated symbols, retaining those in the earliest block
00:33:48 - r318509
(5 days 1 hour ago)
by vangyzen
Affects: 
(2 files)
/stable/11/sys/amd64/amd64/pmap.c
MFC r318354 (by cem)

Correct page frame mask constant used in pmap_change_attr_locked

This was introduced in r290156. It's present in 11.0, but not any 10.x
release unless someone decided to MFC it.

It affects ordinary pages right above the DMAP limit, which is effectively
system memory rounded up to a 1 GB (3rd level superpage) boundary (or up to
a minimum of 4 GB, on small systems).

Sponsored by: Dell EMC
00:25:09 - r318508
(5 days 1 hour ago)
by markj
Affects:  /head/cddl/usr.sbin/dtrace/tests/tools/exclude.sh
Remove the EXFAIL annotation for tests which pass as of r309596.

Reported by: bdrewery
Sponsored by: Dell EMC Isilon
00:00:38 - r318507
(5 days 2 hours ago)
by gjb
Affects: 
(4 files)
/stable/11/*
Update stable/11 from 11.0-STABLE to 11.1-PRERELEASE, marking the
official start of the code slush.

Set the default mdoc(7) version to 11.1, and update the clang(1)
TARGET_TRIPLE to reflect 11.1. While here, add missing FreeBSD
major versions to mdoc(7).

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation
2017 - 05 - 18   (6 days ago)
23:52:28 - r318506
(5 days 2 hours ago)
by jkim
Affects: 
(2 files)
/stable/11/sys/dev/vt/vt_core.c
MFC: r317171, r317173, r317560, r317561, r318326

Always clear borders when the terminal is flushed.

PR: 202288
23:41:34 - r318505
(5 days 2 hours ago)
by rpokala
Affects:  /stable/10/sys/net/if_var.h
Persistently store NIC's hardware MAC address, and add a way to retrive it

jhb pointed out that (struct ifnet) is part of the network driver KBI, and
thus the offsets of internal fields must not change. Therefore, move the new
"if_hw_addr" field to the end, and consume one of the "if_pspare"s; that's
what they're there for. Because netmap on stable/10 uses "if_pspare[0]", the
new field replaces the *last* element of that array; that way,
offsetof(if_pspare) is unchanged compared to before r318430.

PR: 194386
Reviewed by: jhb
Pointyhat to: rpokala
Sponsored by: Panasas
23:41:18 - r318504
(5 days 2 hours ago)
by rpokala
Affects:  /stable/11/sys/net/if_var.h
Persistently store NIC's hardware MAC address, and add a way to retrive it

jhb pointed out that (struct ifnet) is part of the network driver KBI, and
thus the offsets of internal fields must not change. Therefore, move the new
"if_hw_addr" field to the end, and consume one of the "if_pspare"s; that's
what they're there for. The new field replaces the *last* element of that
array; that way, offsetof(if_pspare) and offsetof(if_ispare) are unchanged
compared to before r318397.

PR: 194386
Reviewed by: jhb
Pointyhat to: rpokala
Sponsored by: Panasas
22:50:16 - r318503
(5 days 3 hours ago)
by pfg
Affects:  /svnadmin/conf/mentors
Release Piotr Stephaniak from mentorship.

He is doing pretty well on his own so lets get out of the way.
22:10:04 - r318502
(5 days 3 hours ago)
by jilles
Affects:  /head/bin/sh/output.c
sh: Keep output buffer across builtins.

Allocating and deallocating repeatedly the 1024-byte buffer for stdout from
builtins costs CPU time for little or no benefit.

A simple loop containing builtins that write to a file descriptor, such as
  i=0; while [ "$i" -lt 1000000 ]; do printf .; i=$((i+1)); done >/dev/null
is over 10% faster in a simple benchmark on an amd64 virtual machine.
21:44:14 - r318501
(5 days 4 hours ago)
by jilles
Affects:  /head/bin/sh/eval.c
/head/bin/sh/output.c
sh: Ensure memout.bufsize matches allocated buffer, if it exists.
21:23:39 - r318500
(5 days 4 hours ago)
by wulf
Affects: 
(2 files)
/stable/11/sys/dev/atkbdc/psm.c
MFC r317811:

Fix triple-finger taps reported as double-finger for Elan hw v.4 touchpads

Wait for all advertised head packets after status packet have been received.
This fixes rare but quite annoying issue in Elan hw v.4 touchpads support
when triple-finger taps are reported as double-finger taps under several
circumstances.

MFC r317812:

Reduce default tap_min_queue size for Elan touchpads

Elan hw v.4 touchpads often sends touchpad release packet right after
touchpad touch one. Most probably this happens due to PS/2 limited bandwith.
Reducing of tap_min_queue size to 1 makes multifinger tap detection
more reliable in this case.

MFC r317813:

Adjust Elantech palm width threshold to nearly match synaptics defaults

MFC r317814:

psm(4): reduce cursor jumping on palm detection

This is done with discarding pointer movements rather then mouse packets

MFC r317815:

Enable palm detection on two finger touches for multitouch trackpads.

MFC r317816:

Report 3-rd and 4-th fingers as first finger for Elan hw v.2 and v.3 as
Linux does. It should not affect gesture processing in current state as it
ignores finger coords on 3-finger tap detection but it should make evdev
reports looking more Linux-alike.

MFC r317817:

Set predefined logical touchpad sizes for several ancient Elan hw v.2
models. This change is based on Linux driver.
Determine logical trace size. It used for calculation of touch sizes
in surface units for MT-protocol type B evdev reports.

MFC r317818:

psm(4): Remove sys/libkern.h header inclusion

It is already included via sys/systm.h

MFC r317819:

Reduce synaptics touch sensitivity

Increase hw.psm.synaptics.min_pressure default value from 16 to 32
to nearly match Linux driver (30-35 hysteresis loop).
This makes libinput tap detection more reliable.
21:09:31 - r318499
(5 days 4 hours ago)
by marius
Affects: 
(2 files)
/stable/10/sys/dev/usb/controller/xhci_pci.c
MFC: r314345, r318276

- Add ID for NEC uPD720202 xHCI controller.
- Describe Intel Apollo Lake and Braswell USB 3.0 controllers.
21:09:24 - r318498
(5 days 4 hours ago)
by marius
Affects: 
(2 files)
/stable/11/sys/dev/usb/controller/xhci_pci.c
MFC: r314345, r318276

- Add ID for NEC uPD720202 xHCI controller.
- Describe Intel Apollo Lake and Braswell USB 3.0 controllers.
21:00:53 - r318497
(5 days 5 hours ago)
by marius
Affects: 
(3 files)
/stable/10/sys/dev/sdhci/sdhci_acpi.c
/stable/10/sys/dev/sdhci/sdhci_pci.c
MFC: r318282

- Unlike as in the PCI case, when attached to ACPI, Intel Bay Trail
  and Braswell eMMC and SDXC controllers share the same IDs. Like in
  the PCI case, Braswell eMMC needs the SDHCI_QUIRK_DATA_TIMEOUT_1MHZ
  quirk (see r311794 for the corresponding change to the sdhci(4) PCI
  PCI front-end), though. However, due to the shared ACPI IDs, this
  is trickier to do.
- Intel Apollo Lake eMMC and SDXC controllers are affected by the
  APL18 ("Using 32-bit Addressing Mode With SD/eMMC Controller May
  Lead to Unpredictable System Behavior") silicon bug. When this
  erratum hits, typically both SDHCI and XHCI controllers wedge.
  According to Intel, using ADMA2 with 64-bit addressing and 96-bit
  descriptors serves as a workaround. Until such times when sdhci(4)
  has ADMA2 support, flag DMA as broken for affected interfaces.
  This turns out to work around the problem, too, at the cost of
  performance.
- In the sdhci(4) ACPI front-end, probe the Intel Apollo Lake eMMC
  and SDXC controllers, too.
21:00:50 - r318496
(5 days 5 hours ago)
by marius
Affects: 
(3 files)
/stable/11/sys/dev/sdhci/sdhci_acpi.c
/stable/11/sys/dev/sdhci/sdhci_pci.c
MFC: r318282

- Unlike as in the PCI case, when attached to ACPI, Intel Bay Trail
  and Braswell eMMC and SDXC controllers share the same IDs. Like in
  the PCI case, Braswell eMMC needs the SDHCI_QUIRK_DATA_TIMEOUT_1MHZ
  quirk (see r311794 for the corresponding change to the sdhci(4) PCI
  PCI front-end), though. However, due to the shared ACPI IDs, this
  is trickier to do.
- Intel Apollo Lake eMMC and SDXC controllers are affected by the
  APL18 ("Using 32-bit Addressing Mode With SD/eMMC Controller May
  Lead to Unpredictable System Behavior") silicon bug. When this
  erratum hits, typically both SDHCI and XHCI controllers wedge.
  According to Intel, using ADMA2 with 64-bit addressing and 96-bit
  descriptors serves as a workaround. Until such times when sdhci(4)
  has ADMA2 support, flag DMA as broken for affected interfaces.
  This turns out to work around the problem, too, at the cost of
  performance.
- In the sdhci(4) ACPI front-end, probe the Intel Apollo Lake eMMC
  and SDXC controllers, too.
20:46:27 - r318495
(5 days 5 hours ago)
by marius
Affects: 
(11 files)
/stable/10/sys/dev/mmc/*
/stable/10/sys/dev/sdhci/*
MFC: r315598

o Add support for eMMC DDR bus speed mode up to 52 MHz to sdhci(4)
  and mmc(4). Given that support for DDR52 is not denoted by SDHCI
  capability registers, availability of that timing is indicated by
  a new quirk SDHCI_QUIRK_MMC_DDR52 and only enabled for Intel SDHCI
  controllers so far.

  Compared to 50 MHz at SDR high speed typically yielding ~45 MB/s
  read throughput with the eMMC chips tested, read performance goes
  up to ~80 MB/s at DDR52.

  As a side-effect, this change also fixes communication with some
  eMMC devices at SDR high speed mode due to the signaling voltage
  and UHS bits in the SDHCI controller no longer being left in an
  inappropriate state.

o In sdhci(4), add two tunables hw.sdhci.quirk_clear as well as
  hw.sdhci.quirk_set, which (when hooked up in the front-end)
  allow to set/clear sdhci(4) quirks for debugging and testing
  purposes. However, especially for SDHCI controllers on the
  PCI bus which have no specific support code so far and, thus,
  are picked up as generic SDHCI controllers, hw.sdhci.quirk_set
  allows for setting the necessary quirks (if required).

o In mmc(4), check and handle the return values of some more
  function calls instead of assuming that everything went right.
  In case failures actually are not problematic, indicate that
  by casting the return value to void.
20:46:20 - r318494
(5 days 5 hours ago)
by marius
Affects: 
(11 files)
/stable/11/sys/dev/mmc/*
/stable/11/sys/dev/sdhci/*
MFC: r315598

o Add support for eMMC DDR bus speed mode up to 52 MHz to sdhci(4)
  and mmc(4). Given that support for DDR52 is not denoted by SDHCI
  capability registers, availability of that timing is indicated by
  a new quirk SDHCI_QUIRK_MMC_DDR52 and only enabled for Intel SDHCI
  controllers so far.

  Compared to 50 MHz at SDR high speed typically yielding ~45 MB/s
  read throughput with the eMMC chips tested, read performance goes
  up to ~80 MB/s at DDR52.

  As a side-effect, this change also fixes communication with some
  eMMC devices at SDR high speed mode due to the signaling voltage
  and UHS bits in the SDHCI controller no longer being left in an
  inappropriate state.

o In sdhci(4), add two tunables hw.sdhci.quirk_clear as well as
  hw.sdhci.quirk_set, which (when hooked up in the front-end)
  allow to set/clear sdhci(4) quirks for debugging and testing
  purposes. However, especially for SDHCI controllers on the
  PCI bus which have no specific support code so far and, thus,
  are picked up as generic SDHCI controllers, hw.sdhci.quirk_set
  allows for setting the necessary quirks (if required).

o In mmc(4), check and handle the return values of some more
  function calls instead of assuming that everything went right.
  In case failures actually are not problematic, indicate that
  by casting the return value to void.
20:45:09 - r318493
(5 days 5 hours ago)
by trasz
Affects: 
(19 files)
/stable/11/share/man/man4/*
MFC r317463:

Add information about device nodes to man pages for USB serial drivers.

MFC r318016:

Fix mistake introduced to uart(4) man page in r317463.

MFC r318017:

Fix device paths for USB serial adapters: the formatting strings
contain "%u", differently from eg uart(4) which uses "%r".
20:41:55 - r318492
(5 days 5 hours ago)
by trasz
Affects: 
(5 files)
/stable/11/share/man/man4/*
MFC r317460:

Add some .Xrs to USB serial driver man pages.
20:40:49 - r318491
(5 days 5 hours ago)
by trasz
Affects: 
(3 files)
/stable/11/sbin/kldconfig/kldconfig.8
/stable/11/sbin/kldload/kldload.8
MFC r317517:

Advertise kldxref(8) a little better.
20:37:47 - r318490
(5 days 5 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/etc/autofs/special_media
MFC r317803:

Enable automounting of exFAT media.

With fstyp(8) being updated to detect exfat in base r312003, it seems
like a good time to add support for auto-mounting SDXC cards -- which
use exfat by default.

The user will need to locally compile and install sysutils/fusefs-exfat
for this to succeed; logs a message to that effect when not installed.

PR: 218743
Submitted by: eborisch+FreeBSD@gmail.com
20:36:07 - r318489
(5 days 5 hours ago)
by trasz
Affects: 
(3 files)
/stable/11/usr.sbin/fstyp/fstyp.8
/stable/11/usr.sbin/fstyp/fstyp.c
MFC r317459:

Make fstyp(8) recognize exFAT even without the -u option.

While it's not directly mountable with mount(8), it's something that's
mountable - differently from GELI or zpools.
20:34:25 - r318488
(5 days 5 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/sys/kern/vfs_bio.c
MFC r317348:

Make it possible to terminate "show lockedbufs" by pressing "q".
20:32:12 - r318487
(5 days 5 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/usr.bin/tip/tip/cu.1
MFC r317280:

Add basic example to the cu(1) man page. Srsly, folks, you don't
need to install minicom for this...
20:31:09 - r318486
(5 days 5 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/share/man/man4/geom.4
MFC r317212:

Mention GEOM_MOUNTVER.
20:29:47 - r318485
(5 days 5 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/sys/kern/vfs_bio.c
MFC r316941:

Don't try to write out bufs that have already failed with ENXIO.
This fixes some panics after disconnecting mounted disks.
20:15:35 - r318484
(5 days 5 hours ago)
by markj
Affects: 
(539 files)
/user/markj/PQ_LAUNDRY_11/*
Merge from stable/11 at r318483.
19:50:15 - r318483
(5 days 6 hours ago)
by mm
Affects: 
(37 files)
/stable/10/contrib/libarchive/*
/stable/10/lib/libarchive/tests/Makefile
MFC r317782,318181:

MFC r317782 (mm):
  Sync libarchive with vendor

  Vendor changes (FreeBSD-related):
  PR 897: add test for ZIP archives with invalid EOCD headers
  PR 901: fix invalid renaming of sparse files
  OSS-Fuzz issue 497: remove fallback tree in LZX decoder
  OSS-Fuzz issue 527: rewrite expressions in lz4 filter
  OSS-Fuzz issue 577: fix integer overflow in cpio reader
  OSS-Fuzz issue 862: fix numerc parsing in mtree reader
  OSS-Fuzz issue 1097: fix undefined shift in rar reader
  cpio: various optimizations and memory leak fixes

MFC r318181 (ngie) (2):
  cpio/tests/test_option_lz4: fix a use after free in the failure case

Reported by: Coverity (2)
Sponsored by: Dell EMC Isilon (2)
19:47:43 - r318482
(5 days 6 hours ago)
by mm
Affects: 
(37 files)
/stable/11/contrib/libarchive/*
/stable/11/lib/libarchive/tests/Makefile
MFC r317782,318181:

MFC r317782 (mm):
  Sync libarchive with vendor

  Vendor changes (FreeBSD-related):
  PR 897: add test for ZIP archives with invalid EOCD headers
  PR 901: fix invalid renaming of sparse files
  OSS-Fuzz issue 497: remove fallback tree in LZX decoder
  OSS-Fuzz issue 527: rewrite expressions in lz4 filter
  OSS-Fuzz issue 577: fix integer overflow in cpio reader
  OSS-Fuzz issue 862: fix numerc parsing in mtree reader
  OSS-Fuzz issue 1097: fix undefined shift in rar reader
  cpio: various optimizations and memory leak fixes

MFC r318181 (ngie) (2):
  cpio/tests/test_option_lz4: fix a use after free in the failure case

Reported by: Coverity (2)
Sponsored by: Dell EMC Isilon (2)
19:42:19 - r318481
(5 days 6 hours ago)
by trasz
Affects:  /head/usr.bin/resizewin/resizewin.1
Language fixes.

Submitted by: wblock
MFC after: 2 weeks
18:39:23 - r318480
(5 days 7 hours ago)
by markj
Affects: 
(2 files)
/stable/11/sys/boot/efi/loader/main.c
MFC r318193:
Set the right variable when overriding the default console speed.
18:37:19 - r318479
(5 days 7 hours ago)
by markj
Affects:  /head/sys/dev/drm2/ttm/ttm_page_alloc.c
Don't bother enqueuing a page immediately before freeing it.

No functional change intended.

MFC after: 1 week
18:35:14 - r318478
(5 days 7 hours ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/src/linux_compat.c
/head/sys/dev/drm2/ttm/ttm_bo_vm.c
Fix a few uses of kern_yield() in the TTM and the LinuxKPI.

kern_yield(0) effectively causes the calling thread to be rescheduled
immediately since it resets the thread's priority to the highest possible
value. This can cause livelocks when the pattern
"while (!trylock()) kern_yield(0);" is used since the thread holding the
lock may linger on the runqueue for the CPU on which the looping thread is
running.

MFC after: 1 week
18:33:33 - r318477
(5 days 7 hours ago)
by dim
Affects: 
(147 files)
/projects/clang500-import/contrib/*
/projects/clang500-import/lib/clang/include/*
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r303291, and update
build glue.
18:24:11 - r318476
(5 days 7 hours ago)
by markj
Affects:  /head/sys/kern/kern_fail.c
Avoid open-coding PRI_UNCHANGED.

MFC after: 1 week
18:18:39 - r318475
(5 days 7 hours ago)
by gjb
Affects: 
(3 files)
/stable/11/release/doc/en_US.ISO8859-1/installation/Makefile
/stable/11/release/doc/en_US.ISO8859-1/installation/article.xml
Add the installation/article.xml for installation.html.
This is not yet connected to the build.

Sponsored by: The FreeBSD Foundation
17:55:33 - r318474
(5 days 8 hours ago)
by emaste
Affects:  /head/usr.sbin/makefs/Makefile
makefs: drop WARNS back to 2

GCC warns about additional signed comparision issues compared to Clang.
Drop WARNS for now until the underlying issue is fixed.
17:44:45 - r318473
(5 days 8 hours ago)
by emaste
Affects:  /stable/11/share/man/man5/src.conf.5
regen src.conf(5) after r318472
17:40:30 - r318472
(5 days 8 hours ago)
by emaste
Affects: 
(6 files)
/stable/11/*
MFC LLD changes and enable LLD as /usr/bin/ld on arm64 by default

MFC r316629: do not require binutils port when using lld as ld

r279908 added logic to Makefile.inc1 to automatically set
CROSS_BINUTILS_PREFIX for architectures not supported by the in-tree
binutils: arm64 when first introduced, and later riscv64 as well.

LLVM's LLD linker is now included in the base system, and is enabled by
default for arm64 and capable of linking world and kernel. Thus, avoid
automatically setting CROSS_BINUTILS_PREFIX and requiring the binutils
port if WITH_LLD_IS_LD is true.

--

MFC r317608: revert r313473 (Disable LLD_IS_LD option combinations that fail)

r316647 corrected the build of tblgen and libllvm as dependencies for
LLD so undo the temporary seat-belt.

We still want to extend the build infrastructure to automatically detect
the case where the host LLD can be used instead of building a bootstrap
LLD, and likely extend libllvmminimal to meet LLD's needs for cases
where the build includes LLD but not Clang.

--

MFC r316684: Make WITHOUT_TOOLCHAIN imply WITHOUT_LLD.

LLD is a toolchain component.

--

MFC r316647: Introduce LLD_BOOTSTRAP to control lld as bootstrap linker

Add WITH_LLD_BOOTSTRAP and WITHOUT_LLD_BOOTSTRAP knobs, similar to the
Clang bootstrap knobs.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10793
17:15:58 - r318471
(5 days 8 hours ago)
by pstef
Affects: 
(4 files)
/head/usr.bin/indent/lexi.c
/head/usr.bin/indent/tests/*
indent(1): Support binary integer literals.
This was done by Romain Tartière for PR123553. I initially thought that it
would break code like this:
#define b00101010 -1
if (0 b00101010)
...

by joining 0 and b00101010 together. However, the real problem with that patch
was that once it saw a 0, it assumed that the number was base 2, 8 or 16,
ignoring base 10 floating point numbers. I fixed that.

I didn't copy the diagnostic part of the original patch as it seems out of
scope of implementing binary integer literals formatting.

PR: 123553
Submitted by: romain (original version)
Approved by: pfg (mentor)
17:01:26 - r318470
(5 days 9 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/hardware/article.xml
Further refine grammar.

Submitted by: adamw
Sponsored by: The FreeBSD Foundation
16:32:41 - r318469
(5 days 9 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/readme/article.xml
Prefer https://download.FreeBSD.org as the official release site.

Sponsored by: The FreeBSD Foundation
16:24:11 - r318468
(5 days 9 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/hardware/article.xml
/stable/11/release/doc/en_US.ISO8859-1/readme/article.xml
Fix grammar nits.

Sponsored by: The FreeBSD Foundation
16:24:10 - r318467
(5 days 9 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/hardware/article.xml
/stable/11/release/doc/en_US.ISO8859-1/readme/article.xml
Fix FDP style nits reported by igor(1).
Bump copyright year in readme/article.xml.

Sponsored by: The FreeBSD Foundation
15:41:59 - r318466
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/errata/article.xml
Fix FDP style nits found by igor(1).

Sponsored by: The FreeBSD Foundation
15:41:58 - r318465
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r311686, bsdinstall(8) hidden wifi network support.

Sponsored by: The FreeBSD Foundation
15:41:57 - r318464
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Move the ixl(4) entry to the network driver section.

Sponsored by: The FreeBSD Foundation
15:41:56 - r318463
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r310852, miibus(4) Microchip/Micrel KSZ9031 support.

Sponsored by: The FreeBSD Foundation
15:41:56 - r318462
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
/stable/11/release/doc/share/xml/sponsor.ent
Document r315330, etherswitch(4) support for RTL8366RB and RTL8366SR.
Correct the Netgate sponsor entity while here.

Sponsored by: The FreeBSD Foundation
15:41:55 - r318461
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Clarify the cxgbe(4) firmware update is for T4, T5, and T6 cards.

Sponsored by: The FreeBSD Foundation
15:41:54 - r318460
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r307576, Elantech support added to atkbdc(4).

Sponsored by: The FreeBSD Foundation
15:41:53 - r318459
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Add missing revision for cloudabi 32-bit support.

Sponsored by: The FreeBSD Foundation
15:41:52 - r318458
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
/stable/11/release/doc/share/xml/sponsor.ent
Document r314005, alc(4) Killer E2500 support.

Sponsored by: The FreeBSD Foundation
15:41:51 - r318457
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r312358, alc(4) Killer E2400 support.

Sponsored by: The FreeBSD Foundation
15:41:50 - r318456
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r311506, cxgbe(4) firmware version 1.16.26.0.

Sponsored by: The FreeBSD Foundation
15:41:49 - r318455
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/hardware/article.xml
Add qlnxe(4)

Sponsored by: The FreeBSD Foundation
15:41:49 - r318454
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r318357, ixl(4) updated to version 1.7.12-k.

Sponsored by: The FreeBSD Foundation
15:41:48 - r318453
(5 days 10 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r307144, cloudabi 32-bit support on 64-bit envionments.

Sponsored by: The FreeBSD Foundation
14:19:06 - r318452
(5 days 11 hours ago)
by manu
Affects: 
(4 files)
/head/usr.sbin/makefs/*
makefs: Add soft-updates option

Add the ffs option to enable soft-updates.
The option is only processed is ufs2 has been selected.

Reviewed by: emaste, bapt (earlier version), allanjude (earlier version)
Sponsored by: Gandi.net
Differential Revision: https://reviews.freebsd.org/D10773
14:05:29 - r318451
(5 days 12 hours ago)
by emaste
Affects: 
(6 files)
/head/usr.sbin/makefs/*
makefs: clean up signedness warnings and bump WARNS to 3

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D10650
13:49:53 - r318450
(5 days 12 hours ago)
by kib
Affects:  /head/lib/libc/tests/gen/Makefile
/head/lib/libc/tests/gen/realpath2_test.c
Add tests for some cases in r318298.

The first test triggers the out of bounds read of the 'left' array. It
only fails when realpath.c is compiled with '-fsanitize=address'.

The other test checks for ENOENT when running into an empty
symlink. This matches NetBSD's realpath(3) semantics. Previously,
empty symlinks were treated like ".".

Submitted by: Jan Kokemц╪ller <jan.kokemueller@gmail.com>
PR: 219154
MFC after: 2 weeks
13:19:07 - r318449
(5 days 12 hours ago)
by allanjude
Affects: 
(8 files)
/stable/11/contrib/top/*
/stable/11/usr.bin/top/*
MFC r315435:
  Add ZFS compressed ARC stats to top(1)

MFC r316314:
  top(1) read the wrong amount of data from sysctl

MFC r318448:
  Explain the new fields in top(1) related to ZFS compressed ARC

Remove the laundry field during the merge, does not exist in stable/11
12:55:07 - r318448
(5 days 13 hours ago)
by allanjude
Affects:  /head/usr.bin/top/top.local.1
Explain the new fields in top(1) related to ZFS compressed ARC

Reviewed by: bcr
X-MFC-with: 316314
Differential Revision: https://reviews.freebsd.org/D10781
12:27:41 - r318447
(5 days 13 hours ago)
by gjb
Affects: 
(4 files)
/stable/10/README
/stable/11/README
MFC r318294:
 Correct the URL to instructions for updating system sources.

PR: 219303
Sponsored by: The FreeBSD Foundation
09:34:26 - r318446
(5 days 16 hours ago)
by kib
Affects:  /head/libexec/rtld-elf/rtld.c
Update my copyright, note The FreeBSD Foundation involvement.
While tweaking copyright block, switch to use __FBSDID for tag.

Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
09:31:30 - r318445
(5 days 16 hours ago)
by kib
Affects:  /head/libexec/rtld-elf/rtld.c
Fix style [1], add static keyword before static function definition.

Noted by: bapt [1]
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
08:25:07 - r318444
(5 days 17 hours ago)
by trasz
Affects:  /head/sys/geom/geom_vfs.c
Fix typo.

MFC after: 2 weeks
06:33:55 - r318443
(5 days 19 hours ago)
by ngie
Affects: 
(5 files)
/head/etc/Makefile
/head/etc/cron.d/*
/head/etc/crontab
Conditionally handle the crontab entry for atrun(8)

The default crontab prior to this commit assumes atrun(8) is always
present, which isn't true if MK_AT == no. Move atrun(8) execution
from /etc/crontab to /etc/cron.d/at, and base /etc/cron.d/at's installation
on MK_AT. cron(8) will detect /etc/cron.d/at's presence when the configuration
is loaded and run atrun every 5 minutes like it would prior to this commit.

SHELL and PATH are duplicated between /etc/crontab and /etc/cron.d/at
because atrun(8) executes programs, which may rely on environment
set in the current default /etc/crontab.

Noted by: bdrewery (in an internal review)
MFC after: 2 months
Relnotes: yes (may need to add environmental modifications to
  /etc/cron.d/at)
Sponsored by: Dell EMC Isilon
06:27:37 - r318442
(5 days 19 hours ago)
by ngie
Affects:  /head/etc/Makefile
/head/etc/cron.d
/head/etc/crontab
Revert r318441: the commit message was incoherent
06:25:39 - r318441
(5 days 19 hours ago)
by ngie
Affects: 
(5 files)
/head/etc/Makefile
/head/etc/cron.d/*
/head/etc/crontab
Handle the cron.d entry for MK_AT in cron conditionally

Install /etc/cron.d/at if MK_AT != no, always using it, which tries
to run a non-existent program via cron(8) every 5 minutes with the
default /etc/crontab, prior to this commit.

SHELL and PATH are duplicated between /etc/crontab and /etc/cron.d/at
because atrun(8) executes programs, which may rely on environment
currently set via /etc/crontab.

Noted by: bdrewery (in an internal review)
MFC after: 2 months
Relnotes: yes (may need to add environmental modifications to
  /etc/cron.d/at)
Sponsored by: Dell EMC Isilon
06:15:42 - r318440
(5 days 19 hours ago)
by ngie
Affects:  /head/sys/modules/dtrace/dtaudit/Makefile
Normalize SYSDIR on SRCTOP instead of .CURDIR

This is being done to simplify pathing for CFLAGS and source files.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
06:13:29 - r318439
(5 days 19 hours ago)
by ngie
Affects:  /head/sys/modules/ipsec/Makefile
Normalize .PATH on SRCTOP

This will help Jenkins dedupe 9 warnings between the static build and
the module build of ipsec(4).

Missed in SRCTOP conversion in r314651.

MFC with: r314651
Sponsored by: Dell EMC Isilon
03:32:01 - r318438
(5 days 22 hours ago)
by smh
Affects: 
(4 files)
/stable/10/cddl/lib/libdtrace/ip.d
/stable/10/sys/netinet/in_kdtrace.c
/stable/10/sys/netinet/tcp_input.c
Revert the partial MFC of r313045 which broke dtrace

This removes the mbuf to ipinfo_t translator and switches tcp_autorcvbuf to
use the older mtod macro.

This was originally merged to stable/10 as part of r317375.

Reported by: markj
Reviewed by: markj, hiren
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D10769
01:46:30 - r318437
(6 days ago)
by ngie
Affects:  /head/usr.bin/getconf/getconf.h
Revert local changes to find_progenv accidentally committed in r318436

MFC after: 2 weeks
MFC with: r318436
Sponsored by: Dell EMC Isilon
01:43:30 - r318436
(6 days ago)
by ngie
Affects: 
(7 files)
/head/etc/mtree/BSD.tests.dist
/head/usr.bin/getconf/*
usr.bin/getconf: add some initial tests

Items tested via this commit are:
- Some basic POSIX constants.
- Some valid programming environments with -v.
- Some invalid programming environments via -v.

NOTE: this test makes assumptions about ILP32/LP32 vs LP64 that are
currently not true on all architectures to avoid hardcoding some
architectures in the tests. I'm working on improving getconf(1) to be
more sane about handling ILP32/LP32 vs LP64. Future commits are coming
soon to address this.

MFC after: 2 weeks
Tested with: amd64, i386
Sponsored by: Dell EMC Isilon
01:42:55 - r318435
(6 days ago)
by sephe
Affects: 
(2 files)
/stable/10/contrib/hyperv/tools/hv_kvp_daemon.c
MFC 317783
  hyperv/kvp: Fix pool direcrory and file permission

  PR: 209385
  Sponsored by: Microsoft
01:35:07 - r318434
(6 days ago)
by ngie
Affects:  /head/usr.bin/getconf/Makefile
Make the `.gperf.c` suffix rule depend on fake-gperf.awk

Parameterize out fake-gperf.awk to avoid duplicating the path

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
01:32:50 - r318433
(6 days ago)
by sephe
Affects: 
(2 files)
/stable/11/contrib/hyperv/tools/hv_kvp_daemon.c
MFC 317783
  hyperv/kvp: Fix pool direcrory and file permission

  PR: 209385
  Sponsored by: Microsoft
00:32:05 - r318432
(6 days 1 hour ago)
by jonathan
Affects:  /head/libexec/rtld-elf/rtld.1
Fix some nroff syntax in rtld.1.

When I originally documented the LD_LIBRARY_PATH_FDS environment variable,
I used `.Ev` rather than `.It Ev` to introduce it; this led to the
documentation being embedded in the previous paragraph (LD_LIBRARY_PATH).

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 32 ms, 339 revisions printed. Current time is 2017-05-24 02:09:12. All times are in UTC/GMT.