svn commit: r332986 - head/usr.sbin/makefs

2018-04-24 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 25 02:43:53 2018 New Revision: 332986 URL: https://svnweb.freebsd.org/changeset/base/332986 Log: makefs: Use ENODATA instead of ENOMSG as a translation for missing ENOATTR. This is consistent with what some linux filesystems do and has been adopted in our linuxul

svn commit: r332984 - head/sys/powerpc/ofw

2018-04-24 Thread Justin Hibbits
Author: jhibbits Date: Wed Apr 25 02:42:11 2018 New Revision: 332984 URL: https://svnweb.freebsd.org/changeset/base/332984 Log: Increase the fdtmemreserv array limit to boot on POWER9 Discussing with others, this needs to be at least 20 to boot on some POWER9 nodes. Linux made a similar

svn commit: r332985 - head/stand/forth

2018-04-24 Thread Kyle Evans
Author: kevans Date: Wed Apr 25 02:42:57 2018 New Revision: 332985 URL: https://svnweb.freebsd.org/changeset/base/332985 Log: forthloader: Remove "EFI boot environment message" Contrary to what the message says, this is not only executed in an EFI context- it provides functions for use in

Re: svn commit: r332967 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-24 Thread Cy Schubert
In message , Devin Teske writ es: > > > --Apple-Mail=_782CDA06-B0D5-4122-82C6-1541344DA2A3 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=us-ascii > > > > On Apr 24, 2018, at 12:58 PM, Cy Schubert = > wrote: > >=20 > > In message <201804241955.w3ojtcls0

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

2018-04-24 Thread Conrad Meyer
I am fine with any optimization to this path you like, so long as locks are neutered in panic and don't cause secondary panics. On Tue, Apr 24, 2018 at 4:22 PM, Mateusz Guzik wrote: > On Tue, Apr 24, 2018 at 8:41 PM, Conrad Meyer wrote: >> >> Author: cem >> Date: Tue Apr 24 18:41:14 2018 >> New

Re: svn commit: r332967 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-24 Thread Devin Teske
> On Apr 24, 2018, at 4:22 PM, Devin Teske wrote: > >> >> On Apr 24, 2018, at 12:58 PM, Cy Schubert > > wrote: >> >> In message <201804241955.w3ojtcls014...@repo.freebsd.org >> >, Sean Bruno >> writes: >>>

Re: svn commit: r332967 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-24 Thread Devin Teske
> On Apr 24, 2018, at 12:58 PM, Cy Schubert wrote: > > In message <201804241955.w3ojtcls014...@repo.freebsd.org>, Sean Bruno > writes: >> Author: sbruno >> Date: Tue Apr 24 19:55:12 2018 >> New Revision: 332967 >> URL: https://svnweb.freebsd.org/changeset/base/332967 >> >> Log: >> Revert r332

svn commit: r332976 - head/tests/sys/kern

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 23:22:45 2018 New Revision: 332976 URL: https://svnweb.freebsd.org/changeset/base/332976 Log: Shorten some recently-added lines that are an extra indent over 80 columns. Modified: head/tests/sys/kern/ptrace_test.c Modified: head/tests/sys/kern/ptrace_test.c =

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

2018-04-24 Thread Mateusz Guzik
On Tue, Apr 24, 2018 at 8:41 PM, Conrad Meyer wrote: > Author: cem > Date: Tue Apr 24 18:41:14 2018 > New Revision: 332957 > URL: https://svnweb.freebsd.org/changeset/base/332957 > > Log: > lockmgr: Add missed neutering during panic > > r313683 introduced new lockmgr APIs that missed the pani

svn commit: r332975 - head/share/man/man3

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 23:20:15 2018 New Revision: 332975 URL: https://svnweb.freebsd.org/changeset/base/332975 Log: Document the TRAP_CAP code for SIGTRAP. MFC after:3 days Modified: head/share/man/man3/siginfo.3 Modified: head/share/man/man3/siginfo.3 ===

svn commit: r332974 - in head/sys: amd64/include kern vm

2018-04-24 Thread Mark Johnston
Author: markj Date: Tue Apr 24 21:15:54 2018 New Revision: 332974 URL: https://svnweb.freebsd.org/changeset/base/332974 Log: Improve VM page queue scalability. Currently both the page lock and a page queue lock must be held in order to enqueue, dequeue or requeue a page in a given page qu

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

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 20:49:16 2018 New Revision: 332973 URL: https://svnweb.freebsd.org/changeset/base/332973 Log: Make the sysctl machdep.idle also a tunable. It is applied before it is possible for idle threads to execute on any CPU, allowing to work around against some bugs.

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

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 20:33:08 2018 New Revision: 332972 URL: https://svnweb.freebsd.org/changeset/base/332972 Log: Extend ap_boot_mtx scope to also cover mca_init(). Otherwise, under bootverbose, the lapic_enable_cmc() banner 'lapicX: CMCI unmasked' is printed by several CPUs in p

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

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 20:29:40 2018 New Revision: 332971 URL: https://svnweb.freebsd.org/changeset/base/332971 Log: Ensure that cmci_monitor() is not executed in parallel, since shared machine check banks must be only monitored by single CPU. Noted and reviewed by:jhb Spo

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

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 20:22:30 2018 New Revision: 332970 URL: https://svnweb.freebsd.org/changeset/base/332970 Log: Use IS_BSP() macro. Noted and reviewed by:jhb Sponsored by: The FreeBSD Foundation MFC after:3 days Differential revision:https://reviews.free

svn commit: r332968 - head/sys/vm

2018-04-24 Thread Mark Johnston
Author: markj Date: Tue Apr 24 20:05:45 2018 New Revision: 332968 URL: https://svnweb.freebsd.org/changeset/base/332968 Log: Add a UMA zone flag to disable the use of buckets. This allows the creation of zones which don't do any caching in front of the keg. If the zone is a cache zone, th

Re: svn commit: r332967 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-24 Thread Cy Schubert
In message <201804241955.w3ojtcls014...@repo.freebsd.org>, Sean Bruno writes: > Author: sbruno > Date: Tue Apr 24 19:55:12 2018 > New Revision: 332967 > URL: https://svnweb.freebsd.org/changeset/base/332967 > > Log: > Revert r332894 at the request of the submitter. > > Submitted by: J

svn commit: r332967 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-24 Thread Sean Bruno
Author: sbruno Date: Tue Apr 24 19:55:12 2018 New Revision: 332967 URL: https://svnweb.freebsd.org/changeset/base/332967 Log: Revert r332894 at the request of the submitter. Submitted by: Johannes Lundberg Sponsored by: Limelight Networks Modified: head/cddl/lib/libdtrace/tcp.d head

svn commit: r332966 - in head: share/man/man4 sys/dev/lmc

2018-04-24 Thread Ed Maste
Author: emaste Date: Tue Apr 24 19:51:05 2018 New Revision: 332966 URL: https://svnweb.freebsd.org/changeset/base/332966 Log: Add deprecation notice for lmc(4) We intend to remove support before FreeBSD 12 is branched. These are available only as 32-bit PCI devices. The driver has an am

svn commit: r332965 - head/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD

2018-04-24 Thread Ed Maste
Author: emaste Date: Tue Apr 24 19:26:58 2018 New Revision: 332965 URL: https://svnweb.freebsd.org/changeset/base/332965 Log: lldb: remove assertion that target_arch is FreeBSD The target is not necessarily a FreeBSD binary - for example, it may be a Linux binary running under the linuxul

svn commit: r332964 - head/usr.bin/kdump

2018-04-24 Thread Ed Maste
Author: emaste Date: Tue Apr 24 19:23:26 2018 New Revision: 332964 URL: https://svnweb.freebsd.org/changeset/base/332964 Log: kdump: simplify/remove per-arch #ifdefs It is acceptable for syscallabi to map SV_ABI to SYSDECODE_ABI on all architectures; libsysdecode will return not-found sen

Re: svn commit: r332894 - in head: cddl/lib/libdtrace sys/kern sys/netinet sys/netinet6 sys/sys

2018-04-24 Thread Mark Johnston
On Mon, Apr 23, 2018 at 07:51:00PM +, Sean Bruno wrote: > Author: sbruno > Date: Mon Apr 23 19:51:00 2018 > New Revision: 332894 > URL: https://svnweb.freebsd.org/changeset/base/332894 > > Log: > Load balance sockets with new SO_REUSEPORT_LB option > > This patch adds a new socket optio

svn commit: r332963 - head/sys/dev/usb/serial

2018-04-24 Thread Emmanuel Vadot
Author: manu Date: Tue Apr 24 19:11:05 2018 New Revision: 332963 URL: https://svnweb.freebsd.org/changeset/base/332963 Log: uslcom: Both CP2104 and CP2105 can support up to 2Mbps baudrate MFC after:1 week Modified: head/sys/dev/usb/serial/uslcom.c Modified: head/sys/dev/usb/serial/u

svn commit: r332962 - head/sys/kern

2018-04-24 Thread Conrad Meyer
Author: cem Date: Tue Apr 24 19:10:51 2018 New Revision: 332962 URL: https://svnweb.freebsd.org/changeset/base/332962 Log: Do not totally silence suppressed secondary kasserts unless debug.kassert.do_log is disabled To totally silence and ignore secondary kassert violations after a primary

svn commit: r332961 - head/sys/dev/usb/serial

2018-04-24 Thread Emmanuel Vadot
Author: manu Date: Tue Apr 24 19:09:53 2018 New Revision: 332961 URL: https://svnweb.freebsd.org/changeset/base/332961 Log: uslcom: Apply style(9) and be consistant with function names MFC after:1 week Modified: head/sys/dev/usb/serial/uslcom.c Modified: head/sys/dev/usb/serial/uslc

svn commit: r332960 - head/sys/kern

2018-04-24 Thread Conrad Meyer
Author: cem Date: Tue Apr 24 18:59:40 2018 New Revision: 332960 URL: https://svnweb.freebsd.org/changeset/base/332960 Log: Fix debug.kassert.do_log description text This has been an (incorrect) copy-paste duplicate of debug.kassert.warn_only since it was originally committed in r243980.

svn commit: r332959 - head/sys/kern

2018-04-24 Thread Conrad Meyer
Author: cem Date: Tue Apr 24 18:54:20 2018 New Revision: 332959 URL: https://svnweb.freebsd.org/changeset/base/332959 Log: panic: Optionally, trace secondary panics To diagnose and fix secondary panics, it is useful to have a stack trace. When panic tracing is enabled, optionally trace se

svn commit: r332958 - head/sys/kern

2018-04-24 Thread Jonathan T. Looney
Author: jtl Date: Tue Apr 24 18:47:35 2018 New Revision: 332958 URL: https://svnweb.freebsd.org/changeset/base/332958 Log: Update r332860 by changing the default from suppressing post-panic assertions to not suppressing post-panic assertions. There are some post-panic assertions that are

svn commit: r332957 - head/sys/kern

2018-04-24 Thread Conrad Meyer
Author: cem Date: Tue Apr 24 18:41:14 2018 New Revision: 332957 URL: https://svnweb.freebsd.org/changeset/base/332957 Log: lockmgr: Add missed neutering during panic r313683 introduced new lockmgr APIs that missed the panic-time neutering present in the rest of our locks. Correct that by

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

2018-04-24 Thread Conrad Meyer
Next time you encounter something like this, please file a bug. There's no reason to have broken kernel dumps for a year. It took 10 minutes to diagnose. On Tue, Apr 24, 2018 at 10:38 AM, Andrew Gallatin wrote: > On 04/24/18 13:24, Jonathan T. Looney wrote: >> >> On Mon, Apr 23, 2018 at 6:04 PM,

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

2018-04-24 Thread John Baldwin
On Tuesday, April 24, 2018 01:24:30 PM Jonathan T. Looney wrote: > On Mon, Apr 23, 2018 at 6:04 PM, John Baldwin wrote: > > > > I think this is actually a key question. In my experience to date I have > not > > encountered a large number of post-panic assertion failures. Given that > > we alread

svn commit: r332951 - in head/sys/mips: include mips

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 17:53:16 2018 New Revision: 332951 URL: https://svnweb.freebsd.org/changeset/base/332951 Log: Fix PT_STEP single-stepping for mips. Note that GDB at least implements single stepping for MIPS using software breakpoints explicitly rather than using PT_STEP, so t

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

2018-04-24 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 24 17:46:33 2018 New Revision: 332950 URL: https://svnweb.freebsd.org/changeset/base/332950 Log: Use more common format for sysctls/tunables descriptions in USB man pages. MFC after:2 weeks Sponsored by: The FreeBSD Foundation Modified: head/share/man/ma

svn commit: r332949 - head/sys/net

2018-04-24 Thread Mark Johnston
Author: markj Date: Tue Apr 24 17:42:25 2018 New Revision: 332949 URL: https://svnweb.freebsd.org/changeset/base/332949 Log: Use dead_bpf_if instead of bp_null. This fixes a -Wunused error when DEV_BPF and NETGRAPH_BPF are not defined. Also remove a stray semicolon added in r332812.

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

2018-04-24 Thread Mark Johnston
On Tue, Apr 24, 2018 at 01:24:30PM -0400, Jonathan T. Looney wrote: > On Mon, Apr 23, 2018 at 6:04 PM, John Baldwin wrote: > > > > I think this is actually a key question. In my experience to date I have > not > > encountered a large number of post-panic assertion failures. Given that > > we alr

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

2018-04-24 Thread Andrew Gallatin
On 04/24/18 13:24, Jonathan T. Looney wrote: On Mon, Apr 23, 2018 at 6:04 PM, John Baldwin > wrote: > > I think this is actually a key question.  In my experience to date I have not > encountered a large number of post-panic assertion failures.  Given that > we alre

svn commit: r332945 - head/sys/mips/mips

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 17:31:20 2018 New Revision: 332945 URL: https://svnweb.freebsd.org/changeset/base/332945 Log: Don't fetch the current instruction for faults on user "trap" instructions. The value of 'instr' was not used to handle the fault. Reported by: GCC's -Wunused-but

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

2018-04-24 Thread Jonathan T. Looney
On Mon, Apr 23, 2018 at 6:04 PM, John Baldwin wrote: > > I think this is actually a key question. In my experience to date I have not > encountered a large number of post-panic assertion failures. Given that > we already break all locks and disable assertions for locks I'd be curious > which ass

svn commit: r332944 - head/sys/mips/mips

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 17:22:17 2018 New Revision: 332944 URL: https://svnweb.freebsd.org/changeset/base/332944 Log: Use a cleaner test for the branch delay (BD) bit in DELAYBRANCH. Rather than casting the value of cause to int and checking for a negative value to determine if bit 3

svn commit: r332940 - head/lib/libc/secure

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 15:59:39 2018 New Revision: 332940 URL: https://svnweb.freebsd.org/changeset/base/332940 Log: Carefully update stack guard bytes inside __guard_setup(). This is necessary to make sure that functions that can have stack protection are not used to update the sta

svn commit: r332936 - in head/sys: compat/linprocfs fs/procfs

2018-04-24 Thread Eitan Adler
Author: eadler Date: Tue Apr 24 14:49:09 2018 New Revision: 332936 URL: https://svnweb.freebsd.org/changeset/base/332936 Log: [procfs] Split procfs_attr into multiple functions Reviewed by: des, kib Discussed with: mmacy Differential Revision:https://reviews.freebsd.org/D

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

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 14:02:46 2018 New Revision: 332934 URL: https://svnweb.freebsd.org/changeset/base/332934 Log: Use relaxed atomics to access the monitor line. We must ensure that accesses occur, they do not have any other compiler-visible effects. Bruce found some situations

svn commit: r332932 - head/sys/amd64/vmm

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 13:44:19 2018 New Revision: 332932 URL: https://svnweb.freebsd.org/changeset/base/332932 Log: Correct undesirable interaction between caching of %cr4 in bhyve and invltlb_glob(). Reviewed by: grehan, jhb Sponsored by: The FreeBSD Foundation MFC after:

svn commit: r332931 - in head/sys: conf dev/amdsbwd

2018-04-24 Thread Eitan Adler
Author: eadler Date: Tue Apr 24 13:07:17 2018 New Revision: 332931 URL: https://svnweb.freebsd.org/changeset/base/332931 Log: [amdsbwd] teach amdsbwd that it has options AMDSBWD_DEBUG was previously checked for as a #define but it was not possible to define it Reviewed by: kevans

svn commit: r332930 - in head/sys: compat/linux conf i386/i386 i386/include i386/linux modules/linux

2018-04-24 Thread Konstantin Belousov
Author: kib Date: Tue Apr 24 12:50:21 2018 New Revision: 332930 URL: https://svnweb.freebsd.org/changeset/base/332930 Log: Fix futexes on i386 after the 4/4G split. Use proper method to access userspace. For now, only the slow copyout path is implemented. Reported and tested by:

svn commit: r332918 - in head/sys: dev/acpica x86/acpica

2018-04-24 Thread Andriy Gapon
Author: avg Date: Tue Apr 24 09:42:58 2018 New Revision: 332918 URL: https://svnweb.freebsd.org/changeset/base/332918 Log: add a new ACPI suspend debugging knob, debug.acpi.suspend_deep_bounce This sysctl allows a deeper dive into the sleep abyss comparing to debug.acpi.suspend_bounce. W