svn commit: r355085 - in head: contrib/expat contrib/expat/doc contrib/expat/examples contrib/expat/lib contrib/expat/tests contrib/expat/tests/benchmark contrib/expat/xmlwf lib/libexpat

2019-11-24 Thread Xin LI
Author: delphij Date: Mon Nov 25 07:48:16 2019 New Revision: 355085 URL: https://svnweb.freebsd.org/changeset/base/355085 Log: MFV r355071: libbsdxml (expat) 2.2.9. MFC after:2 weeks Relnotes: yes Added: head/contrib/expat/fix-xmltest-log.sh - copied unchanged from

svn commit: r355084 - head/sys/vm

2019-11-24 Thread Ryan Libby
Author: rlibby Date: Mon Nov 25 07:38:31 2019 New Revision: 355084 URL: https://svnweb.freebsd.org/changeset/base/355084 Log: vm_object_collapse_scan_wait: drop locks before reacquiring Regression from r352174. In the vm_page_rename() failure case we forgot to unlock the vm object locks

svn commit: r355083 - head/sys/kern

2019-11-24 Thread Ryan Libby
Author: rlibby Date: Mon Nov 25 07:38:27 2019 New Revision: 355083 URL: https://svnweb.freebsd.org/changeset/base/355083 Log: sysctl sysctls: wire old buf before output with sysctl lock Several sysctl sysctls output to a user buffer while holding a non-sleepable lock that protects the

svn commit: r355082 - head/sys/vm

2019-11-24 Thread Jeff Roberson
Author: jeff Date: Mon Nov 25 07:13:05 2019 New Revision: 355082 URL: https://svnweb.freebsd.org/changeset/base/355082 Log: Move anonymous object copying for fork into its own routine and so that we can avoid locking non-anonymous objects. Reviewed by: kib Differential Revision:

svn commit: r355081 - stable/12/sys/amd64/amd64

2019-11-24 Thread Andriy Gapon
Author: avg Date: Mon Nov 25 06:16:53 2019 New Revision: 355081 URL: https://svnweb.freebsd.org/changeset/base/355081 Log: MFC r354619: db_nextframe/amd64: remove TRAP_INTERRUPT frame type Modified: stable/12/sys/amd64/amd64/db_trace.c Directory Properties: stable/12/ (props changed)

svn commit: r355080 - in stable: 11/lib/libc/secure 12/lib/libc/secure

2019-11-24 Thread Kyle Evans
Author: kevans Date: Mon Nov 25 03:49:38 2019 New Revision: 355080 URL: https://svnweb.freebsd.org/changeset/base/355080 Log: MFC r354669, r354672, r354689: move __stack_chk_guard constructor r354669: ssp: add a priority to the __stack_chk_guard constructor First, this commit is a

svn commit: r355080 - in stable: 11/lib/libc/secure 12/lib/libc/secure

2019-11-24 Thread Kyle Evans
Author: kevans Date: Mon Nov 25 03:49:38 2019 New Revision: 355080 URL: https://svnweb.freebsd.org/changeset/base/355080 Log: MFC r354669, r354672, r354689: move __stack_chk_guard constructor r354669: ssp: add a priority to the __stack_chk_guard constructor First, this commit is a

svn commit: r355079 - stable/11/sbin/camcontrol

2019-11-24 Thread Alexander Motin
Author: mav Date: Mon Nov 25 03:39:13 2019 New Revision: 355079 URL: https://svnweb.freebsd.org/changeset/base/355079 Log: MFC r354999: Fix off-by-one error in HPA/AMA maximum reporting. Before my refactoring the code reported value as maximum number of sectors, adding one to the maximum

svn commit: r355078 - stable/12/sbin/camcontrol

2019-11-24 Thread Alexander Motin
Author: mav Date: Mon Nov 25 03:38:49 2019 New Revision: 355078 URL: https://svnweb.freebsd.org/changeset/base/355078 Log: MFC r354999: Fix off-by-one error in HPA/AMA maximum reporting. Before my refactoring the code reported value as maximum number of sectors, adding one to the maximum

svn commit: r355076 - head/sys/vm

2019-11-24 Thread Doug Moore
Author: dougm Date: Mon Nov 25 02:19:47 2019 New Revision: 355076 URL: https://svnweb.freebsd.org/changeset/base/355076 Log: Where 'current' is used to index over vm_map entries, use 'entry'. Where 'entry' is used to identify the starting point for iteration, use 'first_entry'. These are

svn commit: r355075 - stable/12/contrib/amd/amd

2019-11-24 Thread Ed Maste
Author: emaste Date: Mon Nov 25 01:32:50 2019 New Revision: 355075 URL: https://svnweb.freebsd.org/changeset/base/355075 Log: MFC r354997: add deprecation notice to amd man page Clarify the deprecation notice in amd.8. amd will be removed from the FreeBSD base system before FreeBSD

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

2019-11-24 Thread Alexander Motin
Author: mav Date: Mon Nov 25 01:00:51 2019 New Revision: 355074 URL: https://svnweb.freebsd.org/changeset/base/355074 Log: Report XLAT0 register for completeness. Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_intel.c

svn commit: r355073 - stable/12/cddl/contrib/opensolaris/cmd/dtrace

2019-11-24 Thread Mark Johnston
Author: markj Date: Mon Nov 25 00:34:59 2019 New Revision: 355073 URL: https://svnweb.freebsd.org/changeset/base/355073 Log: MFC r354822: Fix inconsistencies in anonymous DOF files. Modified: stable/12/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c Directory Properties: stable/12/ (props

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

2019-11-24 Thread Mark Johnston
Author: markj Date: Mon Nov 25 00:33:56 2019 New Revision: 355072 URL: https://svnweb.freebsd.org/changeset/base/355072 Log: MFC r354829: Add a "B" suffix to memory quantities in top(1) output. Modified: stable/12/usr.bin/top/utils.c Directory Properties: stable/12/ (props changed)

svn commit: r355071 - in vendor/expat/dist: . doc examples lib tests tests/benchmark xmlwf

2019-11-24 Thread Xin LI
Author: delphij Date: Sun Nov 24 23:46:29 2019 New Revision: 355071 URL: https://svnweb.freebsd.org/changeset/base/355071 Log: Vendor import of expat 2.2.9 Added: vendor/expat/dist/fix-xmltest-log.sh (contents, props changed) vendor/expat/dist/xmlwf/xmlwf_helpgen.py (contents, props

svn commit: r355070 - head/sys/net

2019-11-24 Thread Bjoern A. Zeeb
Author: bz Date: Sun Nov 24 23:21:47 2019 New Revision: 355070 URL: https://svnweb.freebsd.org/changeset/base/355070 Log: Allow kernel to compile without BPF. r297816 added some bpf magic for VIMAGE unconditionally which no longer allows kernels to compile without bpf (but with other

Re: svn commit: r355055 - head/tests/sys/sys

2019-11-24 Thread Conrad Meyer
Don't we already build with -fwrapv for this class of problem? The GCC docs claim that warning is only active when signed overflow is undefined. It seems that -fno-strict-overflow has similar semantics to -fwrapv, but we should probably be consistent about the flag we use. Also, if GCC is

svn commit: r355069 - head/sys/arm/arm

2019-11-24 Thread Ian Lepore
Author: ian Date: Sun Nov 24 21:08:56 2019 New Revision: 355069 URL: https://svnweb.freebsd.org/changeset/base/355069 Log: When doing ARM stack unwinding as part of stack_save(9), do not search loaded modules (pass 0/false for the can_lock arg). Searching the unwind info in modules

Re: svn commit: r355024 - in head/sys: kern net sys

2019-11-24 Thread Conrad Meyer
Sorry, should be: Differential Revision: https://reviews.freebsd.org/D22504 On Sat, Nov 23, 2019 at 2:57 AM Bjoern A. Zeeb wrote: > > On 22 Nov 2019, at 23:23, Conrad Meyer wrote: > > > Author: cem > > Date: Fri Nov 22 23:23:40 2019 > > New Revision: 355024 > > URL:

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

2019-11-24 Thread Vladimir Kondratyev
Author: wulf Date: Sun Nov 24 20:51:09 2019 New Revision: 355068 URL: https://svnweb.freebsd.org/changeset/base/355068 Log: Linux epoll: Allow passing of any negative timeout value to epoll_wait Linux epoll allow passing of any negative timeout value to epoll_wait() to cause unbound

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

2019-11-24 Thread Vladimir Kondratyev
Author: wulf Date: Sun Nov 24 20:47:40 2019 New Revision: 355067 URL: https://svnweb.freebsd.org/changeset/base/355067 Log: Linux epoll: Register events with zero event mask Such an events are legal and should be interpreted as EPOLLERR | EPOLLHUP. Register a disabled kqueue event in

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

2019-11-24 Thread Vladimir Kondratyev
Author: wulf Date: Sun Nov 24 20:44:14 2019 New Revision: 355066 URL: https://svnweb.freebsd.org/changeset/base/355066 Log: Linux epoll: Check both read and write kqueue events existence in EPOLL_CTL_ADD Linux epoll EPOLL_CTL_ADD op handler should always check registration of both

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

2019-11-24 Thread Vladimir Kondratyev
Author: wulf Date: Sun Nov 24 20:41:47 2019 New Revision: 355065 URL: https://svnweb.freebsd.org/changeset/base/355065 Log: Linux epoll: Don't deregister file descriptor after EPOLLONESHOT is fired Linux epoll does not remove descriptor after one-shot event has been triggered. Set

Re: svn commit: r355037 - head/sys/dev/pci

2019-11-24 Thread Warner Losh
On Sun, Nov 24, 2019, 9:45 AM Konstantin Belousov wrote: > On Sun, Nov 24, 2019 at 07:37:01AM -0700, Warner Losh wrote: > > On Sun, Nov 24, 2019, 6:10 AM Konstantin Belousov > > wrote: > > > > > On Sat, Nov 23, 2019 at 11:43:52PM +, Warner Losh wrote: > > > > Author: imp > > > > Date: Sat

svn commit: r355064 - head/sys/vm

2019-11-24 Thread Konstantin Belousov
Author: kib Date: Sun Nov 24 19:18:12 2019 New Revision: 355064 URL: https://svnweb.freebsd.org/changeset/base/355064 Log: Ignore object->handle for OBJ_ANON objects. Note that the change in vm_object_collapse() is arguably a correctness fix. We must not collapse into content-identity

svn commit: r355063 - head/share/misc

2019-11-24 Thread Eitan Adler
Author: eadler Date: Sun Nov 24 19:16:57 2019 New Revision: 355063 URL: https://svnweb.freebsd.org/changeset/base/355063 Log: bsd-family-tree: correct macOS release date Reported by: Herbert J. Skuhra Reported by: Maxim Konovalov Modified: head/share/misc/bsd-family-tree Modified:

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

2019-11-24 Thread Konstantin Belousov
Author: kib Date: Sun Nov 24 19:12:23 2019 New Revision: 355062 URL: https://svnweb.freebsd.org/changeset/base/355062 Log: Record part of the owner struct thread pointer into busy_lock. Record as much bits from curthread into busy_lock as fits. Low bits for struct thread *

svn commit: r355061 - head/sys/fs/tmpfs

2019-11-24 Thread Konstantin Belousov
Author: kib Date: Sun Nov 24 19:06:38 2019 New Revision: 355061 URL: https://svnweb.freebsd.org/changeset/base/355061 Log: tmpfs: resolve deadlock between rename and unmount. Top-level kern_renameat() increases the writecount on the mount point, which, together with tmpfs unmount

svn commit: r355060 - head/sys/amd64/include

2019-11-24 Thread Konstantin Belousov
Author: kib Date: Sun Nov 24 19:02:13 2019 New Revision: 355060 URL: https://svnweb.freebsd.org/changeset/base/355060 Log: amd64: assert that EARLY_COUNTER does not corrupt memory. Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after:1 week Differential revision:

Re: svn commit: r355045 - head/libexec/rtld-elf/powerpc

2019-11-24 Thread Justin Hibbits
On Sun, 24 Nov 2019 18:47:14 +0200 Konstantin Belousov wrote: > On Sun, Nov 24, 2019 at 10:32:23AM -0600, Brandon Bergren wrote: > > On Sun, Nov 24, 2019, at 7:04 AM, Konstantin Belousov wrote: > > > On Sun, Nov 24, 2019 at 04:35:29AM +, Justin Hibbits wrote: > > > > Author: jhibbits > >

Re: svn commit: r355045 - head/libexec/rtld-elf/powerpc

2019-11-24 Thread Brandon Bergren
On Sun, Nov 24, 2019, at 10:47 AM, Konstantin Belousov wrote: > On Sun, Nov 24, 2019 at 10:32:23AM -0600, Brandon Bergren wrote: > > On Sun, Nov 24, 2019, at 7:04 AM, Konstantin Belousov wrote: > > > On Sun, Nov 24, 2019 at 04:35:29AM +, Justin Hibbits wrote: > > > > Author: jhibbits > > >

Re: svn commit: r355045 - head/libexec/rtld-elf/powerpc

2019-11-24 Thread Konstantin Belousov
On Sun, Nov 24, 2019 at 10:32:23AM -0600, Brandon Bergren wrote: > On Sun, Nov 24, 2019, at 7:04 AM, Konstantin Belousov wrote: > > On Sun, Nov 24, 2019 at 04:35:29AM +, Justin Hibbits wrote: > > > Author: jhibbits > > > Date: Sun Nov 24 04:35:29 2019 > > > New Revision: 355045 > > > URL:

Re: svn commit: r355037 - head/sys/dev/pci

2019-11-24 Thread Konstantin Belousov
On Sun, Nov 24, 2019 at 07:37:01AM -0700, Warner Losh wrote: > On Sun, Nov 24, 2019, 6:10 AM Konstantin Belousov > wrote: > > > On Sat, Nov 23, 2019 at 11:43:52PM +, Warner Losh wrote: > > > Author: imp > > > Date: Sat Nov 23 23:43:52 2019 > > > New Revision: 355037 > > > URL:

svn commit: r355059 - head/sys/dev/cxgbe

2019-11-24 Thread Navdeep Parhar
Author: np Date: Sun Nov 24 16:40:54 2019 New Revision: 355059 URL: https://svnweb.freebsd.org/changeset/base/355059 Log: cxgbe(4): sysctl to reset the temperature/voltage sensor. # sysctl dev...reset_sensor=1 # sysctl dev.t6nex.0.reset_sensor=1 MFC after:1 week Sponsored by:

Re: svn commit: r355045 - head/libexec/rtld-elf/powerpc

2019-11-24 Thread Brandon Bergren
On Sun, Nov 24, 2019, at 7:04 AM, Konstantin Belousov wrote: > On Sun, Nov 24, 2019 at 04:35:29AM +, Justin Hibbits wrote: > > Author: jhibbits > > Date: Sun Nov 24 04:35:29 2019 > > New Revision: 355045 > > URL: https://svnweb.freebsd.org/changeset/base/355045 > > > > Log: > >

svn commit: r355057 - head/sys/dev/pci

2019-11-24 Thread Warner Losh
Author: imp Date: Sun Nov 24 15:37:14 2019 New Revision: 355057 URL: https://svnweb.freebsd.org/changeset/base/355057 Log: Hoist locking giant back up into the ioctl handler Move the locking back into the ioctl handler. This "fixes" the race where we hve a hot plug event just after the

svn commit: r355058 - in head/sys/dev: aac aacraid

2019-11-24 Thread Warner Losh
Author: imp Date: Sun Nov 24 15:37:19 2019 New Revision: 355058 URL: https://svnweb.freebsd.org/changeset/base/355058 Log: Don't need giant for these drivers dev nodes. Also, Giant isn't required to busy / unbusy a device, so drop that too while I'm here. It's not done elsewhere in the

svn commit: r355056 - in head/sys/dev: mpr mps

2019-11-24 Thread Warner Losh
Author: imp Date: Sun Nov 24 15:24:05 2019 New Revision: 355056 URL: https://svnweb.freebsd.org/changeset/base/355056 Log: Fix leak in state machine for commands. When we get a device departed message from the firmware, we send a TARGET_REST to the device to let the firmware know we're

Re: svn commit: r355047 - head/libexec/rtld-elf/powerpc

2019-11-24 Thread Justin Hibbits
On Sun, Nov 24, 2019, 00:43 Brandon Bergren wrote: > Author: bdragon > Date: Sun Nov 24 06:43:03 2019 > New Revision: 355047 > URL: https://svnweb.freebsd.org/changeset/base/355047 > > Log: > [PowerPC] Fix stack padding issue on ppc32. > > Four bytes of padding are needed in the regular

svn commit: r355055 - head/tests/sys/sys

2019-11-24 Thread Li-Wen Hsu
Author: lwhsu Date: Sun Nov 24 15:03:35 2019 New Revision: 355055 URL: https://svnweb.freebsd.org/changeset/base/355055 Log: Fix gcc build We have -Werror=strict-overflow so gcc complains: In file included from /tmp/obj/workspace/src/amd64.amd64/tmp/usr/include/bitstring.h:36:0,

Re: svn commit: r355037 - head/sys/dev/pci

2019-11-24 Thread Warner Losh
On Sun, Nov 24, 2019, 6:10 AM Konstantin Belousov wrote: > On Sat, Nov 23, 2019 at 11:43:52PM +, Warner Losh wrote: > > Author: imp > > Date: Sat Nov 23 23:43:52 2019 > > New Revision: 355037 > > URL: https://svnweb.freebsd.org/changeset/base/355037 > > > > Log: > > Push Giant down one

svn commit: r355054 - head/sys/netpfil/pf

2019-11-24 Thread Kristof Provost
Author: kp Date: Sun Nov 24 13:53:36 2019 New Revision: 355054 URL: https://svnweb.freebsd.org/changeset/base/355054 Log: pf: Add endline to all DPFPRINTF() DPFPRINTF() doesn't automatically add an endline, so be consistent and always add it. Modified: head/sys/netpfil/pf/pf.c

Re: svn commit: r355037 - head/sys/dev/pci

2019-11-24 Thread Konstantin Belousov
On Sat, Nov 23, 2019 at 11:43:52PM +, Warner Losh wrote: > Author: imp > Date: Sat Nov 23 23:43:52 2019 > New Revision: 355037 > URL: https://svnweb.freebsd.org/changeset/base/355037 > > Log: > Push Giant down one layer > > The /dev/pci device doesn't need GIANT, per se. However, one

Re: svn commit: r355045 - head/libexec/rtld-elf/powerpc

2019-11-24 Thread Konstantin Belousov
On Sun, Nov 24, 2019 at 04:35:29AM +, Justin Hibbits wrote: > Author: jhibbits > Date: Sun Nov 24 04:35:29 2019 > New Revision: 355045 > URL: https://svnweb.freebsd.org/changeset/base/355045 > > Log: > rtld/powerpc: Fix _rtld_bind_start for powerpcspe > > Summary: > We need to save

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

2019-11-24 Thread Konstantin Belousov
Author: kib Date: Sun Nov 24 12:35:16 2019 New Revision: 355053 URL: https://svnweb.freebsd.org/changeset/base/355053 Log: MFC r354789: kern_exec: p_osrel and p_fctl0 were obliterated by failed execve(2) attempt. Modified: stable/11/sys/kern/kern_exec.c Directory Properties: stable/11/

svn commit: r355052 - in stable/12/sys: sys vm

2019-11-24 Thread Konstantin Belousov
Author: kib Date: Sun Nov 24 12:30:41 2019 New Revision: 355052 URL: https://svnweb.freebsd.org/changeset/base/355052 Log: MFC r354790: Add elf image flag to disable stack gap. Modified: stable/12/sys/sys/elf_common.h stable/12/sys/vm/vm_map.c Directory Properties: stable/12/ (props

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

2019-11-24 Thread Konstantin Belousov
Author: kib Date: Sun Nov 24 12:27:13 2019 New Revision: 355051 URL: https://svnweb.freebsd.org/changeset/base/355051 Log: MFC r354789: kern_exec: p_osrel and p_fctl0 were obliterated by failed execve(2) attempt. Modified: stable/12/sys/kern/kern_exec.c Directory Properties: stable/12/