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

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 07:13:53 2016 New Revision: 300662 URL: https://svnweb.freebsd.org/changeset/base/300662 Log: Fix Coverity CID 1016714 Resource leak in process_file_actions_entry() Don't leak a file descriptor of _dup2() fails (shouldn't happen). Reported by: Coverit

svn commit: r300664 - head/lib/libcompat/4.3

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 07:26:22 2016 New Revision: 300664 URL: https://svnweb.freebsd.org/changeset/base/300664 Log: Fix Coverity CID 978183 Resource leak in rexec(). Close the socket if connect() fails to avoid leaking it. Reported by: Coverity CID: 978183 MFC

svn commit: r300665 - head/lib/libfetch

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 07:39:48 2016 New Revision: 300665 URL: https://svnweb.freebsd.org/changeset/base/300665 Log: Don't leak addrinfo in fetch_bind() Reported by: Coverity CID: 1225038 MFC after:1 week Modified: head/lib/libfetch/common.c Modified: head/l

svn commit: r300666 - head/lib/libfetch

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 07:43:32 2016 New Revision: 300666 URL: https://svnweb.freebsd.org/changeset/base/300666 Log: Call closedir() before returning from fetchListFile() to avoid a leak. Reported by: Coverity CID: 1016697 MFC after:1 week Modified: head/lib/

svn commit: r300667 - head/sys/dev/usb

2016-05-25 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 25 07:48:36 2016 New Revision: 300667 URL: https://svnweb.freebsd.org/changeset/base/300667 Log: Check for signals when locking the USB enumeration thread from userspace, so that USB applications can be killed if an enumeration thread should be stuck for variou

svn commit: r300669 - head/usr.sbin/pmcstat

2016-05-25 Thread Ed Schouten
Author: ed Date: Wed May 25 08:45:03 2016 New Revision: 300669 URL: https://svnweb.freebsd.org/changeset/base/300669 Log: Make code compile when basename() is POSIX compliant. The POSIX basename() function is allowed to modify its input buffer, which means its argument is "char *". Pull a

svn commit: r300670 - head/sys/net

2016-05-25 Thread Nick Hibma
Author: n_hibma Date: Wed May 25 09:00:05 2016 New Revision: 300670 URL: https://svnweb.freebsd.org/changeset/base/300670 Log: Change net.link.log_promisc_mode_change to a read-only tunable PR: 166255 Submitted by: eugen.grosbein.net Obtained from:hselasky MFC after:

svn commit: r300671 - in head/sys/compat/linuxkpi/common: include/linux src

2016-05-25 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 25 09:04:06 2016 New Revision: 300671 URL: https://svnweb.freebsd.org/changeset/base/300671 Log: Add checks for SCHEDULER_STOPPED() so that code using the LinuxKPI can run after a panic(). This for example allows a LinuxKPI based graphics stack to receive print

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

2016-05-25 Thread Svatopluk Kraus
Author: skra Date: Wed May 25 10:09:23 2016 New Revision: 300674 URL: https://svnweb.freebsd.org/changeset/base/300674 Log: Add more info about the issue fixed in r298460. Rephrase some sentences and fix grammar. No functional change. Suggested by: alc Reviewed by: alc Modified:

svn commit: r300675 - head/contrib/elftoolchain/libdwarf

2016-05-25 Thread Ruslan Bukin
Author: br Date: Wed May 25 11:58:55 2016 New Revision: 300675 URL: https://svnweb.freebsd.org/changeset/base/300675 Log: Add relocation support for RISC-V. Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision:https://reviews.freebsd.org/D65

svn commit: r300676 - in head/sys: dev/cxgbe/iw_cxgbe dev/mlx5/mlx5_core ofed/drivers/infiniband/core ofed/drivers/infiniband/debug ofed/drivers/infiniband/hw/mlx4 ofed/drivers/infiniband/hw/mthca ...

2016-05-25 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 25 12:03:21 2016 New Revision: 300676 URL: https://svnweb.freebsd.org/changeset/base/300676 Log: Prepare for activation of LinuxKPI module parameters as read-only tunable SYSCTL's. Linux module parameters are associated with the module they belong to. FreeBSD d

svn commit: r300677 - in head/sys/compat/linuxkpi/common: include/linux src

2016-05-25 Thread Hans Petter Selasky
Author: hselasky Date: Wed May 25 12:12:14 2016 New Revision: 300677 URL: https://svnweb.freebsd.org/changeset/base/300677 Log: Implement Linux module parameters as read-only tunable SYSCTLs. Bool module parameters are no longer supported, because there is no equivalent in FreeBSD. T

svn commit: r300678 - head/usr.bin/whois

2016-05-25 Thread Tony Finch
Author: fanf Date: Wed May 25 13:09:06 2016 New Revision: 300678 URL: https://svnweb.freebsd.org/changeset/base/300678 Log: Send whois queries for gov.uk names to JANET. Modified: head/usr.bin/whois/whois.c Modified: head/usr.bin/whois/whois.c

Re: svn commit: r299393 - in head: . share/mk

2016-05-25 Thread Hans Petter Selasky
On 05/11/16 00:32, John Baldwin wrote: Author: jhb Date: Tue May 10 22:32:23 2016 New Revision: 299393 URL: https://svnweb.freebsd.org/changeset/base/299393 Log: Change the default installation directory for modules to /boot/modules. Kernel installs always override KMODDIR when installing m

svn commit: r300679 - head/sys/netinet

2016-05-25 Thread Michael Tuexen
Author: tuexen Date: Wed May 25 13:48:26 2016 New Revision: 300679 URL: https://svnweb.freebsd.org/changeset/base/300679 Log: Count packets as not being delivered only if they are neither processed by a kernel handler nor by a raw socket. MFC after:1 week Modified: head/sys/netinet

svn commit: r300680 - in head: contrib/netbsd-tests/lib/libc/gen contrib/netbsd-tests/lib/libc/sys lib/libc/riscv lib/libc/riscv/sys

2016-05-25 Thread Ruslan Bukin
Author: br Date: Wed May 25 14:08:21 2016 New Revision: 300680 URL: https://svnweb.freebsd.org/changeset/base/300680 Log: Remove legacy brk and sbrk from RISC-V. Discussed with: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Deleted: head/lib/libc/riscv/sys/brk.S head/l

svn commit: r300683 - head/lib/libc/regex

2016-05-25 Thread Pedro F. Giffuni
Author: pfg Date: Wed May 25 15:35:23 2016 New Revision: 300683 URL: https://svnweb.freebsd.org/changeset/base/300683 Log: libc: regexec(3) adjustment. Change the behavior of when REG_STARTEND is combined with REG_NOTBOL. From the original posting[1]: "Enable the assumption that p

svn commit: r300684 - head/usr.bin/sed

2016-05-25 Thread Pedro F. Giffuni
Author: pfg Date: Wed May 25 15:42:39 2016 New Revision: 300684 URL: https://svnweb.freebsd.org/changeset/base/300684 Log: sed: convert sed to use REG_STARTEND more explicitly. Summarizing the findings in the OpenBSD list: This solves a reproduceable issue with very recent Mesa where R

svn commit: r300685 - head/sbin/camcontrol

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 15:43:01 2016 New Revision: 300685 URL: https://svnweb.freebsd.org/changeset/base/300685 Log: Fix a couple of new instances of a false positive Coverity buffer overflow defect. Use the new CCB_CLEAR_ALL_EXCEPT_HDR() macro instead of the calling bzero() on t

svn commit: r300686 - head/sbin/camcontrol

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 15:49:29 2016 New Revision: 300686 URL: https://svnweb.freebsd.org/changeset/base/300686 Log: Fix a couple of Coverity Unintended sign extension sign extension defects. When shifting an unsigned byte into the upper 8 bits of an int and the resulting value i

Re: svn commit: r300685 - head/sbin/camcontrol

2016-05-25 Thread Don Lewis
On 25 May, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Wed May 25 15:43:01 2016 > New Revision: 300685 > URL: https://svnweb.freebsd.org/changeset/base/300685 > > Log: > Fix a couple of new instances of a false positive Coverity buffer > overflow defect. Use the new CCB_C

Re: svn commit: r300686 - head/sbin/camcontrol

2016-05-25 Thread Don Lewis
On 25 May, To: src-committ...@freebsd.org wrote: > Author: truckman > Date: Wed May 25 15:49:29 2016 > New Revision: 300686 > URL: https://svnweb.freebsd.org/changeset/base/300686 > > Log: > Fix a couple of Coverity Unintended sign extension sign extension > defects. When shifting an unsigned

svn commit: r300687 - head/sys/netinet

2016-05-25 Thread Michael Tuexen
Author: tuexen Date: Wed May 25 15:54:21 2016 New Revision: 300687 URL: https://svnweb.freebsd.org/changeset/base/300687 Log: Send an ICMP packet indicating destination unreachable/protocol unreachable if we don't handle the packet in the kernel and not in userspace. MFC after:1 wee

svn commit: r300689 - head/lib/libc/riscv/sys

2016-05-25 Thread Ruslan Bukin
Author: br Date: Wed May 25 16:38:10 2016 New Revision: 300689 URL: https://svnweb.freebsd.org/changeset/base/300689 Log: Do not generate code for sbrk syscall -- sbrk support was removed. Pointed out by: andrew Modified: head/lib/libc/riscv/sys/Makefile.inc Modified: head/lib/lib

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

2016-05-25 Thread Konstantin Belousov
Author: kib Date: Wed May 25 18:10:44 2016 New Revision: 300691 URL: https://svnweb.freebsd.org/changeset/base/300691 Log: Fix issues found by Coverity in the rtld-elf.c:gethints(). Check that the dirlist path string specification does not cause overflow and is fully contained in the hint

svn commit: r300692 - head/bin/ed

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 18:38:30 2016 New Revision: 300692 URL: https://svnweb.freebsd.org/changeset/base/300692 Log: Close the input FILE * in read_file() and the output FILE * in write_file() if read_stream() or write_stream() fails to avoid leaking the FILE. Reported by: Cov

svn commit: r300694 - in head/sys: arm/arm arm/include arm/mv kern sys

2016-05-25 Thread Ian Lepore
Author: ian Date: Wed May 25 19:44:26 2016 New Revision: 300694 URL: https://svnweb.freebsd.org/changeset/base/300694 Log: Include machine/acle-compat.h in cdefs.h on arm if the compiler doesn't have ACLE support built in. The ACLE (ARM C Language Extensions) defines a set of standardized s

svn commit: r300698 - in head: contrib/elftoolchain/elfcopy lib/libelftc

2016-05-25 Thread Ed Maste
Author: emaste Date: Wed May 25 20:56:30 2016 New Revision: 300698 URL: https://svnweb.freebsd.org/changeset/base/300698 Log: Update to ELF Tool Chain r3477 This fixes a EFI/PE header issue that prevented elfcopy-produced .efi files from working with Secure Boot: Make sure section

svn commit: r300699 - head/sys/netinet

2016-05-25 Thread Michael Tuexen
Author: tuexen Date: Wed May 25 22:16:11 2016 New Revision: 300699 URL: https://svnweb.freebsd.org/changeset/base/300699 Log: When sending in ICMP response to an SCTP packet, * include the SCTP common header, if possible * include the first 8 bytes of the INIT chunk, if possible This provi

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

2016-05-25 Thread Jung-uk Kim
Author: jkim Date: Wed May 25 23:06:52 2016 New Revision: 300700 URL: https://svnweb.freebsd.org/changeset/base/300700 Log: Both Clang and GCC cannot generate efficient reserve_pv_entries(). http://docs.freebsd.org/cgi/mid.cgi?552BFEB2.8040407 Re-implement it entirely in inline assembl

svn commit: r300701 - in head/sys: arm/arm arm/include sys

2016-05-25 Thread Ian Lepore
Author: ian Date: Thu May 26 00:03:23 2016 New Revision: 300701 URL: https://svnweb.freebsd.org/changeset/base/300701 Log: Disable alignment faults on armv6, adjust various alignment-related macros to match the new state of affairs. The hardware we support has always been able to do unalign

svn commit: r300702 - head/sys/dev/bhnd/cores/chipc

2016-05-25 Thread Adrian Chadd
Author: adrian Date: Thu May 26 00:43:08 2016 New Revision: 300702 URL: https://svnweb.freebsd.org/changeset/base/300702 Log: [bhnd] Integrate bhnd_chipc's BUS_ADD_CHILD() with a child resource mapping table. This adds support for automatically configuring bhnd_chipc bus children with as

svn commit: r300703 - head/sys/dev/bhnd/cores/chipc

2016-05-25 Thread Adrian Chadd
Author: adrian Date: Thu May 26 00:44:16 2016 New Revision: 300703 URL: https://svnweb.freebsd.org/changeset/base/300703 Log: [bhnd] Fix release of uninitialized SPROM shadow in chipc detach. This was triggering a panic on detach; the SPROM shadow is now maintained by the bhnd_sprom_chipc

svn commit: r300704 - head/sys/dev/flash

2016-05-25 Thread Adrian Chadd
Author: adrian Date: Thu May 26 01:19:13 2016 New Revision: 300704 URL: https://svnweb.freebsd.org/changeset/base/300704 Log: [mx25l] add Winbond w25x64 support. PR: https://github.com/freebsd/freebsd/pull/16 Submitted by: https://github.com/epipenau Modified: head/sys/dev/fl

svn commit: r300705 - head/usr.bin/fortune/unstr

2016-05-25 Thread Don Lewis
Author: truckman Date: Thu May 26 01:33:24 2016 New Revision: 300705 URL: https://svnweb.freebsd.org/changeset/base/300705 Log: Avoid buffer overflow when copying the input file name and appending .dat. Check the return value from fread() to be sure that it was successful. Reported by:

svn commit: r300706 - head/usr.sbin/tzsetup

2016-05-25 Thread Don Lewis
Author: truckman Date: Thu May 26 01:45:04 2016 New Revision: 300706 URL: https://svnweb.freebsd.org/changeset/base/300706 Log: Avoid buffer overflow or truncation when constructing path_zoneinfo_file. Reported by: Coverity CID: 1011160 MFC after:1 week Modified: head/u

svn commit: r300707 - head/sys/dev/sdhci

2016-05-25 Thread Ian Lepore
Author: ian Date: Thu May 26 02:55:41 2016 New Revision: 300707 URL: https://svnweb.freebsd.org/changeset/base/300707 Log: Add a convenience macro that masks all the bits related to clock divisors in all versions of the sdhci spec (the HI bits are just unused reserved bits in earlier version

svn commit: r300708 - head/sys/dev/hyperv/vmbus

2016-05-25 Thread Sepherosa Ziehau
Author: sephe Date: Thu May 26 03:50:52 2016 New Revision: 300708 URL: https://svnweb.freebsd.org/changeset/base/300708 Log: hyperv: Rework guest id settings according to Hyper-V spec MFC after:1 week Sponsored by: Microsoft OSTC Differential Revision:https://reviews.freebsd

svn commit: r300709 - head/sys/arm/freescale/imx

2016-05-25 Thread Ian Lepore
Author: ian Date: Thu May 26 03:55:27 2016 New Revision: 300709 URL: https://svnweb.freebsd.org/changeset/base/300709 Log: Another round of changes to add compatibility with the older ESHDC variety of hardware. Mostly this focuses on the big changes needed for setting the bus clock, because

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

2016-05-25 Thread Adrian Chadd
Author: adrian Date: Thu May 26 06:35:11 2016 New Revision: 300710 URL: https://svnweb.freebsd.org/changeset/base/300710 Log: [spibus] add initial placeholders for transfer mode and frequency. This doesn't yet implement it in the controllers or the transfer calls, but it's a start. O

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

2016-05-25 Thread Adrian Chadd
Author: adrian Date: Thu May 26 06:37:33 2016 New Revision: 300712 URL: https://svnweb.freebsd.org/changeset/base/300712 Log: [spibus] implement maximum clock frequency lookup from ofw. Obtained from:loos Modified: head/sys/dev/spibus/ofw_spibus.c Modified: head/sys/dev/spibus/o

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

2016-05-25 Thread Adrian Chadd
Author: adrian Date: Thu May 26 06:36:58 2016 New Revision: 300711 URL: https://svnweb.freebsd.org/changeset/base/300711 Log: [spibus] add missing break. Pointy hat to: me Modified: head/sys/dev/spibus/spibus.c Modified: head/sys/dev/spibus/spibus.c =