svn commit: r349261 - head/tools/tools/nanobsd

2019-06-20 Thread Warner Losh
Author: imp Date: Fri Jun 21 03:49:36 2019 New Revision: 349261 URL: https://svnweb.freebsd.org/changeset/base/349261 Log: Mount and unmount devfs around calls to add packages. pkg now uses /dev/null for some of its operations. NanoBSD's packaging stuff didn't mount that for the chroot

Re: svn commit: r349256 - head/libexec/rc/rc.d

2019-06-20 Thread Eugene Grosbein
21.06.2019 9:37, Conrad Meyer wrote: > Author: cem > Date: Fri Jun 21 02:37:54 2019 > New Revision: 349256 > URL: https://svnweb.freebsd.org/changeset/base/349256 > > Log: > rc.d/motd: Update motd more robustly > > Use appropriate fsyncs to persist the rewritten /etc/motd file, when a >

svn commit: r349257 - head/share/man/man9

2019-06-20 Thread Kevin Lo
Author: kevlo Date: Fri Jun 21 02:49:36 2019 New Revision: 349257 URL: https://svnweb.freebsd.org/changeset/base/349257 Log: Correct function names. Modified: head/share/man/man9/iflibdi.9 Modified: head/share/man/man9/iflibdi.9

svn commit: r349256 - head/libexec/rc/rc.d

2019-06-20 Thread Conrad Meyer
Author: cem Date: Fri Jun 21 02:37:54 2019 New Revision: 349256 URL: https://svnweb.freebsd.org/changeset/base/349256 Log: rc.d/motd: Update motd more robustly Use appropriate fsyncs to persist the rewritten /etc/motd file, when a rewrite is performed. Reported by: Jonathan Walton

svn commit: r349254 - head

2019-06-20 Thread Conrad Meyer
== --- head/UPDATING Fri Jun 21 00:16:30 2019(r349253) +++ head/UPDATING Fri Jun 21 00:33:45 2019(r349254) @@ -32,8 +32,8 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW: "ln -s 'abort:false,junk:false' /etc/malloc.conf".)

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

2019-06-20 Thread Alan Somers
On Thu, Jun 20, 2019 at 1:43 PM Warner Losh wrote: > > > > On Thu, Jun 20, 2019, 11:44 AM Bruce Evans wrote: >> >> On Thu, 20 Jun 2019, Alan Somers wrote: >> >> > On Thu, Jun 20, 2019 at 10:43 AM Bruce Evans wrote: >> >> Summary: and the headers that it includes should declare >> >> minimal

svn commit: r349253 - in head: . release/picobsd/bridge release/picobsd/qemu share/man/man4 sys/amd64/conf sys/arm/conf sys/arm64/conf sys/conf sys/i386/conf sys/mips/conf sys/mips/mediatek sys/pow...

2019-06-20 Thread Conrad Meyer
21 00:16:30 2019(r349253) @@ -31,6 +31,12 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW: disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20190620: + The "device random" opt

Re: svn commit: r349243 - head/sys/cam

2019-06-20 Thread Alexander Motin
Hi Scott, You may see this buffer content is not returned directly to user any more. It is used only as temporary storage to pull CDAI_TYPE_SCSI_DEVID, which is then converted into readable form, returned to user. And the code is explicitly made to not read outside the range that was copied to

svn commit: r349251 - head/sys/dev/usb

2019-06-20 Thread Takanori Watanabe
Author: takawata Date: Thu Jun 20 23:52:33 2019 New Revision: 349251 URL: https://svnweb.freebsd.org/changeset/base/349251 Log: Fix the case where no root hub object while host controller object exist in ACPI namespace. Also you can disable ACPI support for USB by setting

Re: svn commit: r349243 - head/sys/cam

2019-06-20 Thread Shawn Webb
+1 for M_ZERO. -- Shawn Webb Cofounder / Security Engineer HardenedBSD Tor-ified Signal:+1 443-546-8752 Tor+XMPP+OTR:latt...@is.a.hacker.sx GPG Key ID: 0xFF2E67A277F8E1FA GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2 On Thu, Jun 20, 2019 at

svn commit: r349248 - in head/sys: fs/fifofs kern sys

2019-06-20 Thread Alan Somers
Author: asomers Date: Thu Jun 20 23:07:20 2019 New Revision: 349248 URL: https://svnweb.freebsd.org/changeset/base/349248 Log: fcntl: fix overflow when setting F_READAHEAD VOP_READ and VOP_WRITE take the seqcount in blocks in a 16-bit field. However, fcntl allows you to set the seqcount

Re: svn commit: r349243 - head/sys/cam

2019-06-20 Thread Scott Long
Hi Alexander, I’m not a fan of removing the M_ZERO. I understand your argument that lengths are provided elsewhere, but having the buffer be zero’d is defensive against future bugs that might leak buffer contents. GETATTR isn’t typically in a performance path, is there any measurable benefit to

svn commit: r349246 - head/sys/cam/ctl

2019-06-20 Thread Alexander Motin
Author: mav Date: Thu Jun 20 22:20:30 2019 New Revision: 349246 URL: https://svnweb.freebsd.org/changeset/base/349246 Log: SPC-3 and up require some UAs to be returned as fixed. MFC after:2 weeks Modified: head/sys/cam/ctl/ctl_error.c Modified: head/sys/cam/ctl/ctl_error.c

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

2019-06-20 Thread Brooks Davis
Author: brooks Date: Thu Jun 20 21:52:30 2019 New Revision: 349245 URL: https://svnweb.freebsd.org/changeset/base/349245 Log: Add PROT_MAX to the HISTORY section. In the case of mmap(), add a HISTORY section. Mention that mmap() and mprotect()'s documentation predates an implementation.

svn commit: r349243 - head/sys/cam

2019-06-20 Thread Alexander Motin
Author: mav Date: Thu Jun 20 20:29:42 2019 New Revision: 349243 URL: https://svnweb.freebsd.org/changeset/base/349243 Log: Optimize xpt_getattr(). Do not allocate temporary buffer for attributes we are going to return as-is, just make sure to NUL-terminate them. Do not zero temporary

svn commit: r349242 - head/sys/dev/cxgbe/tom

2019-06-20 Thread Navdeep Parhar
Author: np Date: Thu Jun 20 20:06:19 2019 New Revision: 349242 URL: https://svnweb.freebsd.org/changeset/base/349242 Log: cxgbe/t4_tom: DDP_DEAD is a ddp flag and not a toepcb flag. The driver was in effect setting TPF_ABORT_SHUTDOWN on the toepcb instead of what was intended. MFC

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

2019-06-20 Thread Warner Losh
On Thu, Jun 20, 2019, 11:44 AM Bruce Evans wrote: > On Thu, 20 Jun 2019, Alan Somers wrote: > > > On Thu, Jun 20, 2019 at 10:43 AM Bruce Evans > wrote: > >> Summary: and the headers that it includes should declare > >> minimal types to compile (so __int64_t is enough). Most uses of this > >>

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

2019-06-20 Thread Bruce Evans
On Thu, 20 Jun 2019, Alan Somers wrote: On Thu, Jun 20, 2019 at 10:43 AM Bruce Evans wrote: Summary: and the headers that it includes should declare minimal types to compile (so __int64_t is enough). Most uses of this header require including domain-specific headers which declare the

svn commit: r349241 - head/share/man/man9

2019-06-20 Thread Ed Maste
Author: emaste Date: Thu Jun 20 18:30:19 2019 New Revision: 349241 URL: https://svnweb.freebsd.org/changeset/base/349241 Log: Clarify vm_map_protect max_protection downgrade As reported in review D20709 by brooks calling vm_map_protect to set a new max_protection value downgrades

svn commit: r349240 - in head: lib/libc/sys sys/sys sys/vm

2019-06-20 Thread Brooks Davis
Author: brooks Date: Thu Jun 20 18:24:16 2019 New Revision: 349240 URL: https://svnweb.freebsd.org/changeset/base/349240 Log: Extend mmap/mprotect API to specify the max page protections. A new macro PROT_MAX() alters a protection value so it can be OR'd with a regular protection value

svn commit: r349239 - head/share/man/man9

2019-06-20 Thread Ed Maste
Author: emaste Date: Thu Jun 20 18:19:09 2019 New Revision: 349239 URL: https://svnweb.freebsd.org/changeset/base/349239 Log: Clarify that vm_map_protect cannot upgrade max_protection It's implied by the man page's RETURN VALUES section, but be explicit in the description that

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

2019-06-20 Thread Alan Somers
On Thu, Jun 20, 2019 at 10:43 AM Bruce Evans wrote: > > On Thu, 20 Jun 2019, Alan Somers wrote: > > > On Thu, Jun 20, 2019 at 9:14 AM Ian Lepore wrote: > >> > >> On Thu, 2019-06-20 at 14:35 +, Alan Somers wrote: > >>> Author: asomers > >>> Date: Thu Jun 20 14:35:28 2019 > >>> New Revision:

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

2019-06-20 Thread Bruce Evans
On Thu, 20 Jun 2019, Alan Somers wrote: On Thu, Jun 20, 2019 at 9:14 AM Ian Lepore wrote: On Thu, 2019-06-20 at 14:35 +, Alan Somers wrote: Author: asomers Date: Thu Jun 20 14:35:28 2019 New Revision: 349233 URL: https://svnweb.freebsd.org/changeset/base/349233 Log: #include from

svn commit: r349237 - head/share/man/man9

2019-06-20 Thread Alan Somers
Author: asomers Date: Thu Jun 20 16:36:20 2019 New Revision: 349237 URL: https://svnweb.freebsd.org/changeset/base/349237 Log: VOP_REVOKE(9): update locking requirements per r143495 Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D20524

svn commit: r349235 - head/usr.bin/top

2019-06-20 Thread Allan Jude
Author: allanjude Date: Thu Jun 20 15:44:43 2019 New Revision: 349235 URL: https://svnweb.freebsd.org/changeset/base/349235 Log: top(1): Don't show the swap line when there are no swap devices Submitted by: antran...@freebsd.am Reviewed by: bapt MFC after:1 month Sponsored by:

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

2019-06-20 Thread Ian Lepore
On Thu, 2019-06-20 at 09:29 -0600, Alan Somers wrote: > On Thu, Jun 20, 2019 at 9:14 AM Ian Lepore wrote: > > > > On Thu, 2019-06-20 at 14:35 +, Alan Somers wrote: > > > Author: asomers > > > Date: Thu Jun 20 14:35:28 2019 > > > New Revision: 349233 > > > URL:

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

2019-06-20 Thread Alan Somers
On Thu, Jun 20, 2019 at 9:14 AM Ian Lepore wrote: > > On Thu, 2019-06-20 at 14:35 +, Alan Somers wrote: > > Author: asomers > > Date: Thu Jun 20 14:35:28 2019 > > New Revision: 349233 > > URL: https://svnweb.freebsd.org/changeset/base/349233 > > > > Log: > > #include from sys/filio.h > > >

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

2019-06-20 Thread Ian Lepore
On Thu, 2019-06-20 at 14:35 +, Alan Somers wrote: > Author: asomers > Date: Thu Jun 20 14:35:28 2019 > New Revision: 349233 > URL: https://svnweb.freebsd.org/changeset/base/349233 > > Log: > #include from sys/filio.h > > This fixes world build after r349231 > > Reported by:

svn commit: r349234 - head/share/man/man9

2019-06-20 Thread Alan Somers
Author: asomers Date: Thu Jun 20 14:40:36 2019 New Revision: 349234 URL: https://svnweb.freebsd.org/changeset/base/349234 Log: VOP_BMAP(9): fix typo in the copyright header Reported by: rgrimes MFC after:2 weeks MFC-With: 349230 Sponsored by: The FreeBSD Foundation

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

2019-06-20 Thread Rodney W. Grimes
> Author: asomers > Date: Thu Jun 20 13:59:46 2019 > New Revision: 349230 > URL: https://svnweb.freebsd.org/changeset/base/349230 > > Log: > Add a VOP_BMAP(9) man page > > Reviewed by:mckusick > MFC after: 2 weeks > Sponsored by: The FreeBSD Foundation > Differential

svn commit: r349233 - head/sys/sys

2019-06-20 Thread Alan Somers
Author: asomers Date: Thu Jun 20 14:35:28 2019 New Revision: 349233 URL: https://svnweb.freebsd.org/changeset/base/349233 Log: #include from sys/filio.h This fixes world build after r349231 Reported by: Jenkins MFC after:2 weeks MFC-With: 349231 Sponsored by: The

svn commit: r349231 - in head/sys: kern sys ufs/ufs

2019-06-20 Thread Alan Somers
Author: asomers Date: Thu Jun 20 14:13:10 2019 New Revision: 349231 URL: https://svnweb.freebsd.org/changeset/base/349231 Log: Add FIOBMAP2 ioctl This ioctl exposes VOP_BMAP information to userland. It can be used by programs like fragmentation analyzers and optimized cp implementations.

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

2019-06-20 Thread Alan Somers
Author: asomers Date: Thu Jun 20 13:59:46 2019 New Revision: 349230 URL: https://svnweb.freebsd.org/changeset/base/349230 Log: Add a VOP_BMAP(9) man page Reviewed by: mckusick MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r349229 - head

2019-06-20 Thread Antoine Brodin
Author: antoine Date: Thu Jun 20 13:24:58 2019 New Revision: 349229 URL: https://svnweb.freebsd.org/changeset/base/349229 Log: Add head(1) to native-xtools so that it can be used in qemu-user jails Modified: head/Makefile.inc1 Modified: head/Makefile.inc1

svn commit: r349228 - head/contrib/traceroute

2019-06-20 Thread Michael Tuexen
Author: tuexen Date: Thu Jun 20 12:38:41 2019 New Revision: 349228 URL: https://svnweb.freebsd.org/changeset/base/349228 Log: The variable names in the description of the port number usage is inconsistent. This patch fixes that and improves the precision of the description. Thanks to Tom

svn commit: r349225 - head/share/timedef

2019-06-20 Thread Li-Wen Hsu
Author: lwhsu Date: Thu Jun 20 07:17:16 2019 New Revision: 349225 URL: https://svnweb.freebsd.org/changeset/base/349225 Log: Finsh readding Big5 in r317204, which was reverting r315568. This commit reverts r315569. Reported by: Ting-Wei Lan Discussed with: kevlo MFC after: