svn commit: r298340 - head/sys/dev/sym

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 05:13:36 2016 New Revision: 298340 URL: https://svnweb.freebsd.org/changeset/base/298340 Log: sym(4): Don't double-free 'sim' in failure case Reported by: Coverity CID: 1006106 Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r298339 - head/sys/dev/sound/midi

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 05:11:00 2016 New Revision: 298339 URL: https://svnweb.freebsd.org/changeset/base/298339 Log: sound(4): Don't use-after-free in midi module unload Also, use ANSI function parameter definitions (void) while here. Reported by: Coverity CID:

svn commit: r298338 - head/sys/kgssapi

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 05:02:13 2016 New Revision: 298338 URL: https://svnweb.freebsd.org/changeset/base/298338 Log: kgssapi(4): Don't allow user-provided arguments to overrun stack buffer An over-long path argument to gssd_syscall could overrun the stack sockaddr_un buffer. Fix

svn commit: r298337 - head/sys/dev/pty

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 04:50:33 2016 New Revision: 298337 URL: https://svnweb.freebsd.org/changeset/base/298337 Log: pty(4): Use strlcpy to guarantee destination buffer isn't overrun The devtoname() name is strcpyed into a small stack buffer. Sure, we always expect the name to be

svn commit: r298336 - head/sys/rpc/rpcsec_gss

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 04:45:23 2016 New Revision: 298336 URL: https://svnweb.freebsd.org/changeset/base/298336 Log: kgssapi(4): Fix string overrun in Kerberos principal construction 'buf.value' was previously treated as a nul-terminated string, but only allocated with strlen()

svn commit: r298335 - head/sys/dev/drm2/i915

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 03:48:57 2016 New Revision: 298335 URL: https://svnweb.freebsd.org/changeset/base/298335 Log: i915kms: Fix memory leak if a CRT is detected Reported by: Coverity CID: 1090729 Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r298334 - head/sys/dev/drm2

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 03:45:45 2016 New Revision: 298334 URL: https://svnweb.freebsd.org/changeset/base/298334 Log: drm2(4): Fix double-free in low-memory error path Reallocf frees 'block'; don't attempt to free it again. Reported by: Coverity CID: 1091165

svn commit: r298333 - head/sys/sys

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 03:24:59 2016 New Revision: 298333 URL: https://svnweb.freebsd.org/changeset/base/298333 Log: Make Racct macro slightly more gracious given RACCT_UNDEFINED rctl_string_to_rule could previously index below the zeroth element of racct_types via the macro.

Re: svn commit: r298247 - head/sbin/fdisk_pc98

2016-04-19 Thread Bruce Evans
On Wed, 20 Apr 2016, Marcelo Araujo wrote: 2016-04-20 0:16 GMT+08:00 John Baldwin : On Tuesday, April 19, 2016 04:46:13 AM Marcelo Araujo wrote: Author: araujo Date: Tue Apr 19 04:46:13 2016 New Revision: 298247 URL: https://svnweb.freebsd.org/changeset/base/298247 Log:

svn commit: r298332 - head/sys/crypto/aesni

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 03:05:32 2016 New Revision: 298332 URL: https://svnweb.freebsd.org/changeset/base/298332 Log: aesni(4): Initialize error before use Reported by: Coverity CID: 1331554 Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r298331 - head/sys/dev/drm2/i915

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 02:58:22 2016 New Revision: 298331 URL: https://svnweb.freebsd.org/changeset/base/298331 Log: i915kms intel_pm: Read from actual tsc_freq instead of uninitialized local The local of the same name would alias the global, but we didn't even include the header

svn commit: r298330 - head/sys/kern

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 02:09:38 2016 New Revision: 298330 URL: https://svnweb.freebsd.org/changeset/base/298330 Log: kern_rctl: Fix resource leak in error path Ordinarily, rctl_write_outbuf frees 'sb'. However, if we are in low memory conditions we skip past the rctl_write_outbuf.

svn commit: r298329 - head/sys/net

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 02:01:45 2016 New Revision: 298329 URL: https://svnweb.freebsd.org/changeset/base/298329 Log: radix rn_inithead: Fix minor leak in low memory conditions R_Zalloc is essentially a malloc(M_NOWAIT) wrapper. It is possible that 'rnh' failed to allocate, but

svn commit: r298328 - head/sys/net

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 01:39:31 2016 New Revision: 298328 URL: https://svnweb.freebsd.org/changeset/base/298328 Log: bpf_getdltlist: Don't overrun 'lst' 'lst' is allocated with 'n1' members. 'n' indexes 'lst'. So 'n == n1' is an invalid 'lst' index. This is a follow-up to

svn commit: r298327 - head/usr.bin/tftp

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:38:54 2016 New Revision: 298327 URL: https://svnweb.freebsd.org/changeset/base/298327 Log: Partially revert the change on r298325 where there is an (-1) casted to a pointer. Submitted by: pfg MFC after:2 weeks. Modified:

Re: svn commit: r298320 - head/sbin/sunlabel

2016-04-19 Thread Marcelo Araujo
2016-04-20 9:24 GMT+08:00 Pedro Giffuni : > > > On 04/19/16 20:05, Marcelo Araujo wrote: > >> Author: araujo >> Date: Wed Apr 20 01:05:54 2016 >> New Revision: 298320 >> URL: https://svnweb.freebsd.org/changeset/base/298320 >> >> Log: >> Use nitems() from sys/param.h. >> >>

svn commit: r298326 - head/sbin/sunlabel

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:35:09 2016 New Revision: 298326 URL: https://svnweb.freebsd.org/changeset/base/298326 Log: Re-ident lines. Requested by: pfg MFC after:2 weeks. Modified: head/sbin/sunlabel/sunlabel.c Modified: head/sbin/sunlabel/sunlabel.c

Re: svn commit: r298320 - head/sbin/sunlabel

2016-04-19 Thread Pedro Giffuni
On 04/19/16 20:05, Marcelo Araujo wrote: Author: araujo Date: Wed Apr 20 01:05:54 2016 New Revision: 298320 URL: https://svnweb.freebsd.org/changeset/base/298320 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/sunlabel/sunlabel.c Modified:

svn commit: r298325 - head/usr.bin/tftp

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:28:31 2016 New Revision: 298325 URL: https://svnweb.freebsd.org/changeset/base/298325 Log: Use NULL instead of 0 for pointers. Small cosmetic change. MFC after:2 weeks. Modified: head/usr.bin/tftp/main.c Modified: head/usr.bin/tftp/main.c

svn commit: r298324 - head/usr.bin/systat

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:26:03 2016 New Revision: 298324 URL: https://svnweb.freebsd.org/changeset/base/298324 Log: Use NULL instead of 0 for pointers. gethostbyname(3) will return NULL for error status. MFC after:2 weeks. Modified: head/usr.bin/systat/cmds.c

svn commit: r298323 - in head/lib/libc: db/hash net

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 20 01:21:39 2016 New Revision: 298323 URL: https://svnweb.freebsd.org/changeset/base/298323 Log: libc: use our roundup2/rounddown2() macros when param.h is available. rounddown2 tends to produce longer lines than the original code but still it makes the code

svn commit: r298322 - head/sys/dev/nctgpio

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 01:17:18 2016 New Revision: 298322 URL: https://svnweb.freebsd.org/changeset/base/298322 Log: nctgpio(4): Don't index past the end of sc->pins array This driver thinks that the NCT_MAX_PIN index is a valid index in a few places (nct_attach() for-loop, as well

svn commit: r298321 - head/sys/x86/acpica

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 01:10:07 2016 New Revision: 298321 URL: https://svnweb.freebsd.org/changeset/base/298321 Log: SRAT: Don't overflow domain_pxm table If we reached MAXMEMDOM, we would previously try to insert an additional element and only detect overflow after causing

svn commit: r298320 - head/sbin/sunlabel

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 01:05:54 2016 New Revision: 298320 URL: https://svnweb.freebsd.org/changeset/base/298320 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/sunlabel/sunlabel.c Modified: head/sbin/sunlabel/sunlabel.c

svn commit: r298319 - head/sys/compat/linprocfs

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 01:03:06 2016 New Revision: 298319 URL: https://svnweb.freebsd.org/changeset/base/298319 Log: linprocfs_doproclimits: Initialize error return before use Reported by: Coverity CID: 1354623 Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r298318 - head/sys/compat/linprocfs

2016-04-19 Thread Conrad E. Meyer
Author: cem Date: Wed Apr 20 01:00:13 2016 New Revision: 298318 URL: https://svnweb.freebsd.org/changeset/base/298318 Log: linprocfs: Don't print uninitialized values Reported by: Coverity CID: 1354624 Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r298317 - head/sbin/hastd

2016-04-19 Thread Marcelo Araujo
Author: araujo Date: Wed Apr 20 00:55:35 2016 New Revision: 298317 URL: https://svnweb.freebsd.org/changeset/base/298317 Log: Use nitems() from sys/param.h. MFC after:2 weeks. Modified: head/sbin/hastd/subr.c Modified: head/sbin/hastd/subr.c

svn commit: r298316 - stable/9/lib/libgssapi

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 20 00:50:17 2016 New Revision: 298316 URL: https://svnweb.freebsd.org/changeset/base/298316 Log: MFC 297942: libgssapi: avoid NULL pointer dereferences. While here also use NULL instead of zero for pointers. Modified: stable/9/lib/libgssapi/gss_add_cred.c

svn commit: r298315 - head/sbin/savecore

2016-04-19 Thread Garrett Cooper
Author: ngie Date: Wed Apr 20 00:49:49 2016 New Revision: 298315 URL: https://svnweb.freebsd.org/changeset/base/298315 Log: Don't leak fd on sectorsize malloc failure Also, call endfsent after calling getfsent (i.e. when not explicitly called with a swap device) for code cleanliness

svn commit: r298314 - stable/10/lib/libgssapi

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 20 00:49:37 2016 New Revision: 298314 URL: https://svnweb.freebsd.org/changeset/base/298314 Log: MFC 297942: libgssapi: avoid NULL pointer dereferences. While here also use NULL instead of zero for pointers. Modified: stable/10/lib/libgssapi/gss_add_cred.c

Re: svn commit: r298247 - head/sbin/fdisk_pc98

2016-04-19 Thread Marcelo Araujo
2016-04-20 0:16 GMT+08:00 John Baldwin : > On Tuesday, April 19, 2016 04:46:13 AM Marcelo Araujo wrote: > > Author: araujo > > Date: Tue Apr 19 04:46:13 2016 > > New Revision: 298247 > > URL: https://svnweb.freebsd.org/changeset/base/298247 > > > > Log: > > Remove redundant

svn commit: r298313 - stable/10/sbin/fsck_msdosfs

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 20 00:44:13 2016 New Revision: 298313 URL: https://svnweb.freebsd.org/changeset/base/298313 Log: MFC r297618: fsck_msdosfs(8): Optimimize memsets Obtained from:NetBSD (bin/50908) Modified: stable/10/sbin/fsck_msdosfs/dir.c Directory Properties:

svn commit: r298312 - head/lib/libc/tests/stdio

2016-04-19 Thread Garrett Cooper
Author: ngie Date: Wed Apr 20 00:19:04 2016 New Revision: 298312 URL: https://svnweb.freebsd.org/changeset/base/298312 Log: Fix double fclose of `fp1` when freopen fails freopen handles closing file descriptors on error, with the exception of fdopen'ed descriptors, so closing an already

svn commit: r298311 - head/lib/libc/tests/stdio

2016-04-19 Thread Garrett Cooper
Author: ngie Date: Tue Apr 19 23:59:10 2016 New Revision: 298311 URL: https://svnweb.freebsd.org/changeset/base/298311 Log: Make sure fmemopen succeeds in :test_append_binary_pos before calling ftell on the FILE object This fixes potential null pointer dereferences on failure CID:

svn commit: r298310 - in head/sys: compat/linux ddb fs/autofs fs/nfs geom/part kern net netinet netinet6 netipsec netnatm netsmb

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 23:48:27 2016 New Revision: 298310 URL: https://svnweb.freebsd.org/changeset/base/298310 Log: kernel: use our nitems() macro when it is available through param.h. No functional change, only trivial cases are done in this sweep, Discussed in:

svn commit: r298309 - in head/sys/boot: common efi/loader mips/beri/boot2 uboot/common

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 23:44:33 2016 New Revision: 298309 URL: https://svnweb.freebsd.org/changeset/base/298309 Log: sys/boot: use our nitems() macro when it is available through param.h. No functional change, only trivial cases are done in this sweep, Discussed in:

svn commit: r298308 - in head/sys: amd64/amd64 amd64/linux amd64/linux32 i386/i386 i386/ibcs2 i386/linux x86/isa x86/x86

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 23:41:46 2016 New Revision: 298308 URL: https://svnweb.freebsd.org/changeset/base/298308 Log: X86: use our nitems() macro when it is avaliable through param.h. No functional change, only trivial cases are done in this sweep, Discussed in: freebsd-current

svn commit: r298307 - in head/sys/dev: adb age aha ale altera/atse atkbdc bktr bwi bwn cardbus digi dwc ed flash hatm hifn if_ndis jme kbd mlx mxge nand ncr nctgpio nfe patm rc re rl sf sio sound/i...

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 23:37:24 2016 New Revision: 298307 URL: https://svnweb.freebsd.org/changeset/base/298307 Log: sys/dev: use our nitems() macro when it is avaliable through param.h. No functional change, only trivial cases are done in this sweep, Drivers that can get further

svn commit: r298306 - head/sys/dev/agp

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 23:31:35 2016 New Revision: 298306 URL: https://svnweb.freebsd.org/changeset/base/298306 Log: dev/agp: use our nitems() macro when it is avaliable through param.h. Consistently capitalize the macros used in the driver. No functional change. Modified:

svn commit: r298305 - head/sys/arm/broadcom/bcm2835

2016-04-19 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Apr 19 23:30:22 2016 New Revision: 298305 URL: https://svnweb.freebsd.org/changeset/base/298305 Log: Fix build for Pi kernels with syscons enabled Modified: head/sys/arm/broadcom/bcm2835/bcm2835_fb.c Modified: head/sys/arm/broadcom/bcm2835/bcm2835_fb.c

svn commit: r298304 - head/tests/sys/posixshm

2016-04-19 Thread Garrett Cooper
Author: ngie Date: Tue Apr 19 23:15:47 2016 New Revision: 298304 URL: https://svnweb.freebsd.org/changeset/base/298304 Log: Fix issues identified by Coverity - Always munmap memory regions after mmap'ing them. - Make sure getpagesize() returns a value greater than 0 and use a cached

svn commit: r298303 - head/lib/libc/gen

2016-04-19 Thread Garrett Cooper
Author: ngie Date: Tue Apr 19 22:59:21 2016 New Revision: 298303 URL: https://svnweb.freebsd.org/changeset/base/298303 Log: Remove trailing whitespace and use `nitems(mib)` instead of `2` when calling sysctl(3) MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r298301 - head/tests/sys/vm

2016-04-19 Thread Garrett Cooper
Author: ngie Date: Tue Apr 19 22:25:14 2016 New Revision: 298301 URL: https://svnweb.freebsd.org/changeset/base/298301 Log: Fix leaks and test for getpagesize() returning == -1 - close file descriptors after use. - Always munmap memory regions after mmap'ing them. - Make sure

svn commit: r298300 - in head/sys/dev/usb: input serial

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 22:07:36 2016 New Revision: 298300 URL: https://svnweb.freebsd.org/changeset/base/298300 Log: dev/usb: use our nitems() macro when param.h is available. Reviewed by: hselasky Modified: head/sys/dev/usb/input/ukbd.c head/sys/dev/usb/serial/u3g.c

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Patrick Kelsey
On Tue, Apr 19, 2016 at 4:41 PM, Patrick Kelsey wrote: > > > > On Tue, Apr 19, 2016 at 4:38 PM, Adrian Chadd > wrote: > >> On 19 April 2016 at 13:37, Patrick Kelsey wrote: >> > >> > >> > On Tue, Apr 19, 2016 at 4:21 PM, Ian

svn commit: r298299 - stable/10/sys/sys

2016-04-19 Thread Ed Maste
Author: emaste Date: Tue Apr 19 21:06:39 2016 New Revision: 298299 URL: https://svnweb.freebsd.org/changeset/base/298299 Log: Bump __FreeBSD_version for kbdcontrol's -P option MFC'd in r298297 Modified: stable/10/sys/sys/param.h Modified: stable/10/sys/sys/param.h

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Adrian Chadd
Ok. I'll go tidy up the software spi bits to throw into -HEAD, because I'd then like to then commit a userland API to speak to said SPI bus so I can drive LCDs at a not terrible speed. I'll go poke you/Luiz off-line to go find the mmcspi bits to throw in! -adrian

svn commit: r298298 - head/sys/boot/userboot/userboot

2016-04-19 Thread Allan Jude
Author: allanjude Date: Tue Apr 19 20:56:45 2016 New Revision: 298298 URL: https://svnweb.freebsd.org/changeset/base/298298 Log: Link bcache into userboot.so, was not added in r298230 This should help speed up bhyve boots too Reviewed by: olivier Modified:

svn commit: r298297 - stable/10/usr.sbin/kbdcontrol

2016-04-19 Thread Ed Maste
Author: emaste Date: Tue Apr 19 20:56:02 2016 New Revision: 298297 URL: https://svnweb.freebsd.org/changeset/base/298297 Log: MFC r296926: kbdcontrol: add -P path option to add keymap search paths PR: 193865 Sponsored by: The FreeBSD Foundation Modified:

svn commit: r298296 - head/sbin/restore

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 20:47:14 2016 New Revision: 298296 URL: https://svnweb.freebsd.org/changeset/base/298296 Log: restore: use our roundup2/rounddown2() macros when param.h is available. While here cleanup a little a malloc call. Modified: head/sbin/restore/dirs.c

svn commit: r298295 - head/usr.sbin/bhyve

2016-04-19 Thread John Baldwin
Author: jhb Date: Tue Apr 19 20:43:05 2016 New Revision: 298295 URL: https://svnweb.freebsd.org/changeset/base/298295 Log: Always emit an error message on passthru configuration errors. Previously, many errors (such as the PCI device not being attached to the ppt(4) driver) resulted in

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Patrick Kelsey
On Tue, Apr 19, 2016 at 4:38 PM, Adrian Chadd wrote: > On 19 April 2016 at 13:37, Patrick Kelsey wrote: > > > > > > On Tue, Apr 19, 2016 at 4:21 PM, Ian Lepore wrote: > >> > >> On Tue, 2016-04-19 at 13:17 -0700, Juli Mallett wrote:

Re: svn commit: r298243 - head/usr.sbin/bsdinstall/scripts

2016-04-19 Thread Nathan Whitehorn
On 04/19/16 13:37, Warner Losh wrote: On Tue, Apr 19, 2016 at 2:29 PM, Nathan Whitehorn > wrote: On 04/19/16 09:12, John Baldwin wrote: On Tuesday, April 19, 2016 03:25:36 AM Allan Jude wrote: Author:

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread Adrian Chadd
[almost trolling] We could almost just import freebsd-2.0 as a boot loader environment at this point. -adrian ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Adrian Chadd
On 19 April 2016 at 13:37, Patrick Kelsey wrote: > > > On Tue, Apr 19, 2016 at 4:21 PM, Ian Lepore wrote: >> >> On Tue, 2016-04-19 at 13:17 -0700, Juli Mallett wrote: >> > Patrick Kelsey offered an mmcspi driver for FreeBSD, but nobody >> > seemed >> >

Re: svn commit: r298243 - head/usr.sbin/bsdinstall/scripts

2016-04-19 Thread Warner Losh
On Tue, Apr 19, 2016 at 2:29 PM, Nathan Whitehorn wrote: > > > On 04/19/16 09:12, John Baldwin wrote: > >> On Tuesday, April 19, 2016 03:25:36 AM Allan Jude wrote: >> >>> Author: allanjude >>> Date: Tue Apr 19 03:25:36 2016 >>> New Revision: 298243 >>> URL:

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Adrian Chadd
I'll bug patrick privately. :) -a On 19 April 2016 at 13:21, Ian Lepore wrote: > On Tue, 2016-04-19 at 13:17 -0700, Juli Mallett wrote: >> Patrick Kelsey offered an mmcspi driver for FreeBSD, but nobody >> seemed >> interested. I know of one proprietary branch of FreeBSD

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Patrick Kelsey
On Tue, Apr 19, 2016 at 4:21 PM, Ian Lepore wrote: > On Tue, 2016-04-19 at 13:17 -0700, Juli Mallett wrote: > > Patrick Kelsey offered an mmcspi driver for FreeBSD, but nobody > > seemed > > interested. I know of one proprietary branch of FreeBSD using it. > > You might poke

Re: svn commit: r298243 - head/usr.sbin/bsdinstall/scripts

2016-04-19 Thread Nathan Whitehorn
On 04/19/16 09:12, John Baldwin wrote: On Tuesday, April 19, 2016 03:25:36 AM Allan Jude wrote: Author: allanjude Date: Tue Apr 19 03:25:36 2016 New Revision: 298243 URL: https://svnweb.freebsd.org/changeset/base/298243 Log: Add a new installation type to bsdinstall/zfsboot: BIOS+UEFI

svn commit: r298294 - head/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 20:28:30 2016 New Revision: 298294 URL: https://svnweb.freebsd.org/changeset/base/298294 Log: 1. modify fwdump (a.k.a grcdump) so that grcdump memory is allocated and freed on as needed basis. 2. grcdump can be taken at failure points by invoking

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Ian Lepore
On Tue, 2016-04-19 at 13:17 -0700, Juli Mallett wrote: > Patrick Kelsey offered an mmcspi driver for FreeBSD, but nobody > seemed > interested. I know of one proprietary branch of FreeBSD using it. > You might poke him if you want to know how he dealt with this, and if > you want to commit his

svn commit: r298293 - head/sys/net80211

2016-04-19 Thread Andriy Voskoboinyk
Author: avos Date: Tue Apr 19 20:19:21 2016 New Revision: 298293 URL: https://svnweb.freebsd.org/changeset/base/298293 Log: net80211: do not reschedule scan_curchan_task() if the scan was canceled. This should fix possible use-after-free in the scheduled task. PR: 208605

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Juli Mallett
Patrick Kelsey offered an mmcspi driver for FreeBSD, but nobody seemed interested. I know of one proprietary branch of FreeBSD using it. You might poke him if you want to know how he dealt with this, and if you want to commit his driver. On Tue, Apr 19, 2016 at 10:12 AM, Ruslan Bukin

svn commit: r298292 - head/libexec/rtld-elf

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 20:12:46 2016 New Revision: 298292 URL: https://svnweb.freebsd.org/changeset/base/298292 Log: rtld-elf: use our roundup2() macro when param.h is available. Modified: head/libexec/rtld-elf/malloc.c Modified: head/libexec/rtld-elf/malloc.c

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Adrian Chadd
damn, how'd this never get committed to -HEAD? -a On 19 April 2016 at 10:11, Luiz Otavio O Souza wrote: > On Tue, Apr 19, 2016 at 1:40 PM, Adrian Chadd wrote: >> Hm, why'd you do this? did you get it reviewed first? >> >> I'm about to write a kernel bitbang SPI driver that

Re: svn commit: r298243 - head/usr.sbin/bsdinstall/scripts

2016-04-19 Thread John Baldwin
On Tuesday, April 19, 2016 03:25:36 AM Allan Jude wrote: > Author: allanjude > Date: Tue Apr 19 03:25:36 2016 > New Revision: 298243 > URL: https://svnweb.freebsd.org/changeset/base/298243 > > Log: > Add a new installation type to bsdinstall/zfsboot: BIOS+UEFI > > Installs both

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread John Baldwin
On Tuesday, April 19, 2016 07:05:00 PM Konstantin Belousov wrote: > On Tue, Apr 19, 2016 at 11:49:31AM -0400, Allan Jude wrote: > > On 2016-04-19 05:30, Konstantin Belousov wrote: > > > On Mon, Apr 18, 2016 at 07:43:04PM -0400, Allan Jude wrote: > > >> On 2016-04-18 19:36, Adrian Chadd wrote: > >

Re: svn commit: r298247 - head/sbin/fdisk_pc98

2016-04-19 Thread John Baldwin
On Tuesday, April 19, 2016 04:46:13 AM Marcelo Araujo wrote: > Author: araujo > Date: Tue Apr 19 04:46:13 2016 > New Revision: 298247 > URL: https://svnweb.freebsd.org/changeset/base/298247 > > Log: > Remove redundant parenthesis. > > Submitted by: pfg > MFC after: 2 weeks. For

svn commit: r298291 - stable/7/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 19:22:07 2016 New Revision: 298291 URL: https://svnweb.freebsd.org/changeset/base/298291 Log: MFC r297884 Add support for Flash Update Submitted by:nrapendra.si...@qlogic.com;vaishali.kulka...@qlogic.com;davi...@freebsd.org Modified:

svn commit: r298290 - stable/7/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 19:18:59 2016 New Revision: 298290 URL: https://svnweb.freebsd.org/changeset/base/298290 Log: MFC r297873 1. Process tx completions in bxe_periodic_callout_func() and restart transmissions if possible. 2. For SIOCSIFFLAGS call bxe_init_locked() only

svn commit: r298289 - stable/8/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 19:14:04 2016 New Revision: 298289 URL: https://svnweb.freebsd.org/changeset/base/298289 Log: MFC r297884 Add support for Flash Update Submitted by:nrapendra.si...@qlogic.com;vaishali.kulka...@qlogic.com;davi...@freebsd.org Modified:

svn commit: r298288 - head/sbin/dump

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 19:13:33 2016 New Revision: 298288 URL: https://svnweb.freebsd.org/changeset/base/298288 Log: dump: use NULL instead of zero for pointers. Clean out the casts from calloc(3) while here. Modified: head/sbin/dump/itime.c head/sbin/dump/main.c Modified:

svn commit: r298284 - stable/9/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 19:03:06 2016 New Revision: 298284 URL: https://svnweb.freebsd.org/changeset/base/298284 Log: MFC r297884 Add support for Flash Update Submitted by:nrapendra.si...@qlogic.com;vaishali.kulka...@qlogic.com;davi...@freebsd.org Modified:

svn commit: r298287 - stable/8/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 19:08:44 2016 New Revision: 298287 URL: https://svnweb.freebsd.org/changeset/base/298287 Log: MFC r297873 1. Process tx completions in bxe_periodic_callout_func() and restart transmissions if possible. 2. For SIOCSIFFLAGS call bxe_init_locked() only

svn commit: r298286 - head/sbin/fsck_msdosfs

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 19:08:37 2016 New Revision: 298286 URL: https://svnweb.freebsd.org/changeset/base/298286 Log: fsck_msdosfs: use NULL instead of zero for pointers. Modified: head/sbin/fsck_msdosfs/dir.c Modified: head/sbin/fsck_msdosfs/dir.c

svn commit: r298285 - in head/libexec/rtld-elf: . arm mips powerpc powerpc64

2016-04-19 Thread Pedro F. Giffuni
Author: pfg Date: Tue Apr 19 19:03:55 2016 New Revision: 298285 URL: https://svnweb.freebsd.org/changeset/base/298285 Log: rtld-elf: use NULL instead of zero for pointers. Modified: head/libexec/rtld-elf/arm/reloc.c head/libexec/rtld-elf/mips/reloc.c head/libexec/rtld-elf/powerpc/reloc.c

svn commit: r298283 - stable/9/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 18:57:31 2016 New Revision: 298283 URL: https://svnweb.freebsd.org/changeset/base/298283 Log: MFC r297873 1. Process tx completions in bxe_periodic_callout_func() and restart transmissions if possible. 2. For SIOCSIFFLAGS call bxe_init_locked() only

svn commit: r298282 - stable/10/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 18:47:34 2016 New Revision: 298282 URL: https://svnweb.freebsd.org/changeset/base/298282 Log: MFC r297884 Add support for Flash Update Submitted by:nrapendra.si...@qlogic.com;vaishali.kulka...@qlogic.com;davi...@freebsd.org Modified:

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread Maxim Sobolev
Sorry, if stupid question, but can this feature kick in automatically once you have more than X MB amount of memory available, going back to default memory-conserving "slow" mode if not? I cannot imagine that would take too much effort/code to implement. I take care of some really old legacy

svn commit: r298281 - stable/10/sys/dev/bxe

2016-04-19 Thread David C Somayajulu
Author: davidcs Date: Tue Apr 19 18:33:36 2016 New Revision: 298281 URL: https://svnweb.freebsd.org/changeset/base/298281 Log: MFC r297873 1. Process tx completions in bxe_periodic_callout_func() and restart transmissions if possible. 2. For SIOCSIFFLAGS call bxe_init_locked() only

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

2016-04-19 Thread Sean Bruno
Author: sbruno Date: Tue Apr 19 18:27:28 2016 New Revision: 298280 URL: https://svnweb.freebsd.org/changeset/base/298280 Log: aacraid(4): Sanely copyin userland pointers and ensure that we don't get anything janky from a user. (cturt) aac(4): landergriffith+freebsdbugzi...@gmail.com

Re: svn commit: r298219 - head/share/mk

2016-04-19 Thread Bryan Drewery
On 4/19/2016 5:15 AM, Konstantin Belousov wrote: > On Mon, Apr 18, 2016 at 06:14:02PM +, Bryan Drewery wrote: >> Author: bdrewery >> Date: Mon Apr 18 18:14:02 2016 >> New Revision: 298219 >> URL: https://svnweb.freebsd.org/changeset/base/298219 >> >> Log: >> Cause an error during 'make

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread Ian Lepore
On Tue, 2016-04-19 at 11:49 -0400, Allan Jude wrote: > On 2016-04-19 05:30, Konstantin Belousov wrote: > > On Mon, Apr 18, 2016 at 07:43:04PM -0400, Allan Jude wrote: > > > On 2016-04-18 19:36, Adrian Chadd wrote: > > > > Someone pointed out how this bloats out memory requirement in > > > >

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Ruslan Bukin
Why I added or why I reverted ? So once I started to work on generic MMC over SPI driver it was looking like MMC/SD device in harware requires to keep CS asserted during multiple transfers, but once I completed it is become clear hardware don't require that. Ruslan On Tue, Apr 19, 2016 at

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Luiz Otavio O Souza
On Tue, Apr 19, 2016 at 1:40 PM, Adrian Chadd wrote: > Hm, why'd you do this? did you get it reviewed first? > > I'm about to write a kernel bitbang SPI driver that supports arbitrary > GPIOs, and I was thinking of fleshing this out somewhat. Hi Adrian, ray@ wrote one for zrouter, it needs some

svn commit: r298279 - head/sys/cam/ctl

2016-04-19 Thread Sean Bruno
Author: sbruno Date: Tue Apr 19 16:48:14 2016 New Revision: 298279 URL: https://svnweb.freebsd.org/changeset/base/298279 Log: Plug memory leak in ctl(4) when ctl_copyin_args() is called with a non- null terminated ASCII string. PR: 207626 Submitted by: ct...@hardenedbsd.org

Re: svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Adrian Chadd
Hm, why'd you do this? did you get it reviewed first? I'm about to write a kernel bitbang SPI driver that supports arbitrary GPIOs, and I was thinking of fleshing this out somewhat. -adrian On 19 April 2016 at 08:39, Ruslan Bukin wrote: > Author: br > Date: Tue Apr 19

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread Konstantin Belousov
On Tue, Apr 19, 2016 at 11:49:31AM -0400, Allan Jude wrote: > On 2016-04-19 05:30, Konstantin Belousov wrote: > > On Mon, Apr 18, 2016 at 07:43:04PM -0400, Allan Jude wrote: > >> On 2016-04-18 19:36, Adrian Chadd wrote: > >>> Someone pointed out how this bloats out memory requirement in loader. >

svn commit: r298278 - in head/sys/dev/bhnd: . bhndb cores/chipc cores/pci

2016-04-19 Thread Adrian Chadd
Author: adrian Date: Tue Apr 19 15:56:39 2016 New Revision: 298278 URL: https://svnweb.freebsd.org/changeset/base/298278 Log: [bhnd] Standardize bhnd device tables and quirk matching. This add a bhnd device table mechanism that standardizes matching of devices on the bhnd(4) bus,

svn commit: r298277 - in head/sys/dev/bhnd: . bhndb

2016-04-19 Thread Adrian Chadd
Author: adrian Date: Tue Apr 19 15:53:57 2016 New Revision: 298277 URL: https://svnweb.freebsd.org/changeset/base/298277 Log: [bhnd] Clean up bhnd resource handling and inherited bus methods To facilitate use by SoC implementors working with bhnd-inheriting fdt/nexus drivers: *

svn commit: r298276 - head/sys/dev/bhnd/bhndb

2016-04-19 Thread Adrian Chadd
Author: adrian Date: Tue Apr 19 15:52:55 2016 New Revision: 298276 URL: https://svnweb.freebsd.org/changeset/base/298276 Log: [bhnd] Add support for specifying the address space used by bhndb children This adds support for specifying the address space used by a bridge child; this will

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread Allan Jude
On 2016-04-19 05:08, Bjoern A. Zeeb wrote: > >> On 18 Apr 2016, at 23:09 , Allan Jude wrote: >> >> Author: allanjude >> Date: Mon Apr 18 23:09:22 2016 >> New Revision: 298230 >> URL: https://svnweb.freebsd.org/changeset/base/298230 >> > > Can you have a look at this

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread Allan Jude
On 2016-04-19 05:30, Konstantin Belousov wrote: > On Mon, Apr 18, 2016 at 07:43:04PM -0400, Allan Jude wrote: >> On 2016-04-18 19:36, Adrian Chadd wrote: >>> Someone pointed out how this bloats out memory requirement in loader. >>> >>> Did anyone check that? >>> >>> -adrian >>> >> >> I tested down

svn commit: r298275 - head/sys/boot/pc98/libpc98

2016-04-19 Thread Allan Jude
Author: allanjude Date: Tue Apr 19 15:46:21 2016 New Revision: 298275 URL: https://svnweb.freebsd.org/changeset/base/298275 Log: Fix pc98 build error introduced in r298230 Submitted by: Toomas Soome Spotted by: bz Differential Revision:

Re: svn commit: r298268 - head/sys/dev/spibus

2016-04-19 Thread Ruslan Bukin
On Tue, Apr 19, 2016 at 08:41:39AM -0600, Ian Lepore wrote: > On Tue, 2016-04-19 at 14:18 +, Ruslan Bukin wrote: > > Author: br > > Date: Tue Apr 19 14:18:12 2016 > > New Revision: 298268 > > URL: https://svnweb.freebsd.org/changeset/base/298268 > > > > Log: > > Add optional

svn commit: r298274 - head/sys/dev/spibus

2016-04-19 Thread Ruslan Bukin
Author: br Date: Tue Apr 19 15:39:46 2016 New Revision: 298274 URL: https://svnweb.freebsd.org/changeset/base/298274 Log: Revert r298268 (Add optional chip_select/deselect methods). None of supported hardware do require that. Modified: head/sys/dev/spibus/spibus.c

svn commit: r298273 - head/sys/dev/xilinx

2016-04-19 Thread Ruslan Bukin
Author: br Date: Tue Apr 19 15:36:18 2016 New Revision: 298273 URL: https://svnweb.freebsd.org/changeset/base/298273 Log: Assert CS for single transfers. Modified: head/sys/dev/xilinx/axi_quad_spi.c Modified: head/sys/dev/xilinx/axi_quad_spi.c

Re: svn commit: r298230 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/i386/loader sys/boot/mips/beri/loader s

2016-04-19 Thread Howard Su
this is wonderful change. this also helps a lot on the situation loading many .ko files from local disk. In my case, loading 5 different ko is reduced from 5 seconds to 1second. great job! -Howard On Tue, Apr 19, 2016 at 7:09 AM Allan Jude wrote: > Author: allanjude >

svn commit: r298272 - head/lib/libgpio

2016-04-19 Thread Luiz Otavio O Souza
Author: loos Date: Tue Apr 19 15:18:31 2016 New Revision: 298272 URL: https://svnweb.freebsd.org/changeset/base/298272 Log: Use GPIOTOGGLE to toggle the pin state instead of read, modify and write. Modified: head/lib/libgpio/gpio.c Modified: head/lib/libgpio/gpio.c

svn commit: r298271 - head/sbin/tunefs

2016-04-19 Thread Edward Tomasz Napierala
Author: trasz Date: Tue Apr 19 15:08:35 2016 New Revision: 298271 URL: https://svnweb.freebsd.org/changeset/base/298271 Log: Mention fsck_ffs -E in tunefs(8). It's non-obvious that one should use it after enabling TRIM. Reviewed by: brueffer@ MFC after:1 month Sponsored by: The

  1   2   >