svn commit: r358057 - stable/12/share/misc

2020-02-17 Thread Ryan Moeller
sd.org\n2006/03/30"] +freqlabs [label="Ryan Moeller\nfreql...@freebsd.org\n2020/02/10"] fsu [label="Fedor Uporov\n...@freebsd.org\n2017/08/28"] gabor [label="Gabor Kovesdan\nga...@freebsd.org\n2010/02/02"] gad [label="Garance A. Drosehn\n...@freebsd.org

svn commit: r357850 - head/share/misc

2020-02-12 Thread Ryan Moeller
[label="Fabien Thomas\nfabi...@freebsd.org\n20 fanf [label="Tony Finch\nf...@freebsd.org\n2002/05/05"] fjoe [label="Max Khon\nf...@freebsd.org\n2001/08/06"] flz [label="Florent Thoumie\n...@freebsd.org\n2006/03/30"] +freqlabs [label="Ryan Moeller\nfreql...@free

svn commit: r358923 - in head: lib/libpmcstat usr.sbin/pmcstat

2020-03-12 Thread Ryan Moeller
Author: freqlabs Date: Thu Mar 12 23:04:40 2020 New Revision: 358923 URL: https://svnweb.freebsd.org/changeset/base/358923 Log: libpmcstat: Try /boot/modules if module not found Modules from ports/pkg are commonly installed to /boot/modules rather than to the same directory the kernel

Re: svn commit: r358923 - in head: lib/libpmcstat usr.sbin/pmcstat

2020-03-12 Thread Ryan Moeller
> It's unclear from the context- is there any particular reason this > can't instead using sysctl kern.module_path and accept a semicolon > delimited list of directories for -k (maybe calling it -k kernelpath > instead)? No, that looks technically possible. -Ryan

svn commit: r359721 - in stable/12: cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/sys/fs

2020-04-08 Thread Ryan Moeller
Author: freqlabs Date: Wed Apr 8 06:06:13 2020 New Revision: 359721 URL: https://svnweb.freebsd.org/changeset/base/359721 Log: MFC r359303 MFOpenZFS: ZVOLs should not be allowed to have children zfs create, receive and rename can bypass this hierarchy rule. Update both userland and

svn commit: r359722 - in stable/11: cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/sys/fs

2020-04-08 Thread Ryan Moeller
Author: freqlabs Date: Wed Apr 8 08:05:02 2020 New Revision: 359722 URL: https://svnweb.freebsd.org/changeset/base/359722 Log: MFC r359303 MFOpenZFS: ZVOLs should not be allowed to have children zfs create, receive and rename can bypass this hierarchy rule. Update both userland and

svn commit: r358971 - head/sys/cddl/compat/opensolaris/sys

2020-03-13 Thread Ryan Moeller
Author: freqlabs Date: Sat Mar 14 00:16:15 2020 New Revision: 358971 URL: https://svnweb.freebsd.org/changeset/base/358971 Log: TODO DONE: Use sx_xholder in SPL rwlock.h Approved by: mav (mentor) MFC after:1 week Sponsored by: iXsystems, Inc. Modified:

svn commit: r359304 - stable/12/stand/lua

2020-03-25 Thread Ryan Moeller
Author: freqlabs Date: Wed Mar 25 16:24:28 2020 New Revision: 359304 URL: https://svnweb.freebsd.org/changeset/base/359304 Log: MFC r359072-r359073 loader: Add a "kernel.loaded" hook This hook can be useful, for example to run a local function to choose different modules to load

svn commit: r359586 - in stable/12/stand: forth lua

2020-04-02 Thread Ryan Moeller
Author: freqlabs Date: Fri Apr 3 01:31:48 2020 New Revision: 359586 URL: https://svnweb.freebsd.org/changeset/base/359586 Log: MFC r359371 loader: Fully reset terminal settings, not just colors Reviewed by:kevans, tsoome Approved by:mav (mentor) Modified:

svn commit: r359303 - in head: cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/sys/fs

2020-03-25 Thread Ryan Moeller
Author: freqlabs Date: Wed Mar 25 15:56:18 2020 New Revision: 359303 URL: https://svnweb.freebsd.org/changeset/base/359303 Log: MFOpenZFS: ZVOLs should not be allowed to have children zfs create, receive and rename can bypass this hierarchy rule. Update both userland and kernel module to

svn commit: r359371 - in head/stand: forth lua

2020-03-27 Thread Ryan Moeller
Author: freqlabs Date: Fri Mar 27 17:37:31 2020 New Revision: 359371 URL: https://svnweb.freebsd.org/changeset/base/359371 Log: loader: Fully reset terminal settings, not just colors Reviewed by: kevans Reviewed by: tsoome Approved by: mav (mentor) MFC after:1 week Sponsored

svn commit: r360454 - stable/12/stand/lua

2020-04-28 Thread Ryan Moeller
Author: freqlabs Date: Wed Apr 29 05:11:17 2020 New Revision: 360454 URL: https://svnweb.freebsd.org/changeset/base/360454 Log: MFC r360199 menu.lua: Give names to menu entries Make menu customizations easier by naming the entries and using the names to build the table entries.

svn commit: r360199 - head/stand/lua

2020-04-22 Thread Ryan Moeller
Author: freqlabs Date: Wed Apr 22 17:04:31 2020 New Revision: 360199 URL: https://svnweb.freebsd.org/changeset/base/360199 Log: menu.lua: Give names to menu entries Make menu customizations easier by naming the entries and using the names to build the table entries. Reviewed by:

svn commit: r360356 - head/usr.bin/sockstat

2020-04-26 Thread Ryan Moeller
Author: freqlabs Date: Sun Apr 26 20:55:11 2020 New Revision: 360356 URL: https://svnweb.freebsd.org/changeset/base/360356 Log: sockstat: Attach to jail if in new vnet Attach sockstat -j to the specified jail if the jail is in a new vnet. Otherwise we do not see all sockets belonging to

svn commit: r360960 - in head/sys/fs: nfs nfsclient nfsserver

2020-05-12 Thread Ryan Moeller
Author: freqlabs Date: Tue May 12 13:23:25 2020 New Revision: 360960 URL: https://svnweb.freebsd.org/changeset/base/360960 Log: nfs: Remove APPLESTATIC macro It is no longer useful. Reviewed by: rmacklem Approved by: mav (mentor) MFC after:1 week Sponsored by: iXsystems,

svn commit: r361147 - in stable: 11/sys/kern 12/sys/kern

2020-05-17 Thread Ryan Moeller
Author: freqlabs Date: Mon May 18 00:32:42 2020 New Revision: 361147 URL: https://svnweb.freebsd.org/changeset/base/361147 Log: MFC r360900: vfs_exports: Tighten bounds and assert consistency of numsecflavors We know the value must be greater than 0 and less than MAXSECFLAVORS.

svn commit: r361147 - in stable: 11/sys/kern 12/sys/kern

2020-05-17 Thread Ryan Moeller
Author: freqlabs Date: Mon May 18 00:32:42 2020 New Revision: 361147 URL: https://svnweb.freebsd.org/changeset/base/361147 Log: MFC r360900: vfs_exports: Tighten bounds and assert consistency of numsecflavors We know the value must be greater than 0 and less than MAXSECFLAVORS.

svn commit: r360900 - head/sys/kern

2020-05-11 Thread Ryan Moeller
Author: freqlabs Date: Mon May 11 15:38:44 2020 New Revision: 360900 URL: https://svnweb.freebsd.org/changeset/base/360900 Log: vfs_exports: Tighten bounds and assert consistency of numsecflavors We know the value must be greater than 0 and less than MAXSECFLAVORS. Reject values

Re: svn commit: r361066 - head/usr.sbin/jail

2020-05-15 Thread Ryan Moeller
On 5/15/20 6:18 AM, Mateusz Piotrowski wrote: On 5/15/20 1:38 AM, Ryan Moeller wrote: Author: freqlabs Date: Thu May 14 23:38:11 2020 New Revision: 361066 URL: https://svnweb.freebsd.org/changeset/base/361066 Log: jail: Add exec.prepare and exec.release command hooks This change

Re: svn commit: r361066 - head/usr.sbin/jail

2020-05-15 Thread Ryan Moeller
On 5/15/20 3:24 PM, Rodney W. Grimes wrote: On 5/15/20 6:18 AM, Mateusz Piotrowski wrote: On 5/15/20 1:38 AM, Ryan Moeller wrote: Author: freqlabs Date: Thu May 14 23:38:11 2020 New Revision: 361066 URL: https://svnweb.freebsd.org/changeset/base/361066 Log: jail: Add exec.prepare

Re: svn commit: r361066 - head/usr.sbin/jail

2020-05-15 Thread Ryan Moeller
On 5/15/20 4:17 PM, Rodney W. Grimes wrote: On 5/15/20 3:24 PM, Rodney W. Grimes wrote: On 5/15/20 6:18 AM, Mateusz Piotrowski wrote: On 5/15/20 1:38 AM, Ryan Moeller wrote: Author: freqlabs Date: Thu May 14 23:38:11 2020 New Revision: 361066 URL: https://svnweb.freebsd.org/changeset/base

svn commit: r361236 - in stable: 11/sys/fs/nfs 11/sys/fs/nfsclient 11/sys/fs/nfsserver 12/sys/fs/nfs 12/sys/fs/nfsclient 12/sys/fs/nfsserver

2020-05-18 Thread Ryan Moeller
Author: freqlabs Date: Tue May 19 01:43:00 2020 New Revision: 361236 URL: https://svnweb.freebsd.org/changeset/base/361236 Log: MFC r360960: nfs: Remove APPLESTATIC macro It is no longer useful. Reviewed by:rmacklem Approved by:mav (mentor) Sponsored by: iXsystems,

svn commit: r361236 - in stable: 11/sys/fs/nfs 11/sys/fs/nfsclient 11/sys/fs/nfsserver 12/sys/fs/nfs 12/sys/fs/nfsclient 12/sys/fs/nfsserver

2020-05-18 Thread Ryan Moeller
Author: freqlabs Date: Tue May 19 01:43:00 2020 New Revision: 361236 URL: https://svnweb.freebsd.org/changeset/base/361236 Log: MFC r360960: nfs: Remove APPLESTATIC macro It is no longer useful. Reviewed by:rmacklem Approved by:mav (mentor) Sponsored by: iXsystems,

svn commit: r361070 - in stable: 11/sys/fs/nfs 11/sys/fs/nfsclient 11/sys/fs/nfsserver 12/sys/fs/nfs 12/sys/fs/nfsclient 12/sys/fs/nfsserver

2020-05-14 Thread Ryan Moeller
Author: freqlabs Date: Fri May 15 01:01:02 2020 New Revision: 361070 URL: https://svnweb.freebsd.org/changeset/base/361070 Log: MFC r360813: Remove APPLEKEXT ifndefs They are no longer useful. Reviewed by:rmacklem Approved by:mav (mentor) Sponsored by: iXsystems,

svn commit: r361070 - in stable: 11/sys/fs/nfs 11/sys/fs/nfsclient 11/sys/fs/nfsserver 12/sys/fs/nfs 12/sys/fs/nfsclient 12/sys/fs/nfsserver

2020-05-14 Thread Ryan Moeller
Author: freqlabs Date: Fri May 15 01:01:02 2020 New Revision: 361070 URL: https://svnweb.freebsd.org/changeset/base/361070 Log: MFC r360813: Remove APPLEKEXT ifndefs They are no longer useful. Reviewed by:rmacklem Approved by:mav (mentor) Sponsored by: iXsystems,

svn commit: r361066 - head/usr.sbin/jail

2020-05-14 Thread Ryan Moeller
Author: freqlabs Date: Thu May 14 23:38:11 2020 New Revision: 361066 URL: https://svnweb.freebsd.org/changeset/base/361066 Log: jail: Add exec.prepare and exec.release command hooks This change introduces new jail command hooks that run before and after any other actions. The

svn commit: r360813 - in head/sys/fs: nfs nfsclient nfsserver

2020-05-08 Thread Ryan Moeller
Author: freqlabs Date: Fri May 8 14:39:38 2020 New Revision: 360813 URL: https://svnweb.freebsd.org/changeset/base/360813 Log: Remove APPLEKEXT ifndefs They are no longer useful. Reviewed by: rmacklem Approved by: mav (mentor) MFC after:1 week Sponsored by: iXsystems,

svn commit: r359073 - head/stand/lua

2020-03-18 Thread Ryan Moeller
Author: freqlabs Date: Wed Mar 18 17:01:03 2020 New Revision: 359073 URL: https://svnweb.freebsd.org/changeset/base/359073 Log: Fixup line lost from previous commit (r359072) Reviewed by: kevans Approved by: mav (mentor) MFC after:1 week Sponsored by: iXsystems, Inc.

svn commit: r359072 - head/stand/lua

2020-03-18 Thread Ryan Moeller
Author: freqlabs Date: Wed Mar 18 16:21:11 2020 New Revision: 359072 URL: https://svnweb.freebsd.org/changeset/base/359072 Log: loader: Add a "kernel.loaded" hook This hook can be useful, for example to run a local function to choose different modules to load when a user has picked a

svn commit: r359217 - stable/12/sys/cddl/compat/opensolaris/sys

2020-03-22 Thread Ryan Moeller
Author: freqlabs Date: Sun Mar 22 17:13:19 2020 New Revision: 359217 URL: https://svnweb.freebsd.org/changeset/base/359217 Log: MFC r358971: TODO DONE: Use sx_xholder in SPL rwlock.h Approved by: mav (mentor) Sponsored by: iXsystems, Inc. Modified:

svn commit: r361265 - head

2020-05-19 Thread Ryan Moeller
Author: freqlabs Date: Tue May 19 18:41:46 2020 New Revision: 361265 URL: https://svnweb.freebsd.org/changeset/base/361265 Log: Mention new jail(8) command hooks in RELNOTES Reported by: 0mp Approved by: mmacy (mentor) Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r361264 - head

2020-05-19 Thread Ryan Moeller
Author: freqlabs Date: Tue May 19 18:38:46 2020 New Revision: 361264 URL: https://svnweb.freebsd.org/changeset/base/361264 Log: Mention new dd flags in RELNOTES Approved by: mmacy (mentor) Sponsored by: iXsystems, Inc. Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r361314 - stable/12/usr.sbin/jail

2020-05-20 Thread Ryan Moeller
Author: freqlabs Date: Thu May 21 02:04:10 2020 New Revision: 361314 URL: https://svnweb.freebsd.org/changeset/base/361314 Log: MFC r361066: jail: Add exec.prepare and exec.release command hooks This change introduces new jail command hooks that run before and after any other

svn commit: r361313 - in head: lib/libugidfw sbin/mksnap_ffs sbin/umount sys/fs/nfs sys/fs/nfsserver sys/kern sys/security/mac_bsdextended sys/sys usr.sbin/autofs usr.sbin/mountd

2020-05-20 Thread Ryan Moeller
Author: freqlabs Date: Thu May 21 01:55:35 2020 New Revision: 361313 URL: https://svnweb.freebsd.org/changeset/base/361313 Log: Deduplicate fsid comparisons Comparing fsid_t objects requires internal knowledge of the fsid structure and yet this is duplicated across a number of places in

svn commit: r360601 - stable/12/usr.bin/sockstat

2020-05-03 Thread Ryan Moeller
Author: freqlabs Date: Sun May 3 08:13:44 2020 New Revision: 360601 URL: https://svnweb.freebsd.org/changeset/base/360601 Log: MFC r360356: sockstat: Attach to jail if in new vnet Attach sockstat -j to the specified jail if the jail is in a new vnet. Otherwise we do not see all

svn commit: r365252 - head

2020-09-02 Thread Ryan Moeller
Author: freqlabs Date: Wed Sep 2 16:03:33 2020 New Revision: 365252 URL: https://svnweb.freebsd.org/changeset/base/365252 Log: Correct and expand on OpenZFS cache file and auto import Reported by: avg Sponsored by: iXsystems, Inc. Modified: head/UPDATING Modified: head/UPDATING

Re: svn commit: r365249 - head

2020-09-02 Thread Ryan Moeller
On 9/2/20 10:28 AM, Warner Losh wrote: Author: imp Date: Wed Sep 2 14:28:54 2020 New Revision: 365249 URL: https://svnweb.freebsd.org/changeset/base/365249 Log: Add note about needing to manually import the zfs pools or update /etc/rc.d due to the cache file moving to /etc. Modified:

Re: svn commit: r365249 - head

2020-09-02 Thread Ryan Moeller
On 9/2/20 11:43 AM, Andriy Gapon wrote: On 02/09/2020 18:23, Ryan Moeller wrote: On 9/2/20 10:28 AM, Warner Losh wrote: Author: imp Date: Wed Sep  2 14:28:54 2020 New Revision: 365249 URL: https://svnweb.freebsd.org/changeset/base/365249 Log:    Add note about needing to manually import

svn commit: r365250 - in head/cddl/sbin: zfs zpool

2020-09-02 Thread Ryan Moeller
Author: freqlabs Date: Wed Sep 2 15:20:10 2020 New Revision: 365250 URL: https://svnweb.freebsd.org/changeset/base/365250 Log: Use MLINKS where appropriate for zfs/zpool subcommand pages Reported by: Julian H. Stacey Sponsored by: iXsystems, Inc. Modified:

svn commit: r365057 - head/cddl/usr.bin

2020-09-01 Thread Ryan Moeller
Author: freqlabs Date: Tue Sep 1 19:02:07 2020 New Revision: 365057 URL: https://svnweb.freebsd.org/changeset/base/365057 Log: Ensure zstreamdump subdir can be visited Reported by: Thomas Laus Sponsored by: iXsystems, Inc. Modified: head/cddl/usr.bin/Makefile Modified:

svn commit: r366465 - in head: sbin/sysctl sys/kern sys/sys usr.bin/truss

2020-10-05 Thread Ryan Moeller
Author: freqlabs Date: Mon Oct 5 20:13:22 2020 New Revision: 366465 URL: https://svnweb.freebsd.org/changeset/base/366465 Log: Enable iterating all sysctls, even ones with CTLFLAG_SKIP Add an "nextnoskip" sysctl that allows for listing of sysctls intended to be normally skipped for cost

svn commit: r366433 - in head/sys: contrib/ipfilter/netinet x86/bios

2020-10-04 Thread Ryan Moeller
Author: freqlabs Date: Sun Oct 4 19:37:15 2020 New Revision: 366433 URL: https://svnweb.freebsd.org/changeset/base/366433 Log: Explicit CTLFLAG_DYN not needed Dynamically created OIDs automatically get this flag set. Reviewed by: jhb MFC after:1 week Sponsored by: iXsystems,

svn commit: r366651 - in stable/12/sys: contrib/ipfilter/netinet x86/bios

2020-10-12 Thread Ryan Moeller
Author: freqlabs Date: Mon Oct 12 17:43:38 2020 New Revision: 366651 URL: https://svnweb.freebsd.org/changeset/base/366651 Log: MFC r366433 Explicit CTLFLAG_DYN not needed Dynamically created OIDs automatically get this flag set. Reviewed by: jhb Sponsored by: iXsystems, Inc.

svn commit: r366771 - head/usr.sbin/bhyve

2020-10-16 Thread Ryan Moeller
Author: freqlabs Date: Fri Oct 16 20:27:20 2020 New Revision: 366771 URL: https://svnweb.freebsd.org/changeset/base/366771 Log: bhyve: Update TX descriptor base address and host mapping on change bhyve sometimes segfaults when using an e1000 NIC with a Windows guest. We are only

svn commit: r366830 - head/usr.sbin/efibootmgr

2020-10-19 Thread Ryan Moeller
Author: freqlabs Date: Mon Oct 19 10:38:40 2020 New Revision: 366830 URL: https://svnweb.freebsd.org/changeset/base/366830 Log: efibootmgr: Use returned error code for error message, not errno efivar_unix_path_to_device_path returns the error code, it does not set errno. Reviewed by:

svn commit: r364777 - head/sys/modules/zfs

2020-08-25 Thread Ryan Moeller
Author: freqlabs Date: Tue Aug 25 18:22:30 2020 New Revision: 364777 URL: https://svnweb.freebsd.org/changeset/base/364777 Log: Fix zstd in OpenZFS module with CPUTYPE?= The build breaks when something adds -march= to the compiler flags, for example CPUTYPE?=native. When the arch

svn commit: r364783 - head/tests/sys/cddl/zfs/tests/cli_root/zpool_clear

2020-08-25 Thread Ryan Moeller
Author: freqlabs Date: Tue Aug 25 20:04:35 2020 New Revision: 364783 URL: https://svnweb.freebsd.org/changeset/base/364783 Log: Skip zpool_clear_005_pos test until bug fixed Messing with gnop devices under a zpool fails in this test, causing the pool to be suspended and eventually the

svn commit: r364785 - head/usr.sbin/bsdinstall/scripts

2020-08-25 Thread Ryan Moeller
Author: freqlabs Date: Tue Aug 25 21:07:27 2020 New Revision: 364785 URL: https://svnweb.freebsd.org/changeset/base/364785 Log: bsdinstall: Update loader.conf for new OpenZFS deps zfs.ko now includes the SPL but relies on cryptodev instead. Reported by: D Scott Phillips Sponsored

svn commit: r364829 - head/cddl/lib/libzpool

2020-08-26 Thread Ryan Moeller
Author: freqlabs Date: Wed Aug 26 19:00:17 2020 New Revision: 364829 URL: https://svnweb.freebsd.org/changeset/base/364829 Log: Tidy up libzpool Makefile Sponsored by: iXsystems, Inc. Modified: head/cddl/lib/libzpool/Makefile Modified: head/cddl/lib/libzpool/Makefile

svn commit: r364821 - head/cddl/sbin/zpool

2020-08-26 Thread Ryan Moeller
Author: freqlabs Date: Wed Aug 26 15:43:44 2020 New Revision: 364821 URL: https://svnweb.freebsd.org/changeset/base/364821 Log: Install zfs-events.5 Sponsored by: iXsystems, Inc. Modified: head/cddl/sbin/zpool/Makefile Modified: head/cddl/sbin/zpool/Makefile

Re: svn commit: r364863 - head

2020-08-28 Thread Ryan Moeller
On 8/28/20 8:51 AM, Harry Schmalzbauer wrote: Am 27.08.2020 um 15:26 schrieb Ryan Moeller: Author: freqlabs Date: Thu Aug 27 13:26:36 2020 New Revision: 364863 URL: https://svnweb.freebsd.org/changeset/base/364863 Log:    libzfs: Also add the crypto dependency to Makefile.inc1       Reported

svn commit: r364830 - in head/cddl/lib: libzfs libzpool

2020-08-26 Thread Ryan Moeller
Author: freqlabs Date: Wed Aug 26 19:03:15 2020 New Revision: 364830 URL: https://svnweb.freebsd.org/changeset/base/364830 Log: Move zstd sources from libzfs to libzpool zstd is kernel code that was not supposed to be in libzfs. libzpool provides userland shims for kernel code and is

svn commit: r364863 - head

2020-08-27 Thread Ryan Moeller
Author: freqlabs Date: Thu Aug 27 13:26:36 2020 New Revision: 364863 URL: https://svnweb.freebsd.org/changeset/base/364863 Log: libzfs: Also add the crypto dependency to Makefile.inc1 Reported by: kevans Discussed with: kevans Sponsored by: iXsystems, Inc. Modified:

svn commit: r364861 - in head: cddl/lib/libzfs share/mk

2020-08-27 Thread Ryan Moeller
Author: freqlabs Date: Thu Aug 27 13:05:41 2020 New Revision: 364861 URL: https://svnweb.freebsd.org/changeset/base/364861 Log: libzfs: Add missing crypto dependency libzfs_crypto.c uses PKCS5_PBKDF2_HMAC_SHA1 from libcrypto. Reported by: John Kennedy Sponsored by: iXsystems, Inc.

svn commit: r361589 - in stable/12: lib/libugidfw sbin/mksnap_ffs sbin/umount sys/fs/nfs sys/fs/nfsserver sys/kern sys/security/mac_bsdextended sys/sys usr.sbin/autofs usr.sbin/mountd

2020-05-28 Thread Ryan Moeller
Author: freqlabs Date: Thu May 28 17:08:39 2020 New Revision: 361589 URL: https://svnweb.freebsd.org/changeset/base/361589 Log: MFC r361313: Deduplicate fsid comparisons Comparing fsid_t objects requires internal knowledge of the fsid structure and yet this is duplicated across a

svn commit: r361699 - head/sys/kern

2020-06-01 Thread Ryan Moeller
Author: freqlabs Date: Mon Jun 1 18:43:51 2020 New Revision: 361699 URL: https://svnweb.freebsd.org/changeset/base/361699 Log: Assign default security flavor when converting old export args vfs_export requires security flavors be explicitly listed when exporting as of r360900. Use

Re: svn commit: r361711 - head/sys/kern

2020-06-01 Thread Ryan Moeller
On 6/1/20 8:03 PM, Rick Macklem wrote: Author: rmacklem Date: Tue Jun 2 00:03:26 2020 New Revision: 361711 URL: https://svnweb.freebsd.org/changeset/base/361711 Log: Fix build issue introduced by r361699. Oops, that was easily avoidable. :/ Thanks for picking up the pieces.

svn commit: r366965 - stable/12/usr.sbin/bhyve

2020-10-23 Thread Ryan Moeller
Author: freqlabs Date: Fri Oct 23 10:48:14 2020 New Revision: 366965 URL: https://svnweb.freebsd.org/changeset/base/366965 Log: MFC r366771: bhyve: Update TX descriptor base address and host mapping on change bhyve sometimes segfaults when using an e1000 NIC with a Windows guest.

Re: svn commit: r366965 - stable/12/usr.sbin/bhyve

2020-10-23 Thread Ryan Moeller
On 10/23/20 8:27 AM, Konstantin Belousov wrote: Does this description mean that if guest writes garbage into base, it can crash monitor ? The guest can crash the bhyve process by writing garbage into device registers, yes. A bad base address will be mapped to NULL and eventually gets

svn commit: r367025 - head/usr.bin/sockstat

2020-10-24 Thread Ryan Moeller
Author: freqlabs Date: Sat Oct 24 22:36:20 2020 New Revision: 367025 URL: https://svnweb.freebsd.org/changeset/base/367025 Log: sockstat: Fix error message when jail_attach fails jail_errmsg is for libjail, jail_attach() is a system call. Modified: head/usr.bin/sockstat/sockstat.c

svn commit: r367055 - stable/12/usr.sbin/efibootmgr

2020-10-26 Thread Ryan Moeller
Author: freqlabs Date: Mon Oct 26 12:34:50 2020 New Revision: 367055 URL: https://svnweb.freebsd.org/changeset/base/367055 Log: MFC r366830: efibootmgr: Use returned error code for error message, not errno efivar_unix_path_to_device_path returns the error code, it does not set errno.

svn commit: r367003 - head/sys/kern

2020-10-24 Thread Ryan Moeller
Author: freqlabs Date: Sat Oct 24 14:46:38 2020 New Revision: 367003 URL: https://svnweb.freebsd.org/changeset/base/367003 Log: kern_sysctl: Misc code cleanup Remove unused oidpp parameter from sysctl_sysctl_next_ls and add high level comments to describe how it works. No functional

svn commit: r367006 - head/sbin/sysctl

2020-10-24 Thread Ryan Moeller
Author: freqlabs Date: Sat Oct 24 16:05:37 2020 New Revision: 367006 URL: https://svnweb.freebsd.org/changeset/base/367006 Log: sysctl: Misc code cleanup * Use defined SYS_SYSCTL names * Use memcmp instead of explicit loop * Use NULL instead of 0 for pointer value * Use __FBSDID *

svn commit: r367009 - in head: sbin/sysctl sys/kern

2020-10-24 Thread Ryan Moeller
Author: freqlabs Date: Sat Oct 24 16:17:07 2020 New Revision: 367009 URL: https://svnweb.freebsd.org/changeset/base/367009 Log: sysctl+kern_sysctl: Honor SKIP for descendant nodes Ensure we also skip descendants of SKIP nodes when iterating through children of an explicitly specified

svn commit: r367010 - head/sys/contrib/openzfs/module/os/freebsd/spl

2020-10-24 Thread Ryan Moeller
Author: freqlabs Date: Sat Oct 24 16:25:52 2020 New Revision: 367010 URL: https://svnweb.freebsd.org/changeset/base/367010 Log: Skip RAW kstat sysctls by default hese kstats are often expensive to compute so we want to avoid them unless specifically requested. The following kstats

svn commit: r367013 - in head: . contrib/mandoc etc/mtree lib lib/flua lib/flua/libjail share/examples share/examples/flua share/man share/man/man3lua usr.bin/man

2020-10-24 Thread Ryan Moeller
use file is newly added) +++ head/lib/flua/libjail/jail.3lua Sat Oct 24 17:08:59 2020 (r367013) @@ -0,0 +1,210 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD +.\" +.\" Copyright (c) 2020, Ryan Moeller +.\" +.\" Redistribution and use in source

svn commit: r364058 - in head: lib/libifconfig rescue/rescue sbin/ifconfig tools/lua

2020-08-09 Thread Ryan Moeller
dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libifconfig/libifconfig_sfp.c Sun Aug 9 16:27:28 2020 (r364058) @@ -0,0 +1,592 @@ +/*- + * Copyright (c) 2014, Alexander V. Chernikov + * Copyright (c) 2020, Ryan Moeller + * + * Redistribution and use in sou

svn commit: r363831 - in stable/12: lib/libpmc sys/dev/hwpmc

2020-08-04 Thread Ryan Moeller
Author: freqlabs Date: Tue Aug 4 12:04:47 2020 New Revision: 363831 URL: https://svnweb.freebsd.org/changeset/base/363831 Log: MFC r363630: libpmc: Use known pmc_cpuid buffer size Use the existing PMC_CPUID_LEN to size pmc_cpuid in the kernel and various buffers for reading it in

svn commit: r363037 - in stable/12: lib/libifconfig sbin/ifconfig sys/net

2020-07-09 Thread Ryan Moeller
lib/libifconfig/libifconfig_bridge.c Thu Jul 9 09:33:32 2020(r363037, copy of r362824, head/lib/libifconfig/libifconfig_bridge.c) @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2020, Ryan Moeller + * + * Redistribution and use in source and binary forms, with or without + * modification, are per

svn commit: r363206 - in head/sys: dev/coretemp dev/hwpmc x86/include

2020-07-14 Thread Ryan Moeller
Author: freqlabs Date: Tue Jul 14 22:25:06 2020 New Revision: 363206 URL: https://svnweb.freebsd.org/changeset/base/363206 Log: hwpmc: Always set pmc_cpuid to something pmc_cpuid was uninitialized for most AMD processor families. We can still populate this string for unimplemented

svn commit: r362824 - in head: lib/libifconfig sbin/ifconfig sys/net

2020-06-30 Thread Ryan Moeller
config_bridge.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libifconfig/libifconfig_bridge.c Wed Jul 1 02:32:41 2020 (r362824) @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2020, Ryan Moeller + * + * Redistr

svn commit: r362375 - in stable: 11/sys/kern 12/sys/kern

2020-06-19 Thread Ryan Moeller
Author: freqlabs Date: Fri Jun 19 11:45:12 2020 New Revision: 362375 URL: https://svnweb.freebsd.org/changeset/base/362375 Log: MFC r362252: Apply default security flavor in vfs_export Reported by:npn Reviewed by:rmacklem Approved by:mav (mentor) Sponsored by:

svn commit: r362375 - in stable: 11/sys/kern 12/sys/kern

2020-06-19 Thread Ryan Moeller
Author: freqlabs Date: Fri Jun 19 11:45:12 2020 New Revision: 362375 URL: https://svnweb.freebsd.org/changeset/base/362375 Log: MFC r362252: Apply default security flavor in vfs_export Reported by:npn Reviewed by:rmacklem Approved by:mav (mentor) Sponsored by:

svn commit: r362511 - in stable: 11/sys/dev/cxgb 11/sys/dev/cxgbe 11/sys/dev/mlx4/mlx4_en 11/sys/dev/mlx5/mlx5_en 11/sys/dev/mxge 11/sys/dev/oce 12/sys/dev/cxgb 12/sys/dev/cxgbe 12/sys/dev/mlx4/mlx...

2020-06-22 Thread Ryan Moeller
Author: freqlabs Date: Mon Jun 22 21:28:51 2020 New Revision: 362511 URL: https://svnweb.freebsd.org/changeset/base/362511 Log: MFC r362201: Avoid trying to toggle TSO twice Remove TSO from the toggle mask when automatically disabled by TXCKSUM* in various NIC drivers. Reviewed

svn commit: r362511 - in stable: 11/sys/dev/cxgb 11/sys/dev/cxgbe 11/sys/dev/mlx4/mlx4_en 11/sys/dev/mlx5/mlx5_en 11/sys/dev/mxge 11/sys/dev/oce 12/sys/dev/cxgb 12/sys/dev/cxgbe 12/sys/dev/mlx4/mlx...

2020-06-22 Thread Ryan Moeller
Author: freqlabs Date: Mon Jun 22 21:28:51 2020 New Revision: 362511 URL: https://svnweb.freebsd.org/changeset/base/362511 Log: MFC r362201: Avoid trying to toggle TSO twice Remove TSO from the toggle mask when automatically disabled by TXCKSUM* in various NIC drivers. Reviewed

svn commit: r362544 - head/lib/libdevdctl

2020-06-23 Thread Ryan Moeller
Author: freqlabs Date: Tue Jun 23 16:29:59 2020 New Revision: 362544 URL: https://svnweb.freebsd.org/changeset/base/362544 Log: libdevdctl: Force full match of "timestamp" field name OpenZFS generates events with a "zio_timestamp" field, which gets mistaken for "timestamp" by libdevdctl

svn commit: r362638 - in stable: 11/lib/libdevdctl 12/lib/libdevdctl

2020-06-25 Thread Ryan Moeller
Author: freqlabs Date: Fri Jun 26 00:58:59 2020 New Revision: 362638 URL: https://svnweb.freebsd.org/changeset/base/362638 Log: MFC r362544: libdevdctl: Force full match of "timestamp" field name OpenZFS generates events with a "zio_timestamp" field, which gets mistaken for

svn commit: r362638 - in stable: 11/lib/libdevdctl 12/lib/libdevdctl

2020-06-25 Thread Ryan Moeller
Author: freqlabs Date: Fri Jun 26 00:58:59 2020 New Revision: 362638 URL: https://svnweb.freebsd.org/changeset/base/362638 Log: MFC r362544: libdevdctl: Force full match of "timestamp" field name OpenZFS generates events with a "zio_timestamp" field, which gets mistaken for

svn commit: r362477 - in head: . libexec/flua tools/build

2020-06-21 Thread Ryan Moeller
Author: freqlabs Date: Mon Jun 22 03:14:43 2020 New Revision: 362477 URL: https://svnweb.freebsd.org/changeset/base/362477 Log: flua: add ucl library libucl comes with a Lua library binding. Build it into flua. This lets us parse/generate config files in the various formats supported

svn commit: r362252 - head/sys/kern

2020-06-16 Thread Ryan Moeller
Author: freqlabs Date: Tue Jun 16 21:30:30 2020 New Revision: 362252 URL: https://svnweb.freebsd.org/changeset/base/362252 Log: Apply default security flavor in vfs_export There may be some version of mountd out there that does not supply a default security flavor when none is given for

svn commit: r362201 - in head/sys/dev: cxgb cxgbe mlx4/mlx4_en mlx5/mlx5_en mxge oce

2020-06-15 Thread Ryan Moeller
Author: freqlabs Date: Mon Jun 15 16:35:27 2020 New Revision: 362201 URL: https://svnweb.freebsd.org/changeset/base/362201 Log: Avoid trying to toggle TSO twice Remove TSO from the toggle mask when automatically disabled by TXCKSUM* in various NIC drivers. Reviewed by: hselasky,

svn commit: r362001 - in stable/12/sys: fs/tmpfs sys

2020-06-09 Thread Ryan Moeller
Author: freqlabs Date: Wed Jun 10 03:57:10 2020 New Revision: 362001 URL: https://svnweb.freebsd.org/changeset/base/362001 Log: MFC r361748: tmpfs: Preserve alignment of struct fid fields On 64-bit platforms, the two short fields in `struct tmpfs_fid` are padded to the 64-bit

svn commit: r361748 - in head/sys: fs/tmpfs sys

2020-06-03 Thread Ryan Moeller
Author: freqlabs Date: Wed Jun 3 09:38:51 2020 New Revision: 361748 URL: https://svnweb.freebsd.org/changeset/base/361748 Log: tmpfs: Preserve alignment of struct fid fields On 64-bit platforms, the two short fields in `struct tmpfs_fid` are padded to the 64-bit alignment of the long

svn commit: r361797 - in stable: 11/sys/kern 12/sys/kern

2020-06-04 Thread Ryan Moeller
Author: freqlabs Date: Thu Jun 4 17:23:49 2020 New Revision: 361797 URL: https://svnweb.freebsd.org/changeset/base/361797 Log: MFC r361699, r361711: Assign default security flavor when converting old export args vfs_export requires security flavors be explicitly listed when

svn commit: r361797 - in stable: 11/sys/kern 12/sys/kern

2020-06-04 Thread Ryan Moeller
Author: freqlabs Date: Thu Jun 4 17:23:49 2020 New Revision: 361797 URL: https://svnweb.freebsd.org/changeset/base/361797 Log: MFC r361699, r361711: Assign default security flavor when converting old export args vfs_export requires security flavors be explicitly listed when

svn commit: r361862 - in stable: 11/sys/netinet6 12/sys/netinet6

2020-06-05 Thread Ryan Moeller
Author: freqlabs Date: Sat Jun 6 03:54:06 2020 New Revision: 361862 URL: https://svnweb.freebsd.org/changeset/base/361862 Log: MFC r361756, r361757: scope6: Check for NULL afdata before dereferencing Narrows the race window with if_detach. Approved by:mav (mentor)

svn commit: r361862 - in stable: 11/sys/netinet6 12/sys/netinet6

2020-06-05 Thread Ryan Moeller
Author: freqlabs Date: Sat Jun 6 03:54:06 2020 New Revision: 361862 URL: https://svnweb.freebsd.org/changeset/base/361862 Log: MFC r361756, r361757: scope6: Check for NULL afdata before dereferencing Narrows the race window with if_detach. Approved by:mav (mentor)

svn commit: r361757 - head/sys/netinet6

2020-06-03 Thread Ryan Moeller
Author: freqlabs Date: Wed Jun 3 17:26:00 2020 New Revision: 361757 URL: https://svnweb.freebsd.org/changeset/base/361757 Log: Fix typo in previous commit Applied the wrong patch Reported by: Michael Butler Approved by: mav (mentor) Sponsored by: iXsystems.com Modified:

svn commit: r361756 - head/sys/netinet6

2020-06-03 Thread Ryan Moeller
Author: freqlabs Date: Wed Jun 3 16:57:30 2020 New Revision: 361756 URL: https://svnweb.freebsd.org/changeset/base/361756 Log: scope6: Check for NULL afdata before dereferencing Narrows the race window with if_detach. Approved by: mav (mentor) MFC after:3 days Sponsored by:

svn commit: r363629 - in stable/12/sys: dev/coretemp dev/hwpmc x86/include

2020-07-27 Thread Ryan Moeller
Author: freqlabs Date: Tue Jul 28 02:53:44 2020 New Revision: 363629 URL: https://svnweb.freebsd.org/changeset/base/363629 Log: MFC r363206: hwpmc: Always set pmc_cpuid to something pmc_cpuid was uninitialized for most AMD processor families. We can still populate this string for

svn commit: r363630 - in head: lib/libpmc sys/dev/hwpmc

2020-07-27 Thread Ryan Moeller
Author: freqlabs Date: Tue Jul 28 02:56:26 2020 New Revision: 363630 URL: https://svnweb.freebsd.org/changeset/base/363630 Log: libpmc: Use known pmc_cpuid buffer size Use the existing PMC_CPUID_LEN to size pmc_cpuid in the kernel and various buffers for reading it in libpmc. This

svn commit: r367283 - in stable/12: sbin/sysctl sys/kern sys/sys usr.bin/truss

2020-11-02 Thread Ryan Moeller
Author: freqlabs Date: Mon Nov 2 20:00:50 2020 New Revision: 367283 URL: https://svnweb.freebsd.org/changeset/base/367283 Log: MFC r366465, r367003, r367006, r367009 Enable iterating all sysctls, even ones with CTLFLAG_SKIP kern_sysctl: Misc code cleanup sysctl: Misc code cleanup

svn commit: r366906 - in head: lib/libifconfig sbin/ifconfig

2020-10-20 Thread Ryan Moeller
Author: freqlabs Date: Wed Oct 21 05:27:25 2020 New Revision: 366906 URL: https://svnweb.freebsd.org/changeset/base/366906 Log: Move list_cloners to libifconfig Move list_cloners() from ifconfig(8) to libifconfig(3) where it can be reused by other consumers. Reviewed by: kp