svn commit: r366992 - head/usr.bin/nfsstat

2020-10-23 Thread Alan Somers
Author: asomers Date: Sat Oct 24 05:52:29 2020 New Revision: 366992 URL: https://svnweb.freebsd.org/changeset/base/366992 Log: nfsstat: delete unused fields Ever since r192762 nfsstat has included a few fields whose values were always 0. They were copied from OpenBSD, but have never been

svn commit: r366991 - vendor/less/v563

2020-10-23 Thread Xin LI
Author: delphij Date: Sat Oct 24 05:26:58 2020 New Revision: 366991 URL: https://svnweb.freebsd.org/changeset/base/366991 Log: Tag less v563. Added: vendor/less/v563/ - copied from r366990, vendor/less/dist/ ___ svn-src-all@freebsd.org mailing

svn commit: r366990 - vendor/less/dist

2020-10-23 Thread Xin LI
Author: delphij Date: Sat Oct 24 05:25:54 2020 New Revision: 366990 URL: https://svnweb.freebsd.org/changeset/base/366990 Log: Vendor import of less v563. Modified: vendor/less/dist/Makefile.aut vendor/less/dist/Makefile.wnm vendor/less/dist/NEWS vendor/less/dist/README

svn commit: r366989 - head/sys/dev/nvme

2020-10-23 Thread Warner Losh
Author: imp Date: Sat Oct 24 01:59:01 2020 New Revision: 366989 URL: https://svnweb.freebsd.org/changeset/base/366989 Log: nvme: Remove compat code for older kernels Remove code that supported pre-2011 kernels. CTLTYPE_S64 was defined in rev 217616. All supported branches have it, so

svn commit: r366988 - head/sys/kern

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Sat Oct 24 01:14:52 2020 New Revision: 366988 URL: https://svnweb.freebsd.org/changeset/base/366988 Log: cache: batch updates to numcache in case of mass removal Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r366986 - head/sys/kern

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Sat Oct 24 01:13:47 2020 New Revision: 366986 URL: https://svnweb.freebsd.org/changeset/base/366986 Log: cache: fold branch prediction into cache_ncp_canuse Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r366987 - head/sys/kern

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Sat Oct 24 01:14:17 2020 New Revision: 366987 URL: https://svnweb.freebsd.org/changeset/base/366987 Log: cache: refactor alloc/free This in particular centralizes manipulation of numcache. Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r366985 - head/sys/kern

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Sat Oct 24 01:13:16 2020 New Revision: 366985 URL: https://svnweb.freebsd.org/changeset/base/366985 Log: cache: fix some typos Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

svn commit: r366984 - head/sys/kern

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Sat Oct 24 01:13:02 2020 New Revision: 366984 URL: https://svnweb.freebsd.org/changeset/base/366984 Log: cache: drop write-only vars Modified: head/sys/kern/vfs_cache.c Modified: head/sys/kern/vfs_cache.c

Re: svn commit: r366372 - in head/sys: compat/linuxkpi/common/include/linux compat/linuxkpi/common/src conf

2020-10-23 Thread Warner Losh
I was going to suggest and try this change, but life has been complicated... Has it been committed? Warner On Thu, Oct 22, 2020, 1:43 PM Kyle Evans wrote: > On Thu, Oct 22, 2020 at 2:35 PM Niclas Zeising > wrote: > > > > On 2020-10-22 15:22, Kyle Evans wrote: > > > On Sat, Oct 17, 2020 at

svn commit: r366983 - head/lib/libc/gen

2020-10-23 Thread Warner Losh
Author: imp Date: Sat Oct 24 00:03:11 2020 New Revision: 366983 URL: https://svnweb.freebsd.org/changeset/base/366983 Log: warnx: fix needless static I noticed after the review that these shouldn't be static. Remove the 'static' from them, otherwise concurrent calls to warn* might see a

svn commit: r366982 - head/lib/libc/gen

2020-10-23 Thread Warner Losh
Author: imp Date: Fri Oct 23 23:56:00 2020 New Revision: 366982 URL: https://svnweb.freebsd.org/changeset/base/366982 Log: warnx: Save errno across calls that might change it. When warn() family of functions is being used after err_set_file() has been set to, for example, /dev/null,

svn commit: r366981 - head/lib/libc/tests/ssp

2020-10-23 Thread Brooks Davis
Author: brooks Date: Fri Oct 23 22:27:45 2020 New Revision: 366981 URL: https://svnweb.freebsd.org/changeset/base/366981 Log: Only use ASAN when using the in-tree compiler When building FreeBSD 11 on a FreeBSD 12 system with CROSS_TOOLCHAIN=llvm10 we end up trying to link against the

svn commit: r366980 - in head/sys: dev/ahci kern x86/x86

2020-10-23 Thread Ruslan Bukin
Author: br Date: Fri Oct 23 21:27:48 2020 New Revision: 366980 URL: https://svnweb.freebsd.org/changeset/base/366980 Log: Move the iommu stubs to a generic place, so they are available on all the platforms. This allows to not depend on the IOMMU macro in AHCI driver. Requested by:

svn commit: r366978 - head/sys/dev/usb/controller

2020-10-23 Thread Konstantin Belousov
Author: kib Date: Fri Oct 23 18:18:45 2020 New Revision: 366978 URL: https://svnweb.freebsd.org/changeset/base/366978 Log: xhci: Handle the case when MSI-X BAR is the same as IO BAR. PCIe allows for MSI-X BAR to be either dedicated, or MSI-X Table may be co-located in some functional

svn commit: r366977 - in head: contrib/elftoolchain/libelf lib/libelf

2020-10-23 Thread Ed Maste
Author: emaste Date: Fri Oct 23 16:35:23 2020 New Revision: 366977 URL: https://svnweb.freebsd.org/changeset/base/366977 Log: libelf: add compression header support GNU and Oracle libelf implementations added support for section compression, intended to reduce the size of DWARF debug

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

2020-10-23 Thread Jessica Clarke
On 23 Oct 2020, at 16:56, Mateusz Guzik wrote: > > Author: mjg > Date: Fri Oct 23 15:56:22 2020 > New Revision: 366976 > URL: https://svnweb.freebsd.org/changeset/base/366976 > > Log: > cache: reduce memory waste in struct namecache > > The previous scheme for calculating the total size was

svn commit: r366976 - head/sys/kern

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Fri Oct 23 15:56:22 2020 New Revision: 366976 URL: https://svnweb.freebsd.org/changeset/base/366976 Log: cache: reduce memory waste in struct namecache The previous scheme for calculating the total size was doing sizeof on the struct and then adding the wanted space for

svn commit: r366975 - in head/sys: contrib/openzfs/module/os/freebsd/zfs fs/tmpfs ufs/ufs

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Fri Oct 23 15:50:49 2020 New Revision: 366975 URL: https://svnweb.freebsd.org/changeset/base/366975 Log: vfs: drop spurious cache_purge on rmdir The removed directory gets cache_purged which is sufficient to remove any entries related to the parent. Note only

svn commit: r366974 - head/sys/kern

2020-10-23 Thread Mateusz Guzik
Author: mjg Date: Fri Oct 23 15:49:18 2020 New Revision: 366974 URL: https://svnweb.freebsd.org/changeset/base/366974 Log: vfs: stop taking the interlock in vnode reclaim It no longer protects any of tested fields, keeping all the checks racy. While here make vtryrecycle drop the

svn commit: r366973 - head/sys/dev/ntb/ntb_hw

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 15:12:06 2020 New Revision: 366973 URL: https://svnweb.freebsd.org/changeset/base/366973 Log: ntb: Fix the 32-bit build after r366969 Reported by: Jenkins MFC with: r366969 Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c Modified:

svn commit: r366972 - head/usr.sbin/rtsold

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:56:17 2020 New Revision: 366972 URL: https://svnweb.freebsd.org/changeset/base/366972 Log: rtsold: Remove an incorrect __unused annotation MFC after:1 week Modified: head/usr.sbin/rtsold/cap_script.c Modified: head/usr.sbin/rtsold/cap_script.c

svn commit: r366971 - stable/12/lib/libc/locale

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:47:32 2020 New Revision: 366971 URL: https://svnweb.freebsd.org/changeset/base/366971 Log: MFC r366375: newlocale(3): Fix a memory leak. PR: 249416 Modified: stable/12/lib/libc/locale/newlocale.3 stable/12/lib/libc/locale/xlocale.c Directory

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

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:25:48 2020 New Revision: 366970 URL: https://svnweb.freebsd.org/changeset/base/366970 Log: Add some missing nv(9) MLINKS MFC after:1 week Modified: head/share/man/man9/Makefile Modified: head/share/man/man9/Makefile

svn commit: r366969 - in head: share/man/man4 sys/dev/ntb/ntb_hw

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:16:52 2020 New Revision: 366969 URL: https://svnweb.freebsd.org/changeset/base/366969 Log: ntb: Add Intel Xeon Gen3 support The NTB hardware starting with Skylake has some changes to the register map and the doorbell interface. Add a new NTB_XEON_GEN3

svn commit: r366968 - head/sys/dev/ntb

2020-10-23 Thread Mark Johnston
Author: markj Date: Fri Oct 23 14:15:58 2020 New Revision: 366968 URL: https://svnweb.freebsd.org/changeset/base/366968 Log: ntb: Fix an assertion to permit >= 32 doorbells MFC after:1 week Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Modified:

Re: svn commit: r366936 - head/sys/net

2020-10-23 Thread Ed Maste
On Fri, 23 Oct 2020 at 07:27, Hans Petter Selasky wrote: > > Do we have a script or tool, which can do this? Clang-format can do it; have a look at the IncludeCategories in .clang-format at the top of the tree to see the current rule set for includes.

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

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

2020-10-23 Thread Konstantin Belousov
On Fri, Oct 23, 2020 at 10:48:14AM +, Ryan Moeller wrote: > 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 >

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

2020-10-23 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Oct 23 12:00:30 2020 New Revision: 366967 URL: https://svnweb.freebsd.org/changeset/base/366967 Log: Improve prctl(2) debug. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D26899 Modified:

svn commit: r366966 - head/sys/compat/linprocfs

2020-10-23 Thread Edward Tomasz Napierala
Author: trasz Date: Fri Oct 23 11:57:55 2020 New Revision: 366966 URL: https://svnweb.freebsd.org/changeset/base/366966 Log: Add /proc/sys/kernel/ngroups_max to linprocfs(4). The id(1) command seems to use it - it works fine without it, but still. MFC after:2 weeks Sponsored by:

Re: svn commit: r366936 - head/sys/net

2020-10-23 Thread Konstantin Belousov
On Fri, Oct 23, 2020 at 01:26:04PM +0200, Hans Petter Selasky wrote: > On 2020-10-23 11:46, Konstantin Belousov wrote: > > On Fri, Oct 23, 2020 at 10:04:12AM +0200, Hans Petter Selasky wrote: > > > On 2020-10-22 19:54, Hans Petter Selasky wrote: > > > > On 2020-10-22 18:48, Konstantin Belousov

Re: svn commit: r366936 - head/sys/net

2020-10-23 Thread Hans Petter Selasky
On 2020-10-23 11:46, Konstantin Belousov wrote: On Fri, Oct 23, 2020 at 10:04:12AM +0200, Hans Petter Selasky wrote: On 2020-10-22 19:54, Hans Petter Selasky wrote: On 2020-10-22 18:48, Konstantin Belousov wrote: sys/systm.h already includes sys/param.h.  Also, sys/param.h already includes

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.

svn commit: r366964 - stable/12/sys/amd64/include

2020-10-23 Thread Konstantin Belousov
Author: kib Date: Fri Oct 23 10:24:37 2020 New Revision: 366964 URL: https://svnweb.freebsd.org/changeset/base/366964 Log: MFC r366768: amd64 pmap.h: explicitly provide constants values instead of relying on some more advanced C features. Modified: stable/12/sys/amd64/include/pmap.h

svn commit: r366963 - head/usr.bin/calendar

2020-10-23 Thread Stefan Eßer
Author: se Date: Fri Oct 23 10:00:56 2020 New Revision: 366963 URL: https://svnweb.freebsd.org/changeset/base/366963 Log: Udpate calendar man-page to mention the search path added in r366962. Calendar files in /usr/lcoal/share/calendar take precedence over files in the base system. They

Re: svn commit: r366936 - head/sys/net

2020-10-23 Thread Konstantin Belousov
On Fri, Oct 23, 2020 at 10:04:12AM +0200, Hans Petter Selasky wrote: > On 2020-10-22 19:54, Hans Petter Selasky wrote: > > On 2020-10-22 18:48, Konstantin Belousov wrote: > > > sys/systm.h already includes sys/param.h.  Also, sys/param.h already > > > includes > > > sys/types.h. > > > > I'll have

svn commit: r366962 - in head: include usr.bin/calendar

2020-10-23 Thread Stefan Eßer
Author: se Date: Fri Oct 23 09:22:23 2020 New Revision: 366962 URL: https://svnweb.freebsd.org/changeset/base/366962 Log: Add search of LOCALBASE/share/calendar for calendars supplied by a port. Calendar files in LOCALBASE override similarily named ones in the base system. This could

svn commit: r366961 - head/sys/fs/cuse

2020-10-23 Thread Hans Petter Selasky
Author: hselasky Date: Fri Oct 23 08:44:53 2020 New Revision: 366961 URL: https://svnweb.freebsd.org/changeset/base/366961 Log: Fix for loading cuse.ko via rc.d . Make sure we declare the cuse(3) module by name and not only by the version information, so that "kldstat -q -m cuse" works.

Re: svn commit: r366936 - head/sys/net

2020-10-23 Thread Hans Petter Selasky
On 2020-10-22 19:54, Hans Petter Selasky wrote: On 2020-10-22 18:48, Konstantin Belousov wrote: sys/systm.h already includes sys/param.h.  Also, sys/param.h already includes sys/types.h. I'll have a look tomorrow at this. Thanks for pointing out. It appears sys/systm.h needs sys/types.h

svn commit: r366960 - head/sys/vm

2020-10-23 Thread Alan Cox
Author: alc Date: Fri Oct 23 06:24:38 2020 New Revision: 366960 URL: https://svnweb.freebsd.org/changeset/base/366960 Log: Conditionally compile struct vm_phys_seg's md_first field. This field is only used by arm64's pmap. Reviewed by: kib, markj, scottph Differential Revision: