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

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 06:25:18 2014 New Revision: 271352 URL: http://svnweb.freebsd.org/changeset/base/271352 Log: Fix minor buffer overflow reported by Coverity. CID: 1006781 Modified: head/sys/cam/ctl/ctl.c Modified: head/sys/cam/ctl/ctl.c

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

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 06:29:31 2014 New Revision: 271353 URL: http://svnweb.freebsd.org/changeset/base/271353 Log: Fix memory leak on error, reported by Coverity. CID: 1007773 Modified: head/sys/cam/ctl/ctl.c Modified: head/sys/cam/ctl/ctl.c

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

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 06:35:00 2014 New Revision: 271354 URL: http://svnweb.freebsd.org/changeset/base/271354 Log: Fix couple off-by-one range check errors, reported by Coverity. CID: 1007837 Modified: head/sys/cam/ctl/ctl.c Modified: head/sys/cam/ctl/ctl.c

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

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 06:56:45 2014 New Revision: 271358 URL: http://svnweb.freebsd.org/changeset/base/271358 Log: Fix array overrun, reported by Coverity. CID: 1229970 Modified: head/sys/cam/ctl/ctl.c Modified: head/sys/cam/ctl/ctl.c

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

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 07:00:36 2014 New Revision: 271360 URL: http://svnweb.freebsd.org/changeset/base/271360 Log: Remove uninitialized and unused variable, reported by Coverity. CID: 1230015 Modified: head/sys/cam/ctl/ctl.c Modified: head/sys/cam/ctl/ctl.c

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

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 07:16:17 2014 New Revision: 271362 URL: http://svnweb.freebsd.org/changeset/base/271362 Log: Make ctl_port_mask an array to support more then 32 ports. Overflow reported by Coverity. CID: 1229894 MFC after:3 days Modified:

Re: svn commit: r271350 - head/sys/dev/nmdm

2014-09-10 Thread Craig Rodrigues
On Tue, Sep 9, 2014 at 10:44 PM, Peter Grehan gre...@freebsd.org wrote: Author: grehan Date: Wed Sep 10 05:44:15 2014 New Revision: 271350 URL: http://svnweb.freebsd.org/changeset/base/271350 Log: Fix issue with nmdm and leading zeros in device name. The nmdm code enforces a number

svn commit: r271365 - head/share/mk

2014-09-10 Thread Garrett Cooper
Author: ngie Date: Wed Sep 10 07:55:51 2014 New Revision: 271365 URL: http://svnweb.freebsd.org/changeset/base/271365 Log: Remove many false positives with make checkdpadd - Reduce DPADD and LDADD in checkdpadd to -lfoo - Skip over -Wl,[es]*-group because -Wl,--end-group and

svn commit: r271366 - head/usr.sbin/iscsid

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 08:06:31 2014 New Revision: 271366 URL: http://svnweb.freebsd.org/changeset/base/271366 Log: Fix memory leak, reported by Coverity. CID: 1229996 Modified: head/usr.sbin/iscsid/login.c Modified: head/usr.sbin/iscsid/login.c

svn commit: r271373 - in head/sys/dev: ce cp ctau cx

2014-09-10 Thread Robert Watson
Author: rwatson Date: Wed Sep 10 09:57:32 2014 New Revision: 271373 URL: http://svnweb.freebsd.org/changeset/base/271373 Log: Replace local copy-and-paste implementations of printmbuf() in several device drivers with calls to the centralised m_print() implementation. While the formatting

svn commit: r271377 - in head/sys: arm/versatile conf dev/smc

2014-09-10 Thread Andrew Turner
Author: andrew Date: Wed Sep 10 10:59:17 2014 New Revision: 271377 URL: http://svnweb.freebsd.org/changeset/base/271377 Log: Move if_smc_fdt.c to live in sys/dev/smc. It's not specific to the ARM Versatile hardware. Added: head/sys/dev/smc/if_smc_fdt.c - copied unchanged from r271375,

svn commit: r271381 - head/sys/dev/vt

2014-09-10 Thread Aleksandr Rybalko
Author: ray Date: Wed Sep 10 11:13:13 2014 New Revision: 271381 URL: http://svnweb.freebsd.org/changeset/base/271381 Log: o Add sysctls to enable/disable potentially dengerous key combinations, like reboot/halt/debug. o Add support for most key combinations supported by syscons(4).

svn commit: r271382 - head/sys/dev/vt

2014-09-10 Thread Aleksandr Rybalko
Author: ray Date: Wed Sep 10 11:27:33 2014 New Revision: 271382 URL: http://svnweb.freebsd.org/changeset/base/271382 Log: spelling fixes Submitted by: Sam Fourman Jr. sfour...@gmail.com MFC after:1 week Modified: head/sys/dev/vt/vt_buf.c head/sys/dev/vt/vt_core.c Modified:

svn commit: r271385 - head/sys/dev/vt

2014-09-10 Thread Aleksandr Rybalko
Author: ray Date: Wed Sep 10 11:48:13 2014 New Revision: 271385 URL: http://svnweb.freebsd.org/changeset/base/271385 Log: Fix one more spelling mistake. Pointed by: danfe Modified: head/sys/dev/vt/vt_core.c Modified: head/sys/dev/vt/vt_core.c

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

2014-09-10 Thread Andrey V. Elsukov
Author: ae Date: Wed Sep 10 12:35:42 2014 New Revision: 271386 URL: http://svnweb.freebsd.org/changeset/base/271386 Log: Introduce INP6_PCBHASHKEY macro. Replace usage of hardcoded part of IPv6 address as hash key in all places. Obtained from:Yandex LLC Modified:

svn commit: r271387 - in head/sys: cddl/contrib/opensolaris/uts/common/fs/zfs fs/fuse fs/smbfs kern vm

2014-09-10 Thread Gleb Smirnoff
Author: glebius Date: Wed Sep 10 12:36:41 2014 New Revision: 271387 URL: http://svnweb.freebsd.org/changeset/base/271387 Log: Remove unused arguments for VOP_GETPAGES(), VOP_PUTPAGES(). Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c head/sys/fs/fuse/fuse_vnops.c

svn commit: r271389 - head/usr.bin/truss

2014-09-10 Thread Andrew Turner
Author: andrew Date: Wed Sep 10 13:07:01 2014 New Revision: 271389 URL: http://svnweb.freebsd.org/changeset/base/271389 Log: Stop accessing the saved stack pointer by looking past the end of the array of registers. Submitted by: Michal Meloun meloun at miracle.cz Modified:

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

2014-09-10 Thread Andrey V. Elsukov
Author: ae Date: Wed Sep 10 13:17:35 2014 New Revision: 271391 URL: http://svnweb.freebsd.org/changeset/base/271391 Log: Make in6_pcblookup_hash_locked and in6_pcbladdr static. Obtained from:Yandex LLC Sponsored by: Yandex LLC Modified: head/sys/netinet/tcp_usrreq.c

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

2014-09-10 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Sep 10 13:34:27 2014 New Revision: 271393 URL: http://svnweb.freebsd.org/changeset/base/271393 Log: Make it possible to disable NOP-In PDUs by the iSCSI initiator by setting kern.cam.ctl.iscsi.ping_timeout to 0. This fixes interoperability with some initiators that

svn commit: r271394 - head/sys/arm/include

2014-09-10 Thread Andrew Turner
Author: andrew Date: Wed Sep 10 13:38:52 2014 New Revision: 271394 URL: http://svnweb.freebsd.org/changeset/base/271394 Log: Add more register values to armreg.h and remove CPU_CONTROL_32BP_ENABLE from asm.h as they were already defined in armreg.h. Submitted by: Michal Meloun meloun at

svn commit: r271395 - in head/sys: cam/ctl dev/iscsi

2014-09-10 Thread Edward Tomasz Napierala
Author: trasz Date: Wed Sep 10 14:04:10 2014 New Revision: 271395 URL: http://svnweb.freebsd.org/changeset/base/271395 Log: Make sure we handle less than zero timeouts in iSCSI initiator and target in a reasonable way. Sponsored by: The FreeBSD Foundation Modified:

Re: svn commit: r271393 - head/sys/cam/ctl

2014-09-10 Thread Edward Tomasz Napierala
On 0910T1334, Edward Tomasz Napierala wrote: Author: trasz Date: Wed Sep 10 13:34:27 2014 New Revision: 271393 URL: http://svnweb.freebsd.org/changeset/base/271393 Log: Make it possible to disable NOP-In PDUs by the iSCSI initiator by setting Erm, this should read: Make it possible to

svn commit: r271396 - head/sys/netinet6

2014-09-10 Thread Andrey V. Elsukov
Author: ae Date: Wed Sep 10 14:32:07 2014 New Revision: 271396 URL: http://svnweb.freebsd.org/changeset/base/271396 Log: Add additional checks for IPV6_PKTINFO handling (RFC 3542): * Return ENETDOWN when interface specified by ipi6_ifindex is not enabled for IPv6 use. * Return

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

2014-09-10 Thread Alan Somers
Author: asomers Date: Wed Sep 10 14:57:26 2014 New Revision: 271397 URL: http://svnweb.freebsd.org/changeset/base/271397 Log: Abort the create_socket test if socket creation fails. MFC after:1 week Reported by: Coverity CID: 1232756 Modified:

svn commit: r271398 - in head: sys/arm/arm sys/arm/at91 sys/arm/cavium/cns11xx sys/arm/include sys/arm/s3c2xx0 sys/arm/xscale/i80321 sys/arm/xscale/i8134x sys/arm/xscale/ixp425 sys/arm/xscale/pxa u...

2014-09-10 Thread Andrew Turner
Author: andrew Date: Wed Sep 10 15:25:15 2014 New Revision: 271398 URL: http://svnweb.freebsd.org/changeset/base/271398 Log: Unify interrupts bit definition and usage. While here remove PSR_C_bit. Submitted by: Svatopluk Kraus onwahe at gmail.com, Michal Meloun meloun at

Re: svn commit: r270850 - in head/sys: i386/i386 i386/include i386/isa x86/acpica

2014-09-10 Thread John Baldwin
On Tuesday, September 09, 2014 11:58:13 AM Konstantin Belousov wrote: On Sat, Sep 06, 2014 at 04:04:49PM -0400, John Baldwin wrote: @@ -692,6 +706,27 @@ #ifdef I586_CPU case CPU_586: switch (cpu_vendor_id) { + case CPU_VENDOR_AMD: +#ifdef

Re: svn commit: r271381 - head/sys/dev/vt

2014-09-10 Thread John Baldwin
On Wednesday, September 10, 2014 11:13:14 AM Aleksandr Rybalko wrote: Author: ray Date: Wed Sep 10 11:13:13 2014 New Revision: 271381 URL: http://svnweb.freebsd.org/changeset/base/271381 Log: o Add sysctls to enable/disable potentially dengerous key combinations, like reboot/halt/debug.

svn commit: r271400 - head/sys/netinet

2014-09-10 Thread Andrey V. Elsukov
Author: ae Date: Wed Sep 10 16:26:18 2014 New Revision: 271400 URL: http://svnweb.freebsd.org/changeset/base/271400 Log: Add scope zone id to the in_endpoints and hc_metrics structures. A non-global IPv6 address can be used in more than one zone of the same scope. This zone index is used

Re: svn commit: r271381 - head/sys/dev/vt

2014-09-10 Thread Andriy Gapon
On 10/09/2014 17:30, John Baldwin wrote: On Wednesday, September 10, 2014 11:13:14 AM Aleksandr Rybalko wrote: Author: ray Date: Wed Sep 10 11:13:13 2014 New Revision: 271381 URL: http://svnweb.freebsd.org/changeset/base/271381 Log: o Add sysctls to enable/disable potentially dengerous

Re: svn commit: r270759 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs vm

2014-09-10 Thread John Baldwin
On Tuesday, September 09, 2014 02:25:18 PM Slawa Olhovchenkov wrote: On Mon, Sep 08, 2014 at 11:17:51AM -0400, John Baldwin wrote: On Sunday, September 07, 2014 04:56:49 PM Slawa Olhovchenkov wrote: PS: very bad that 'data limit' don't anymore reflect application memory consumer. and very

svn commit: r271401 - in head: tools/build/mk tools/build/options usr.sbin

2014-09-10 Thread Alan Somers
Author: asomers Date: Wed Sep 10 19:00:17 2014 New Revision: 271401 URL: http://svnweb.freebsd.org/changeset/base/271401 Log: Conditionalize build of etcupdate(8) on MK_RCS. Since etcupdate calls merge(1), which is part of the RCS package, it must not be installed if WITHOUT_RCS update is

Re: svn commit: r270759 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs vm

2014-09-10 Thread Slawa Olhovchenkov
On Wed, Sep 10, 2014 at 10:44:46AM -0400, John Baldwin wrote: On Tuesday, September 09, 2014 02:25:18 PM Slawa Olhovchenkov wrote: On Mon, Sep 08, 2014 at 11:17:51AM -0400, John Baldwin wrote: On Sunday, September 07, 2014 04:56:49 PM Slawa Olhovchenkov wrote: PS: very bad that 'data

svn commit: r271402 - head/share/man/man5

2014-09-10 Thread Alan Somers
Author: asomers Date: Wed Sep 10 19:22:14 2014 New Revision: 271402 URL: http://svnweb.freebsd.org/changeset/base/271402 Log: Regen after 271401. Sponsored by: Spectra Logic Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

Re: svn commit: r270759 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs vm

2014-09-10 Thread John Baldwin
On Wednesday, September 10, 2014 08:30:58 PM Slawa Olhovchenkov wrote: On Wed, Sep 10, 2014 at 10:44:46AM -0400, John Baldwin wrote: On Tuesday, September 09, 2014 02:25:18 PM Slawa Olhovchenkov wrote: On Mon, Sep 08, 2014 at 11:17:51AM -0400, John Baldwin wrote: On Sunday, September 07,

Re: svn commit: r270759 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs vm

2014-09-10 Thread Slawa Olhovchenkov
On Wed, Sep 10, 2014 at 02:29:30PM -0400, John Baldwin wrote: Application must change behaviour when reach limit (run GC, switch algorithm and etc.). But mmap of big data file for scaning and processing don't touch this limit. Must be mmap of some temoprary file touch this limit? I

svn commit: r271403 - head/sys/dev/ahci

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 19:53:31 2014 New Revision: 271403 URL: http://svnweb.freebsd.org/changeset/base/271403 Log: Add PCI ID for Promise TX8660 8-port 3Gbps HBA. This device reports RAID subclass, but appears to be AHCI compatible. Submitted by: Yuri Perejilin y...@rivera.ru

svn commit: r271405 - in head/sys: i386/i386 i386/include x86/x86

2014-09-10 Thread John Baldwin
Author: jhb Date: Wed Sep 10 21:04:44 2014 New Revision: 271405 URL: http://svnweb.freebsd.org/changeset/base/271405 Log: Move code to set various MSRs on AMD cpus out of printcpuinfo() and into initalizecpu() instead. Modified: head/sys/i386/i386/initcpu.c head/sys/i386/include/md_var.h

svn commit: r271406 - in head/sys/boot: ficl forth i386/libi386 i386/loader

2014-09-10 Thread Warner Losh
Author: imp Date: Wed Sep 10 21:07:00 2014 New Revision: 271406 URL: http://svnweb.freebsd.org/changeset/base/271406 Log: Add support for calling pcibios routines from the bootloader. Implement the following routines: pcibios-device-countcount the number of instances of a devid

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

2014-09-10 Thread Alexander Motin
Author: mav Date: Wed Sep 10 21:24:15 2014 New Revision: 271407 URL: http://svnweb.freebsd.org/changeset/base/271407 Log: Extend UNMAP blacklist on all STEC SSD models. None of existing STEC devices need UNMAP or even support it well, having many limitations and even hanging sometimes

svn commit: r271408 - in head/sys: i386/i386 i386/include x86/x86

2014-09-10 Thread John Baldwin
Author: jhb Date: Wed Sep 10 21:25:54 2014 New Revision: 271408 URL: http://svnweb.freebsd.org/changeset/base/271408 Log: To workaround an errata on certain Pentium Pro CPUs, i386 disables the local APIC in initializecpu() and re-enables it if the APIC code decides to use the local APIC

svn commit: r271409 - in head/sys: amd64/amd64 i386/i386 i386/include i386/xen pc98/pc98

2014-09-10 Thread John Baldwin
Author: jhb Date: Wed Sep 10 21:37:47 2014 New Revision: 271409 URL: http://svnweb.freebsd.org/changeset/base/271409 Log: MFamd64: Use initializecpu() to set various model-specific registers on AP startup and AP resume (it was already used for BSP startup and BSP resume). - Split code to

svn commit: r271410 - head/usr.bin/vmstat

2014-09-10 Thread Hiroki Sato
Author: hrs Date: Wed Sep 10 22:34:08 2014 New Revision: 271410 URL: http://svnweb.freebsd.org/changeset/base/271410 Log: Fix header output when -P is specified and (ncpus - 1) != maxid. Reported by: Hiroaki Shimizu PR: 152738 Modified: head/usr.bin/vmstat/vmstat.c

svn commit: r271411 - head/sbin/dump

2014-09-10 Thread Hiroki Sato
Author: hrs Date: Wed Sep 10 22:37:20 2014 New Revision: 271411 URL: http://svnweb.freebsd.org/changeset/base/271411 Log: Fix a bug which could break extended attributes in a dump output. This occurred when a file was 892kB long and had a large data (1kB) in the extended attributes.

svn commit: r271413 - head/cddl/contrib/opensolaris/lib/libdtrace/common

2014-09-10 Thread Mark Johnston
Author: markj Date: Thu Sep 11 01:04:56 2014 New Revision: 271413 URL: http://svnweb.freebsd.org/changeset/base/271413 Log: Use the linker to perform relocations in the SUNW_dof section rather than doing them in drti during startup. This fixes a number of problems with using USDT probes in

svn commit: r271417 - head/sys/vm

2014-09-10 Thread Alan Cox
Author: alc Date: Thu Sep 11 03:16:57 2014 New Revision: 271417 URL: http://svnweb.freebsd.org/changeset/base/271417 Log: Update a stale comment. Modified: head/sys/vm/vm_object.h Modified: head/sys/vm/vm_object.h

svn commit: r271418 - head/sbin/dhclient

2014-09-10 Thread Gleb Smirnoff
Author: glebius Date: Thu Sep 11 05:48:39 2014 New Revision: 271418 URL: http://svnweb.freebsd.org/changeset/base/271418 Log: Since r270929 raw sockets expect network byte order. Submitted by: avg Modified: head/sbin/dhclient/packet.c Modified: head/sbin/dhclient/packet.c