svn commit: r272094 - head/sys/dev/lmc

2014-09-25 Thread Gleb Smirnoff
Author: glebius Date: Thu Sep 25 06:47:38 2014 New Revision: 272094 URL: http://svnweb.freebsd.org/changeset/base/272094 Log: Run through unifdef(1) with slight hand-editing after. It is obvious, that the driver is not going to be ever improved in terms of hardware support, it is going to

svn commit: r272095 - head/sys/dev/lmc

2014-09-25 Thread Gleb Smirnoff
Author: glebius Date: Thu Sep 25 07:00:31 2014 New Revision: 272095 URL: http://svnweb.freebsd.org/changeset/base/272095 Log: - Provide lmc_get_counter() to return counters that are not collected, but taken from hardware. - Mechanically convert to if_inc_counter() the rest of counters.

svn commit: r272096 - head/sys/dev/bce

2014-09-25 Thread Gleb Smirnoff
Author: glebius Date: Thu Sep 25 07:22:24 2014 New Revision: 272096 URL: http://svnweb.freebsd.org/changeset/base/272096 Log: - Provide bce_get_counter() to return counters that are not collected, but taken from hardware. - Mechanically convert to if_inc_counter() the rest of counters.

svn commit: r272098 - in head/sys: amd64/amd64 arm/arm ddb i386/i386 mips/mips pc98/pc98 powerpc/aim powerpc/booke sparc64/sparc64 x86/xen

2014-09-25 Thread Roger Pau Monné
Author: royger Date: Thu Sep 25 08:28:10 2014 New Revision: 272098 URL: http://svnweb.freebsd.org/changeset/base/272098 Log: ddb: allow specifying the exact address of the symtab and strtab When the FreeBSD kernel is loaded from Xen the symtab and strtab are not loaded the same way as

svn commit: r272099 - head/sys/dev/vmware/vmxnet3

2014-09-25 Thread Gleb Smirnoff
Author: glebius Date: Thu Sep 25 08:36:11 2014 New Revision: 272099 URL: http://svnweb.freebsd.org/changeset/base/272099 Log: Provide vmxnet3_get_counter() to return counters that are not collected, but taken from hardware. Modified: head/sys/dev/vmware/vmxnet3/if_vmx.c Modified:

svn commit: r272102 - head/lib/libnv

2014-09-25 Thread Pawel Jakub Dawidek
Author: pjd Date: Thu Sep 25 10:59:01 2014 New Revision: 272102 URL: http://svnweb.freebsd.org/changeset/base/272102 Log: Document the new nvlist_get_parent() function. Submitted by: Mariusz Zaborski Modified: head/lib/libnv/nv.3 Modified: head/lib/libnv/nv.3

svn commit: r272103 - in head/sys: arm/conf arm/s3c2xx0 arm/samsung/s3c2xx0 dev/usb/controller

2014-09-25 Thread Gavin Atkinson
Author: gavin Date: Thu Sep 25 11:38:26 2014 New Revision: 272103 URL: http://svnweb.freebsd.org/changeset/base/272103 Log: Move the ARM Samsung s3c2xx0 support files into the samsung directory, to match other platforms. Discussed with: andrew Added:

Re: svn commit: r272089 - head/sys/netpfil/ipfw

2014-09-25 Thread Sean Bruno
On Thu, 2014-09-25 at 09:18 +0400, Gleb Smirnoff wrote: On Wed, Sep 24, 2014 at 07:40:23PM -0700, Adrian Chadd wrote: A Hm, I saw this from Kate on IRC. Did anyone figure out _where_ these A frames are coming from? A A Just dropping them is cool, but I'd really like to see the contents of A

svn commit: r272105 - head/sys/boot/efi/include

2014-09-25 Thread Ed Maste
Author: emaste Date: Thu Sep 25 13:31:08 2014 New Revision: 272105 URL: http://svnweb.freebsd.org/changeset/base/272105 Log: Remove duplicated header content I fail at patch(1). MFC after:3 days Modified: head/sys/boot/efi/include/eficonsctl.h Modified:

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

2014-09-25 Thread Gavin Atkinson
Author: gavin Date: Thu Sep 25 14:18:34 2014 New Revision: 272106 URL: http://svnweb.freebsd.org/changeset/base/272106 Log: Add basic man page for ipheth(4). MFC after:1 week Added: head/share/man/man4/ipheth.4 (contents, props changed) Modified: head/share/man/man4/Makefile

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

2014-09-25 Thread Gavin Atkinson
Author: gavin Date: Thu Sep 25 14:22:32 2014 New Revision: 272107 URL: http://svnweb.freebsd.org/changeset/base/272107 Log: Cross reference cdce(4), ipheth(4) and urndis(4) from each other. MFC after:1 week Modified: head/share/man/man4/cdce.4 head/share/man/man4/urndis.4

svn commit: r272108 - head/sys/modules/netmap

2014-09-25 Thread Luigi Rizzo
Author: luigi Date: Thu Sep 25 14:25:38 2014 New Revision: 272108 URL: http://svnweb.freebsd.org/changeset/base/272108 Log: add missing file Submitted by: Daniel Peyrolon MFC after:3 days Modified: head/sys/modules/netmap/Makefile Modified: head/sys/modules/netmap/Makefile

svn commit: r272109 - in head/sys: dev/fdt dev/ofw mips/beri powerpc/ofw powerpc/pseries

2014-09-25 Thread Ian Lepore
Author: ian Date: Thu Sep 25 15:02:33 2014 New Revision: 272109 URL: http://svnweb.freebsd.org/changeset/base/272109 Log: Replace multiple nearly-identical copies of code to walk through an FDT node's interrupts=... property creating resource list entries with a single common

svn commit: r272110 - head/sys/dev/netmap

2014-09-25 Thread Luigi Rizzo
Author: luigi Date: Thu Sep 25 15:57:57 2014 New Revision: 272110 URL: http://svnweb.freebsd.org/changeset/base/272110 Log: adapt the code to different freebsd versions. Not necessary to MFC Modified: head/sys/dev/netmap/netmap_kern.h Modified: head/sys/dev/netmap/netmap_kern.h

svn commit: r272111 - head/sys/dev/netmap

2014-09-25 Thread Luigi Rizzo
Author: luigi Date: Thu Sep 25 16:22:32 2014 New Revision: 272111 URL: http://svnweb.freebsd.org/changeset/base/272111 Log: fix a panic when passing ifioctl from a netmap file descriptor to the underlying device. This needs to be merged to 10.1 Reported by: Patrick Kelsey MFC after:

svn commit: r272120 - in head/sys: arm/altera/socfpga arm/conf boot/fdt/dts/arm dev/dwc

2014-09-25 Thread Ruslan Bukin
Author: br Date: Thu Sep 25 18:03:14 2014 New Revision: 272120 URL: http://svnweb.freebsd.org/changeset/base/272120 Log: Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000 Ethernet MAC. Sponsored by: DARPA, AFRL Added: head/sys/dev/dwc/ head/sys/dev/dwc/if_dwc.c

svn commit: r272121 - in head/sys: conf dev/ncr

2014-09-25 Thread John Baldwin
Author: jhb Date: Thu Sep 25 18:43:52 2014 New Revision: 272121 URL: http://svnweb.freebsd.org/changeset/base/272121 Log: Lock ncr(4) and mark it MPSAFE along with various other fixes: - Use bus_*() instead of bus_space_*(). - Use device_printf(). - Remove unused global variables and the

svn commit: r272122 - head/lib/libc/stdtime

2014-09-25 Thread Pedro F. Giffuni
Author: pfg Date: Thu Sep 25 18:52:17 2014 New Revision: 272122 URL: http://svnweb.freebsd.org/changeset/base/272122 Log: Add strptime(3) support for %U and %W Add support for the missing POSIX-2001 %U and %W features: the existing FreeBSD strptime code recognizes both directives and

svn commit: r272123 - head/sys/pc98/cbus

2014-09-25 Thread John Baldwin
Author: jhb Date: Thu Sep 25 18:53:27 2014 New Revision: 272123 URL: http://svnweb.freebsd.org/changeset/base/272123 Log: Use callout() instead of timeout(). This is almost identical to the changes in r271963. Approved by: nyan Modified: head/sys/pc98/cbus/pckbd.c Modified:

svn commit: r272124 - head/sys/pc98/cbus

2014-09-25 Thread John Baldwin
Author: jhb Date: Thu Sep 25 18:54:36 2014 New Revision: 272124 URL: http://svnweb.freebsd.org/changeset/base/272124 Log: Use callout(9) instead of timeout(9). Approved by: nyan Modified: head/sys/pc98/cbus/olpt.c Modified: head/sys/pc98/cbus/olpt.c

svn commit: r272125 - head/lib/libproc

2014-09-25 Thread Mark Johnston
Author: markj Date: Thu Sep 25 19:08:06 2014 New Revision: 272125 URL: http://svnweb.freebsd.org/changeset/base/272125 Log: Factor out some of the duplicated code in the symbol lookup functions, in preparation for adding userland CTF support to DTrace. MFC after:1 month Sponsored

svn commit: r272126 - head/sys/gnu/fs/reiserfs

2014-09-25 Thread Pedro F. Giffuni
Author: pfg Date: Thu Sep 25 19:10:32 2014 New Revision: 272126 URL: http://svnweb.freebsd.org/changeset/base/272126 Log: reiserfs: Use signed i_nlink Unlike Linux, FreeBSD's kernel doesn't like unsigned file link count. This is consistent with our ext2fs implementation. MFC after:

svn commit: r272127 - head/usr.bin/grep/regex

2014-09-25 Thread Pedro F. Giffuni
Author: pfg Date: Thu Sep 25 19:22:26 2014 New Revision: 272127 URL: http://svnweb.freebsd.org/changeset/base/272127 Log: bsdgrep: Work-around for segmentation fault. Fix by David Carlier. Obtained from:HardenedBSD PR: 167921 MFC after:1 month Modified:

Re: svn commit: r272122 - head/lib/libc/stdtime

2014-09-25 Thread Bryan Drewery
On 9/25/2014 1:52 PM, Pedro F. Giffuni wrote: Author: pfg Date: Thu Sep 25 18:52:17 2014 New Revision: 272122 URL: http://svnweb.freebsd.org/changeset/base/272122 Log: Add strptime(3) support for %U and %W Add support for the missing POSIX-2001 %U and %W features: the existing

Re: svn commit: r272122 - head/lib/libc/stdtime

2014-09-25 Thread Pedro Giffuni
On 09/25/14 14:53, Bryan Drewery wrote: On 9/25/2014 1:52 PM, Pedro F. Giffuni wrote: Author: pfg Date: Thu Sep 25 18:52:17 2014 New Revision: 272122 URL: http://svnweb.freebsd.org/changeset/base/272122 Log: Add strptime(3) support for %U and %W Add support for the missing

svn commit: r272129 - in head/sys: conf dev/fdc modules/fdc pc98/cbus

2014-09-25 Thread John Baldwin
Author: jhb Date: Thu Sep 25 20:40:24 2014 New Revision: 272129 URL: http://svnweb.freebsd.org/changeset/base/272129 Log: Merge the PC98 fdc(4) driver into the MI driver. While here, replace the magic numbers used with NE7CMD_SPECIFY with invocations of the NE7_SPEC_x() macros.

svn commit: r272130 - head/sys/kern

2014-09-25 Thread Konstantin Belousov
Author: kib Date: Thu Sep 25 20:42:25 2014 New Revision: 272130 URL: http://svnweb.freebsd.org/changeset/base/272130 Log: In kern_linkat() and kern_renameat(), do not call namei(9) while holding a write reference on the filesystem. Try to get write reference in unblocked way after all

svn commit: r272132 - in head/sys: compat/freebsd32 kern sys

2014-09-25 Thread Konstantin Belousov
Author: kib Date: Thu Sep 25 21:07:19 2014 New Revision: 272132 URL: http://svnweb.freebsd.org/changeset/base/272132 Log: Fix fcntl(2) compat32 after r270691. The copyin and copyout of the struct flock are done in the sys_fcntl(), which mean that compat32 used direct access to userland

svn commit: r272135 - head/usr.bin/man

2014-09-25 Thread Allan Jude
Author: allanjude (doc committer) Date: Thu Sep 25 21:34:57 2014 New Revision: 272135 URL: http://svnweb.freebsd.org/changeset/base/272135 Log: Update man(1) to list the different sections of the manual Add each of the intro sections to the 'Also See' list PR: 193460

svn commit: r272137 - head/etc

2014-09-25 Thread Warren Block
Author: wblock (doc committer) Date: Thu Sep 25 21:57:35 2014 New Revision: 272137 URL: http://svnweb.freebsd.org/changeset/base/272137 Log: Revised to better point to release notes and errata, security advisories, and be more specific about the -questions list. MFC after:3 days

svn commit: r272138 - head/lib/msun/src

2014-09-25 Thread Steve Kargl
Author: kargl Date: Thu Sep 25 22:15:10 2014 New Revision: 272138 URL: http://svnweb.freebsd.org/changeset/base/272138 Log: * Whitespace. Modified: head/lib/msun/src/e_lgamma_r.c Modified: head/lib/msun/src/e_lgamma_r.c

svn commit: r272141 - head/contrib/hyperv/tools

2014-09-25 Thread Xin LI
Author: delphij Date: Thu Sep 25 22:22:51 2014 New Revision: 272141 URL: http://svnweb.freebsd.org/changeset/base/272141 Log: Refactor the code a little bit to avoid NULL deference when allocation was failed. Reported by: Coverity CID: 1238915 MFC after:1 week

svn commit: r272143 - head/contrib/hyperv/tools

2014-09-25 Thread Xin LI
Author: delphij Date: Thu Sep 25 22:22:57 2014 New Revision: 272143 URL: http://svnweb.freebsd.org/changeset/base/272143 Log: Use a char * as iterator over a bounded string. MFC after:1 week Modified: head/contrib/hyperv/tools/hv_kvp_daemon.c Modified:

svn commit: r272142 - head/contrib/hyperv/tools

2014-09-25 Thread Xin LI
Author: delphij Date: Thu Sep 25 22:22:54 2014 New Revision: 272142 URL: http://svnweb.freebsd.org/changeset/base/272142 Log: Use strlcpy(). I don't believe these are real problems but it's better to use a safe idiom. Reported by: Coverity CID: 1238914 MFC after:1 week

svn commit: r272139 - head/contrib/hyperv/tools

2014-09-25 Thread Xin LI
Author: delphij Date: Thu Sep 25 22:22:43 2014 New Revision: 272139 URL: http://svnweb.freebsd.org/changeset/base/272139 Log: Being able to access a path do not necessarily mean we have access to a directory. So instead of doing this, we just call mkdir(2) directly and test if the returned

svn commit: r272140 - head/contrib/hyperv/tools

2014-09-25 Thread Xin LI
Author: delphij Date: Thu Sep 25 22:22:48 2014 New Revision: 272140 URL: http://svnweb.freebsd.org/changeset/base/272140 Log: Plug a file descriptor leak. Reported by: Coverity CID: 1238916 MFC after:1 week Modified: head/contrib/hyperv/tools/hv_kvp_daemon.c Modified:

svn commit: r272144 - head/sbin/sysctl

2014-09-25 Thread Xin LI
Author: delphij Date: Thu Sep 25 22:37:27 2014 New Revision: 272144 URL: http://svnweb.freebsd.org/changeset/base/272144 Log: The strtol(3) family of functions would set errno when it hits one. Check errno and handle it as invalid input. Obtained from:HardenedBSD Submitted by:

Re: svn commit: r272144 - head/sbin/sysctl

2014-09-25 Thread Mateusz Guzik
On Thu, Sep 25, 2014 at 10:37:28PM +, Xin LI wrote: Author: delphij Date: Thu Sep 25 22:37:27 2014 New Revision: 272144 URL: http://svnweb.freebsd.org/changeset/base/272144 Log: The strtol(3) family of functions would set errno when it hits one. Check errno and handle it as

svn commit: r272145 - head/sbin/sysctl

2014-09-25 Thread Xin LI
Author: delphij Date: Thu Sep 25 22:47:19 2014 New Revision: 272145 URL: http://svnweb.freebsd.org/changeset/base/272145 Log: Explicitly set errno to 0 before calling strto*. Suggested by: mjg MFC after:2 weeks Modified: head/sbin/sysctl/sysctl.c Modified:

svn commit: r272146 - head/lib/libc/stdtime

2014-09-25 Thread Pedro F. Giffuni
Author: pfg Date: Thu Sep 25 23:04:37 2014 New Revision: 272146 URL: http://svnweb.freebsd.org/changeset/base/272146 Log: Revert r272122 The patch still needs to be more robust and it broke the build on MIPS so revert it for now while all the issues are fixed. Reported by: ache,

Re: svn commit: r271201 - head/sys/dev/ahci

2014-09-25 Thread Bryan Drewery
This drove me crazy for the past few days! https://lists.freebsd.org/pipermail/freebsd-current/2014-September/052215.html Not sure about the first trace there, but the others I encountered were due to this not being fixed yet. smh@ tracked the ordering down and then we found this. I couldn't try

Re: svn commit: r272144 - head/sbin/sysctl

2014-09-25 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 09/25/14 15:40, Mateusz Guzik wrote: On Thu, Sep 25, 2014 at 10:37:28PM +, Xin LI wrote: Author: delphij Date: Thu Sep 25 22:37:27 2014 New Revision: 272144 URL: http://svnweb.freebsd.org/changeset/base/272144 Log: The strtol(3) family

Re: svn commit: r271201 - head/sys/dev/ahci

2014-09-25 Thread Bryan Drewery
On 9/25/2014 7:59 PM, Warner Losh wrote: Hey Bryan, Sorry for the hassle. This didn’t show up in the hardware I had, but did show up in Mav’s hardware. It was like this less than a day, I thought… Warner Yes only a day or two. I was just unlucky about it. Now I am able to get updated

Re: svn commit: r272144 - head/sbin/sysctl

2014-09-25 Thread Mateusz Guzik
On Thu, Sep 25, 2014 at 05:19:42PM -0700, Xin Li wrote: - if (newval == NULL || dflag) { + if (newvalstr == NULL || dflag) { if ((kind CTLTYPE) == CTLTYPE_NODE) { if (dflag) { i = show_var(mib, len); @@ -288,10

Re: svn commit: r271201 - head/sys/dev/ahci

2014-09-25 Thread Warner Losh
Hey Bryan, Sorry for the hassle. This didn’t show up in the hardware I had, but did show up in Mav’s hardware. It was like this less than a day, I thought… Warner On Sep 25, 2014, at 5:18 PM, Bryan Drewery bdrew...@freebsd.org wrote: This drove me crazy for the past few days!

svn commit: r272153 - head/lib/libthr

2014-09-25 Thread Sergey Kandaurov
Author: pluknet Date: Fri Sep 26 04:33:27 2014 New Revision: 272153 URL: http://svnweb.freebsd.org/changeset/base/272153 Log: Fix description of mutex acquisition. Reviewed by: kib X-MFC with: r272070 Sponsored by: Nginx, Inc. Modified: head/lib/libthr/libthr.3 Modified:

svn commit: r272154 - head/sbin/sysctl

2014-09-25 Thread Xin LI
Author: delphij Date: Fri Sep 26 05:05:34 2014 New Revision: 272154 URL: http://svnweb.freebsd.org/changeset/base/272154 Log: Refactor the code a little bit to reduce duplicated code. Reviewed by: mjg MFC after:2 weeks Modified: head/sbin/sysctl/sysctl.c Modified:

Re: svn commit: r272144 - head/sbin/sysctl

2014-09-25 Thread Bruce Evans
On Thu, 25 Sep 2014, Xin Li wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 09/25/14 15:40, Mateusz Guzik wrote: On Thu, Sep 25, 2014 at 10:37:28PM +, Xin LI wrote: Author: delphij Date: Thu Sep 25 22:37:27 2014 New Revision: 272144 URL: