svn commit: r355169 - in head/sys: kern vm

2019-11-27 Thread Jeff Roberson
Author: jeff Date: Thu Nov 28 07:49:25 2019 New Revision: 355169 URL: https://svnweb.freebsd.org/changeset/base/355169 Log: Garbage collect the mostly unused us_keg field. Use appropriately named union members in vm_page.h to store the zone and slab. Remove some nearby dead code.

svn commit: r355168 - head/stand/efi/libefi

2019-11-27 Thread Warner Losh
Author: imp Date: Thu Nov 28 05:40:15 2019 New Revision: 355168 URL: https://svnweb.freebsd.org/changeset/base/355168 Log: Also turn of teken for RB_MULTIPLE RB_MULTIPLE without RB_SERIAL set is valid, and means 'Video first, then serial' to the kernel (so kernel messages go to both,

svn commit: r355167 - head/stand/efi/loader

2019-11-27 Thread Warner Losh
Author: imp Date: Thu Nov 28 05:40:10 2019 New Revision: 355167 URL: https://svnweb.freebsd.org/changeset/base/355167 Log: Remove comment. We're just going to the next node here. Modified: head/stand/efi/loader/main.c Modified: head/stand/efi/loader/main.c

Re: svn commit: r355164 - in head: . share/man/man4 sys/amd64/conf sys/conf sys/dev/trm sys/i386/conf sys/modules sys/modules/trm

2019-11-27 Thread Rodney W. Grimes
> Author: scottl > Date: Thu Nov 28 02:32:17 2019 > New Revision: 355164 > URL: https://svnweb.freebsd.org/changeset/base/355164 > > Log: > Remove the trm(4) driver > > Differential Revision: https://reviews.freebsd.org/D22575 Deprecation notice to merge to stable/{12,11}? Relnotes

Re: svn commit: r355166 - head/sys/vm

2019-11-27 Thread Jeff Roberson
Thank you. mea culpa. Jeff On Thu, 28 Nov 2019, Ryan Libby wrote: Author: rlibby Date: Thu Nov 28 04:15:16 2019 New Revision: 355166 URL: https://svnweb.freebsd.org/changeset/base/355166 Log: uma: move sysctl vm.uma defn out from under INVARIANTS Fix non-INVARIANTS builds after r355149.

svn commit: r355166 - head/sys/vm

2019-11-27 Thread Ryan Libby
Author: rlibby Date: Thu Nov 28 04:15:16 2019 New Revision: 355166 URL: https://svnweb.freebsd.org/changeset/base/355166 Log: uma: move sysctl vm.uma defn out from under INVARIANTS Fix non-INVARIANTS builds after r355149. Reported by: Michael Butler Reviewed by: markj

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

2019-11-27 Thread Alexander Motin
Author: mav Date: Thu Nov 28 02:40:12 2019 New Revision: 355165 URL: https://svnweb.freebsd.org/changeset/base/355165 Log: Make DMAR allow Intel NTB device to access its own BAR0. I have no good explanation why it happens, but I found that in B2B mode at least Xeon v4 NTB leaks accesses

svn commit: r355164 - in head: . share/man/man4 sys/amd64/conf sys/conf sys/dev/trm sys/i386/conf sys/modules sys/modules/trm

2019-11-27 Thread Scott Long
Author: scottl Date: Thu Nov 28 02:32:17 2019 New Revision: 355164 URL: https://svnweb.freebsd.org/changeset/base/355164 Log: Remove the trm(4) driver Differential Revision:https://reviews.freebsd.org/D22575 Deleted: head/share/man/man4/trm.4 head/sys/dev/trm/

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

2019-11-27 Thread Alexander Motin
Author: mav Date: Thu Nov 28 02:28:12 2019 New Revision: 355163 URL: https://svnweb.freebsd.org/changeset/base/355163 Log: Make the code slightly more compact. There should be no functional change. MFC after:1 week Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c Modified:

svn commit: r355162 - stable/12/sys/arm64/linux

2019-11-27 Thread Ed Maste
Author: emaste Date: Thu Nov 28 02:19:41 2019 New Revision: 355162 URL: https://svnweb.freebsd.org/changeset/base/355162 Log: MFC r354341: arm64 linuxulator: default to RW stack (no X) This matches Linux's default arm64 data / stack permissions. Sponsored by: The FreeBSD Foundation

svn commit: r355161 - head/sys/rpc/rpcsec_gss

2019-11-27 Thread Rick Macklem
Author: rmacklem Date: Thu Nov 28 02:18:51 2019 New Revision: 355161 URL: https://svnweb.freebsd.org/changeset/base/355161 Log: Change r355157 to make svc_rpc_gss_lifetime_max a static. MFC after:2 weeks Modified: head/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c Modified:

svn commit: r355160 - stable/12/crypto/openssh

2019-11-27 Thread Ed Maste
Author: emaste Date: Thu Nov 28 02:18:19 2019 New Revision: 355160 URL: https://svnweb.freebsd.org/changeset/base/355160 Log: MFC r354897: sshd: make getpwclass wrapper MON_ISAUTH not MON_AUTH In r339216 a privsep wrapper was added for login_getpwclass to address PR 231172.

svn commit: r355159 - stable/11/sys/dev/cfi

2019-11-27 Thread Ed Maste
Author: emaste Date: Thu Nov 28 02:15:45 2019 New Revision: 355159 URL: https://svnweb.freebsd.org/changeset/base/355159 Log: MFC r355101, r355104: cfi: check for inter overflow in cfi_devioctl Reported by: Pietro Oliva Security: Possible OOB read in root-only ioctl Sponsored by:

svn commit: r355158 - stable/12/sys/dev/cfi

2019-11-27 Thread Ed Maste
Author: emaste Date: Thu Nov 28 02:12:33 2019 New Revision: 355158 URL: https://svnweb.freebsd.org/changeset/base/355158 Log: MFC r355101, r355104: cfi: check for inter overflow in cfi_devioctl Reported by: Pietro Oliva Security: Possible OOB read in root-only ioctl Sponsored by:

svn commit: r355157 - head/sys/rpc/rpcsec_gss

2019-11-27 Thread Rick Macklem
Author: rmacklem Date: Thu Nov 28 02:05:31 2019 New Revision: 355157 URL: https://svnweb.freebsd.org/changeset/base/355157 Log: Add a cap on credential lifetime for Kerberized NFS. The kernel RPCSEC_GSS code sets the credential (called a client) lifetime to the lifetime of the Kerberos

svn commit: r355156 - head/sys/contrib/ipfilter/netinet

2019-11-27 Thread Cy Schubert
Author: cy Date: Thu Nov 28 00:46:33 2019 New Revision: 355156 URL: https://svnweb.freebsd.org/changeset/base/355156 Log: Include fin, the packet information structure (fr_info_t), in the l4sums DTrace probe, making more information available for the diagnosis of IPv6 checksum errors.

svn commit: r355155 - head/contrib/openbsm/bin/auditd

2019-11-27 Thread Conrad Meyer
Author: cem Date: Thu Nov 28 00:46:03 2019 New Revision: 355155 URL: https://svnweb.freebsd.org/changeset/base/355155 Log: auditd(8): fix long-standing uninitialized memory use bug The bogus use could lead to an infinite loop depending on how fast the audit_warn script to execute.

svn commit: r355154 - stable/11/sys/dev/ioat

2019-11-27 Thread Alexander Motin
Author: mav Date: Thu Nov 28 00:42:55 2019 New Revision: 355154 URL: https://svnweb.freebsd.org/changeset/base/355154 Log: MFC r354703: Pass more reasonable WAIT flags to bus_dma(9) calls. Modified: stable/11/sys/dev/ioat/ioat.c Directory Properties: stable/11/ (props changed) Modified:

svn commit: r355153 - stable/12/sys/dev/ioat

2019-11-27 Thread Alexander Motin
Author: mav Date: Thu Nov 28 00:42:45 2019 New Revision: 355153 URL: https://svnweb.freebsd.org/changeset/base/355153 Log: MFC r354703: Pass more reasonable WAIT flags to bus_dma(9) calls. Modified: stable/12/sys/dev/ioat/ioat.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r355152 - in stable/11/sys/dev/ntb: . ntb_hw

2019-11-27 Thread Alexander Motin
Author: mav Date: Thu Nov 28 00:41:42 2019 New Revision: 355152 URL: https://svnweb.freebsd.org/changeset/base/355152 Log: MFC r354702: Make ntb(4) send bus_get_dma_tag() requests to parent buses passing real bus' child pointers instead of grandchilds. DMAR does not like requests from

svn commit: r355151 - in stable/12/sys/dev/ntb: . ntb_hw

2019-11-27 Thread Alexander Motin
Author: mav Date: Thu Nov 28 00:40:42 2019 New Revision: 355151 URL: https://svnweb.freebsd.org/changeset/base/355151 Log: MFC r354702: Make ntb(4) send bus_get_dma_tag() requests to parent buses passing real bus' child pointers instead of grandchilds. DMAR does not like requests from

svn commit: r355150 - head/sys/ufs/ffs

2019-11-27 Thread Chuck Silvers
Author: chs Date: Thu Nov 28 00:37:43 2019 New Revision: 355150 URL: https://svnweb.freebsd.org/changeset/base/355150 Log: As part of creating a snapshot, set fs->fs_fmod to 0 in the snapshot image because nothing ever changes this field for read-only mounts and we want to verify that it is

svn commit: r355149 - head/sys/vm

2019-11-27 Thread Jeff Roberson
Author: jeff Date: Thu Nov 28 00:19:09 2019 New Revision: 355149 URL: https://svnweb.freebsd.org/changeset/base/355149 Log: Implement a sysctl tree for uma zones to assist in debugging and provide more statistcs than are exported via the ABI stable vmstat interface. Rename uz_count to

svn commit: r355148 - head/sys/vm

2019-11-27 Thread Jeff Roberson
Author: jeff Date: Wed Nov 27 23:19:06 2019 New Revision: 355148 URL: https://svnweb.freebsd.org/changeset/base/355148 Log: Refactor uma_zfree_arg into several functions to make control flow more clear and icache usage cleaner. Reviewed by: markj Differential Revision:

svn commit: r355147 - head/sys/vm

2019-11-27 Thread Doug Moore
Author: dougm Date: Wed Nov 27 21:00:44 2019 New Revision: 355147 URL: https://svnweb.freebsd.org/changeset/base/355147 Log: Inline some splay helper functions to improve performance on a micro-benchmark. Reviewed by: markj Tested by: pho Differential Revision:

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

2019-11-27 Thread Konstantin Belousov
On Wed, Nov 27, 2019 at 08:33:53PM +, Konstantin Belousov wrote: > Author: kib > Date: Wed Nov 27 20:33:53 2019 > New Revision: 355146 > URL: https://svnweb.freebsd.org/changeset/base/355146 Ease the life of PTRACE_SYSCALL users when debuggee sleeps in sigsuspend(2) and sig{timed,}wait(2). If

svn commit: r355146 - head/sys/kern

2019-11-27 Thread Konstantin Belousov
Author: kib Date: Wed Nov 27 20:33:53 2019 New Revision: 355146 URL: https://svnweb.freebsd.org/changeset/base/355146 Log: Requested and tested by: kevans Reviewed by: kevans (previous version), markj Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

svn commit: r355145 - head/sys/arm64/arm64

2019-11-27 Thread Alan Cox
Author: alc Date: Wed Nov 27 20:33:49 2019 New Revision: 355145 URL: https://svnweb.freebsd.org/changeset/base/355145 Log: There is no reason why we need to pin the underlying thread to its current processor in pmap_invalidate_{all,page,range}(). These functions are using an instruction

svn commit: r355144 - head/sys/dev/iwm

2019-11-27 Thread Mark Johnston
Author: markj Date: Wed Nov 27 20:32:53 2019 New Revision: 355144 URL: https://svnweb.freebsd.org/changeset/base/355144 Log: iwm(4): Remove _mvm from the namespace. This was inherited from iwlwifi, which drives devices supported by both iwn(4) and iwm(4) in FreeBSD. In iwm(4) _mvm is

svn commit: r355143 - head/sys/dev/iwm

2019-11-27 Thread Mark Johnston
Author: markj Date: Wed Nov 27 20:32:31 2019 New Revision: 355143 URL: https://svnweb.freebsd.org/changeset/base/355143 Log: iwm(4): Fix version string formatting. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iwm/if_iwm.c Modified:

svn commit: r355142 - head/sys/contrib/ipfilter/netinet

2019-11-27 Thread Cy Schubert
Author: cy Date: Wed Nov 27 20:08:42 2019 New Revision: 355142 URL: https://svnweb.freebsd.org/changeset/base/355142 Log: Move ipf_pcksum6() to its rightful place, in ip_fil_freebsd.c. This FreeBSD-only function should live in the O/S specific source file. This essentially reverts

svn commit: r355141 - head/sys/contrib/ipfilter/netinet

2019-11-27 Thread Cy Schubert
Author: cy Date: Wed Nov 27 20:08:39 2019 New Revision: 355141 URL: https://svnweb.freebsd.org/changeset/base/355141 Log: Save a little stack by removing a used once intermediate variable. MFC after:3 days Modified: head/sys/contrib/ipfilter/netinet/fil.c Modified:

svn commit: r355140 - head/sys/contrib/ipfilter/netinet

2019-11-27 Thread Cy Schubert
Author: cy Date: Wed Nov 27 20:08:35 2019 New Revision: 355140 URL: https://svnweb.freebsd.org/changeset/base/355140 Log: Remove redundant #ifdef'd function definitions. MFC after:3 days Modified: head/sys/contrib/ipfilter/netinet/fil.c Modified:

svn commit: r355139 - head/sys/dev/bwn

2019-11-27 Thread Brooks Davis
Author: brooks Date: Wed Nov 27 20:00:44 2019 New Revision: 355139 URL: https://svnweb.freebsd.org/changeset/base/355139 Log: Fix a logic bug when "mask" contains a ?: operator. Newer versions of clang warn that '&' evaluates before '?:'. Reviewed by: markj MFC after:3 days

svn commit: r355138 - in head/sys/x86: include iommu x86

2019-11-27 Thread Konstantin Belousov
Author: kib Date: Wed Nov 27 19:57:17 2019 New Revision: 355138 URL: https://svnweb.freebsd.org/changeset/base/355138 Log: bus_dma_dmar_load_ident(9): load identity mapping into the map. Requested, reviewed and tested by:mav Sponsored by: The FreeBSD Foundation MFC after:1 week

svn commit: r355137 - head/sys/vm

2019-11-27 Thread Ryan Libby
Author: rlibby Date: Wed Nov 27 19:49:55 2019 New Revision: 355137 URL: https://svnweb.freebsd.org/changeset/base/355137 Log: uma: trash memory when ctor/dtor supplied too On INVARIANTS kernels, UMA has a use-after-free detection mechanism. This mechanism previously required that all of

svn commit: r355136 - in stable/12/sys/arm64: arm64 include

2019-11-27 Thread Alan Cox
Author: alc Date: Wed Nov 27 19:34:33 2019 New Revision: 355136 URL: https://svnweb.freebsd.org/changeset/base/355136 Log: MFC r350579,r350741,r352584 Enable superpage promotion within the kernel pmap. Ordinarily, during a superpage promotion or demotion within a pmap, the pmap's

svn commit: r355135 - head/sys/netinet

2019-11-27 Thread Michael Tuexen
Author: tuexen Date: Wed Nov 27 19:32:29 2019 New Revision: 355135 URL: https://svnweb.freebsd.org/changeset/base/355135 Log: Plug two mbuf leaks during INIT-ACK handling. One leak happens when there is not enough memory to allocate the the resources for streams. The other leak happens if

svn commit: r355134 - head/sys/x86/x86

2019-11-27 Thread Scott Long
Author: scottl Date: Wed Nov 27 19:12:32 2019 New Revision: 355134 URL: https://svnweb.freebsd.org/changeset/base/355134 Log: Clean up and clarify meta commentary on TAA. Add a state to denote that TSX doesn't exist on the CPU. MFC after:3 days Sponsored by: Intel Modified:

svn commit: r355133 - stable/12/sys/net

2019-11-27 Thread Vincenzo Maffione
Author: vmaffione Date: Wed Nov 27 18:52:01 2019 New Revision: 355133 URL: https://svnweb.freebsd.org/changeset/base/355133 Log: MFC r354867: netmap: check if we already ran mmap before we attempt it Submitted by: n...@neelc.org Reviewed by:vmaffione Differential Revision:

svn commit: r355132 - head/stand/efi/loader

2019-11-27 Thread Andrew Turner
Author: andrew Date: Wed Nov 27 16:52:46 2019 New Revision: 355132 URL: https://svnweb.freebsd.org/changeset/base/355132 Log: Support kernels larger than EFI_STAGING_SIZE in loader.efi With a very large kernel or module the staging area may be too small to hold it. When this is the case

svn commit: r355131 - in stable/11: . sbin/ipf targets/pseudo/userland

2019-11-27 Thread Cy Schubert
Author: cy Date: Wed Nov 27 13:46:28 2019 New Revision: 355131 URL: https://svnweb.freebsd.org/changeset/base/355131 Log: MFC r315223, r325182: Disconnect ipftest and ipresend from the build until it can be verified that they still work. These utilities have become out of sync with the

svn commit: r355130 - head/usr.sbin/sesutil

2019-11-27 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Nov 27 10:26:37 2019 New Revision: 355130 URL: https://svnweb.freebsd.org/changeset/base/355130 Log: Fix typos. MFC after:2 weeks Sponsored by: Klara, Inc Modified: head/usr.sbin/sesutil/eltsub.c Modified: head/usr.sbin/sesutil/eltsub.c

svn commit: r355129 - head/sys/netipsec

2019-11-27 Thread Andrey V. Elsukov
Author: ae Date: Wed Nov 27 10:24:46 2019 New Revision: 355129 URL: https://svnweb.freebsd.org/changeset/base/355129 Log: Add support for dummy ESP packets with next header field equal to IPPROTO_NONE. According to RFC4303 2.6 they should be silently dropped. Submitted by: