Re: svn commit: r331269 - head/share/man/man9

2018-03-20 Thread Bruce Evans
On Tue, 20 Mar 2018, Warner Losh wrote: Log: Remove reference to lint. We no longer support it, so exceptions for it are no longer relevant. ... Modified: head/share/man/man9/style.9 == --- head/share/man/man9/style.9

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

2018-03-20 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 04:44:19 2018 New Revision: 331284 URL: https://svnweb.freebsd.org/changeset/base/331284 Log: Appease GCC 4.2 It mistakenly believes the 'static' keyword must come first. Fix PPC, Sparc64, and maybe MIPS world. Fallout from r331279. Reported by: tinder

svn commit: r331283 - head/sys/kern

2018-03-20 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 03:43:40 2018 New Revision: 331283 URL: https://svnweb.freebsd.org/changeset/base/331283 Log: Add missed sys/limits.h include Apparently header pollution on x86 hid its absense. Sorry, other arch users. Fix the missed header introduced in r331279. R

svn commit: r331282 - head/stand/lua

2018-03-20 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 03:16:14 2018 New Revision: 331282 URL: https://svnweb.freebsd.org/changeset/base/331282 Log: core.lua(8): Update to reflect recently added function clearCachedKernels Modified: head/stand/lua/core.lua.8 Modified: head/stand/lua/core.lua.8

svn commit: r331281 - head/stand/lua

2018-03-20 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 03:07:16 2018 New Revision: 331281 URL: https://svnweb.freebsd.org/changeset/base/331281 Log: lualoader: Add primitive hook module, use it to untangle bogus reference See: comments in the hook module about intended usage, as well as the introduced use for c

Re: svn commit: r331269 - head/share/man/man9

2018-03-20 Thread Rodney W. Grimes
> > On Mar 20, 2018 6:57 PM, "Rodney W. Grimes" > > wrote: > > > > > Author: imp > > > Date: Tue Mar 20 21:37:33 2018 > > > New Revision: 331269 > > > URL: https://svnweb.freebsd.org/changeset/base/331269 > > > > > > Log: > > > Remove reference to lint. We no longer support it, so exceptions fo

Re: svn commit: r331269 - head/share/man/man9

2018-03-20 Thread Warner Losh
On Mar 20, 2018 6:57 PM, "Rodney W. Grimes" wrote: > Author: imp > Date: Tue Mar 20 21:37:33 2018 > New Revision: 331269 > URL: https://svnweb.freebsd.org/changeset/base/331269 > > Log: > Remove reference to lint. We no longer support it, so exceptions for > it are no longer relevant. I stil

Re: svn commit: r331279 - in head: include lib/libc/gen lib/libc/sys lib/libc/tests/gen sys/compat/freebsd32 sys/conf sys/kern sys/sys tests/sys/kern usr.bin/truss

2018-03-20 Thread Ian Lepore
On Wed, 2018-03-21 at 01:15 +, Conrad Meyer wrote: > Author: cem > Date: Wed Mar 21 01:15:45 2018 > New Revision: 331279 > URL: https://svnweb.freebsd.org/changeset/base/331279 > > Log: >   Implement getrandom(2) and getentropy(3) >    >   The general idea here is to provide userspace programs

svn commit: r331280 - in head/sys: compat/freebsd32 kern sys

2018-03-20 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 01:17:01 2018 New Revision: 331280 URL: https://svnweb.freebsd.org/changeset/base/331280 Log: Regenerate sysent files after r331279. Modified: head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/compat/freebsd3

svn commit: r331279 - in head: include lib/libc/gen lib/libc/sys lib/libc/tests/gen sys/compat/freebsd32 sys/conf sys/kern sys/sys tests/sys/kern usr.bin/truss

2018-03-20 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 01:15:45 2018 New Revision: 331279 URL: https://svnweb.freebsd.org/changeset/base/331279 Log: Implement getrandom(2) and getentropy(3) The general idea here is to provide userspace programs with well-defined sources of entropy, in a fashion that doesn't requir

Re: svn commit: r331269 - head/share/man/man9

2018-03-20 Thread Rodney W. Grimes
> Author: imp > Date: Tue Mar 20 21:37:33 2018 > New Revision: 331269 > URL: https://svnweb.freebsd.org/changeset/base/331269 > > Log: > Remove reference to lint. We no longer support it, so exceptions for > it are no longer relevant. I still believe this is putting the cart before the horse:

Re: svn commit: r331252 - in head/sys/amd64: amd64 include

2018-03-20 Thread Oliver Pinter
On Tuesday, March 20, 2018, Konstantin Belousov wrote: > Author: kib > Date: Tue Mar 20 17:43:50 2018 > New Revision: 331252 > URL: https://svnweb.freebsd.org/changeset/base/331252 > > Log: > Provide KPI for handling of rw/ro kernel text. > > This is a pure syntax patch to create an interface

svn commit: r331278 - head/sys/kern

2018-03-20 Thread Jamie Gritton
Author: jamie Date: Tue Mar 20 23:08:42 2018 New Revision: 331278 URL: https://svnweb.freebsd.org/changeset/base/331278 Log: Represent boolean jail options as an array of structures containing the flag and both the regular and "no" names, instead of two different string arrays whose indices

svn commit: r331277 - head

2018-03-20 Thread Ed Maste
after renaming to .inc in r331254 +# 20180320 remove stale generated assym.s after renaming to .inc in r331254 .if exists(${OBJTOP}/sys/${KERNCONF}/assym.s) @echo Removing stale generated assym files @rm -f ${OBJTOP}/sys/${KERNCONF}/assym

Re: svn commit: r331259 - head/stand/lua

2018-03-20 Thread Devin Teske
> On Mar 20, 2018, at 1:26 PM, Kyle Evans wrote: > > Author: kevans > Date: Tue Mar 20 20:26:24 2018 > New Revision: 331259 > URL: https://svnweb.freebsd.org/changeset/base/331259 > > Log: > lualoader: Use less atomic options for resetting colors/attributes > > Noted by dteske: > > CSI 1m

svn commit: r331275 - head/sys/net

2018-03-20 Thread Alexander V. Chernikov
Author: melifaro Date: Tue Mar 20 22:57:06 2018 New Revision: 331275 URL: https://svnweb.freebsd.org/changeset/base/331275 Log: Use count(9) api for the bpf(4) statistics. Currently each bfp descriptor uses u64 variables to maintain its counters. On interfaces with high packet rate this l

svn commit: r331274 - in head/share/man: man4 man9

2018-03-20 Thread Sevan Janiyan
Author: sevan (doc committer) Date: Tue Mar 20 22:41:26 2018 New Revision: 331274 URL: https://svnweb.freebsd.org/changeset/base/331274 Log: Extend the description of ALTQ to call it a system which is a framework in altq(4) to match altq(9). This makes preserving the history section as the a

svn commit: r331273 - head/sys/cam/scsi

2018-03-20 Thread Warner Losh
Author: imp Date: Tue Mar 20 22:07:45 2018 New Revision: 331273 URL: https://svnweb.freebsd.org/changeset/base/331273 Log: Release the "TUR" reference when clearing the TUR work flag. We mostly do this right, except when there's no BP and we do a TUR by request. In that case, we clear the fl

svn commit: r331272 - head/sys/kern

2018-03-20 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 20 22:05:21 2018 New Revision: 331272 URL: https://svnweb.freebsd.org/changeset/base/331272 Log: At this point iwmesg isn't initialized yet, so print pointer to lock rather than panic before panicing. Modified: head/sys/kern/kern_lock.c Modified: head/sys/kern

svn commit: r331271 - in head/sys/dev: cardbus pccard pccbb

2018-03-20 Thread Warner Losh
Author: imp Date: Tue Mar 20 22:01:18 2018 New Revision: 331271 URL: https://svnweb.freebsd.org/changeset/base/331271 Log: Push down Giant one layer. In the days of yore, back when Penitums were the new kids on the block and F00F hacks were all the rage, one needed to take out Giant to do an

svn commit: r331270 - head/usr.sbin/syslogd

2018-03-20 Thread Gleb Smirnoff
Author: glebius Date: Tue Mar 20 22:00:58 2018 New Revision: 331270 URL: https://svnweb.freebsd.org/changeset/base/331270 Log: Fix whitespace issues in r330034. No functional changes. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c

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

2018-03-20 Thread Warner Losh
Author: imp Date: Tue Mar 20 21:37:33 2018 New Revision: 331269 URL: https://svnweb.freebsd.org/changeset/base/331269 Log: Remove reference to lint. We no longer support it, so exceptions for it are no longer relevant. Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/sty

svn commit: r331268 - head/sys/cddl/dev/fbt/x86

2018-03-20 Thread Mark Johnston
Author: markj Date: Tue Mar 20 21:36:35 2018 New Revision: 331268 URL: https://svnweb.freebsd.org/changeset/base/331268 Log: Revert part of r331264: disable interrupts before disabling WP. We might otherwise be preempted, leaving WP disabled while another thread runs on the CPU. Repo

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

2018-03-20 Thread Warner Losh
Author: imp Date: Tue Mar 20 21:31:18 2018 New Revision: 331267 URL: https://svnweb.freebsd.org/changeset/base/331267 Log: Update to include information about using SPDX-License-Identifier lines. Modified: head/share/man/man9/style.9 Modified: head/share/man/man9/style.9 ==

svn commit: r331266 - head/sys/sys

2018-03-20 Thread Warner Losh
Author: imp Date: Tue Mar 20 21:18:40 2018 New Revision: 331266 URL: https://svnweb.freebsd.org/changeset/base/331266 Log: Drop support for lint for cdefs.h. Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

svn commit: r331265 - head/sys/sys

2018-03-20 Thread Warner Losh
Author: imp Date: Tue Mar 20 21:17:48 2018 New Revision: 331265 URL: https://svnweb.freebsd.org/changeset/base/331265 Log: Remove obsolete lint support. Modified: head/sys/sys/_stdarg.h Modified: head/sys/sys/_stdarg.h =

svn commit: r331264 - head/sys/cddl/dev/fbt/x86

2018-03-20 Thread Mark Johnston
Author: markj Date: Tue Mar 20 21:16:26 2018 New Revision: 331264 URL: https://svnweb.freebsd.org/changeset/base/331264 Log: Make use of the KPI added in r331252. MFC after:2 weeks Modified: head/sys/cddl/dev/fbt/x86/fbt_isa.c Modified: head/sys/cddl/dev/fbt/x86/fbt_isa.c ==

svn commit: r331263 - head/sys/i386/i386

2018-03-20 Thread Ed Maste
Author: emaste Date: Tue Mar 20 21:04:47 2018 New Revision: 331263 URL: https://svnweb.freebsd.org/changeset/base/331263 Log: Restore close quote lost in r331254 Modified: head/sys/i386/i386/exception.s Modified: head/sys/i386/i386/exception.s

svn commit: r331261 - head/sys/cam/scsi

2018-03-20 Thread John Baldwin
Author: jhb Date: Tue Mar 20 21:00:45 2018 New Revision: 331261 URL: https://svnweb.freebsd.org/changeset/base/331261 Log: Use instead of in userland. is a kernel-only header. The standard header for userland is . Using the standard header in userland avoids weird build errors when

svn commit: r331260 - head/lib/libc/sys

2018-03-20 Thread Mark Johnston
Author: markj Date: Tue Mar 20 20:45:47 2018 New Revision: 331260 URL: https://svnweb.freebsd.org/changeset/base/331260 Log: Remove a lingering inaccuracy from mlock.2. User wirings of the same address range don't stack. Noted by: Dan Nelson MFC after:3 days Modified: head

Re: svn commit: r331257 - head/stand/lua

2018-03-20 Thread Kyle Evans
On Tue, Mar 20, 2018 at 3:15 PM, Devin Teske wrote: > >> On Mar 20, 2018, at 1:05 PM, Kyle Evans wrote: >> >> Author: kevans >> Date: Tue Mar 20 20:05:11 2018 >> New Revision: 331257 >> URL: https://svnweb.freebsd.org/changeset/base/331257 >> >> Log: >> lualoader: Reset attributes and color sche

svn commit: r331259 - head/stand/lua

2018-03-20 Thread Kyle Evans
Author: kevans Date: Tue Mar 20 20:26:24 2018 New Revision: 331259 URL: https://svnweb.freebsd.org/changeset/base/331259 Log: lualoader: Use less atomic options for resetting colors/attributes Noted by dteske: CSI 1m ... CSI 22m CSI 2m ... CSI 22m CSI 4m ... CSI 24m CSI 5m ... CS

svn commit: r331258 - in head/sys: amd64/amd64 amd64/include x86/include x86/x86

2018-03-20 Thread Konstantin Belousov
Author: kib Date: Tue Mar 20 20:20:49 2018 New Revision: 331258 URL: https://svnweb.freebsd.org/changeset/base/331258 Log: Move the CR0.WP manipulation KPI to x86. This should allow to avoid some #ifdefs in the common x86/ code. Requested by: markj Sponsored by: The FreeBSD Foundatio

Re: svn commit: r331257 - head/stand/lua

2018-03-20 Thread Devin Teske
> On Mar 20, 2018, at 1:05 PM, Kyle Evans wrote: > > Author: kevans > Date: Tue Mar 20 20:05:11 2018 > New Revision: 331257 > URL: https://svnweb.freebsd.org/changeset/base/331257 > > Log: > lualoader: Reset attributes and color scheme with color.highlight() > > Previously, we sent a CSI 0m

Re: svn commit: r331226 - in head/sys: amd64/linux amd64/linux32 i386/linux

2018-03-20 Thread Bruce Evans
On Tue, 20 Mar 2018, Ed Maste wrote: On 20 March 2018 at 04:19, Bruce Evans wrote: It is preferable to have a well-chosen (short...) prefix. The linux emulator mostly uses l_ for internal names. That is a bit too short for external names. l_ is too short. The only reasonable alternative i

svn commit: r331257 - head/stand/lua

2018-03-20 Thread Kyle Evans
Author: kevans Date: Tue Mar 20 20:05:11 2018 New Revision: 331257 URL: https://svnweb.freebsd.org/changeset/base/331257 Log: lualoader: Reset attributes and color scheme with color.highlight() Previously, we sent a CSI 0m sequence to reset attributes, which also reset the color scheme if

svn commit: r331256 - head/sys/amd64/linux

2018-03-20 Thread Ed Maste
Author: emaste Date: Tue Mar 20 19:28:52 2018 New Revision: 331256 URL: https://svnweb.freebsd.org/changeset/base/331256 Log: Make linuxulator fn declaration match definition I accidentally swapped 'linux_fixup_elf' to 'linux_elf_fixup' in amd64's declaration (only), while bringing this

svn commit: r331255 - head

2018-03-20 Thread Ed Maste
Author: emaste Date: Tue Mar 20 18:02:21 2018 New Revision: 331255 URL: https://svnweb.freebsd.org/changeset/base/331255 Log: Remove stale generated assym.s files after r331254 So that -DNO_CLEAN builds work. This should be reverted after a sufficient transition period (perhaps 3 or

svn commit: r331254 - in head/sys: amd64/acpica amd64/amd64 amd64/ia32 amd64/linux amd64/linux32 amd64/sgx arm/arm arm64/arm64 cddl/dev/dtrace/aarch64 cddl/dev/dtrace/amd64 cddl/dev/dtrace/arm cddl...

2018-03-20 Thread Ed Maste
Author: emaste Date: Tue Mar 20 17:58:51 2018 New Revision: 331254 URL: https://svnweb.freebsd.org/changeset/base/331254 Log: Rename assym.s to assym.inc assym is only to be included by other .s files, and should never actually be assembled by itself. Reviewed by: imp, bdrewery (ear

svn commit: r331253 - head/sys/amd64/amd64

2018-03-20 Thread Konstantin Belousov
Author: kib Date: Tue Mar 20 17:47:29 2018 New Revision: 331253 URL: https://svnweb.freebsd.org/changeset/base/331253 Log: Disable write protection around patching of XSAVE instruction in the context switch code. Some BIOSes give control to the OS with CR0.WP already set, making the ker

svn commit: r331252 - in head/sys/amd64: amd64 include

2018-03-20 Thread Konstantin Belousov
Author: kib Date: Tue Mar 20 17:43:50 2018 New Revision: 331252 URL: https://svnweb.freebsd.org/changeset/base/331252 Log: Provide KPI for handling of rw/ro kernel text. This is a pure syntax patch to create an interface to enable and later restore write access to the kernel text and othe

svn commit: r331248 - head/sys/netipsec

2018-03-20 Thread John Baldwin
Author: jhb Date: Tue Mar 20 17:05:23 2018 New Revision: 331248 URL: https://svnweb.freebsd.org/changeset/base/331248 Log: Set the proper vnet in IPsec callback functions. When using hardware crypto engines, the callback functions used to handle an IPsec packet after it has been encrypted

Re: svn commit: r331057 - head/sys/compat/linux

2018-03-20 Thread John Baldwin
On Monday, March 19, 2018 05:32:22 PM Ed Maste wrote: > On 16 March 2018 at 17:08, John Baldwin wrote: > > On Friday, March 16, 2018 02:51:47 PM Ed Maste wrote: > >> Author: emaste > >> Date: Fri Mar 16 14:51:47 2018 > >> New Revision: 331057 > >> URL: https://svnweb.freebsd.org/changeset/base/331

Re: svn commit: r331226 - in head/sys: amd64/linux amd64/linux32 i386/linux

2018-03-20 Thread Ed Maste
On 20 March 2018 at 04:19, Bruce Evans wrote: > > It is preferable to have a well-chosen (short...) prefix. The linux > emulator mostly uses l_ for internal names. That is a bit too short > for external names. l_ is too short. The only reasonable alternative is probably lnx_ but saving two char

svn commit: r331247 - head/sys/vm

2018-03-20 Thread Konstantin Belousov
Author: kib Date: Tue Mar 20 16:17:55 2018 New Revision: 331247 URL: https://svnweb.freebsd.org/changeset/base/331247 Log: Check for wrap-around in vm_phys_alloc_seg_contig(). It is possible to provide insane values for size in contigmalloc(9) request, which usually not reaches the phys a

svn commit: r331245 - in head/sys: kern sys

2018-03-20 Thread Mark Johnston
Author: markj Date: Tue Mar 20 15:51:05 2018 New Revision: 331245 URL: https://svnweb.freebsd.org/changeset/base/331245 Log: Drop KTR_CONTENTION. It is incomplete, has not been adopted in the other locking primitives, and we have other means of measuring lock contention (lock_profiling,

svn commit: r331244 - in head: contrib/llvm/projects/libunwind/include contrib/llvm/projects/libunwind/src share/mk

2018-03-20 Thread John Baldwin
Author: jhb Date: Tue Mar 20 15:44:17 2018 New Revision: 331244 URL: https://svnweb.freebsd.org/changeset/base/331244 Log: Add support for MIPS to LLVM's libunwind. This is originally based on a patch from David Chisnall for soft-float N64 but has since been updated to support O32, N32, a

Re: svn commit: r331226 - in head/sys: amd64/linux amd64/linux32 i386/linux

2018-03-20 Thread Ian Lepore
On Tue, 2018-03-20 at 19:19 +1100, Bruce Evans wrote: > The random verb order is especially confsing for 'fix' and 'fixup'. > 'fixup' is a noun, but is sometimes abused as a verb and adverb instead > of the correct verb and adverb 'fix up'.  When it is placed at the > end, e.g., for limit_fixup(),

svn commit: r331242 - head

2018-03-20 Thread Andrew Turner
Author: andrew Date: Tue Mar 20 13:39:41 2018 New Revision: 331242 URL: https://svnweb.freebsd.org/changeset/base/331242 Log: Remove the entry about loader.efi needing to be updated before the kernel. The kernel now handles the situation it's warning against as of r331241. Sponsored by: D

svn commit: r331241 - head/sys/dev/efidev

2018-03-20 Thread Andrew Turner
Author: andrew Date: Tue Mar 20 13:35:20 2018 New Revision: 331241 URL: https://svnweb.freebsd.org/changeset/base/331241 Log: Check if the gettime runtime service is valid. The U-Boot efi runtime service expects us to set the address map before calling any runtime services. It will then r

svn commit: r331240 - head/sys/cam/nvme

2018-03-20 Thread Warner Losh
Author: imp Date: Tue Mar 20 13:14:10 2018 New Revision: 331240 URL: https://svnweb.freebsd.org/changeset/base/331240 Log: Kill assert I shouldn't have committed Modified: head/sys/cam/nvme/nvme_da.c Modified: head/sys/cam/nvme/nvme_da.c ==

Re: svn commit: r331212 - in head: etc/mtree stand/defaults

2018-03-20 Thread Kyle Evans
On Mon, Mar 19, 2018 at 8:08 PM, Oliver Pinter wrote: > > > On Monday, March 19, 2018, Kyle Evans wrote: >> >> Author: kevans >> Date: Mon Mar 19 16:16:12 2018 >> New Revision: 331212 >> URL: https://svnweb.freebsd.org/changeset/base/331212 >> >> Log: >> Move /boot/overlays to /boot/dtb/overlay

Re: svn commit: r331226 - in head/sys: amd64/linux amd64/linux32 i386/linux

2018-03-20 Thread Bruce Evans
On Mon, 19 Mar 2018, Ed Maste wrote: Log: Rename linuxulator functions with linux_ prefix It's preferable to have a consistent prefix. This also reduces differences between the three linux*_sysvec.c files. It is preferable to have a well-chosen (short...) prefix. The linux emulator mostl