svn commit: r340859 - head/sys/fs/nandfs

2018-11-23 Thread Mark Johnston
Author: markj Date: Fri Nov 23 23:07:49 2018 New Revision: 340859 URL: https://svnweb.freebsd.org/changeset/base/340859 Log: Ensure the dirent remains initialized when dirent.d_fileno is unset. Reported by: rmacklem MFC with: r340856 Sponsored by: The FreeBSD Foundation Modified:

svn commit: r340861 - head/sys/kern

2018-11-23 Thread Mark Johnston
Author: markj Date: Fri Nov 23 23:10:03 2018 New Revision: 340861 URL: https://svnweb.freebsd.org/changeset/base/340861 Log: Honour the waitok parameter in kevent_expand(). Reviewed by: kib MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:https:

svn commit: r340897 - head/sys/kern

2018-11-24 Thread Mark Johnston
Author: markj Date: Sat Nov 24 16:41:29 2018 New Revision: 340897 URL: https://svnweb.freebsd.org/changeset/base/340897 Log: Lock the knlist before releasing the in-flux state in knote_fork(). Otherwise there is a window, before iteration is resumed, during which the knote may be freed.

svn commit: r340898 - head/sys/kern

2018-11-24 Thread Mark Johnston
Author: markj Date: Sat Nov 24 16:58:34 2018 New Revision: 340898 URL: https://svnweb.freebsd.org/changeset/base/340898 Log: Ensure that knotes do not get registered when KQ_CLOSING is set. KQ_CLOSING is set before draining the knotes associated with a kqueue, so we must ensure that new k

svn commit: r340899 - head/sys/kern

2018-11-24 Thread Mark Johnston
Author: markj Date: Sat Nov 24 17:02:31 2018 New Revision: 340899 URL: https://svnweb.freebsd.org/changeset/base/340899 Log: Plug some kernel memory disclosures via kevent(2). The kernel may register for events on behalf of a userspace process, in which case it must be careful to zero the

svn commit: r340900 - in head/sys: compat/linux kern sys

2018-11-24 Thread Mark Johnston
Author: markj Date: Sat Nov 24 17:06:01 2018 New Revision: 340900 URL: https://svnweb.freebsd.org/changeset/base/340900 Log: Pass malloc flags directly through kevent(2) subroutines. Some kevent functions have a boolean "waitok" parameter for use when calling malloc(9). Replace them with

svn commit: r340901 - in stable/12: . tests/sys/netinet

2018-11-24 Thread Mark Johnston
The FreeBSD Foundation + * + * This software was developed by Mark Johnston under sponsorship from + * the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * 1

svn commit: r340902 - stable/12/tests/sys/netinet

2018-11-24 Thread Mark Johnston
file is newly added) +++ stable/12/tests/sys/netinet/ip_reass_test.c Sat Nov 24 17:08:49 2018 (r340902, copy of r340485, head/tests/sys/netinet/ip_reass_test.c) @@ -0,0 +1,381 @@ +/*- + * Copyright (c) 2018 The FreeBSD Foundation + * + * This software was developed by Mark Johnston under

svn commit: r340903 - stable/12/sys/kern

2018-11-24 Thread Mark Johnston
Author: markj Date: Sat Nov 24 17:09:35 2018 New Revision: 340903 URL: https://svnweb.freebsd.org/changeset/base/340903 Log: MFC r340734: Avoid unsynchronized updates to kn_status. Modified: stable/12/sys/kern/kern_event.c Directory Properties: stable/12/ (props changed) Modified: stab

svn commit: r340904 - stable/11/sys/kern

2018-11-24 Thread Mark Johnston
Author: markj Date: Sat Nov 24 17:11:47 2018 New Revision: 340904 URL: https://svnweb.freebsd.org/changeset/base/340904 Log: MFC r340734: Avoid unsynchronized updates to kn_status. Modified: stable/11/sys/kern/kern_event.c Directory Properties: stable/11/ (props changed) Modified: stab

svn commit: r340919 - stable/12/sys/amd64/ia32

2018-11-25 Thread Mark Johnston
Author: markj Date: Sun Nov 25 17:39:41 2018 New Revision: 340919 URL: https://svnweb.freebsd.org/changeset/base/340919 Log: MFC r340772: Clear unused bytes in ia32_osendsig(). Modified: stable/12/sys/amd64/ia32/ia32_signal.c Directory Properties: stable/12/ (props changed) Modified: s

svn commit: r340920 - stable/11/sys/amd64/ia32

2018-11-25 Thread Mark Johnston
Author: markj Date: Sun Nov 25 17:44:30 2018 New Revision: 340920 URL: https://svnweb.freebsd.org/changeset/base/340920 Log: MFC r340772: Clear unused bytes in ia32_osendsig(). Modified: stable/11/sys/amd64/ia32/ia32_signal.c Directory Properties: stable/11/ (props changed) Modified: s

svn commit: r340921 - in stable/12/sys: kern netinet netinet6 ofed/drivers/infiniband/ulp/sdp

2018-11-25 Thread Mark Johnston
Author: markj Date: Sun Nov 25 17:46:37 2018 New Revision: 340921 URL: https://svnweb.freebsd.org/changeset/base/340921 Log: MFC r340783: Plug some networking sysctl leaks. Modified: stable/12/sys/kern/uipc_socket.c stable/12/sys/kern/uipc_usrreq.c stable/12/sys/netinet/in_pcb.c stabl

svn commit: r340923 - in stable/11/sys: kern netinet netinet6 ofed/drivers/infiniband/ulp/sdp

2018-11-25 Thread Mark Johnston
Author: markj Date: Sun Nov 25 18:00:50 2018 New Revision: 340923 URL: https://svnweb.freebsd.org/changeset/base/340923 Log: MFC r340783: Plug some networking sysctl leaks. Modified: stable/11/sys/kern/uipc_socket.c stable/11/sys/kern/uipc_usrreq.c stable/11/sys/netinet/ip_divert.c st

svn commit: r340968 - head/sys/net

2018-11-26 Thread Mark Johnston
Author: markj Date: Mon Nov 26 13:42:18 2018 New Revision: 340968 URL: https://svnweb.freebsd.org/changeset/base/340968 Log: Plug routing sysctl leaks. Various structures exported by sysctl_rtsock() contain padding fields which were not being zeroed. Reported by: Thomas Barabosch, F

svn commit: r340970 - in stable/12/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/autofs fs/cd9660 fs/devfs fs/ext2fs fs/fdescfs fs/fuse fs/msdosfs fs/nandfs fs/nfsclient fs/pseudofs fs/smbfs f...

2018-11-26 Thread Mark Johnston
Author: markj Date: Mon Nov 26 14:01:05 2018 New Revision: 340970 URL: https://svnweb.freebsd.org/changeset/base/340970 Log: MFC r340787 (by rmacklem), r340856, r340859: Ensure that directory entry padding bytes are zeroed. Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/

svn commit: r340977 - releng/12.0/sys/kern

2018-11-26 Thread Mark Johnston
Author: markj Date: Mon Nov 26 15:46:46 2018 New Revision: 340977 URL: https://svnweb.freebsd.org/changeset/base/340977 Log: MFstable/12 r340903: Avoid unsynchronized updates to kn_status. Approved by: re (gjb) Modified: releng/12.0/sys/kern/kern_event.c Directory Properties: releng

svn commit: r340980 - in releng/12.0/sys: kern netinet netinet6 ofed/drivers/infiniband/ulp/sdp

2018-11-26 Thread Mark Johnston
Author: markj Date: Mon Nov 26 16:36:38 2018 New Revision: 340980 URL: https://svnweb.freebsd.org/changeset/base/340980 Log: MFstable/12 r340921: Plug some networking sysctl leaks. Approved by: re (gjb) Modified: releng/12.0/sys/kern/uipc_socket.c releng/12.0/sys/kern/uipc_usrreq.c

svn commit: r341001 - head/sys/dev/cxgbe/cxgbei

2018-11-26 Thread Mark Johnston
Author: markj Date: Mon Nov 26 22:42:52 2018 New Revision: 341001 URL: https://svnweb.freebsd.org/changeset/base/341001 Log: Check for an allocation failure before dereferencing the pointer. Reported by: Ilja Van Sprundel Reviewed by: np MFC after:1 week Sponsored by: The FreeB

svn commit: r341074 - in stable/11/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/autofs fs/cd9660 fs/devfs fs/ext2fs fs/fdescfs fs/fuse fs/msdosfs fs/nandfs fs/nfsclient fs/pseudofs fs/smbfs f...

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 16:51:18 2018 New Revision: 341074 URL: https://svnweb.freebsd.org/changeset/base/341074 Log: MFC r340856: Ensure that directory entry padding bytes are zeroed. Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c stable/11/sys/cdd

svn commit: r341075 - stable/12/sys/kern

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 16:54:23 2018 New Revision: 341075 URL: https://svnweb.freebsd.org/changeset/base/341075 Log: MFC r340899: Plug some kernel memory disclosures via kevent(2). Modified: stable/12/sys/kern/kern_event.c stable/12/sys/kern/vfs_aio.c Directory Properties: stabl

svn commit: r341077 - stable/12/sys/kern

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 16:57:59 2018 New Revision: 341077 URL: https://svnweb.freebsd.org/changeset/base/341077 Log: MFC r340897: Lock the knlist before releasing the in-flux state in knote_fork(). PR: 228858 Modified: stable/12/sys/kern/kern_event.c Directory Properties: s

svn commit: r341076 - stable/11/sys/kern

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 16:55:24 2018 New Revision: 341076 URL: https://svnweb.freebsd.org/changeset/base/341076 Log: MFC r340899: Plug some kernel memory disclosures via kevent(2). Modified: stable/11/sys/kern/kern_event.c stable/11/sys/kern/vfs_aio.c Directory Properties: stabl

svn commit: r341078 - stable/11/sys/kern

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 16:59:12 2018 New Revision: 341078 URL: https://svnweb.freebsd.org/changeset/base/341078 Log: MFC r340897: Lock the knlist before releasing the in-flux state in knote_fork(). PR: 228858 Modified: stable/11/sys/kern/kern_event.c Directory Properties: s

svn commit: r341079 - in stable/12: lib/libnv lib/libnv/tests sys/contrib/libnv

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 17:00:47 2018 New Revision: 341079 URL: https://svnweb.freebsd.org/changeset/base/341079 Log: MFC r340408: Ensure that libnv can be used when kern.trap_enotcap=1. Modified: stable/12/lib/libnv/common_impl.h stable/12/lib/libnv/msgio.c stable/12/lib/libnv/t

svn commit: r341080 - stable/12/sys/riscv/include

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 17:02:15 2018 New Revision: 341080 URL: https://svnweb.freebsd.org/changeset/base/341080 Log: MFC r340399: RISC-V: Add macros for reading performance counter CSRs. Modified: stable/12/sys/riscv/include/cpufunc.h stable/12/sys/riscv/include/riscvreg.h Directo

svn commit: r341081 - stable/12/sys/riscv/include

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 17:03:15 2018 New Revision: 341081 URL: https://svnweb.freebsd.org/changeset/base/341081 Log: MFC r340400: RISC-V: Implement get_cyclecount(9). Modified: stable/12/sys/riscv/include/cpu.h Directory Properties: stable/12/ (props changed) Modified: stable/1

svn commit: r341082 - stable/12/sys/kern

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 17:08:07 2018 New Revision: 341082 URL: https://svnweb.freebsd.org/changeset/base/341082 Log: MFC r340898: Ensure that knotes do not get registered when KQ_CLOSING is set. PR: 228858 Modified: stable/12/sys/kern/kern_event.c Directory Properties: stab

svn commit: r341083 - stable/11/sys/kern

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 17:10:00 2018 New Revision: 341083 URL: https://svnweb.freebsd.org/changeset/base/341083 Log: MFC r340898: Ensure that knotes do not get registered when KQ_CLOSING is set. PR: 228858 Modified: stable/11/sys/kern/kern_event.c Directory Properties: stab

svn commit: r341085 - in releng/12.0/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/autofs fs/cd9660 fs/devfs fs/ext2fs fs/fdescfs fs/fuse fs/msdosfs fs/nandfs fs/nfsclient fs/pseudofs fs/smbfs...

2018-11-27 Thread Mark Johnston
Author: markj Date: Tue Nov 27 17:58:25 2018 New Revision: 341085 URL: https://svnweb.freebsd.org/changeset/base/341085 Log: MFstable/12 r340970: Ensure that directory entry padding bytes are zeroed. Approved by: re (gjb) Modified: releng/12.0/sys/cddl/contrib/opensolaris/uts/common/f

svn commit: r341150 - stable/12/sys/kern

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 16:48:40 2018 New Revision: 341150 URL: https://svnweb.freebsd.org/changeset/base/341150 Log: MFC r339497 (by cem): ZSTDIO: Correctly initialize zstd context with provided 'level' Modified: stable/12/sys/kern/subr_compressor.c Directory Properties: stable/12

svn commit: r341151 - in stable/12/sys: kern sys

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 16:51:11 2018 New Revision: 341151 URL: https://svnweb.freebsd.org/changeset/base/341151 Log: MFC r340733: Remove KN_HASKQLOCK. Modified: stable/12/sys/kern/kern_event.c stable/12/sys/sys/event.h Directory Properties: stable/12/ (props changed) Modified

svn commit: r341152 - in stable/12: share/man/man9 sys/cddl/compat/opensolaris/kern sys/kern sys/sys

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 16:52:41 2018 New Revision: 341152 URL: https://svnweb.freebsd.org/changeset/base/341152 Log: MFC r340730, r340731: Add taskqueue_quiesce(9) and use it to implement taskq_wait(). PR: 227784 Modified: stable/12/share/man/man9/Makefile stable/12/share/m

svn commit: r341154 - in stable/11: share/man/man9 sys/kern sys/sys

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 17:00:18 2018 New Revision: 341154 URL: https://svnweb.freebsd.org/changeset/base/341154 Log: MFC r340730, r340731: Add taskqueue_quiesce(9) and use it to implement taskq_wait(). PR: 227784 Modified: stable/11/share/man/man9/Makefile stable/11/share/m

svn commit: r341155 - releng/12.0/sys/kern

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 17:31:34 2018 New Revision: 341155 URL: https://svnweb.freebsd.org/changeset/base/341155 Log: MFstable/12 r341075: Plug some kernel memory disclosures via kevent(2). Approved by: re (gjb) Modified: releng/12.0/sys/kern/kern_event.c releng/12.0/sys/kern

svn commit: r341157 - releng/12.0/sys/kern

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 17:40:08 2018 New Revision: 341157 URL: https://svnweb.freebsd.org/changeset/base/341157 Log: MFstable/12 r341077: Lock the knlist before releasing the in-flux state in knote_fork(). PR: 228858 Approved by: re (gjb) Modified: releng/12.0/sys/

svn commit: r341158 - stable/12/tests/sys/acl

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 18:02:59 2018 New Revision: 341158 URL: https://svnweb.freebsd.org/changeset/base/341158 Log: MFC r339795: Add a very basic regression test for setfacl -R with NFSv4 ACLs. Modified: stable/12/tests/sys/acl/tools-nfs4-psarc.test stable/12/tests/sys/acl/tools-

svn commit: r341159 - releng/12.0/sys/kern

2018-11-28 Thread Mark Johnston
Author: markj Date: Wed Nov 28 18:06:16 2018 New Revision: 341159 URL: https://svnweb.freebsd.org/changeset/base/341159 Log: MFstable/12 r341082: Ensure that knotes do not get registered when KQ_CLOSING is set. PR: 228858 Approved by: re (gjb) Modified: releng/12.0/sys/ker

svn commit: r341237 - stable/12/sys/geom/concat

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 15:38:27 2018 New Revision: 341237 URL: https://svnweb.freebsd.org/changeset/base/341237 Log: MFC r339900: Have gconcat advertise delete support if one of its disks does. PR: 232676 Modified: stable/12/sys/geom/concat/g_concat.c stable/12/sys/geom/con

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

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 15:42:32 2018 New Revision: 341238 URL: https://svnweb.freebsd.org/changeset/base/341238 Log: MFC r340968: Plug routing sysctl leaks. Modified: stable/12/sys/net/if.h stable/12/sys/net/route.h stable/12/sys/net/rtsock.c Directory Properties: stable/12/

svn commit: r341241 - stable/11/sys/net

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 15:56:46 2018 New Revision: 341241 URL: https://svnweb.freebsd.org/changeset/base/341241 Log: MFC r340968: Plug routing sysctl leaks. Modified: stable/11/sys/net/if.h stable/11/sys/net/route.h stable/11/sys/net/rtsock.c Directory Properties: stable/11/

svn commit: r341242 - releng/12.0/sys/net

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 15:58:14 2018 New Revision: 341242 URL: https://svnweb.freebsd.org/changeset/base/341242 Log: MFstable/12 r341238: Plug routing sysctl leaks. Approved by: re (gjb) Modified: releng/12.0/sys/net/if.h releng/12.0/sys/net/route.h releng/12.0/sys/net/rts

svn commit: r341247 - head/sys/vm

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 16:31:01 2018 New Revision: 341247 URL: https://svnweb.freebsd.org/changeset/base/341247 Log: Update the free page count when blacklisting pages. Otherwise the free page count will not accurately reflect the physical page allocator's state. On 11 this can t

svn commit: r341248 - head/usr.sbin/newsyslog

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 16:49:56 2018 New Revision: 341248 URL: https://svnweb.freebsd.org/changeset/base/341248 Log: Fix age_old_log() after r337468. We can no longer use sizeof() to get the path buffer's size. Apply a straightforward fix for now with the aim of MFCing soon.

svn commit: r341249 - stable/12/sys/vm

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 17:35:37 2018 New Revision: 341249 URL: https://svnweb.freebsd.org/changeset/base/341249 Log: MFC r341247: Update the free page count when blacklisting pages. PR: 231296 Approved by: re (gjb, insta-MFC) Modified: stable/12/sys/vm/vm_page.c Di

svn commit: r341250 - stable/12/usr.sbin/newsyslog

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 17:42:30 2018 New Revision: 341250 URL: https://svnweb.freebsd.org/changeset/base/341250 Log: MFC r341248: Fix age_old_log() after r337468. PR: 233633 Modified: stable/12/usr.sbin/newsyslog/newsyslog.c Directory Properties: stable/12/ (props changed

svn commit: r341251 - releng/12.0/sys/vm

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 17:54:03 2018 New Revision: 341251 URL: https://svnweb.freebsd.org/changeset/base/341251 Log: MFstable/12 r341249: Update the free page count when blacklisting pages. Approved by: re (gjb) Modified: releng/12.0/sys/vm/vm_page.c Directory Properties: re

svn commit: r341252 - releng/12.0/usr.sbin/newsyslog

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 18:02:35 2018 New Revision: 341252 URL: https://svnweb.freebsd.org/changeset/base/341252 Log: MFstable/12 r341250: Fix age_old_log() after r337468. PR: 233633 Approved by: re (gjb) Modified: releng/12.0/usr.sbin/newsyslog/newsyslog.c Director

svn commit: r341259 - stable/12/sys/netinet

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 20:25:47 2018 New Revision: 341259 URL: https://svnweb.freebsd.org/changeset/base/341259 Log: MFC r340483 (by jtl): Add some additional length checks to the IPv4 fragmentation code. Modified: stable/12/sys/netinet/ip_reass.c stable/12/sys/netinet/ip_var.h Di

svn commit: r341260 - stable/11/sys/netinet

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 20:38:23 2018 New Revision: 341260 URL: https://svnweb.freebsd.org/changeset/base/341260 Log: MFC r340483 (by jtl): Add some additional length checks to the IPv4 fragmentation code. Modified: stable/11/sys/netinet/ip_reass.c stable/11/sys/netinet/ip_var.h Di

svn commit: r341262 - releng/12.0/sys/netinet

2018-11-29 Thread Mark Johnston
Author: markj Date: Thu Nov 29 20:59:18 2018 New Revision: 341262 URL: https://svnweb.freebsd.org/changeset/base/341262 Log: MFstable/12 r341259: Add some additional length checks to the IPv4 fragmentation code. Approved by: re (gjb) Modified: releng/12.0/sys/netinet/ip_reass.c rele

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

2018-11-30 Thread Mark Johnston
Author: markj Date: Fri Nov 30 18:02:59 2018 New Revision: 341346 URL: https://svnweb.freebsd.org/changeset/base/341346 Log: Add missing display messages when toggling modes. PR: 233667 Submitted by: James Wright MFC after:1 week Differential Revision:https://re

svn commit: r341376 - in stable/12/sys: compat/linux kern sys

2018-12-01 Thread Mark Johnston
Author: markj Date: Sat Dec 1 17:48:28 2018 New Revision: 341376 URL: https://svnweb.freebsd.org/changeset/base/341376 Log: MFC r340861, r340900: Minor kevent(2) cleanups. Modified: stable/12/sys/compat/linux/linux_event.c stable/12/sys/kern/kern_event.c stable/12/sys/kern/vfs_aio.c

svn commit: r341401 - stable/11/sys/vm

2018-12-02 Thread Mark Johnston
Author: markj Date: Sun Dec 2 18:08:27 2018 New Revision: 341401 URL: https://svnweb.freebsd.org/changeset/base/341401 Log: MFC r341247: Update the free page count when blacklisting pages. PR: 231296 Modified: stable/11/sys/vm/vm_page.c Directory Properties: stable/11/ (props ch

svn commit: r341426 - stable/12/sys/dev/cxgbe/cxgbei

2018-12-03 Thread Mark Johnston
Author: markj Date: Mon Dec 3 15:14:40 2018 New Revision: 341426 URL: https://svnweb.freebsd.org/changeset/base/341426 Log: MFC r341001: Check for an allocation failure before dereferencing the pointer. Modified: stable/12/sys/dev/cxgbe/cxgbei/cxgbei.c Directory Properties: stable/12/

svn commit: r341442 - in head/sys: amd64/amd64 amd64/ia32 arm/arm fs/procfs i386/i386 kern sparc64/sparc64

2018-12-03 Thread Mark Johnston
Author: markj Date: Mon Dec 3 20:54:17 2018 New Revision: 341442 URL: https://svnweb.freebsd.org/changeset/base/341442 Log: Plug memory disclosures via ptrace(2). On some architectures, the structures returned by PT_GET*REGS were not fully populated and could contain uninitialized stack

svn commit: r341443 - head/sys/kern

2018-12-03 Thread Mark Johnston
Author: markj Date: Mon Dec 3 21:07:10 2018 New Revision: 341443 URL: https://svnweb.freebsd.org/changeset/base/341443 Log: Add a missing definition for the !COMPAT_FREEBSD32 case. Reported by: jenkins MFC with: r341442 Sponsored by: The FreeBSD Foundation Modified: head/sys/ke

svn commit: r341490 - in stable/12/sys: amd64/amd64 amd64/ia32 arm/arm fs/procfs i386/i386 kern sparc64/sparc64

2018-12-04 Thread Mark Johnston
Author: markj Date: Tue Dec 4 19:06:11 2018 New Revision: 341490 URL: https://svnweb.freebsd.org/changeset/base/341490 Log: MFC r341442, r341443: Plug memory disclosures via ptrace(2). Modified: stable/12/sys/amd64/amd64/machdep.c stable/12/sys/amd64/ia32/ia32_reg.c stable/12/sys/arm/a

svn commit: r341491 - in stable/11/sys: amd64/amd64 amd64/ia32 arm/arm fs/procfs i386/i386 kern sparc64/sparc64

2018-12-04 Thread Mark Johnston
Author: markj Date: Tue Dec 4 19:07:10 2018 New Revision: 341491 URL: https://svnweb.freebsd.org/changeset/base/341491 Log: MFC r341442, r341443: Plug memory disclosures via ptrace(2). Modified: stable/11/sys/amd64/amd64/machdep.c stable/11/sys/amd64/ia32/ia32_reg.c stable/11/sys/arm/a

svn commit: r341594 - head/share/man/man4

2018-12-05 Thread Mark Johnston
Author: markj Date: Wed Dec 5 16:55:45 2018 New Revision: 341594 URL: https://svnweb.freebsd.org/changeset/base/341594 Log: Netdump support was added to mlx4en(4) in r341548. MFC with: r341548 Modified: head/share/man/man4/netdump.4 Modified: head/share/man/man4/netdump.4 =

svn commit: r341595 - in head/sys: netinet netinet6

2018-12-05 Thread Mark Johnston
Author: markj Date: Wed Dec 5 17:06:00 2018 New Revision: 341595 URL: https://svnweb.freebsd.org/changeset/base/341595 Log: Clamp the INPCB port hash tables to IPPORT_MAX + 1 chains. Memory beyond that limit was previously unused, wasting roughly 1MB per 8GB of RAM. Also retire INP_PCBL

svn commit: r341601 - head/share/man/man4

2018-12-05 Thread Mark Johnston
Author: markj Date: Wed Dec 5 18:19:29 2018 New Revision: 341601 URL: https://svnweb.freebsd.org/changeset/base/341601 Log: ixl(4) has netdump support via iflib. Reported by: kbowling MFC after:3 days Modified: head/share/man/man4/netdump.4 Modified: head/share/man/man4/netdump.

svn commit: r341638 - head/sys/kern

2018-12-06 Thread Mark Johnston
Author: markj Date: Thu Dec 6 17:29:37 2018 New Revision: 341638 URL: https://svnweb.freebsd.org/changeset/base/341638 Log: Let kern.trap_enotcap be set as a tunable. This is handy for testing programs that are run by rc. MFC after:1 week Sponsored by: The FreeBSD Foundation Mo

svn commit: r341648 - head/lib/libz

2018-12-06 Thread Mark Johnston
Author: markj Date: Thu Dec 6 20:03:06 2018 New Revision: 341648 URL: https://svnweb.freebsd.org/changeset/base/341648 Log: Add zdopen(3) to complement zopen(3). zdopen() can be used in capability mode. Update zopen.3 accordingly and fix some grammar nits while I'm here. Reviewed b

svn commit: r341691 - stable/12/usr.bin/top

2018-12-07 Thread Mark Johnston
Author: markj Date: Fri Dec 7 15:48:42 2018 New Revision: 341691 URL: https://svnweb.freebsd.org/changeset/base/341691 Log: MFC r341346: Add missing display messages when toggling modes. PR: 233667 Modified: stable/12/usr.bin/top/top.c Directory Properties: stable/12/ (props cha

svn commit: r341692 - head/lib/libcasper/services/cap_syslog

2018-12-07 Thread Mark Johnston
Author: markj Date: Fri Dec 7 15:52:50 2018 New Revision: 341692 URL: https://svnweb.freebsd.org/changeset/base/341692 Log: Let the cap_syslog capability inherit stdio descriptors. Otherwise cap_openlog(LOG_PERROR) doesn't work. Reviewed by: oshogbo MFC after:1 week Sponsored

svn commit: r341693 - in head/sys/riscv: include riscv

2018-12-07 Thread Mark Johnston
Author: markj Date: Fri Dec 7 15:55:23 2018 New Revision: 341693 URL: https://svnweb.freebsd.org/changeset/base/341693 Log: Rename sptbr to satp per v1.10 of the privileged architecture spec. Add a subroutine for updating satp, for use when updating the active pmap. No functional change

svn commit: r341694 - head/sys/riscv/include

2018-12-07 Thread Mark Johnston
Author: markj Date: Fri Dec 7 15:56:40 2018 New Revision: 341694 URL: https://svnweb.freebsd.org/changeset/base/341694 Log: Update the description of the address space layout on RISC-V. This adds more detail and fixes some inaccuracies. Reviewed by: jhb MFC after:1 week Spons

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

2018-12-10 Thread Mark Johnston
Author: markj Date: Tue Dec 11 02:15:56 2018 New Revision: 341807 URL: https://svnweb.freebsd.org/changeset/base/341807 Log: Use inline tests for individual PTE bits in the RISC-V pmap. Inline tests for PTE_* bits are easy to read and don't really require a predicate function, and predica

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

2018-12-10 Thread Mark Johnston
Author: markj Date: Tue Dec 11 02:16:27 2018 New Revision: 341808 URL: https://svnweb.freebsd.org/changeset/base/341808 Log: Remove an unused malloc(9) type. MFC after:1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/riscv/riscv/pmap.c Modified: head/sys/riscv/riscv/

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

2018-12-11 Thread Mark Johnston
Author: markj Date: Tue Dec 11 16:49:01 2018 New Revision: 341821 URL: https://svnweb.freebsd.org/changeset/base/341821 Log: Fix the PAE kernel gcc build. The error was caused by map_ucode() casting a vm_paddr_t to a void *. Use a uintptr_t instead to match the caller. Fix some style bug

svn commit: r341837 - head/sbin/ping

2018-12-11 Thread Mark Johnston
Author: markj Date: Wed Dec 12 02:33:01 2018 New Revision: 341837 URL: https://svnweb.freebsd.org/changeset/base/341837 Log: Use Capsicum helpers in ping(8). Also use caph_cache_catpages() to ensure that strerror() works when run with kern.trap_enotcap=1. Reviewed by: oshogbo MFC

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

2018-12-12 Thread Mark Johnston
Author: markj Date: Wed Dec 12 15:49:14 2018 New Revision: 341990 URL: https://svnweb.freebsd.org/changeset/base/341990 Log: Fix a possible mbuf double free in bwn_dma_tx_start(). If bus_dmamap_load_mbuf() fails following a defrag, the caller of bwn_dma_tx_start() would free the original

svn commit: r342047 - stable/12/sys/kern

2018-12-13 Thread Mark Johnston
Author: markj Date: Thu Dec 13 15:51:07 2018 New Revision: 342047 URL: https://svnweb.freebsd.org/changeset/base/342047 Log: MFC r341638: Let kern.trap_enotcap be set as a tunable. Modified: stable/12/sys/kern/sys_capability.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r342048 - stable/12/sys/vm

2018-12-13 Thread Mark Johnston
Author: markj Date: Thu Dec 13 16:07:35 2018 New Revision: 342048 URL: https://svnweb.freebsd.org/changeset/base/342048 Log: MFC r340405: Add accounting to per-domain UMA full bucket caches. Modified: stable/12/sys/vm/uma_core.c stable/12/sys/vm/uma_int.h Directory Properties: stable/12

svn commit: r342086 - head/sys/dev/nfe

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 18:16:35 2018 New Revision: 342086 URL: https://svnweb.freebsd.org/changeset/base/342086 Log: Add support for the nForce MCP89 adapter. PR: 234015 Submitted by: Andrejs Bogdanovs MFC after:1 week Modified: head/sys/dev/nfe/if_nfe.c head

svn commit: r342089 - stable/12/lib/libcasper/services/cap_syslog

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 18:38:10 2018 New Revision: 342089 URL: https://svnweb.freebsd.org/changeset/base/342089 Log: MFC r341692: Let the cap_syslog capability inherit stdio descriptors. Modified: stable/12/lib/libcasper/services/cap_syslog/cap_syslog.c Directory Properties: stabl

svn commit: r342090 - in stable/12/sys/riscv: include riscv

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 18:39:06 2018 New Revision: 342090 URL: https://svnweb.freebsd.org/changeset/base/342090 Log: MFC r341693: Rename sptbr to satp per v1.10 of the privileged architecture spec. Modified: stable/12/sys/riscv/include/cpufunc.h stable/12/sys/riscv/riscv/locore.S

svn commit: r342092 - stable/12/sys/riscv/include

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 18:40:08 2018 New Revision: 342092 URL: https://svnweb.freebsd.org/changeset/base/342092 Log: MFC r341694: Update the description of the address space layout on RISC-V. Modified: stable/12/sys/riscv/include/vmparam.h Directory Properties: stable/12/ (props

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

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 18:50:32 2018 New Revision: 342093 URL: https://svnweb.freebsd.org/changeset/base/342093 Log: Clean up the riscv pmap_bootstrap() implementation. - Build up phys_avail[] in a single loop, excluding memory used by the loaded kernel. - Fix an array indexin

svn commit: r342096 - head/sys/riscv/conf

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 20:57:57 2018 New Revision: 342096 URL: https://svnweb.freebsd.org/changeset/base/342096 Log: Enable witness(4) in the RISC-V GENERIC config. Reviewed by: jhb MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:https:

svn commit: r342097 - head/sys/riscv/conf

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 21:00:41 2018 New Revision: 342097 URL: https://svnweb.freebsd.org/changeset/base/342097 Log: Add a QEMU config for RISC-V. Reviewed by: jhb MFC after:1 week Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.

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

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 21:03:01 2018 New Revision: 342098 URL: https://svnweb.freebsd.org/changeset/base/342098 Log: Assume that pmap_l1() will return a PTE. pmaps on RISC-V always have an L1 page table page, so we don't need to check for this when performing lookups. Reviewe

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

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 21:04:30 2018 New Revision: 342099 URL: https://svnweb.freebsd.org/changeset/base/342099 Log: Avoid needless TLB invalidations in pmap_remove_pages(). pmap_remove_pages() is called during process termination, when it is guaranteed that no other CPU may acces

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

2018-12-14 Thread Mark Johnston
Author: markj Date: Fri Dec 14 21:07:12 2018 New Revision: 342100 URL: https://svnweb.freebsd.org/changeset/base/342100 Log: Add some more checking to the RISC-V page fault handler. - Panic immediately if witness says we're holding non-sleepable locks. This helps ensure that we don't re

svn commit: r342137 - stable/12/sys/dev/bwn

2018-12-15 Thread Mark Johnston
Author: markj Date: Sat Dec 15 19:56:51 2018 New Revision: 342137 URL: https://svnweb.freebsd.org/changeset/base/342137 Log: MFC r341990: Fix a possible mbuf double free in bwn_dma_tx_start(). admbug: 820 Modified: stable/12/sys/dev/bwn/if_bwn.c Directory Properties: stable/12/

svn commit: r342138 - stable/11/sys/dev/bwn

2018-12-15 Thread Mark Johnston
Author: markj Date: Sat Dec 15 20:07:32 2018 New Revision: 342138 URL: https://svnweb.freebsd.org/changeset/base/342138 Log: MFC r341990: Fix a possible mbuf double free in bwn_dma_tx_start(). Modified: stable/11/sys/dev/bwn/if_bwn.c Modified: stable/11/sys/dev/bwn/if_bwn.c ===

svn commit: r342178 - head/sys/dev/ichiic

2018-12-17 Thread Mark Johnston
Author: markj Date: Mon Dec 17 21:13:05 2018 New Revision: 342178 URL: https://svnweb.freebsd.org/changeset/base/342178 Log: Revert r336326. In testing on a Dell Latitude 7480, having ig4.ko loaded during a suspend caused the system to hang. It turns out that ig4iic_intr() was being ca

svn commit: r342180 - head/sys/dev/ichiic

2018-12-17 Thread Mark Johnston
Author: markj Date: Mon Dec 17 21:34:09 2018 New Revision: 342180 URL: https://svnweb.freebsd.org/changeset/base/342180 Log: Catch up with r338948. MFC with: r342178 Modified: head/sys/dev/ichiic/ig4_pci.c Modified: head/sys/dev/ichiic/ig4_pci.c =

svn commit: r342182 - in head/sys: dev/drm2/radeon modules/drm2/radeonkms

2018-12-17 Thread Mark Johnston
Author: markj Date: Mon Dec 17 21:48:20 2018 New Revision: 342182 URL: https://svnweb.freebsd.org/changeset/base/342182 Log: Remove UMS support code from radeonkms. The code is unreachable since the entries of radeon_ioctls[] are not associated with any device: we provide only the KMS ent

svn commit: r342192 - head/sbin/ping

2018-12-18 Thread Mark Johnston
Author: markj Date: Tue Dec 18 16:47:03 2018 New Revision: 342192 URL: https://svnweb.freebsd.org/changeset/base/342192 Log: Use caph_enter_casper() in ping(8). Reported by: oshogbo MFC with: r341837 Sponsored by: The FreeBSD Foundation Modified: head/sbin/ping/ping.c Modified:

svn commit: r342199 - stable/12/sys/x86/x86

2018-12-18 Thread Mark Johnston
Author: markj Date: Tue Dec 18 20:12:43 2018 New Revision: 342199 URL: https://svnweb.freebsd.org/changeset/base/342199 Log: MFC r341821: Fix the PAE kernel gcc build. Modified: stable/12/sys/x86/x86/ucode.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/x86/x

svn commit: r342200 - stable/12/sys/riscv/riscv

2018-12-18 Thread Mark Johnston
Author: markj Date: Tue Dec 18 20:13:45 2018 New Revision: 342200 URL: https://svnweb.freebsd.org/changeset/base/342200 Log: MFC r341807: Use inline tests for individual PTE bits in the RISC-V pmap. Modified: stable/12/sys/riscv/riscv/pmap.c Directory Properties: stable/12/ (props chang

svn commit: r342201 - stable/12/sys/riscv/riscv

2018-12-18 Thread Mark Johnston
Author: markj Date: Tue Dec 18 20:14:33 2018 New Revision: 342201 URL: https://svnweb.freebsd.org/changeset/base/342201 Log: MFC r341808: Remove an unused malloc(9) type. Modified: stable/12/sys/riscv/riscv/pmap.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys

svn commit: r342202 - stable/12/share/man/man4

2018-12-18 Thread Mark Johnston
Author: markj Date: Tue Dec 18 20:16:46 2018 New Revision: 342202 URL: https://svnweb.freebsd.org/changeset/base/342202 Log: MFC r341594, r341601: mlx4en(4) and ixl(4) have netdump support. Modified: stable/12/share/man/man4/netdump.4 Directory Properties: stable/12/ (props changed) Mo

svn commit: r342203 - in stable/12/sys: kern sys

2018-12-18 Thread Mark Johnston
Author: markj Date: Tue Dec 18 21:01:48 2018 New Revision: 342203 URL: https://svnweb.freebsd.org/changeset/base/342203 Log: MFC r340402, r340914 (by alc), r341602 (by alc), r341766 (by alc): Allow allocations across meta boundaries. Modified: stable/12/sys/kern/subr_blist.c stable/12/sys

svn commit: r342207 - head/sys/kern

2018-12-18 Thread Mark Johnston
Author: markj Date: Wed Dec 19 00:17:22 2018 New Revision: 342207 URL: https://svnweb.freebsd.org/changeset/base/342207 Log: Fix DDB's "show malloc" after r338899. MFC after:3 days Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/kern_malloc.c Modified: head/sys/kern/k

svn commit: r342214 - in head/sys: conf dev/fxp modules/fxp

2018-12-18 Thread Mark Johnston
Author: markj Date: Wed Dec 19 04:54:32 2018 New Revision: 342214 URL: https://svnweb.freebsd.org/changeset/base/342214 Log: Remove a use of a negative array index from fxp(4). This fixes a warning seen when compiling amd64 GENERIC with clang 7. Also remove the workaround added in r337324

svn commit: r342219 - stable/12/sbin/ping

2018-12-19 Thread Mark Johnston
Author: markj Date: Wed Dec 19 17:40:45 2018 New Revision: 342219 URL: https://svnweb.freebsd.org/changeset/base/342219 Log: MFC r341837, r342192: Use Capsicum helpers in ping(8). Modified: stable/12/sbin/ping/ping.c Directory Properties: stable/12/ (props changed) Modified: stable/12/

svn commit: r342220 - in stable/12/sys: netinet netinet6

2018-12-19 Thread Mark Johnston
Author: markj Date: Wed Dec 19 17:42:39 2018 New Revision: 342220 URL: https://svnweb.freebsd.org/changeset/base/342220 Log: MFC r341595: Clamp the INPCB port hash tables to IPPORT_MAX + 1 chains. Modified: stable/12/sys/netinet/in_pcb.c stable/12/sys/netinet/in_pcb.h stable/12/sys/neti

<    5   6   7   8   9   10   11   12   13   14   >