svn commit: r331285 - head/share/misc

2018-03-21 Thread Eitan Adler
Author: eadler Date: Wed Mar 21 09:07:01 2018 New Revision: 331285 URL: https://svnweb.freebsd.org/changeset/base/331285 Log: [bsd-family-tree] Announce NetBSD 7.1.2 MFC After:3 days Modified: head/share/misc/bsd-family-tree Modified: head/share/misc/bsd-family-tree

svn commit: r331286 - stable/11/etc/rc.d

2018-03-21 Thread Kristof Provost
Author: kp Date: Wed Mar 21 09:55:19 2018 New Revision: 331286 URL: https://svnweb.freebsd.org/changeset/base/331286 Log: MFC r330108: pf: Apply $pf_flags when verifying the pf.conf file When checking the validity of the pf.conf file also include the user supplied pf_flags. These fla

svn commit: r331287 - stable/10/etc/rc.d

2018-03-21 Thread Kristof Provost
Author: kp Date: Wed Mar 21 09:55:49 2018 New Revision: 331287 URL: https://svnweb.freebsd.org/changeset/base/331287 Log: MFC r330108: pf: Apply $pf_flags when verifying the pf.conf file When checking the validity of the pf.conf file also include the user supplied pf_flags. These fla

svn commit: r331288 - stable/11/etc/rc.d

2018-03-21 Thread Kristof Provost
Author: kp Date: Wed Mar 21 09:57:05 2018 New Revision: 331288 URL: https://svnweb.freebsd.org/changeset/base/331288 Log: MFC 330105: pf: Do not flush on reload pfctl only takes the last '-F' argument into account, so this never did what was intended. Moreover, there is no reaso

svn commit: r331289 - stable/10/etc/rc.d

2018-03-21 Thread Kristof Provost
Author: kp Date: Wed Mar 21 09:57:29 2018 New Revision: 331289 URL: https://svnweb.freebsd.org/changeset/base/331289 Log: MFC 330105: pf: Do not flush on reload pfctl only takes the last '-F' argument into account, so this never did what was intended. Moreover, there is no reaso

svn commit: r331290 - head/sys/sys

2018-03-21 Thread Konstantin Belousov
Author: kib Date: Wed Mar 21 10:26:39 2018 New Revision: 331290 URL: https://svnweb.freebsd.org/changeset/base/331290 Log: Move sysinit and sysuninit linker sets in the data (writeable) section. Both sets are sorted in place, and with the introduction of read-only permissions on the amd64

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-21 Thread Konstantin Belousov
On Wed, Mar 21, 2018 at 01:15:45AM +, Conrad Meyer wrote: > +int > +getentropy(void *buf, size_t buflen) > +{ > + ssize_t rd; > + > + if (buflen > 256) { > + errno = EIO; > + return (-1); > + } > + > + while (buflen > 0) { > + rd = getrandom(b

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

2018-03-21 Thread Warner Losh
Author: imp Date: Wed Mar 21 12:55:59 2018 New Revision: 331291 URL: https://svnweb.freebsd.org/changeset/base/331291 Log: Revert r331273: "Release the "TUR" reference when clearing the TUR work flag. We mostly" It exposes other issues, so revert to the pervious state of known issues. Mod

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-21 Thread Pedro Giffuni
On 20/03/2018 20:40, Ian Lepore wrote: 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

svn commit: r331292 - head/release/arm64

2018-03-21 Thread Glen Barber
Author: gjb Date: Wed Mar 21 14:36:16 2018 New Revision: 331292 URL: https://svnweb.freebsd.org/changeset/base/331292 Log: Following ports commit r465175, avoid fetch(1) to obtain overlays and DTB files for the RPI3. Submitted by: manu Sponsored by: The FreeBSD Foundation Modified: h

svn commit: r331293 - in head: etc/mtree lib lib/libipt share/mk

2018-03-21 Thread Ruslan Bukin
Author: br Date: Wed Mar 21 14:37:04 2018 New Revision: 331293 URL: https://svnweb.freebsd.org/changeset/base/331293 Log: Add new shared library -- libipt. libipt is the Intel Processor Trace (Intel PT) packets decoder. - Include libipt to amd64 build. - Install libipt headers to /us

svn commit: r331294 - head/sys/kern

2018-03-21 Thread Warner Losh
Author: imp Date: Wed Mar 21 14:46:54 2018 New Revision: 331294 URL: https://svnweb.freebsd.org/changeset/base/331294 Log: Remove Giant from init creation and vfs_mountroot. Sponsored by: Netflix Discussed with: kib@, mckusick@ Differential Review: https://reviews.freebsd.org/D14712 Mo

svn commit: r331295 - head/sys/kern

2018-03-21 Thread Warner Losh
Author: imp Date: Wed Mar 21 14:46:59 2018 New Revision: 331295 URL: https://svnweb.freebsd.org/changeset/base/331295 Log: bufshutdown is no longer called with Giant held, so there's no need to drop or pickup Giant anymore. Remove that code and adjust comments. Modified: head/sys/kern/vfs_b

svn commit: r331297 - head/sys/arm/at91

2018-03-21 Thread Warner Losh
Author: imp Date: Wed Mar 21 14:47:08 2018 New Revision: 331297 URL: https://svnweb.freebsd.org/changeset/base/331297 Log: This is MPSAFE on this platform, so don't take Giant out while running the callback. Modified: head/sys/arm/at91/at91_rst.c Modified: head/sys/arm/at91/at91_rst.c

svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Warner Losh
Author: imp Date: Wed Mar 21 14:47:12 2018 New Revision: 331298 URL: https://svnweb.freebsd.org/changeset/base/331298 Log: Unlock giant when calling shutdown_nice() Modified: head/sys/dev/syscons/syscons.c Modified: head/sys/dev/syscons/syscons.c =

svn commit: r331296 - head/sys/sparc64/sbus

2018-03-21 Thread Warner Losh
Author: imp Date: Wed Mar 21 14:47:03 2018 New Revision: 331296 URL: https://svnweb.freebsd.org/changeset/base/331296 Log: These interrupts call shutdown_nice() which should be called Giant unlocked. Rather than dropping it in the interrupt handler, mark these handlers as MPSAFE. Modified:

svn commit: r331299 - head/sys/sparc64/pci

2018-03-21 Thread Warner Losh
Author: imp Date: Wed Mar 21 14:47:17 2018 New Revision: 331299 URL: https://svnweb.freebsd.org/changeset/base/331299 Log: Mark psycho interrupts as MPSAFE. It's safe to do so now that we don't need Giant to call shutdown_nice(). Modified: head/sys/sparc64/pci/psycho.c Modified: head/sys/s

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-21 Thread Conrad Meyer
On Wed, Mar 21, 2018 at 3:33 AM, Konstantin Belousov wrote: > On Wed, Mar 21, 2018 at 01:15:45AM +, Conrad Meyer wrote: >> +int >> +getentropy(void *buf, size_t buflen) >> +{ >> + ssize_t rd; >> + >> + if (buflen > 256) { >> + errno = EIO; >> + return (-1); >> +

svn commit: r331300 - stable/11/sys/ddb

2018-03-21 Thread Andriy Gapon
Author: avg Date: Wed Mar 21 15:05:08 2018 New Revision: 331300 URL: https://svnweb.freebsd.org/changeset/base/331300 Log: MFC r330374: db_script_exec: use a saved script name when reporting commands executed Modified: stable/11/sys/ddb/db_script.c Directory Properties: stable/11/ (props

svn commit: r331301 - stable/10/sys/ddb

2018-03-21 Thread Andriy Gapon
Author: avg Date: Wed Mar 21 15:05:45 2018 New Revision: 331301 URL: https://svnweb.freebsd.org/changeset/base/331301 Log: MFC r330374: db_script_exec: use a saved script name when reporting commands executed Modified: stable/10/sys/ddb/db_script.c Directory Properties: stable/10/ (props

svn commit: r331302 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-03-21 Thread Andriy Gapon
Author: avg Date: Wed Mar 21 15:07:26 2018 New Revision: 331302 URL: https://svnweb.freebsd.org/changeset/base/331302 Log: MFC r330592: MFV r330591: 8984 fix for 6764 breaks ACL inheritance PR: 216886 Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c

svn commit: r331303 - stable/11/sys/x86/x86

2018-03-21 Thread Andriy Gapon
Author: avg Date: Wed Mar 21 15:09:41 2018 New Revision: 331303 URL: https://svnweb.freebsd.org/changeset/base/331303 Log: MFC r330793: fix r297857, do not modify CPU extension bits under virtual machines PR: 213155 Modified: stable/11/sys/x86/x86/identcpu.c Directory Properti

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

2018-03-21 Thread Kyle Evans
On Tue, Mar 20, 2018 at 6:04 PM, Devin Teske wrote: > > Minor nit ... > > While resetf is unlikely to be mistaken for anything other than "reset > foreground", ... > > "resetb" could easily be mistaken for "reset bold". > > I would like to suggest, in tradition, that resetf/resetb be renamed to

svn commit: r331305 - stable/10/sys/x86/x86

2018-03-21 Thread Andriy Gapon
Author: avg Date: Wed Mar 21 15:13:47 2018 New Revision: 331305 URL: https://svnweb.freebsd.org/changeset/base/331305 Log: MFC r330793: fix r297857, do not modify CPU extension bits under virtual machines PR: 213155 Modified: stable/10/sys/x86/x86/identcpu.c Directory Properti

svn commit: r331304 - head/stand/lua

2018-03-21 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 15:09:47 2018 New Revision: 331304 URL: https://svnweb.freebsd.org/changeset/base/331304 Log: lualoader: Clear up some possible naming confusion In the original lualoader project, 'escapef' and 'escapeb' were chosen for 'escape fg' and 'escape bg'. We've ca

svn commit: r331306 - head/sys/dev/usb/controller

2018-03-21 Thread Andrew Turner
Author: andrew Date: Wed Mar 21 15:17:54 2018 New Revision: 331306 URL: https://svnweb.freebsd.org/changeset/base/331306 Log: Use a table to find the endpoint configuration On the Allwinner SoCs we need to set a custom endpoint configuration. To allow for this use a table to store the con

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-21 Thread Konstantin Belousov
On Wed, Mar 21, 2018 at 08:03:16AM -0700, Conrad Meyer wrote: > On Wed, Mar 21, 2018 at 3:33 AM, Konstantin Belousov > wrote: > > On Wed, Mar 21, 2018 at 01:15:45AM +, Conrad Meyer wrote: > >> +int > >> +getentropy(void *buf, size_t buflen) > >> +{ > >> + ssize_t rd; > >> + > >> + if (

Re: svn commit: r331306 - head/sys/dev/usb/controller

2018-03-21 Thread Kyle Evans
On Wed, Mar 21, 2018 at 10:17 AM, Andrew Turner wrote: > Author: andrew > Date: Wed Mar 21 15:17:54 2018 > New Revision: 331306 > URL: https://svnweb.freebsd.org/changeset/base/331306 > > Log: > Use a table to find the endpoint configuration > > On the Allwinner SoCs we need to set a custom en

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-21 Thread Conrad Meyer
On Wed, Mar 21, 2018 at 8:23 AM, Konstantin Belousov wrote: > On Wed, Mar 21, 2018 at 08:03:16AM -0700, Conrad Meyer wrote: >> On Wed, Mar 21, 2018 at 3:33 AM, Konstantin Belousov >> > Libraries must not abort the application. >> > Esp. libc. >> >> What do you propose instead? while (1); ? I don

Re: svn commit: r331306 - head/sys/dev/usb/controller

2018-03-21 Thread Hans Petter Selasky
On 03/21/18 16:24, Kyle Evans wrote: + { + .ep_end = 7, + .ep_fifosz_shift = 9, + .ep_fifosz_reg = MUSB2_VAL_FIFOSZ_512 | MUSB2_MASK_FIFODB, + }, I'm afraid I'm not familiar with this- why did .ep_fifosz_shift for this case drop to 9? frx = 1

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-21 Thread Warner Losh
On Wed, Mar 21, 2018 at 9:37 AM, Conrad Meyer wrote: > On Wed, Mar 21, 2018 at 8:23 AM, Konstantin Belousov > wrote: > > On Wed, Mar 21, 2018 at 08:03:16AM -0700, Conrad Meyer wrote: > >> On Wed, Mar 21, 2018 at 3:33 AM, Konstantin Belousov > >> > Libraries must not abort the application. > >> >

svn commit: r331307 - stable/11/stand/uboot/common

2018-03-21 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 15:42:29 2018 New Revision: 331307 URL: https://svnweb.freebsd.org/changeset/base/331307 Log: MFC r330891: ubldr: Bump heap size from 512K to 1M lualoader in itself only uses another ~200K, but there seems to be no reason not to bump it a little higher to g

svn commit: r331308 - in stable/11: . release/packages

2018-03-21 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 15:43:57 2018 New Revision: 331308 URL: https://svnweb.freebsd.org/changeset/base/331308 Log: MFC r330929: pkgbase: Fix post-install script for kernel packages kernel.ucl uses a hardcoded boot/kernel for kldxref, which is the incorrect directory when we're

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

2018-03-21 Thread Jonathan T. Looney
Author: jtl Date: Wed Mar 21 15:54:46 2018 New Revision: 331309 URL: https://svnweb.freebsd.org/changeset/base/331309 Log: If the INP lock is uncontested, avoid taking a reference and jumping through the lock-switching hoops. A few of the INP lookup operations that lock INPs after the loo

svn commit: r331310 - head/sys/dev/e1000

2018-03-21 Thread Stephen Hurd
Author: shurd Date: Wed Mar 21 15:57:36 2018 New Revision: 331310 URL: https://svnweb.freebsd.org/changeset/base/331310 Log: Update copyright per Matthew Macy "Under my tutelage Nicole did 85% of the work. At the time it seemed simplest for a number of reasons to put my copyright on it. I

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-21 Thread Konstantin Belousov
On Wed, Mar 21, 2018 at 09:42:26AM -0600, Warner Losh wrote: > On Wed, Mar 21, 2018 at 9:37 AM, Conrad Meyer wrote: > > > On Wed, Mar 21, 2018 at 8:23 AM, Konstantin Belousov > > wrote: > > > On Wed, Mar 21, 2018 at 08:03:16AM -0700, Conrad Meyer wrote: > > >> On Wed, Mar 21, 2018 at 3:33 AM, Ko

svn commit: r331311 - head/sys/opencrypto

2018-03-21 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 16:12:07 2018 New Revision: 331311 URL: https://svnweb.freebsd.org/changeset/base/331311 Log: cryptosoft(4): Zero plain hash contexts, too An OCF-naive user program could use these primitives to implement HMAC, for example. This would make the freed context s

svn commit: r331312 - in head: sys/conf sys/contrib/libb2 sys/crypto/blake2 sys/modules sys/modules/blake2 sys/modules/crypto sys/opencrypto tests/sys/opencrypto

2018-03-21 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 16:18:14 2018 New Revision: 331312 URL: https://svnweb.freebsd.org/changeset/base/331312 Log: Import Blake2 algorithms (blake2b, blake2s) from libb2 The upstream repository is on github BLAKE2/libb2. Files landed in sys/contrib/libb2 are the unmodified upstre

Re: svn commit: r331306 - head/sys/dev/usb/controller

2018-03-21 Thread Andrew Turner
> On 21 Mar 2018, at 15:37, Hans Petter Selasky wrote: > > On 03/21/18 16:24, Kyle Evans wrote: >>> + { >>> + .ep_end = 7, >>> + .ep_fifosz_shift = 9, >>> + .ep_fifosz_reg = MUSB2_VAL_FIFOSZ_512 | MUSB2_MASK_FIFODB, >>> + }, >> I'm afraid I'

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

2018-03-21 Thread Christian S.J. Peron
Author: csjp Date: Wed Mar 21 17:22:42 2018 New Revision: 331313 URL: https://svnweb.freebsd.org/changeset/base/331313 Log: Document the limitations associated with using the audit syscalls from jailed process. These might get implemented in jails in the future, but for now they are not sup

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-21 Thread Xin LI
On Wed, Mar 21, 2018 at 8:37 AM Conrad Meyer wrote: > On Wed, Mar 21, 2018 at 8:23 AM, Konstantin Belousov > wrote: > > On Wed, Mar 21, 2018 at 08:03:16AM -0700, Conrad Meyer wrote: > >> On Wed, Mar 21, 2018 at 3:33 AM, Konstantin Belousov > >> > Libraries must not abort the application. > >> >

Re: svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Bruce Evans
On Wed, 21 Mar 2018, Warner Losh wrote: Log: Unlock giant when calling shutdown_nice() This breaks the driver. Giant is syscons' driver lock, and also the interrupt handler lock for at least the atkbd keyboard driver, so vt sometimes holds the lock for. vt has to sprinkle lots of Giant lock

svn commit: r331314 - head/stand/lua

2018-03-21 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 18:02:56 2018 New Revision: 331314 URL: https://svnweb.freebsd.org/changeset/base/331314 Log: lualoader: Use printc when we expect ANSI escape sequences Modified: head/stand/lua/drawer.lua Modified: head/stand/lua/drawer.lua ===

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-21 Thread Conrad Meyer
Please see https://reviews.freebsd.org/D14785 . :-) Thanks, Conrad On Wed, Mar 21, 2018 at 10:31 AM, Xin LI wrote: > > > > On Wed, Mar 21, 2018 at 8:37 AM Conrad Meyer wrote: >> >> On Wed, Mar 21, 2018 at 8:23 AM, Konstantin Belousov >> wrote: >> > On Wed, Mar 21, 2018 at 08:03:16AM -0700, Co

Re: svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Bruce Evans
On Thu, 22 Mar 2018, Bruce Evans wrote: On Wed, 21 Mar 2018, Warner Losh wrote: Log: Unlock giant when calling shutdown_nice() ... This breaks the driver. Giant is syscons' driver lock, and also the interrupt handler lock for at least the atkbd keyboard driver, so vt sometimes holds the loc

svn commit: r331319 - in stable/11: lib/libpmc sys/dev/hwpmc

2018-03-21 Thread Konstantin Belousov
Author: kib Date: Wed Mar 21 19:33:00 2018 New Revision: 331319 URL: https://svnweb.freebsd.org/changeset/base/331319 Log: MFC r328087 (by fabient): Fix pmcstat exit from kernel introduced by r325275. PR: 223689 Modified: stable/11/lib/libpmc/pmclog.c stable/11/sys/dev/hwpmc/hwpmc_

svn commit: r331320 - stable/10/sys/dev/cxgb

2018-03-21 Thread Navdeep Parhar
Author: np Date: Wed Mar 21 20:13:24 2018 New Revision: 331320 URL: https://svnweb.freebsd.org/changeset/base/331320 Log: MFC r328315: cxgb(4): Validate offset/len in the GET_EEPROM ioctl. Sponsored by: Chelsio Communications. Modified: stable/10/sys/dev/cxgb/cxgb_main.c Modified:

Re: svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Konstantin Belousov
On Thu, Mar 22, 2018 at 04:53:22AM +1100, Bruce Evans wrote: > Serial console drivers with fast interrupt handlers have much more > broken locking for ddb special keys. It is invalid to either drop locks > or call the "any" function from a fast interrupt handler, but buggy > serial console drivers

svn commit: r331321 - in head/stand: efi/boot1 efi/loader lua

2018-03-21 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 20:36:57 2018 New Revision: 331321 URL: https://svnweb.freebsd.org/changeset/base/331321 Log: UEFI: Ditch console mode setting, choose optimal GOP mode later in boot boot1 is too early to be deciding a good resolution. Console modes don't map cleanly/predic

svn commit: r331322 - head/sys/netinet

2018-03-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Mar 21 20:59:30 2018 New Revision: 331322 URL: https://svnweb.freebsd.org/changeset/base/331322 Log: The net.inet.tcp.nolocaltimewait=1 optimization prevents local TCP connections from entering the TIME_WAIT state. However, it omits sending the ACK for the FIN, whic

svn commit: r331323 - stable/11/gnu/usr.bin/gdb/kgdb

2018-03-21 Thread John Baldwin
Author: jhb Date: Wed Mar 21 21:10:49 2018 New Revision: 331323 URL: https://svnweb.freebsd.org/changeset/base/331323 Log: MFC 328158,330708: Update kgdb for PTI. 328158: Recognize mchk_calltrap as a trapframe generator. Should have been included in r328157. 330708: Use the tr

svn commit: r331324 - head/lib/libthr/thread

2018-03-21 Thread John Baldwin
Author: jhb Date: Wed Mar 21 21:13:26 2018 New Revision: 331324 URL: https://svnweb.freebsd.org/changeset/base/331324 Log: Ensure thread library is initialized in pthread_testcancel(). Call _thr_check_init() before reading curthread in pthread_testcancel(). If a constructor in a librar

svn commit: r331325 - head/sys/kern

2018-03-21 Thread Mark Johnston
Author: markj Date: Wed Mar 21 21:15:43 2018 New Revision: 331325 URL: https://svnweb.freebsd.org/changeset/base/331325 Log: Elide the object lock in the common case in vfs_vmio_unwire(). The object lock was only needed when attempting to free B_DIRECT buffer pages, and for testing for in

Re: svn commit: r331306 - head/sys/dev/usb/controller

2018-03-21 Thread Hans Petter Selasky
On 03/21/18 17:45, Andrew Turner wrote: On 21 Mar 2018, at 15:37, Hans Petter Selasky wrote: On 03/21/18 16:24, Kyle Evans wrote: + { + .ep_end = 7, + .ep_fifosz_shift = 9, + .ep_fifosz_reg = MUSB2_VAL_FIFOSZ_512 | MUSB2_MASK_FIFODB, + }

svn commit: r331326 - in head/stand: forth i386/loader

2018-03-21 Thread Kyle Evans
Author: kevans Date: Wed Mar 21 22:01:51 2018 New Revision: 331326 URL: https://svnweb.freebsd.org/changeset/base/331326 Log: Forth version of EFI autoresizing r331321 delegated autoresizing to an efi-autoresizecons command that currently is expected to be done in forth/lua prior to drawi

svn commit: r331327 - head/sys/i386/ibcs2

2018-03-21 Thread Ed Maste
Author: emaste Date: Wed Mar 21 23:17:26 2018 New Revision: 331327 URL: https://svnweb.freebsd.org/changeset/base/331327 Log: Add ) missing from r330297 Sponsored by: The FreeBSD Foundation Modified: head/sys/i386/ibcs2/ibcs2_ipc.c Modified: head/sys/i386/ibcs2/ibcs2_ipc.c =

svn commit: r331328 - head/sys/kern

2018-03-21 Thread Gleb Smirnoff
Author: glebius Date: Wed Mar 21 23:21:32 2018 New Revision: 331328 URL: https://svnweb.freebsd.org/changeset/base/331328 Log: Fix sysctl types broken in r329612. Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c =

svn commit: r331329 - head/sys/i386/ibcs2

2018-03-21 Thread Ed Maste
Author: emaste Date: Wed Mar 21 23:26:42 2018 New Revision: 331329 URL: https://svnweb.freebsd.org/changeset/base/331329 Log: Fix kernel memory disclosure in ibcs2_getdents ibcs2_getdents() copies a dirent structure to userland. The ibcs2 dirent structure contains a 2 byte pad element.

svn commit: r331330 - stable/11/sys/compat/svr4

2018-03-21 Thread Ed Maste
Author: emaste Date: Wed Mar 21 23:45:48 2018 New Revision: 331330 URL: https://svnweb.freebsd.org/changeset/base/331330 Log: Fix kernel memory disclosure in svr4_sys_getdents64 svr4_sys_getdents64() copies a dirent structure to userland. When calculating the record length for any given

svn commit: r331331 - head/stand/common

2018-03-21 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 23:46:26 2018 New Revision: 331331 URL: https://svnweb.freebsd.org/changeset/base/331331 Log: Apply r228478 (CTASSERT => _Static_assert()) to stand bootstrap.h Reported by: GCC (it doesn't like the unused array) Sponsored by: Dell EMC Isilon Modified: head

svn commit: r331332 - head/lib/libjail

2018-03-21 Thread Jamie Gritton
Author: jamie Date: Wed Mar 21 23:50:46 2018 New Revision: 331332 URL: https://svnweb.freebsd.org/changeset/base/331332 Log: If a jail parameter isn't found, try loading a related kernel module. Modified: head/lib/libjail/jail.c Modified: head/lib/libjail/jail.c =

svn commit: r331333 - head/sys/dev/drm

2018-03-21 Thread Ed Maste
Author: emaste Date: Wed Mar 21 23:51:14 2018 New Revision: 331333 URL: https://svnweb.freebsd.org/changeset/base/331333 Log: Fix kernel memory disclosure in drm_infobufs drm_infobufs() has a structure on the stack, fills it out and copies it to userland. There are 2 elements in the stru

svn commit: r331334 - in head/lib/libc: gen include sys tests/gen

2018-03-21 Thread Conrad Meyer
Author: cem Date: Wed Mar 21 23:52:37 2018 New Revision: 331334 URL: https://svnweb.freebsd.org/changeset/base/331334 Log: getentropy(3): Fallback to kern.arandom sysctl on older kernels On older kernels, when userspace program disables SIGSYS, catch ENOSYS and emulate getrandom(2) syscal

Re: svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Warner Losh
On Wed, Mar 21, 2018 at 11:53 AM, Bruce Evans wrote: > On Wed, 21 Mar 2018, Warner Losh wrote: > > Log: >> Unlock giant when calling shutdown_nice() >> > > This breaks the driver. Giant is syscons' driver lock, and also the > interrupt handler lock for at least the atkbd keyboard driver, so vt

Re: svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Warner Losh
On Wed, Mar 21, 2018 at 2:27 PM, Konstantin Belousov wrote: > On Thu, Mar 22, 2018 at 04:53:22AM +1100, Bruce Evans wrote: > > Serial console drivers with fast interrupt handlers have much more > > broken locking for ddb special keys. It is invalid to either drop locks > > or call the "any" func

svn commit: r331335 - stable/11/sys/dev/isp

2018-03-21 Thread Alexander Motin
Author: mav Date: Thu Mar 22 00:45:48 2018 New Revision: 331335 URL: https://svnweb.freebsd.org/changeset/base/331335 Log: MFC r330963: Increase ABOUT FIRMWARE command timeout to 5s. It seems default timeout of 100ms is not enough for my 2694L card, while it was perfectly fine for others,

svn commit: r331336 - stable/10

2018-03-21 Thread Navdeep Parhar
Author: np Date: Thu Mar 22 00:52:53 2018 New Revision: 331336 URL: https://svnweb.freebsd.org/changeset/base/331336 Log: Add mergeinfo. This should have been part of r331320. Modified: Directory Properties: stable/10/ (props changed) ___ svn-src

svn commit: r331337 - stable/11/sys/dev/bktr

2018-03-21 Thread Ed Maste
Author: emaste Date: Thu Mar 22 00:54:13 2018 New Revision: 331337 URL: https://svnweb.freebsd.org/changeset/base/331337 Log: MFC r330668: bktr: correct Japan IF frequency PR: 36451 Submitted by: Hijiri Umemoto Modified: stable/11/sys/dev/bktr/bktr_tuner.c Directory Properti

svn commit: r331338 - stable/10/sys/dev/bktr

2018-03-21 Thread Ed Maste
Author: emaste Date: Thu Mar 22 00:55:36 2018 New Revision: 331338 URL: https://svnweb.freebsd.org/changeset/base/331338 Log: MFC r330668: bktr: correct Japan IF frequency PR: 36451 Submitted by: Hijiri Umemoto Modified: stable/10/sys/dev/bktr/bktr_tuner.c Directory Properti

svn commit: r331339 - head/sys/dev/drm

2018-03-21 Thread Ed Maste
Author: emaste Date: Thu Mar 22 01:00:55 2018 New Revision: 331339 URL: https://svnweb.freebsd.org/changeset/base/331339 Log: Correct signedness bug in drm_modeset_ctl drm_modeset_ctl() takes a signed in from userland, does a boundscheck, and then uses it to index into a structure and wri

Re: svn commit: r331339 - head/sys/dev/drm

2018-03-21 Thread Ed Maste
On 21 March 2018 at 21:00, Ed Maste wrote: > Author: emaste > Date: Thu Mar 22 01:00:55 2018 > New Revision: 331339 > URL: https://svnweb.freebsd.org/changeset/base/331339 > > Log: > Correct signedness bug in drm_modeset_ctl > > Reported by: Ilja Van Sprundel Also reported by: anonymous fro

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

2018-03-21 Thread Navdeep Parhar
Author: np Date: Thu Mar 22 02:04:57 2018 New Revision: 331340 URL: https://svnweb.freebsd.org/changeset/base/331340 Log: cxgbe(4): Tunnel congestion drops on a port should be cleared when the stats for that port are cleared. MFC after:1 week Sponsored by: Chelsio Communications Mo

svn commit: r331341 - head/stand/forth

2018-03-21 Thread Kyle Evans
Author: kevans Date: Thu Mar 22 04:16:14 2018 New Revision: 331341 URL: https://svnweb.freebsd.org/changeset/base/331341 Log: forthloader: Don't break BIOS boots... I thought I tested this scenario, but clearly I failed to. =( BIOS boots won't have efi-autoresizecons, so trying to use

Re: svn commit: r331326 - in head/stand: forth i386/loader

2018-03-21 Thread Cy Schubert
In message <201803212201.w2lm1pvl020...@repo.freebsd.org>, Kyle Evans writes: > Author: kevans > Date: Wed Mar 21 22:01:51 2018 > New Revision: 331326 > URL: https://svnweb.freebsd.org/changeset/base/331326 > > Log: > Forth version of EFI autoresizing > > r331321 delegated autoresizing to a

svn commit: r331342 - head/sys/dev/cxgbe/common

2018-03-21 Thread Navdeep Parhar
Author: np Date: Thu Mar 22 04:42:29 2018 New Revision: 331342 URL: https://svnweb.freebsd.org/changeset/base/331342 Log: cxgbe(4): Do not read MFG diags information from custom boards. MFC after:1 week Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/common/t4_hw.

Re: svn commit: r331209 - head

2018-03-21 Thread Alexey Dokuchaev
On Wed, Mar 21, 2018 at 10:34:15PM -0600, Warner Losh wrote: > On Wed, Mar 21, 2018 at 10:03 PM, Alexey Dokuchaev > wrote: > > On Mon, Mar 19, 2018 at 09:20:40AM -0700, John Baldwin wrote: > > > ... > > > How does this fit with the recommended installation steps of doing > > > 'make installkernel'

Re: svn commit: r331209 - head

2018-03-21 Thread Warner Losh
On Wed, Mar 21, 2018 at 10:39 PM, Alexey Dokuchaev wrote: > On Wed, Mar 21, 2018 at 10:34:15PM -0600, Warner Losh wrote: > > On Wed, Mar 21, 2018 at 10:03 PM, Alexey Dokuchaev > > wrote: > > > On Mon, Mar 19, 2018 at 09:20:40AM -0700, John Baldwin wrote: > > > > ... > > > > How does this fit wit

svn commit: r331343 - head/sys/netinet

2018-03-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 22 05:07:57 2018 New Revision: 331343 URL: https://svnweb.freebsd.org/changeset/base/331343 Log: Fix LINT-NOINET build initializing local to false. This is a dead code, since for NOINET build isipv6 is always true, but this dead code makes it compilable. Re

Re: svn commit: r331209 - head

2018-03-21 Thread Alexey Dokuchaev
On Mon, Mar 19, 2018 at 09:20:40AM -0700, John Baldwin wrote: > On Monday, March 19, 2018 03:27:53 PM Kyle Evans wrote: > > New Revision: 331209 > > URL: https://svnweb.freebsd.org/changeset/base/331209 > > > > Log: > > Add note to UPDATING about UEFI changes requiring loader(8) update > > ...

svn commit: r331344 - head/sys/kern

2018-03-21 Thread Gleb Smirnoff
Author: glebius Date: Thu Mar 22 05:26:27 2018 New Revision: 331344 URL: https://svnweb.freebsd.org/changeset/base/331344 Log: Redo r331328. We need to fix not only type but also format. While here again notice that we are fixing regression from r331106. Modified: head/sys/kern/vfs_bio.c M

Re: svn commit: r331326 - in head/stand: forth i386/loader

2018-03-21 Thread Kyle Evans
On Wed, Mar 21, 2018 at 10:30 PM, Cy Schubert wrote: > In message <201803212201.w2lm1pvl020...@repo.freebsd.org>, Kyle Evans > writes: >> Author: kevans >> Date: Wed Mar 21 22:01:51 2018 >> New Revision: 331326 >> URL: https://svnweb.freebsd.org/changeset/base/331326 >> >> Log: >> Forth version

Re: svn commit: r331209 - head

2018-03-21 Thread Warner Losh
On Wed, Mar 21, 2018 at 10:03 PM, Alexey Dokuchaev wrote: > On Mon, Mar 19, 2018 at 09:20:40AM -0700, John Baldwin wrote: > > On Monday, March 19, 2018 03:27:53 PM Kyle Evans wrote: > > > New Revision: 331209 > > > URL: https://svnweb.freebsd.org/changeset/base/331209 > > > > > > Log: > > > Add

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

2018-03-21 Thread Bruce Evans
On Wed, 21 Mar 2018, Gleb Smirnoff wrote: Log: Fix sysctl types broken in r329612. This is still broken. Modified: head/sys/kern/vfs_bio.c == --- head/sys/kern/vfs_bio.c Wed Mar 21 23:17:26 2018(r331327)

Re: svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Bruce Evans
On Wed, 21 Mar 2018, Konstantin Belousov wrote: On Thu, Mar 22, 2018 at 04:53:22AM +1100, Bruce Evans wrote: Serial console drivers with fast interrupt handlers have much more broken locking for ddb special keys. It is invalid to either drop locks or call the "any" function from a fast interru

svn commit: r331345 - head/sys/dev/jedec_dimm

2018-03-21 Thread Ravi Pokala
Author: rpokala Date: Thu Mar 22 06:31:05 2018 New Revision: 331345 URL: https://svnweb.freebsd.org/changeset/base/331345 Log: jedec_dimm: Use correct string length when populating sc->slotid_str Don't limit the copy to the size of the target string *pointer* (always 4 on 32-bit / 8 on 64

Re: svn commit: r331298 - head/sys/dev/syscons

2018-03-21 Thread Bruce Evans
On Wed, 21 Mar 2018, Warner Losh wrote: On Wed, Mar 21, 2018 at 11:53 AM, Bruce Evans wrote: On Wed, 21 Mar 2018, Warner Losh wrote: Log: Unlock giant when calling shutdown_nice() This breaks the driver. Giant is syscons' driver lock, and also the interrupt handler lock for at least the

Re: svn commit: r331326 - in head/stand: forth i386/loader

2018-03-21 Thread Cy Schubert
In message , Kyle Evans writes: > On Wed, Mar 21, 2018 at 10:30 PM, Cy Schubert wro > te: > > In message <201803212201.w2lm1pvl020...@repo.freebsd.org>, Kyle Evans > > writes: > >> Author: kevans > >> Date: Wed Mar 21 22:01:51 2018 > >> New Revision: 331326 > >> URL: https://svnweb.freebsd.org/ch