svn commit: r323346 - in head/sys: powerpc/powerpc riscv/riscv

2017-09-08 Thread Mateusz Guzik
Author: mjg Date: Sat Sep 9 05:56:04 2017 New Revision: 323346 URL: https://svnweb.freebsd.org/changeset/base/323346 Log: Fix riscv and powerpc compilation after r323329. On these archs bzero is a C function, which triggers a compilation error as the compiler tries to expand the macro.

svn commit: r323345 - head/usr.bin/tail/tests

2017-09-08 Thread Ngie Cooper
Author: ngie Date: Sat Sep 9 05:50:47 2017 New Revision: 323345 URL: https://svnweb.freebsd.org/changeset/base/323345 Log: Check result of seq call and save output via atf_check -o This ensures that seq outputting to ints will not fail as silently if there's an error. Modified:

svn commit: r323343 - head/sys/dev/cxgbe

2017-09-08 Thread Navdeep Parhar
Author: np Date: Sat Sep 9 05:12:14 2017 New Revision: 323343 URL: https://svnweb.freebsd.org/changeset/base/323343 Log: cxgbe(4): Fix a couple of problems in the sge_wrq data path. - start_wrq_wr must not drain the wr_list if there are incomplete_wrs pending. This can happen when a

Re: svn commit: r323329 - head/sys/sys

2017-09-08 Thread Ngie Cooper (yaneurabeya)
> On Sep 8, 2017, at 13:09, Mateusz Guzik wrote: > > Author: mjg > Date: Fri Sep 8 20:09:14 2017 > New Revision: 323329 > URL: https://svnweb.freebsd.org/changeset/base/323329 > > Log: > Allow __builtin_memset instead of bzero for small buffers of known size > > In

Re: svn commit: r323342 - head/usr.sbin/manctl

2017-09-08 Thread Cy Schubert
In message <201709090309.v89392bq078...@repo.freebsd.org>, Gordon Tetlow writes : > Author: gordon > Date: Sat Sep 9 03:09:02 2017 > New Revision: 323342 > URL: https://svnweb.freebsd.org/changeset/base/323342 > > Log: > The purge option hasn't been implemented since 1994 when we imported

svn commit: r323342 - head/usr.sbin/manctl

2017-09-08 Thread Gordon Tetlow
Author: gordon Date: Sat Sep 9 03:09:02 2017 New Revision: 323342 URL: https://svnweb.freebsd.org/changeset/base/323342 Log: The purge option hasn't been implemented since 1994 when we imported this code. I think it is safe to say it's not going to be. I'm also working to de-orbit catman,

svn commit: r323340 - head/sys/powerpc/mpc85xx

2017-09-08 Thread Justin Hibbits
Author: jhibbits Date: Sat Sep 9 02:19:44 2017 New Revision: 323340 URL: https://svnweb.freebsd.org/changeset/base/323340 Log: Add P5021 and P5040 conditions for LAW count check. P5040/P5021 have the same number of LAWs as P5020. There may be a better way of getting the count from the

svn commit: r323339 - head/sys/powerpc/include

2017-09-08 Thread Justin Hibbits
Author: jhibbits Date: Sat Sep 9 02:08:22 2017 New Revision: 323339 URL: https://svnweb.freebsd.org/changeset/base/323339 Log: Add some more PVR and SVR defines These processors may not be supported yet, but add them for completion. POWER9 is planned for support. e300 may work

svn commit: r323338 - head/sys/geom/eli

2017-09-08 Thread Conrad Meyer
Author: cem Date: Sat Sep 9 01:41:01 2017 New Revision: 323338 URL: https://svnweb.freebsd.org/changeset/base/323338 Log: Fix information leak in geli(8) integrity mode In integrity mode, a larger logical sector (e.g., 4096 bytes) spans several physical sectors (e.g., 512 bytes) on the

svn commit: r323337 - stable/10/usr.sbin/bsdinstall/scripts

2017-09-08 Thread Ed Maste
Author: emaste Date: Sat Sep 9 01:23:30 2017 New Revision: 323337 URL: https://svnweb.freebsd.org/changeset/base/323337 Log: MFC r322374: bsdinstall: record DHCP config after obtaining lease Previously we added an ifconfig_$INTERFACE line to rc.conf for each unsuccessful DCHP attempt.

svn commit: r323336 - stable/11/usr.sbin/bsdinstall/scripts

2017-09-08 Thread Ed Maste
Author: emaste Date: Sat Sep 9 00:33:19 2017 New Revision: 323336 URL: https://svnweb.freebsd.org/changeset/base/323336 Log: MFC r322374: bsdinstall: record DHCP config after obtaining lease Previously we added an ifconfig_$INTERFACE line to rc.conf for each unsuccessful DCHP attempt.

svn commit: r323333 - in stable/10/usr.sbin/pw: . tests

2017-09-08 Thread Ed Maste
Author: emaste Date: Fri Sep 8 21:16:23 2017 New Revision: 32 URL: https://svnweb.freebsd.org/changeset/base/32 Log: MFC r322677: pw usermod: handle empty secondary group lists (-G '') "pw usermod someuser -G ''" is supposed make sure that someuser doesn't have any secondary

svn commit: r323332 - in stable/10/usr.sbin/pw: . tests

2017-09-08 Thread Ed Maste
Author: emaste Date: Fri Sep 8 21:02:15 2017 New Revision: 323332 URL: https://svnweb.freebsd.org/changeset/base/323332 Log: MFC r322678: pw useradd: Validate the user name before creating the entry Previouly it was possible to create users with spaces in the name with: pw useradd -u

svn commit: r323331 - stable/10/sys/cddl/contrib/opensolaris/common/zfs

2017-09-08 Thread Ed Maste
Author: emaste Date: Fri Sep 8 20:41:49 2017 New Revision: 323331 URL: https://svnweb.freebsd.org/changeset/base/323331 Log: MFC r323002: zfs: do not advertise unsupported hash algorithms illumos 4185 ("add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R") was intentionally

svn commit: r323330 - in head/sys/dev: mpr mps

2017-09-08 Thread Scott Long
Author: scottl Date: Fri Sep 8 20:20:35 2017 New Revision: 323330 URL: https://svnweb.freebsd.org/changeset/base/323330 Log: Refactor interrupt allocation and deallocation. Add some extra diagnostics. No other functional changes. Sponsored by: Netflix Modified:

svn commit: r323329 - head/sys/sys

2017-09-08 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 8 20:09:14 2017 New Revision: 323329 URL: https://svnweb.freebsd.org/changeset/base/323329 Log: Allow __builtin_memset instead of bzero for small buffers of known size In particular this eliminates function calls and related register save/restore when only few

svn commit: r323327 - head/sys/x86/pci

2017-09-08 Thread Konstantin Belousov
Author: kib Date: Fri Sep 8 19:51:03 2017 New Revision: 323327 URL: https://svnweb.freebsd.org/changeset/base/323327 Log: Enhance qpi.c to make it usable on all Core-microarchitecture Xeons. Scan all buses for CSR bus, not stopping on the first failed match. Scan all slots for function

svn commit: r323326 - head/sys/x86/iommu

2017-09-08 Thread Konstantin Belousov
Author: kib Date: Fri Sep 8 19:45:37 2017 New Revision: 323326 URL: https://svnweb.freebsd.org/changeset/base/323326 Log: Use IOAPIC PCI rid as the interrupt TLP source id for DMAR interrupt remapping. VT-d specification requires use of PCI rid as source id for IOAPICs enumerated by

svn commit: r323325 - in head/sys/x86: include x86

2017-09-08 Thread Konstantin Belousov
Author: kib Date: Fri Sep 8 19:39:20 2017 New Revision: 323325 URL: https://svnweb.freebsd.org/changeset/base/323325 Log: Add an ioapic_get_rid() function to obtain PCIe TLP requester-id for the interrupt messages from given IOAPIC, if the IOAPIC can be enumerated on PCI bus. If

svn commit: r323324 - head/sys/x86/include

2017-09-08 Thread Konstantin Belousov
Author: kib Date: Fri Sep 8 19:25:11 2017 New Revision: 323324 URL: https://svnweb.freebsd.org/changeset/base/323324 Log: Add a constant specifying the min size of the IOAPIC registers window. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified:

svn commit: r323323 - head/share/mk

2017-09-08 Thread Bryan Drewery
Author: bdrewery Date: Fri Sep 8 19:20:42 2017 New Revision: 323323 URL: https://svnweb.freebsd.org/changeset/base/323323 Log: Tweak comment for install -S usage since it does not impact the build. The -S flag is currently ignored for builds since we filter through tools/install.sh that

svn commit: r323322 - head/sys/compat/freebsd32

2017-09-08 Thread Maxim Sobolev
Author: sobomax Date: Fri Sep 8 18:32:13 2017 New Revision: 323322 URL: https://svnweb.freebsd.org/changeset/base/323322 Log: Correct bintime32 declaration: uint32_t sec -> time32_t sec. Submitted by: jhb MFC after:1 month Modified: head/sys/compat/freebsd32/freebsd32.h

svn commit: r323321 - head/sys/dev/bnxt

2017-09-08 Thread Stephen Hurd
Author: shurd Date: Fri Sep 8 18:03:34 2017 New Revision: 323321 URL: https://svnweb.freebsd.org/changeset/base/323321 Log: Added support for displaying HW port stats using sysctl. This provides port stats (updated once per second) in dev.bnxt.X.port_stats for PFs. VFs do not have

svn commit: r323320 - head/sys/dev/mfi

2017-09-08 Thread Scott Long
Author: scottl Date: Fri Sep 8 17:51:19 2017 New Revision: 323320 URL: https://svnweb.freebsd.org/changeset/base/323320 Log: Fix intrhook release in MFI as well Modified: head/sys/dev/mfi/mfi.c Modified: head/sys/dev/mfi/mfi.c

svn commit: r323319 - head/sys/dev/amr

2017-09-08 Thread Scott Long
Author: scottl Date: Fri Sep 8 17:40:29 2017 New Revision: 323319 URL: https://svnweb.freebsd.org/changeset/base/323319 Log: As with r323317, hold off on releasing the intrhook during boot until we're ready to accept probing from GEOM. Untested, but the pattern is the same as with aac.

Re: svn commit: r323254 - head/sys/compat/freebsd32

2017-09-08 Thread John Baldwin
On 9/8/17 10:56 AM, Ian Lepore wrote: > On Fri, 2017-09-08 at 08:14 -0400, John Baldwin wrote: >> On 9/7/17 12:29 AM, Maxim Sobolev wrote: >>> >>> Author: sobomax >>> Date: Thu Sep  7 04:29:57 2017 >>> New Revision: 323254 >>> URL: https://svnweb.freebsd.org/changeset/base/323254 >>> >>> Log: >>>  

svn commit: r323317 - head/sys/dev/aac

2017-09-08 Thread Scott Long
Author: scottl Date: Fri Sep 8 16:52:59 2017 New Revision: 323317 URL: https://svnweb.freebsd.org/changeset/base/323317 Log: Move the intrhook release to later in the function so that GEOM knows to wait longer for possible root devices to come online. This fixes a race that seems to be

svn commit: r323316 - head/lib/libgeom

2017-09-08 Thread Conrad Meyer
Author: cem Date: Fri Sep 8 15:44:52 2017 New Revision: 323316 URL: https://svnweb.freebsd.org/changeset/base/323316 Log: libgeom: Remove redundant and duplicated code In g_open(), g_device_path_open(). No functional change. Sponsored by: Dell EMC Isilon Modified:

svn commit: r323315 - head/sbin/geom/class/virstor

2017-09-08 Thread Conrad Meyer
Author: cem Date: Fri Sep 8 15:38:02 2017 New Revision: 323315 URL: https://svnweb.freebsd.org/changeset/base/323315 Log: geom_virstor: Remove wholly unnecessary g_metadata_store copy Just code cleanup. No functional change. Sponsored by: Dell EMC Isilon Modified:

Re: svn commit: r323254 - head/sys/compat/freebsd32

2017-09-08 Thread Ian Lepore
On Fri, 2017-09-08 at 08:14 -0400, John Baldwin wrote: > On 9/7/17 12:29 AM, Maxim Sobolev wrote: > > > > Author: sobomax > > Date: Thu Sep  7 04:29:57 2017 > > New Revision: 323254 > > URL: https://svnweb.freebsd.org/changeset/base/323254 > > > > Log: > >   In the recvmsg32() system call

svn commit: r323314 - in head/sbin/geom: class/virstor misc

2017-09-08 Thread Conrad Meyer
Author: cem Date: Fri Sep 8 15:08:17 2017 New Revision: 323314 URL: https://svnweb.freebsd.org/changeset/base/323314 Log: Audit userspace geom code for leaking memory to disk Any geom class using g_metadata_store, as well as geom_virstor which duplicated g_metadata_store internally,

svn commit: r323312 - head/sys/dev/e1000

2017-09-08 Thread Konstantin Belousov
Author: kib Date: Fri Sep 8 14:54:07 2017 New Revision: 323312 URL: https://svnweb.freebsd.org/changeset/base/323312 Log: Fix malloc() uses in em_get_regs(). Do not use malloc(M_NOWAIT), wait is possible there, and the malloc failures where not checked. Do not forget to free malloced

svn commit: r323311 - svnadmin/conf

2017-09-08 Thread Pedro F. Giffuni
Author: pfg Date: Fri Sep 8 14:35:17 2017 New Revision: 323311 URL: https://svnweb.freebsd.org/changeset/base/323311 Log: Add Fedor Uporov (fsu@) as a src committer. He will be having fun with the ext2fs driver and perhaps other slightly related places. Approved by: core

Re: svn commit: r323254 - head/sys/compat/freebsd32

2017-09-08 Thread John Baldwin
On 9/7/17 12:29 AM, Maxim Sobolev wrote: > Author: sobomax > Date: Thu Sep 7 04:29:57 2017 > New Revision: 323254 > URL: https://svnweb.freebsd.org/changeset/base/323254 > > Log: > In the recvmsg32() system call iterate over returned structure(s) > and convert any messages of types

svn commit: r323310 - head/sys/x86/pci

2017-09-08 Thread Konstantin Belousov
Author: kib Date: Fri Sep 8 10:39:28 2017 New Revision: 323310 URL: https://svnweb.freebsd.org/changeset/base/323310 Log: Consistently use tabs for indent. Sponsored by: The FreeBSD Foundation MFC after:1 week Modified: head/sys/x86/pci/qpi.c Modified: head/sys/x86/pci/qpi.c

svn commit: r323309 - head/sys/arm64/arm64

2017-09-08 Thread Andrew Turner
Author: andrew Date: Fri Sep 8 08:02:06 2017 New Revision: 323309 URL: https://svnweb.freebsd.org/changeset/base/323309 Log: Not all CPUs handle reading ID_AA64MMFR2_EL1 (e.g. qemu), disable it for now. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/identcpu.c Modified:

svn commit: r323308 - head/sys/kern

2017-09-08 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 8 06:57:11 2017 New Revision: 323308 URL: https://svnweb.freebsd.org/changeset/base/323308 Log: namecache: fold the unlock label into the only consumer No functional changes. MFC after:1 week Modified: head/sys/kern/vfs_cache.c Modified:

svn commit: r323307 - head/sys/kern

2017-09-08 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 8 06:51:33 2017 New Revision: 323307 URL: https://svnweb.freebsd.org/changeset/base/323307 Log: namecache: factor out dot lookup into a dedicated function The intent is to move uncommon cases out of the way. MFC after:1 week Modified:

svn commit: r323305 - head/sys/kern

2017-09-08 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 8 06:46:02 2017 New Revision: 323305 URL: https://svnweb.freebsd.org/changeset/base/323305 Log: Annotate global process locks with __exclusive_cache_line MFC after:1 week Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c

svn commit: r323306 - head/sys/kern

2017-09-08 Thread Mateusz Guzik
Author: mjg Date: Fri Sep 8 06:46:24 2017 New Revision: 323306 URL: https://svnweb.freebsd.org/changeset/base/323306 Log: Annotate Giant with __exclusive_cache_line Modified: head/sys/kern/kern_mutex.c Modified: head/sys/kern/kern_mutex.c