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,

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:

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

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:

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

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:

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

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

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

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

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

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: r300697 - vendor/elftoolchain/elftoolchain-r3477

2016-05-25 Thread Ed Maste
Author: emaste Date: Wed May 25 20:50:05 2016 New Revision: 300697 URL: https://svnweb.freebsd.org/changeset/base/300697 Log: Tag ELF Tool Chain r3477 Added: vendor/elftoolchain/elftoolchain-r3477/ - copied from r300696, vendor/elftoolchain/dist/

svn commit: r300696 - vendor/elftoolchain/dist/elfcopy

2016-05-25 Thread Ed Maste
Author: emaste Date: Wed May 25 20:49:19 2016 New Revision: 300696 URL: https://svnweb.freebsd.org/changeset/base/300696 Log: Import ELF Tool Chain snapshot at revision 3477 From http://svn.code.sf.net/p/elftoolchain/code/ Modified: vendor/elftoolchain/dist/elfcopy/pe.c Modified:

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

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:

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

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:

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

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

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

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

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

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

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

svn commit: r300682 - in stable/10: lib/libmt usr.bin/mt

2016-05-25 Thread Kenneth D. Merry
Author: ken Date: Wed May 25 15:10:07 2016 New Revision: 300682 URL: https://svnweb.freebsd.org/changeset/base/300682 Log: MFC r300327: r300327 | ken | 2016-05-20 13:30:52 -0600 (Fri, 20 May 2016) | 11 lines

svn commit: r300681 - stable/10/usr.sbin/camdd

2016-05-25 Thread Kenneth D. Merry
Author: ken Date: Wed May 25 14:30:33 2016 New Revision: 300681 URL: https://svnweb.freebsd.org/changeset/base/300681 Log: MFC r300224: r300224 | ken | 2016-05-19 13:13:43 -0600 (Thu, 19 May 2016) | 12 lines

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

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:

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

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

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.

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

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:

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: r300673 - stable/10/sys/vm

2016-05-25 Thread Konstantin Belousov
Author: kib Date: Wed May 25 10:04:53 2016 New Revision: 300673 URL: https://svnweb.freebsd.org/changeset/base/300673 Log: MFC r300432: Giant is dropped by mi_startup() before passing the control to swapper. Modified: stable/10/sys/vm/vm_glue.c Directory Properties: stable/10/ (props

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

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

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

svn commit: r300668 - stable/10/tools/tools/ioat

2016-05-25 Thread Alexander Motin
Author: mav Date: Wed May 25 08:09:14 2016 New Revision: 300668 URL: https://svnweb.freebsd.org/changeset/base/300668 Log: Fix build on stable/10. Modified: stable/10/tools/tools/ioat/Makefile Modified: stable/10/tools/tools/ioat/Makefile

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

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:

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:

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

svn commit: r300663 - stable/10/share/man/man4

2016-05-25 Thread Alexander Motin
Author: mav Date: Wed May 25 07:14:52 2016 New Revision: 300663 URL: https://svnweb.freebsd.org/changeset/base/300663 Log: Add ioat.4 missed in r300661. Added: stable/10/share/man/man4/ioat.4 (contents, props changed) Added: stable/10/share/man/man4/ioat.4

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:

svn commit: r300661 - in stable/10: share/man/man4 sys/conf sys/dev/ioat sys/modules sys/modules/ioat tools/tools/ioat

2016-05-25 Thread Alexander Motin
Author: mav Date: Wed May 25 07:09:54 2016 New Revision: 300661 URL: https://svnweb.freebsd.org/changeset/base/300661 Log: MFC ioat(4) driver in its present state. Added: stable/10/sys/dev/ioat/ stable/10/sys/dev/ioat/ioat.c (contents, props changed) stable/10/sys/dev/ioat/ioat.h

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

2016-05-25 Thread Don Lewis
Author: truckman Date: Wed May 25 06:55:53 2016 New Revision: 300660 URL: https://svnweb.freebsd.org/changeset/base/300660 Log: Fix 1016718 Resource leak. Don't leak a file descriptor if fchdir() fails. Reported by: Coverity CID: 1016718 MFC after:1 week Modified:

svn commit: r300659 - in head/sys/mips: conf mediatek

2016-05-25 Thread Stanislav Galabov
Author: sgalabov Date: Wed May 25 06:47:28 2016 New Revision: 300659 URL: https://svnweb.freebsd.org/changeset/base/300659 Log: Build etherswitch support for appropriate Ralink/Mediatek SoCs Etherswitch support is built by default on all SoCs except RT3662/RT3883 as they have no built-in

svn commit: r300658 - head/sys/gnu/dts/mips

2016-05-25 Thread Stanislav Galabov
Author: sgalabov Date: Wed May 25 06:39:48 2016 New Revision: 300658 URL: https://svnweb.freebsd.org/changeset/base/300658 Log: Bring ralink/mediatek DTS files in sync with LEDE This is the last sync with LEDE Project dts files before 11.0. Obtained from:LEDE Project

svn commit: r300657 - head/sys/dev/ral

2016-05-25 Thread Stanislav Galabov
Author: sgalabov Date: Wed May 25 06:29:23 2016 New Revision: 300657 URL: https://svnweb.freebsd.org/changeset/base/300657 Log: Align radiotap structures in ral(4) Currently all radiotap structures in ral(4) are packed, but are not aligned, which causes ral based devices to crash when

svn commit: r300656 - stable/10/sys/dev/hyperv/storvsc

2016-05-25 Thread Sepherosa Ziehau
Author: sephe Date: Wed May 25 06:15:26 2016 New Revision: 300656 URL: https://svnweb.freebsd.org/changeset/base/300656 Log: MFC r299505 hyperv/stor: Enable INQUIRY result check only on WIN10 like host systems On WIN8 like host systems, when rescan happens, the already installed

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

2016-05-25 Thread Sepherosa Ziehau
Author: sephe Date: Wed May 25 06:01:47 2016 New Revision: 300655 URL: https://svnweb.freebsd.org/changeset/base/300655 Log: hyperv: Preserve required bits when disable Hypercall MFC after:1 week Sponsored by: Microsoft OSTC Differential Revision: