Re: svn commit: r303887 - head/tools/tools/dmardump

2016-08-10 Thread Konstantin Belousov
On Tue, Aug 09, 2016 at 02:22:36PM -0700, John Baldwin wrote: > On Tuesday, August 09, 2016 07:06:05 PM John Baldwin wrote: > > Author: jhb > > Date: Tue Aug 9 19:06:05 2016 > > New Revision: 303887 > > URL: https://svnweb.freebsd.org/changeset/base/303887 > > > > Log: > > Add a dmardump utilit

Re: svn commit: r303870 - head/sys/dev/mlx5/mlx5_en

2016-08-10 Thread Hans Petter Selasky
On 08/09/16 19:25, John Baldwin wrote: On Tuesday, August 09, 2016 07:43:15 AM Hans Petter Selasky wrote: Author: hselasky Date: Tue Aug 9 07:43:15 2016 New Revision: 303870 URL: https://svnweb.freebsd.org/changeset/base/303870 Log: Fix for use after free. Clear the device description to

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

2016-08-10 Thread Andrew Turner
Author: andrew Date: Wed Aug 10 10:13:34 2016 New Revision: 303903 URL: https://svnweb.freebsd.org/changeset/base/303903 Log: Implement pmap_align_superpage on arm64 based on the amd64 implementation. This will be needed when superpage support is added. Obtained from:ABT Systems L

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

2016-08-10 Thread Andrew Turner
Author: andrew Date: Wed Aug 10 10:36:11 2016 New Revision: 303904 URL: https://svnweb.freebsd.org/changeset/base/303904 Log: Uncomment the vm.kvm_size and vm.kvm_free sysctls. These work as expected so there is no reason to leave them commented out. Obtained from:ABT Systems Ltd

Re: svn commit: r303890 - in head/sys: contrib/ncsw/user/env contrib/octeon-sdk dev/auxio dev/bktr dev/e1000 dev/ixgb dev/ixgbe dev/ixl dev/netmap dev/pci dev/sound/sbus dev/tpm kern mips/nlm/dev/net

2016-08-10 Thread Konstantin Belousov
On Tue, Aug 09, 2016 at 07:32:06PM +, Jean-S??bastien P??dron wrote: > Author: dumbbell > Date: Tue Aug 9 19:32:06 2016 > New Revision: 303890 > URL: https://svnweb.freebsd.org/changeset/base/303890 > > Log: > Consistently use `device_t` > > Several files use the internal name of `stru

svn commit: r303908 - in head/sys: boot/fdt/dts/riscv conf riscv/conf riscv/htif riscv/include riscv/riscv

2016-08-10 Thread Ruslan Bukin
Author: br Date: Wed Aug 10 12:41:36 2016 New Revision: 303908 URL: https://svnweb.freebsd.org/changeset/base/303908 Log: o Remove operation in machine mode. Machine privilege level was specially designed to use in vendor's firmware or bootloader. We have implemented operation in machine

svn commit: r303911 - in head: share/mk sys/modules/dtrace/dtrace

2016-08-10 Thread Ruslan Bukin
Author: br Date: Wed Aug 10 13:32:27 2016 New Revision: 303911 URL: https://svnweb.freebsd.org/changeset/base/303911 Log: Remove extra -msoft-float flags settings. This helps to build firmware modules. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Modified: head/share/mk/bsd.cpu.mk

svn commit: r303913 - in head/sys: amd64/amd64 i386/i386

2016-08-10 Thread Konstantin Belousov
Author: kib Date: Wed Aug 10 13:44:03 2016 New Revision: 303913 URL: https://svnweb.freebsd.org/changeset/base/303913 Log: Unconditionally perform checks that FPU region was entered, when #NM exception is caught in kernel mode. There are third-party modules which trigger the issue, and sinc

svn commit: r303914 - head/sys/kern

2016-08-10 Thread Konstantin Belousov
Author: kib Date: Wed Aug 10 13:47:12 2016 New Revision: 303914 URL: https://svnweb.freebsd.org/changeset/base/303914 Log: Re-schedule signals after kthread exits, since apparently there are processes which combine kernel and non-kernel threads, e.g. nfsd. For such processes, termination of

svn commit: r303915 - head/sys/tools

2016-08-10 Thread Ruslan Bukin
Author: br Date: Wed Aug 10 13:49:17 2016 New Revision: 303915 URL: https://svnweb.freebsd.org/changeset/base/303915 Log: Consider CROSS_BINUTILS_PREFIX environment variable so we use correct objdump. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Modified: head/sys/tools/embed_mfs.sh

svn commit: r303916 - head/sys/fs/tmpfs

2016-08-10 Thread Konstantin Belousov
Author: kib Date: Wed Aug 10 13:50:21 2016 New Revision: 303916 URL: https://svnweb.freebsd.org/changeset/base/303916 Log: Convert another tmpfs assert into runtime check. The offset of the directory file, passed to getdirentries(2) syscall, is user-controllable. The value of the offset

Re: svn commit: r303425 - in head: share/man/man9 sys/kern sys/sys

2016-08-10 Thread Hans Petter Selasky
On 07/28/16 10:57, Konstantin Belousov wrote: + if ((flags & C_HARDCLOCK) == 0) + to_sbt += tick_sbt; + } else + to_sbt = sbinuptime(); ^^^ looks like two whitespaces sneaked in here. + if (SBT_MAX - to_sbt < sbt) +

svn commit: r303919 - head/sys/kern

2016-08-10 Thread Konstantin Belousov
Author: kib Date: Wed Aug 10 14:41:53 2016 New Revision: 303919 URL: https://svnweb.freebsd.org/changeset/base/303919 Log: Fix indentation. Reported by: hselasky MFC after:17 days Modified: head/sys/kern/kern_timeout.c Modified: head/sys/kern/kern_timeout.c ==

svn commit: r303920 - in head: include lib/libcrypt secure/lib/libcrypt

2016-08-10 Thread Ed Schouten
Author: ed Date: Wed Aug 10 15:16:28 2016 New Revision: 303920 URL: https://svnweb.freebsd.org/changeset/base/303920 Log: Make libcrypt thread-safe. Add crypt_r(3). glibc has a pretty nice function called crypt_r(3), which is nothing more than crypt(3), but thread-safe. It accomplishes th

svn commit: r303921 - head/sys/kern

2016-08-10 Thread Mateusz Guzik
Author: mjg Date: Wed Aug 10 15:24:15 2016 New Revision: 303921 URL: https://svnweb.freebsd.org/changeset/base/303921 Log: sigio: do a lockless check in funsetownlist There is no need to grab the lock first to see if sigio is used, and it typically is not. Modified: head/sys/kern/kern_

svn commit: r303922 - head/sys/kern

2016-08-10 Thread Mateusz Guzik
Author: mjg Date: Wed Aug 10 15:25:44 2016 New Revision: 303922 URL: https://svnweb.freebsd.org/changeset/base/303922 Log: ktrace: do a lockless check on fork to see if tracing is enabled This saves 2 lock acquisitions in the common case. Modified: head/sys/kern/kern_ktrace.c Modified:

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

2016-08-10 Thread Ed Schouten
Author: ed Date: Wed Aug 10 15:45:25 2016 New Revision: 303923 URL: https://svnweb.freebsd.org/changeset/base/303923 Log: Make cpu_set_user_tls() work when called on the running thread. On all the other architectures, this function can also be called on the currently running thread. In th

Re: svn commit: r303426 - in head/sys: ddb kern sys

2016-08-10 Thread Hans Petter Selasky
On 07/28/16 11:09, Konstantin Belousov wrote: Author: kib Date: Thu Jul 28 09:09:55 2016 New Revision: 303426 URL: https://svnweb.freebsd.org/changeset/base/303426 Log: Rewrite subr_sleepqueue.c use of callouts to not depend on the specifics of callout KPI. Esp., do not depend on the exact

svn commit: r303924 - in head/sys: fs/smbfs fs/unionfs kern sys ufs/ffs ufs/ufs vm

2016-08-10 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Aug 10 16:12:31 2016 New Revision: 303924 URL: https://svnweb.freebsd.org/changeset/base/303924 Log: Replace all remaining calls to vprint(9) with vn_printf(9), and remove the old macro. MFC after:1 month Modified: head/sys/fs/smbfs/smbfs_node.c head/sys/f

Re: svn commit: r303887 - head/tools/tools/dmardump

2016-08-10 Thread John Baldwin
On Wednesday, August 10, 2016 10:43:03 AM Konstantin Belousov wrote: > On Tue, Aug 09, 2016 at 02:22:36PM -0700, John Baldwin wrote: > > On Tuesday, August 09, 2016 07:06:05 PM John Baldwin wrote: > > > Author: jhb > > > Date: Tue Aug 9 19:06:05 2016 > > > New Revision: 303887 > > > URL: https://s

svn commit: r303927 - head/sys/netinet

2016-08-10 Thread Michael Tuexen
Author: tuexen Date: Wed Aug 10 17:19:33 2016 New Revision: 303927 URL: https://svnweb.freebsd.org/changeset/base/303927 Log: Improve a consistency check to not detect valid cases for unordered user messages using DATA chunks as invalid ones. While there, ensure that error causes are provide

svn commit: r303929 - head/usr.bin/xinstall

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:19:02 2016 New Revision: 303929 URL: https://svnweb.freebsd.org/changeset/base/303929 Log: Fix -S with -b not atomically updating the destination file. With both of these flags, the backup was created via rename(dest, backup) followed by rename(tmp, de

svn commit: r303928 - head/usr.bin/xinstall

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:18:51 2016 New Revision: 303928 URL: https://svnweb.freebsd.org/changeset/base/303928 Log: Trim out excessive / with -v when target directory ends with a trailing '/'. This is a minor nit after r289391 made all installations to a directory always end i

svn commit: r303934 - head/usr.bin/truss

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:19:17 2016 New Revision: 303934 URL: https://svnweb.freebsd.org/changeset/base/303934 Log: Support rmdir(2). MFC after:3 days Sponsored by: EMC / Isilon Storage Division Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/sysca

svn commit: r303933 - head/usr.bin/xinstall

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:19:14 2016 New Revision: 303933 URL: https://svnweb.freebsd.org/changeset/base/303933 Log: Squelch a false-positive Clang static analyzer warning. MFC after:1 week Sponsored by: EMC / Isilon Storage Division Modified: head/usr.bin/xinstall/xinst

svn commit: r303930 - head/usr.bin/xinstall

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:19:05 2016 New Revision: 303930 URL: https://svnweb.freebsd.org/changeset/base/303930 Log: Support -v for -l. MFC after:1 week Sponsored by: EMC / Isilon Storage Division Modified: head/usr.bin/xinstall/xinstall.c Modified: head/usr.bin/xinstal

svn commit: r303932 - head/usr.bin/xinstall

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:19:11 2016 New Revision: 303932 URL: https://svnweb.freebsd.org/changeset/base/303932 Log: Fix -b failure not restoring flags on the destination file. MFC after:1 week Sponsored by: EMC / Isilon Storage Division Modified: head/usr.bin/xinstall/x

svn commit: r303931 - head/usr.bin/xinstall

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:19:08 2016 New Revision: 303931 URL: https://svnweb.freebsd.org/changeset/base/303931 Log: Fix -S with -l not being atomic. It was unlinking the target even though it uses rename(2) which already effectively does that. -S is intended to not unlink(2)

svn commit: r303935 - head

2016-08-10 Thread Li-Wen Hsu
Author: lwhsu (ports committer) Date: Wed Aug 10 18:22:42 2016 New Revision: 303935 URL: https://svnweb.freebsd.org/changeset/base/303935 Log: Only remove empty directories before packaging. This preserves files are intentionally empty, most of them are in tests.txz Reviewed by: bdrew

svn commit: r303936 - head/sys/boot/i386/libi386

2016-08-10 Thread Stephen J. Kiernan
Author: stevek Date: Wed Aug 10 18:23:23 2016 New Revision: 303936 URL: https://svnweb.freebsd.org/changeset/base/303936 Log: Add kernel environment variables under smbios.system for the following SMBIOS Type 1 fields: smbios.system.sku - SKU Number (SMBIOS 2.4 and above) smbios.syste

Re: svn commit: r303934 - head/usr.bin/truss

2016-08-10 Thread Konstantin Belousov
On Wed, Aug 10, 2016 at 06:19:17PM +, Bryan Drewery wrote: > Author: bdrewery > Date: Wed Aug 10 18:19:17 2016 > New Revision: 303934 > URL: https://svnweb.freebsd.org/changeset/base/303934 > > Log: > Support rmdir(2). > > MFC after: 3 days > Sponsored by: EMC / Isilon Storage

svn commit: r303937 - head/usr.bin/truss

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 18:45:26 2016 New Revision: 303937 URL: https://svnweb.freebsd.org/changeset/base/303937 Log: Use proper argument length for rmdir(2) for r303934. Reported by: kib X-MFC-With: r303934 MFC after:3 days Sponsored by: EMC / Isilon Storage Division

Re: svn commit: r303934 - head/usr.bin/truss

2016-08-10 Thread Bryan Drewery
On 8/10/16 11:41 AM, Konstantin Belousov wrote: > On Wed, Aug 10, 2016 at 06:19:17PM +, Bryan Drewery wrote: >> Author: bdrewery >> Date: Wed Aug 10 18:19:17 2016 >> New Revision: 303934 >> URL: https://svnweb.freebsd.org/changeset/base/303934 >> >> Log: >> Support rmdir(2). >> >> MFC af

svn commit: r303941 - in head/sys: amd64/cloudabi64 arm64/cloudabi64 compat/cloudabi compat/cloudabi64 conf modules/cloudabi modules/cloudabi64

2016-08-10 Thread Ed Schouten
Author: ed Date: Wed Aug 10 21:02:41 2016 New Revision: 303941 URL: https://svnweb.freebsd.org/changeset/base/303941 Log: Provide the CloudABI vDSO to its executables. CloudABI executables already provide support for passing in vDSOs. This functionality is used by the emulator for OS X to

svn commit: r303942 - head/usr.bin/truss

2016-08-10 Thread Bryan Drewery
Author: bdrewery Date: Wed Aug 10 21:59:59 2016 New Revision: 303942 URL: https://svnweb.freebsd.org/changeset/base/303942 Log: Fix sorting in r303934. Reported by: jhb X-MFC-With: r303934 MFC after:3 days Sponsored by: EMC / Isilon Storage Division Modified: head/usr.bin/tr

svn commit: r303943 - head/etc/rc.d

2016-08-10 Thread Devin Teske
Author: dteske Date: Wed Aug 10 23:24:21 2016 New Revision: 303943 URL: https://svnweb.freebsd.org/changeset/base/303943 Log: Allow enforce_statfs (see jail(8)) to be set per jail Reviewed by: jelischer MFC after:3 days Modified: head/etc/rc.d/jail Modified: head/etc/rc.d/jail ==

svn commit: r303944 - head/sys/cam/scsi

2016-08-10 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 11 03:12:56 2016 New Revision: 303944 URL: https://svnweb.freebsd.org/changeset/base/303944 Log: cam/da: Add quirk for I-O Data USB Flash Disk PR: 211716 Submitted by: Jun Su Reported by: Jun Su MFC after:1 week Sponsored by: Microsoft M

svn commit: r303945 - head/sys/dev/hyperv/include

2016-08-10 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 11 03:20:38 2016 New Revision: 303945 URL: https://svnweb.freebsd.org/changeset/base/303945 Log: hyperv/vmbus: Add macro to get channel packet data length. MFC after:1 week Sponsored by: Microsoft Differential Revision:https://reviews.freebsd.org/

svn commit: r303946 - in head/usr.bin: kdump truss

2016-08-10 Thread John Baldwin
Author: jhb Date: Thu Aug 11 05:18:09 2016 New Revision: 303946 URL: https://svnweb.freebsd.org/changeset/base/303946 Log: Remove files unused after pulling system call names from libsysdecode. Deleted: head/usr.bin/kdump/linux32_syscalls.conf head/usr.bin/kdump/linux_syscalls.conf head/u

svn commit: r303947 - in head/sys: conf dev/hyperv/include dev/hyperv/vmbus modules/hyperv/vmbus

2016-08-10 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 11 05:49:49 2016 New Revision: 303947 URL: https://svnweb.freebsd.org/changeset/base/303947 Log: hyperv/vmbus: Add APIs for various types of transactions. Reviewed by: Jun Su MFC after:1 week Sponsored by: Microsoft Differential Revision:https

svn commit: r303948 - head/sys/dev/hyperv/netvsc

2016-08-10 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 11 06:14:54 2016 New Revision: 303948 URL: https://svnweb.freebsd.org/changeset/base/303948 Log: hyperv/hn: Switch to vmbus xact APIs for NVS initialization Reviewed by: Jun Su MFC after:1 week Sponsored by: Microsoft Differential Revision:htt

svn commit: r303949 - in head/sys/dev/hyperv: include netvsc vmbus

2016-08-10 Thread Sepherosa Ziehau
Author: sephe Date: Thu Aug 11 06:24:17 2016 New Revision: 303949 URL: https://svnweb.freebsd.org/changeset/base/303949 Log: hyperv/vmbus: Use xact APIs to implement post message Hypercall APIs Avoid code duplication. MFC after:1 week Sponsored by: Microsoft Differential Revisi