svn commit: r348096 - stable/12/sys/compat/linsysfs

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Wed May 22 05:37:29 2019 New Revision: 348096 URL: https://svnweb.freebsd.org/changeset/base/348096 Log: MFC r347204: Adds sys/class/net devices to linsysfs. Only two interfaces are created eth0 and lo and they expose the following properties: address, addr_le

svn commit: r348095 - stable/12/sys/compat/linux

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Wed May 22 05:35:35 2019 New Revision: 348095 URL: https://svnweb.freebsd.org/changeset/base/348095 Log: MFC r347203: Rewrite linux_ifflags() in more readable Linuxulator style. Modified: stable/12/sys/compat/linux/linux.c stable/12/sys/compat/linux/linux.h Direct

svn commit: r348094 - stable/12/sys/compat/linux

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Wed May 22 05:34:44 2019 New Revision: 348094 URL: https://svnweb.freebsd.org/changeset/base/348094 Log: MFC r347202: Complete r347052 (https://reviews.freebsd.org/D20137) as it it was not a final revision. Fix style issues and change bool-like variables from in

svn commit: r348093 - in stable/12/sys/modules: linux linux64

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Wed May 22 05:33:47 2019 New Revision: 348093 URL: https://svnweb.freebsd.org/changeset/base/348093 Log: MFC r347196: The build process generates assym.inc from genassym.o, so don't forget to clean genassym.o Modified: stable/12/sys/modules/linux/Makefile stable

svn commit: r348092 - in stable/12/sys: amd64/linux amd64/linux32 arm64/linux compat/linux i386/linux

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Wed May 22 05:32:39 2019 New Revision: 348092 URL: https://svnweb.freebsd.org/changeset/base/348092 Log: MFC r347052: In order to reduce duplication between MD parts of the Linuxulator move bits that are MI out into the headers in compat/linux. For that remove bogu

svn commit: r348091 - head/sys/dev/aacraid

2019-05-21 Thread Maxim Sobolev
Author: sobomax Date: Wed May 22 04:51:08 2019 New Revision: 348091 URL: https://svnweb.freebsd.org/changeset/base/348091 Log: Make aacraid(4) working on ASR8805 & ASR8402 in particular. This patch has been in the PR system for 5 months and then on reviews for another 5. Nobody came with any

Re: svn commit: r348090 - in head/libexec/bootpd: . bootpgw

2019-05-21 Thread Rodney W. Grimes
> Author: markj > Date: Wed May 22 04:13:57 2019 > New Revision: 348090 > URL: https://svnweb.freebsd.org/changeset/base/348090 > > Log: > Marginally improve usage() message style in bootpd. > > - Remove an extra space after "usage:". > - Avoid lines exceeding 80 columns. > > Based o

svn commit: r348090 - in head/libexec/bootpd: . bootpgw

2019-05-21 Thread Mark Johnston
Author: markj Date: Wed May 22 04:13:57 2019 New Revision: 348090 URL: https://svnweb.freebsd.org/changeset/base/348090 Log: Marginally improve usage() message style in bootpd. - Remove an extra space after "usage:". - Avoid lines exceeding 80 columns. Based on notes from rgrimes.

svn commit: r348089 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-05-21 Thread Johannes Lundberg
Author: johalun Date: Wed May 22 04:10:24 2019 New Revision: 348089 URL: https://svnweb.freebsd.org/changeset/base/348089 Log: MFC r347621: LinuxKPI: Add get_random_u32 function. This patch is part of D19565 Reviewed by: hps Approved by: imp (mentor), hps Modified: stable/12/s

svn commit: r348088 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-05-21 Thread Johannes Lundberg
Author: johalun Date: Wed May 22 04:08:45 2019 New Revision: 348088 URL: https://svnweb.freebsd.org/changeset/base/348088 Log: MFC r347619: LinuxKPI: Expand ktime functionality. Also, make ktime_get_raw call getnanouptime instead of getnanotime to match (the correct) ktime_get_raw_ns.

svn commit: r348087 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-05-21 Thread Johannes Lundberg
Author: johalun Date: Wed May 22 04:02:10 2019 New Revision: 348087 URL: https://svnweb.freebsd.org/changeset/base/348087 Log: MFC r347623: LinuxKPI: Move {lower|upper}_32_bits macros from port to base. This patch is part of D19565 Reviewed by: hps Approved by: imp (mentor), hps

svn commit: r348086 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-05-21 Thread Johannes Lundberg
Author: johalun Date: Wed May 22 04:00:13 2019 New Revision: 348086 URL: https://svnweb.freebsd.org/changeset/base/348086 Log: MFC r347626: LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL. This patch is part of D19565 Reviewed by: hps Approved by: imp (mentor), hps

svn commit: r348085 - stable/12/sys/compat/linuxkpi/common/include/asm

2019-05-21 Thread Johannes Lundberg
Author: johalun Date: Wed May 22 03:58:41 2019 New Revision: 348085 URL: https://svnweb.freebsd.org/changeset/base/348085 Log: MFC r347620: LinuxKPI: Update user_access_begin for Linux v5.0. Check the new LINUXKPI_VERSION macro for backwards compatibility. This patch is part of D19565

svn commit: r348084 - stable/12/sys/compat/linuxkpi/common/include/linux

2019-05-21 Thread Johannes Lundberg
Author: johalun Date: Wed May 22 03:54:25 2019 New Revision: 348084 URL: https://svnweb.freebsd.org/changeset/base/348084 Log: MFC r347622: LinuxKPI: Include asm/atomic-long.h from atomic.h. This patch is part of D19565 Reviewed by: hps Approved by: imp (mentor), hps Modified:

svn commit: r348083 - head/sbin/dumpon

2019-05-21 Thread Mark Johnston
Author: markj Date: Wed May 22 03:52:39 2019 New Revision: 348083 URL: https://svnweb.freebsd.org/changeset/base/348083 Log: Update the example added in r348082 to specify a dump device priority. Event:Waterloo Hackathon 2019 Modified: head/sbin/dumpon/dumpon.8 Modified: head/sb

svn commit: r348082 - head/sbin/dumpon

2019-05-21 Thread Mark Johnston
Author: markj Date: Wed May 22 03:49:38 2019 New Revision: 348082 URL: https://svnweb.freebsd.org/changeset/base/348082 Log: Provide an example of using dhclient-script(5) to configure netdump. Reviewed by: cem MFC after:1 week Event:Waterloo Hackathon 2019 Differ

svn commit: r348081 - in head: cddl/usr.sbin/dtrace/tests cddl/usr.sbin/dtrace/tests/i386 cddl/usr.sbin/dtrace/tests/i386/arrays cddl/usr.sbin/dtrace/tests/i386/funcs cddl/usr.sbin/dtrace/tests/i38...

2019-05-21 Thread Mark Johnston
Author: markj Date: Wed May 22 03:42:03 2019 New Revision: 348081 URL: https://svnweb.freebsd.org/changeset/base/348081 Log: Hook up the existing i386 DTrace tests to the build. Now that it's relatively easy to do so, we might as well. MFC after:1 week Event:Water

svn commit: r348080 - head/cddl/usr.sbin/dtrace/tests/tools

2019-05-21 Thread Mark Johnston
Author: markj Date: Wed May 22 03:10:23 2019 New Revision: 348080 URL: https://svnweb.freebsd.org/changeset/base/348080 Log: Make it possible to generate makefiles for arch-dependent DTrace tests. MFC after:1 week Event:Waterloo Hackathon 2019 Modified: head/cddl/us

svn commit: r348079 - head/sys/powerpc/booke

2019-05-21 Thread Justin Hibbits
Author: jhibbits Date: Wed May 22 02:43:17 2019 New Revision: 348079 URL: https://svnweb.freebsd.org/changeset/base/348079 Log: powerpc/booke: Use wrtee instead of msr to restore EE bit The MSR[EE] bit does not require synchronization when changing. This is a trivial micro-optimization,

svn commit: r348078 - head/usr.sbin/pmc

2019-05-21 Thread Conrad Meyer
Author: cem Date: Wed May 22 01:22:33 2019 New Revision: 348078 URL: https://svnweb.freebsd.org/changeset/base/348078 Log: pmc: Fix stack std::string lifetime It's invalid to reference a C++ string's c_str() buffer after the object goes out of scope. Adjust the scope of the string to mat

svn commit: r348077 - head/lib/libc/sys

2019-05-21 Thread Alan Somers
Author: asomers Date: Wed May 22 01:11:21 2019 New Revision: 348077 URL: https://svnweb.freebsd.org/changeset/base/348077 Log: Link fhlinkat(2) man page Reviewed by: kib MFC after:3 days MFC-With: r341689 Sponsored by: The FreeBSD Foundation Differential Revision:ht

svn commit: r348076 - head/sys/sys

2019-05-21 Thread Conrad Meyer
Author: cem Date: Wed May 22 00:21:42 2019 New Revision: 348076 URL: https://svnweb.freebsd.org/changeset/base/348076 Log: Revert r348070 Konstantin points out that lockmgr probably requires the whole lock.h anyway. Requested by: kib Modified: head/sys/sys/lockmgr.h Modified: head/

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

2019-05-21 Thread Konstantin Belousov
On Tue, May 21, 2019 at 09:35:37PM +, Conrad Meyer wrote: > Author: cem > Date: Tue May 21 21:35:37 2019 > New Revision: 348070 > URL: https://svnweb.freebsd.org/changeset/base/348070 > > Log: > sys/lockmgr.h: Update #error to point at correct _lock.h > > After r347984, these macros liv

Re: svn commit: r348073 - head/lib/libmd

2019-05-21 Thread Rodney W. Grimes
> Author: allanjude > Date: Tue May 21 22:17:00 2019 > New Revision: 348073 > URL: https://svnweb.freebsd.org/changeset/base/348073 > > Log: > Add admonitions against using MD5 and SHA1 to the API man pages > > Modified: > head/lib/libmd/mdX.3 > head/lib/libmd/sha.3 > > Modified: head/lib/

svn commit: r348075 - in head/sys: amd64/amd64 i386/i386 x86/x86

2019-05-21 Thread Konstantin Belousov
Author: kib Date: Tue May 21 22:56:21 2019 New Revision: 348075 URL: https://svnweb.freebsd.org/changeset/base/348075 Log: Do not call hw_mds_recalculate() from initializecpu(). If MDS mitigation is enabled by the tunable but MDS microcode is not early-loaded, software mitigation is selec

Re: svn commit: r348066 - in head/libexec/bootpd: . bootpgw

2019-05-21 Thread Rodney W. Grimes
> Author: markj > Date: Tue May 21 21:22:43 2019 > New Revision: 348066 > URL: https://svnweb.freebsd.org/changeset/base/348066 > > Log: > bootpd: Add an option to skip modifications to the ARP table. > > PR: 30854 > Submitted by: Dan Lukes > Reviewed by:imp (prev

svn commit: r348074 - head/sbin/fsck_ffs

2019-05-21 Thread Kirk McKusick
Author: mckusick Date: Tue May 21 22:24:38 2019 New Revision: 348074 URL: https://svnweb.freebsd.org/changeset/base/348074 Log: This revision began as a simple change to eliminate an uninitialized warning found by Coverity. However, upon closer inspection the implementation of fsck_ffs's fsc

svn commit: r348073 - head/lib/libmd

2019-05-21 Thread Allan Jude
Author: allanjude Date: Tue May 21 22:17:00 2019 New Revision: 348073 URL: https://svnweb.freebsd.org/changeset/base/348073 Log: Add admonitions against using MD5 and SHA1 to the API man pages Modified: head/lib/libmd/mdX.3 head/lib/libmd/sha.3 Modified: head/lib/libmd/mdX.3 ==

svn commit: r348072 - head/lib/libmd

2019-05-21 Thread Allan Jude
Author: allanjude Date: Tue May 21 22:11:53 2019 New Revision: 348072 URL: https://svnweb.freebsd.org/changeset/base/348072 Log: Add missing errors section to md[2-5], ripemd160, sha*, and skein* manpages PR: 148987 Submitted by: Dan Lukes (original version) MFC after:1 w

svn commit: r348071 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-05-21 Thread Allan Jude
Author: allanjude Date: Tue May 21 21:39:03 2019 New Revision: 348071 URL: https://svnweb.freebsd.org/changeset/base/348071 Log: Fix typo in r348068 Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc

svn commit: r348070 - head/sys/sys

2019-05-21 Thread Conrad Meyer
Author: cem Date: Tue May 21 21:35:37 2019 New Revision: 348070 URL: https://svnweb.freebsd.org/changeset/base/348070 Log: sys/lockmgr.h: Update #error to point at correct _lock.h After r347984, these macros live in sys/_lock.h. No functional change. Sponsored by: Dell EMC Isilon Mod

svn commit: r348069 - head/libexec/bootpd

2019-05-21 Thread Ed Maste
Author: emaste Date: Tue May 21 21:27:14 2019 New Revision: 348069 URL: https://svnweb.freebsd.org/changeset/base/348069 Log: bootpd: avoid the same error indication for different issues There were several (apparently) copy-pasted NEED validation macros, leading to the same error string f

svn commit: r348067 - head/sys/kern

2019-05-21 Thread Conrad Meyer
Author: cem Date: Tue May 21 21:26:14 2019 New Revision: 348067 URL: https://svnweb.freebsd.org/changeset/base/348067 Log: mqueuefs: Do not allow manipulation of the pseudo-dirents "." and ".." "." and ".." names are not maintained in the mqueuefs dirent datastructure and cannot be opened

svn commit: r348066 - in head/libexec/bootpd: . bootpgw

2019-05-21 Thread Mark Johnston
Author: markj Date: Tue May 21 21:22:43 2019 New Revision: 348066 URL: https://svnweb.freebsd.org/changeset/base/348066 Log: bootpd: Add an option to skip modifications to the ARP table. PR: 30854 Submitted by: Dan Lukes Reviewed by: imp (previous version) MFC after:1

svn commit: r348068 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-05-21 Thread Allan Jude
Author: allanjude Date: Tue May 21 21:26:18 2019 New Revision: 348068 URL: https://svnweb.freebsd.org/changeset/base/348068 Log: ZFS: Make deadman tunables no longer read-only This allows the user to enable, disable, and adjust the I/O deadman at runtime. This can be especially useful whe

svn commit: r348065 - head/sys/dev/acpica

2019-05-21 Thread Allan Jude
Author: allanjude Date: Tue May 21 21:14:22 2019 New Revision: 348065 URL: https://svnweb.freebsd.org/changeset/base/348065 Log: Correct the way remaining battery life is calculated Previously, if a system had multiple batteries, the remaining life percentage was calculated as the average

svn commit: r348064 - in head/sys: arm64/arm64 dev/acpica dev/ixgbe fs/unionfs kern mips/mips riscv/riscv ufs/ffs ufs/ufs vm

2019-05-21 Thread Conrad Meyer
Author: cem Date: Tue May 21 20:38:48 2019 New Revision: 348064 URL: https://svnweb.freebsd.org/changeset/base/348064 Log: Include ktr.h in more compilation units Similar to r348026, exhaustive search for uses of CTRn() and cross reference ktr.h includes. Where it was obvious that an OS

svn commit: r348063 - head/tests/sys/netinet

2019-05-21 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 21 19:42:04 2019 New Revision: 348063 URL: https://svnweb.freebsd.org/changeset/base/348063 Log: Add very basic afinet socket tests which I started to write in order to then try to reproduce a kernel panic, which turned out to be a race condition and hard to test fro

svn commit: r348061 - head/sys/netinet

2019-05-21 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 21 19:23:56 2019 New Revision: 348061 URL: https://svnweb.freebsd.org/changeset/base/348061 Log: Massively blow up the locking-related KASSERTs used to make sure that we end up in a consistent locking state at the end of udp_output() in order to be able to see what t

svn commit: r348060 - head/sys/netinet

2019-05-21 Thread Bjoern A. Zeeb
Author: bz Date: Tue May 21 19:18:55 2019 New Revision: 348060 URL: https://svnweb.freebsd.org/changeset/base/348060 Log: Similarly to r338257,338306 try to fold the two consecutive #ifdef RSS section in udp_output() into one by moving a '}' outside of the conditional block. MFC after:

svn commit: r348059 - head/sys/dev/vt/hw/efifb

2019-05-21 Thread Ed Maste
Author: emaste Date: Tue May 21 18:42:36 2019 New Revision: 348059 URL: https://svnweb.freebsd.org/changeset/base/348059 Log: vt efifb: add suspend/resume calls Using the latest NVIDIA driver, upon resuming from suspend with X running the display remained blank. Additionally OpenGL appli

Re: svn commit: r347980 - head/lib/libsecureboot/openpgp

2019-05-21 Thread Simon J. Gerraty via svn-src-all
Rodney W. Grimes wrote: > > Sorry,should I wait until after freeze? > > This is all optional stuff anyway, so no great harm either way. > > No, please do merge this at 3 days, it is just that the > normal minimum bake time in ^head is 3 days, freeze or not. Ah, got it. Thanks --sjg _

Re: svn commit: r347951 - stable/12/lib/libc/stdlib

2019-05-21 Thread John Baldwin
On 5/20/19 10:34 AM, Rodney W. Grimes wrote: >> On Sun, May 19, 2019 at 9:56 AM Yoshihiro Ota wrote: >> >>> I wonder if we can use a tool to confirm coding style like >>> clang-format or something else. >>> >> >> I don't know... it might be hard to do that inside a man page... > > Given the curre

svn commit: r348058 - head/sys/compat/linux

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Tue May 21 18:08:19 2019 New Revision: 348058 URL: https://svnweb.freebsd.org/changeset/base/348058 Log: Do not leak sa in linux_recvmsg() call if kern_recvit() fails. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/lin

svn commit: r348057 - head/sys/compat/linux

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Tue May 21 18:05:57 2019 New Revision: 348057 URL: https://svnweb.freebsd.org/changeset/base/348057 Log: Do not use uninitialised sa. Reported by: tijl@ MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_soc

svn commit: r348056 - head/sys/compat/linux

2019-05-21 Thread Dmitry Chagin
Author: dchagin Date: Tue May 21 18:03:58 2019 New Revision: 348056 URL: https://svnweb.freebsd.org/changeset/base/348056 Log: Do not leak sa in linux_recvfrom() call if kern_recvit() fails. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/li

Re: svn commit: r348012 - in stable/12: libexec/rc sbin/ifconfig share/man/man5 tools/tools/tinybsd/conf/firewall/etc usr.sbin/jail

2019-05-21 Thread Rodney W. Grimes
> On Mon, May 20, 2019 at 06:30:26PM -0700, Rodney W. Grimes wrote: > > > Author: brooks > > > Date: Mon May 20 21:33:22 2019 > > > New Revision: 348012 > > > URL: https://svnweb.freebsd.org/changeset/base/348012 > > > > > > Log: > > > MFC r347963: > > > > > > Change ed(4), ep(4), and fxp(4

Re: svn commit: r348012 - in stable/12: libexec/rc sbin/ifconfig share/man/man5 tools/tools/tinybsd/conf/firewall/etc usr.sbin/jail

2019-05-21 Thread Brooks Davis
On Mon, May 20, 2019 at 06:30:26PM -0700, Rodney W. Grimes wrote: > > Author: brooks > > Date: Mon May 20 21:33:22 2019 > > New Revision: 348012 > > URL: https://svnweb.freebsd.org/changeset/base/348012 > > > > Log: > > MFC r347963: > > > > Change ed(4), ep(4), and fxp(4) examples to em(4).

svn commit: r348055 - in stable/12: libexec/rc sbin/ifconfig share/man/man5 tools/tools/tinybsd/conf/firewall/etc usr.sbin/jail

2019-05-21 Thread Brooks Davis
Author: brooks Date: Tue May 21 16:36:28 2019 New Revision: 348055 URL: https://svnweb.freebsd.org/changeset/base/348055 Log: Revert r348012, MFC r347963. Several of the changes touch actual defaults. These defaults are all mistakes and no one should rely on them, but changing them in a s

Re: svn commit: r348012 - in stable/12: libexec/rc sbin/ifconfig share/man/man5 tools/tools/tinybsd/conf/firewall/etc usr.sbin/jail

2019-05-21 Thread John Baldwin
On 5/20/19 6:30 PM, Rodney W. Grimes wrote: >> Author: brooks >> Date: Mon May 20 21:33:22 2019 >> New Revision: 348012 >> URL: https://svnweb.freebsd.org/changeset/base/348012 >> >> Log: >> MFC r347963: >> >> Change ed(4), ep(4), and fxp(4) examples to em(4). >> >> ed(4) and ep(4) will

svn commit: r348053 - stable/12/sys/x86/include

2019-05-21 Thread Konstantin Belousov
Author: kib Date: Tue May 21 15:19:49 2019 New Revision: 348053 URL: https://svnweb.freebsd.org/changeset/base/348053 Log: MFC r347216: amd64: fix BUS_SPACE_MAXSIZE to 64bit max value. Modified: stable/12/sys/x86/include/bus.h Directory Properties: stable/12/ (props changed) Modified:

svn commit: r348052 - head/sys/kern

2019-05-21 Thread Konstantin Belousov
Author: kib Date: Tue May 21 15:12:13 2019 New Revision: 348052 URL: https://svnweb.freebsd.org/changeset/base/348052 Log: NDFREE(): Fix unlocking for LOCKPARENT|LOCKLEAF and ndp->ni_dvp == ndp->ni_vp. NDFREE() calculates unlock_dvp after ndp->ni_vp is unlocked and zeroed out. This makes

svn commit: r348051 - in head/sys: kern sys x86/x86

2019-05-21 Thread Stephen J. Kiernan
Author: stevek Date: Tue May 21 13:29:53 2019 New Revision: 348051 URL: https://svnweb.freebsd.org/changeset/base/348051 Log: The older detection methods (smbios.bios.vendor and smbios.system.product) are able to determine some virtual machines, but the vm_guest variable was still only being

svn commit: r348050 - head/share/man/man5

2019-05-21 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 21 08:24:22 2019 New Revision: 348050 URL: https://svnweb.freebsd.org/changeset/base/348050 Log: Xr make_dev(9) from devfs(5). MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/share/man/man5/devfs.5 Modified: head/share/man/man5/dev

svn commit: r348049 - head/sys/amd64/linux

2019-05-21 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 21 08:23:24 2019 New Revision: 348049 URL: https://svnweb.freebsd.org/changeset/base/348049 Log: Make linux_ptrace() use linux_msg() instead of printf(). MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/amd64/linux/linux_ptrace.c