svn commit: r366099 - head/sys/kern

2020-09-23 Thread Mateusz Guzik
Author: mjg Date: Thu Sep 24 03:38:32 2020 New Revision: 366099 URL: https://svnweb.freebsd.org/changeset/base/366099 Log: cache: eliminate cache_zap_locked_vnode It is only ever called for negative entries and for those it is just a wrapper around cache_zap_negative_locked_vnode_kl

svn commit: r366098 - head/usr.sbin/daemon

2020-09-23 Thread Maxim Sobolev
Author: sobomax Date: Thu Sep 24 02:44:58 2020 New Revision: 366098 URL: https://svnweb.freebsd.org/changeset/base/366098 Log: dd a new option (-H) to daemon(8) to catch SIGHUP and re-open output_file file when received. The default system log rotation mechanism (newsyslog(8)) requires

Re: svn commit: r366025 - head/share/man/man9

2020-09-23 Thread Warner Losh
On Wed, Sep 23, 2020 at 12:27 PM wrote: > Warner Losh wrote: > > Author: imp > > Date: Tue Sep 22 23:01:53 2020 > > New Revision: 366025 > > URL: https://svnweb.freebsd.org/changeset/base/366025 > > > > Log: > >Document devctl_safe_quote_sb > > > >This routine centralizes the knowledge

Re: svn commit: r366025 - head/share/man/man9

2020-09-23 Thread Warner Losh
On Wed, Sep 23, 2020 at 11:53 AM Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] > > Author: imp > > Date: Tue Sep 22 23:01:53 2020 > > New Revision: 366025 > > URL: https://svnweb.freebsd.org/changeset/base/366025 > > > > Log: > > Document devctl_safe_quote_sb > > > >

Re: svn commit: r365643 - head/bin/cp

2020-09-23 Thread Konstantin Belousov
On Wed, Sep 23, 2020 at 11:23:51AM -0600, Warner Losh wrote: > On Wed, Sep 23, 2020, 10:56 AM Rodney W. Grimes > wrote: > > > > cp is already fixed, people are still feeling the fallout of being > > > within those revisions and needing to bootstrap their own cp. We can > > > reduce the number of

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

2020-09-23 Thread Warner Losh
Author: imp Date: Wed Sep 23 22:49:27 2020 New Revision: 366096 URL: https://svnweb.freebsd.org/changeset/base/366096 Log: Remove stray lines I snagged the license boiler plate. Fix that. also, it's spelled .Va not .Vn. Plus " quoting issues. Noticed by: rgrimes, xtouqh at hotmail

Re: svn commit: r366088 - in head/sys: amd64/conf conf i386/conf x86/conf

2020-09-23 Thread Kyle Evans
On Wed, Sep 23, 2020 at 2:19 PM Warner Losh wrote: > > Author: imp > Date: Wed Sep 23 19:18:53 2020 > New Revision: 366088 > URL: https://svnweb.freebsd.org/changeset/base/366088 > > Log: > Use envvar rather than nonstandard hint. lines > > The NOTES files have a bunch of hint lines that are

svn commit: r366093 - in head: . tests/sys/kern tests/sys/posixshm

2020-09-23 Thread Kyle Evans
(r366092) +++ head/ObsoleteFiles.inc Wed Sep 23 19:54:59 2020(r366093) @@ -36,6 +36,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20200923: memfd_test moved to /usr/tests/sys/posixshm +OLD_FILES+=usr/tests/sys/kern/memfd_test + # 20200910: remove vm_map_create(9) to sync with the code

svn commit: r366091 - head/sys/vm

2020-09-23 Thread Mark Johnston
Author: markj Date: Wed Sep 23 19:36:07 2020 New Revision: 366091 URL: https://svnweb.freebsd.org/changeset/base/366091 Log: Flag vm_reserv and vm_phys sysctls as MPSAFE. Nothing in these subsystems relies on Giant. MFC after:1 week Modified: head/sys/vm/vm_phys.c

svn commit: r366090 - in head/sys: amd64/include arm/include arm64/include i386/include kern mips/include powerpc/include riscv/include vm

2020-09-23 Thread Mark Johnston
Author: markj Date: Wed Sep 23 19:34:21 2020 New Revision: 366090 URL: https://svnweb.freebsd.org/changeset/base/366090 Log: Add a vmparam.h constant indicating pmap support for large pages. Enable SHM_LARGEPAGE support on arm64. Reviewed by: alc, kib Sponsored by: Juniper

svn commit: r366089 - in head/sys/arm64: arm64 include

2020-09-23 Thread Mark Johnston
Author: markj Date: Wed Sep 23 19:33:47 2020 New Revision: 366089 URL: https://svnweb.freebsd.org/changeset/base/366089 Log: Add largepage support to the arm64 pmap. Reviewed by: alc, kib Sponsored by: Juniper Networks, Inc., Klara, Inc. Differential Revision:

svn commit: r366088 - in head/sys: amd64/conf conf i386/conf x86/conf

2020-09-23 Thread Warner Losh
Author: imp Date: Wed Sep 23 19:18:53 2020 New Revision: 366088 URL: https://svnweb.freebsd.org/changeset/base/366088 Log: Use envvar rather than nonstandard hint. lines The NOTES files have a bunch of hint lines that are removed when generating LINT. However, we can achieve the same

svn commit: r366087 - in head/stand: efi/loader i386/loader i386/zfsboot

2020-09-23 Thread Toomas Soome
Author: tsoome Date: Wed Sep 23 19:15:22 2020 New Revision: 366087 URL: https://svnweb.freebsd.org/changeset/base/366087 Log: loader: fix non-zfs build We can not include zfs headers while building without zfs. Reported by: Oscar Holmlund Modified: head/stand/efi/loader/main.c

Re: svn commit: r365643 - head/bin/cp

2020-09-23 Thread Mateusz Piotrowski
On 9/23/20 7:23 PM, Warner Losh wrote: On Wed, Sep 23, 2020, 10:56 AM Rodney W. Grimes wrote: cp is already fixed, people are still feeling the fallout of being within those revisions and needing to bootstrap their own cp. We can reduce the number of components these invocations rely on

svn commit: r366086 - head/sys/riscv/riscv

2020-09-23 Thread Nick O'Brien
Author: nick Date: Wed Sep 23 18:54:14 2020 New Revision: 366086 URL: https://svnweb.freebsd.org/changeset/base/366086 Log: riscv: Trap cleanup - use nitems() No functional changes, just cleanup. Reviewed by: kp Approved by: kp (mentor) Sponsored by: Axiado Modified:

Re: svn commit: r366025 - head/share/man/man9

2020-09-23 Thread xtouqh
Warner Losh wrote: Author: imp Date: Tue Sep 22 23:01:53 2020 New Revision: 366025 URL: https://svnweb.freebsd.org/changeset/base/366025 Log: Document devctl_safe_quote_sb This routine centralizes the knowledge needed for properly quoting 'value' in all key="value" items that

svn commit: r366085 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux kern sys

2020-09-23 Thread Konstantin Belousov
Author: kib Date: Wed Sep 23 18:03:07 2020 New Revision: 366085 URL: https://svnweb.freebsd.org/changeset/base/366085 Log: Do not leak oldvmspace if image activation failed and current address space is already destroyed, so kern_execve() terminates the process. While there, clean up

Re: svn commit: r366025 - head/share/man/man9

2020-09-23 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ] > Author: imp > Date: Tue Sep 22 23:01:53 2020 > New Revision: 366025 > URL: https://svnweb.freebsd.org/changeset/base/366025 > > Log: > Document devctl_safe_quote_sb > > This routine centralizes the knowledge needed for properly quoting >

Re: svn commit: r365643 - head/bin/cp

2020-09-23 Thread Warner Losh
On Wed, Sep 23, 2020, 10:56 AM Rodney W. Grimes wrote: > > cp is already fixed, people are still feeling the fallout of being > > within those revisions and needing to bootstrap their own cp. We can > > reduce the number of components these invocations rely on trivially to > > shell built-in

svn commit: r366078 - head/sbin/reboot

2020-09-23 Thread Conrad Meyer
Author: cem Date: Wed Sep 23 17:04:27 2020 New Revision: 366078 URL: https://svnweb.freebsd.org/changeset/base/366078 Log: nextboot(8): Fix behavior on non-ZFS /boot systems Fix unquoted test for an empty value, which broke nextboot(8) on non-ZFS /boot systems after r365938.

Re: svn commit: r366071 - in head/sys: contrib/openzfs/module/os/freebsd/zfs kern sys

2020-09-23 Thread Mateusz Guzik
On 9/23/20, Konstantin Belousov wrote: > On Wed, Sep 23, 2020 at 10:46:07AM +, Mateusz Guzik wrote: >> Author: mjg >> Date: Wed Sep 23 10:46:07 2020 >> New Revision: 366071 >> URL: https://svnweb.freebsd.org/changeset/base/366071 >> >> Log: >> cache: drop the force flag from purgevfs >> >>

Re: svn commit: r365643 - head/bin/cp

2020-09-23 Thread Rodney W. Grimes
> cp is already fixed, people are still feeling the fallout of being > within those revisions and needing to bootstrap their own cp. We can > reduce the number of components these invocations rely on trivially to > shell built-in mechanics, why not do so? I would even go further, I would like to

Re: svn commit: r366071 - in head/sys: contrib/openzfs/module/os/freebsd/zfs kern sys

2020-09-23 Thread Konstantin Belousov
On Wed, Sep 23, 2020 at 10:46:07AM +, Mateusz Guzik wrote: > Author: mjg > Date: Wed Sep 23 10:46:07 2020 > New Revision: 366071 > URL: https://svnweb.freebsd.org/changeset/base/366071 > > Log: > cache: drop the force flag from purgevfs > > The optional scan is wasteful, thus it is

Re: svn commit: r365846 - head

2020-09-23 Thread Kyle Evans
On Wed, Sep 23, 2020 at 9:30 AM Warner Losh wrote: > On Wed, Sep 23, 2020, 7:21 AM Kyle Evans wrote: >> >> On Mon, Sep 21, 2020 at 7:23 PM Ravi Pokala wrote: >> > >> > -Original Message- >> > From: on behalf of Ed Maste >> > >> > Date: 2020-09-17, Thursday at 11:47 >> > To: , , >> >

svn commit: r366077 - head/sys/conf

2020-09-23 Thread Ed Maste
Author: emaste Date: Wed Sep 23 14:52:43 2020 New Revision: 366077 URL: https://svnweb.freebsd.org/changeset/base/366077 Log: remove reference to obsolete arm NOTES files We left these in the clean rule to avoid having stale files remain in working trees, but enough time has now passed

Re: svn commit: r366042 - in head/stand: i386/zfsboot libsa

2020-09-23 Thread Ian Lepore
On Wed, 2020-09-23 at 10:44 +, Bjoern A. Zeeb wrote: > On 23 Sep 2020, at 1:04, Warner Losh wrote: > > >Ideally, we'd keep the cp /dev/null in the > > build as a regression test, > > Well or at least write a test case so that at least CI catches it. > > /bz It might make sense to

Re: svn commit: r365846 - head

2020-09-23 Thread Warner Losh
Won't this break non LINT builds? Maybe we should fix the crazy way we generate lint? On Wed, Sep 23, 2020, 7:21 AM Kyle Evans wrote: > On Mon, Sep 21, 2020 at 7:23 PM Ravi Pokala wrote: > > > > -Original Message- > > From: on behalf of Ed Maste > > > Date: 2020-09-17, Thursday at

Re: svn commit: r365846 - head

2020-09-23 Thread Kyle Evans
On Mon, Sep 21, 2020 at 7:23 PM Ravi Pokala wrote: > > -Original Message- > From: on behalf of Ed Maste > > Date: 2020-09-17, Thursday at 11:47 > To: , , > > Subject: svn commit: r365846 - head > > Author: emaste > Date: Thu Sep 17 18:47:23 2020 > New Revision: 365846 >

svn commit: r366075 - head/contrib/byacc

2020-09-23 Thread Alex Richardson
Author: arichardson Date: Wed Sep 23 12:54:42 2020 New Revision: 366075 URL: https://svnweb.freebsd.org/changeset/base/366075 Log: byacc: fix UBSan signed shift range error I've submitted this patch upstream, so apply this to contrib/ until a new version containing this change has been

svn commit: r366074 - in head/.github: . workflows

2020-09-23 Thread Alex Richardson
Author: arichardson Date: Wed Sep 23 12:54:37 2020 New Revision: 366074 URL: https://svnweb.freebsd.org/changeset/base/366074 Log: Add github CI for testing cross-building from Linux and macOS This builds the kernel-toolchain target and an amd64 GENERIC kernel on Ubuntu 18.04, 20.04 and

Re: svn commit: r366064 - head/sbin/fsck_msdosfs

2020-09-23 Thread Jessica Clarke
On 23 Sep 2020, at 07:52, Xin LI wrote: > > --- head/sbin/fsck_msdosfs/dir.c Wed Sep 23 04:09:02 2020 > (r366063) > +++ head/sbin/fsck_msdosfs/dir.c Wed Sep 23 06:52:22 2020 > (r366064) > @@ -388,7 +388,8 @@ static int > checksize(struct fat_descriptor *fat, u_char *p,

Re: svn commit: r366042 - in head/stand: i386/zfsboot libsa

2020-09-23 Thread Warner Losh
On Wed, Sep 23, 2020, 4:44 AM Bjoern A. Zeeb wrote: > On 23 Sep 2020, at 1:04, Warner Losh wrote: > > >Ideally, we'd keep the cp /dev/null in the > > build as a regression test, > > Well or at least write a test case so that at least CI catches it. > Kyle did that. Warner > /bz >

svn commit: r366072 - head/sys/sys

2020-09-23 Thread Mateusz Guzik
Author: mjg Date: Wed Sep 23 11:02:23 2020 New Revision: 366072 URL: https://svnweb.freebsd.org/changeset/base/366072 Log: Bump __FreeBSD_version after cache_purgevfs change Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

svn commit: r366071 - in head/sys: contrib/openzfs/module/os/freebsd/zfs kern sys

2020-09-23 Thread Mateusz Guzik
Author: mjg Date: Wed Sep 23 10:46:07 2020 New Revision: 366071 URL: https://svnweb.freebsd.org/changeset/base/366071 Log: cache: drop the force flag from purgevfs The optional scan is wasteful, thus it is removed altogether from unmount. Callers which always want it anyway remain

svn commit: r366070 - head/sys/kern

2020-09-23 Thread Mateusz Guzik
Author: mjg Date: Wed Sep 23 10:44:49 2020 New Revision: 366070 URL: https://svnweb.freebsd.org/changeset/base/366070 Log: cache: reimplement purgevfs to iterate vnodes instead of the entire hash The entire cache scan was a leftover from the old implementation. It is incredibly

Re: svn commit: r366042 - in head/stand: i386/zfsboot libsa

2020-09-23 Thread Bjoern A. Zeeb
On 23 Sep 2020, at 1:04, Warner Losh wrote: >Ideally, we'd keep the cp /dev/null in the > build as a regression test, Well or at least write a test case so that at least CI catches it. /bz ___ svn-src-head@freebsd.org mailing list

svn commit: r366069 - head/sys/kern

2020-09-23 Thread Mateusz Guzik
Author: mjg Date: Wed Sep 23 10:42:41 2020 New Revision: 366069 URL: https://svnweb.freebsd.org/changeset/base/366069 Log: cache: clean up atomic ops on numneg and numcache - use subtract instead of adding -1 - drop the useless _rel fence Note this should be converted to a scalable

svn commit: r366066 - in head/stand: efi/libefi libsa/zfs

2020-09-23 Thread Toomas Soome
Author: tsoome Date: Wed Sep 23 08:22:14 2020 New Revision: 366066 URL: https://svnweb.freebsd.org/changeset/base/366066 Log: loader: zfs_probe_dev should pick first matching zfs pool During devswitch probe, we pick boot pool based on boot disk, if the boot disk happens to have multiple

svn commit: r366065 - head/sbin/fsck_msdosfs

2020-09-23 Thread Xin LI
Author: delphij Date: Wed Sep 23 07:27:12 2020 New Revision: 366065 URL: https://svnweb.freebsd.org/changeset/base/366065 Log: Fix build. Pointy hat to:delphij MFC after:3 days Modified: head/sbin/fsck_msdosfs/dir.c Modified: head/sbin/fsck_msdosfs/dir.c

svn commit: r366064 - head/sbin/fsck_msdosfs

2020-09-23 Thread Xin LI
Author: delphij Date: Wed Sep 23 06:52:22 2020 New Revision: 366064 URL: https://svnweb.freebsd.org/changeset/base/366064 Log: sbin/fsck_msdosfs: Fix an integer overflow on 32-bit platforms. The purpose of checksize() is to verify that the referenced cluster chain size matches the