svn commit: r285999 - head/sys/netpfil/pf

2015-07-28 Thread Kristof Provost
Author: kp Date: Wed Jul 29 06:35:36 2015 New Revision: 285999 URL: https://svnweb.freebsd.org/changeset/base/285999 Log: pf: Always initialise pf_fragment.fr_flags When we allocate the struct pf_fragment in pf_fillup_fragment() we forgot to initialise the fr_flags field. As a result we s

svn commit: r285998 - head/sys/compat/cloudabi

2015-07-28 Thread Ed Schouten
Author: ed Date: Wed Jul 29 06:31:44 2015 New Revision: 285998 URL: https://svnweb.freebsd.org/changeset/base/285998 Log: Implement CloudABI's readdir(). Summary: CloudABI's readdir() system call could be thought of as a mixture between FreeBSD's getdents(2) and pread(). Instead of usin

svn commit: r285997 - head/usr.sbin/pw

2015-07-28 Thread Baptiste Daroussin
Author: bapt Date: Wed Jul 29 06:23:06 2015 New Revision: 285997 URL: https://svnweb.freebsd.org/changeset/base/285997 Log: Actually add the new code Added: head/usr.sbin/pw/strtounum.c (contents, props changed) Added: head/usr.sbin/pw/strtounum.c ==

svn commit: r285996 - head/usr.sbin/pw

2015-07-28 Thread Baptiste Daroussin
Author: bapt Date: Wed Jul 29 06:22:41 2015 New Revision: 285996 URL: https://svnweb.freebsd.org/changeset/base/285996 Log: Create a strtounum function using the same API as strtonum This function returns uintmax_t Use this function to convert to gid_t/uid_t Modified: head/usr.sbin/pw/

Re: svn commit: r285993 - in head/sys: kern sys ufs/ffs vm

2015-07-28 Thread Conrad Meyer
On Tue, Jul 28, 2015 at 7:26 PM, Jeff Roberson wrote: > Author: jeff > Date: Wed Jul 29 02:26:57 2015 > New Revision: 285993 > URL: https://svnweb.freebsd.org/changeset/base/285993 > > Log: >- Make 'struct buf *buf' private to vfs_bio.c. Having a global variable > 'buf' is inconvenient a

svn commit: r285995 - head/sys/fs/ext2fs

2015-07-28 Thread Jeff Roberson
Author: jeff Date: Wed Jul 29 03:06:08 2015 New Revision: 285995 URL: https://svnweb.freebsd.org/changeset/base/285995 Log: - Remove some dead code copied from ffs. Modified: head/sys/fs/ext2fs/ext2_subr.c Modified: head/sys/fs/ext2fs/ext2_subr.c

svn commit: r285994 - in head: sbin/sysctl share/man/man9

2015-07-28 Thread Warner Losh
Author: imp Date: Wed Jul 29 02:34:25 2015 New Revision: 285994 URL: https://svnweb.freebsd.org/changeset/base/285994 Log: Teach sysctl about the new optional suffix after IK to specify precision. Update input as well. Add IK to the manual (it was missing completely). Differential Revis

svn commit: r285993 - in head/sys: kern sys ufs/ffs vm

2015-07-28 Thread Jeff Roberson
Author: jeff Date: Wed Jul 29 02:26:57 2015 New Revision: 285993 URL: https://svnweb.freebsd.org/changeset/base/285993 Log: - Make 'struct buf *buf' private to vfs_bio.c. Having a global variable 'buf' is inconvenient and has lead me to some irritating to discover bugs over the years

Re: svn commit: r285926 - in head: libexec/ypxfr usr.bin/ypcat usr.bin/ypmatch usr.bin/ypwhich usr.sbin/yp_mkdb usr.sbin/yppush usr.sbin/ypserv

2015-07-28 Thread Marcelo Araujo
Hello Ed, Fixed, thank you very much. https://svnweb.freebsd.org/base?view=revision&revision=285992 Best, 2015-07-28 15:05 GMT+08:00 Ed Schouten : > Hi Marcelo, > > Thanks for working on this! > > 2015-07-28 4:32 GMT+02:00 Marcelo Araujo : > > -struct ypalias { > > +const struct ypalias { > >

svn commit: r285992 - in head/usr.bin: ypcat ypmatch ypwhich

2015-07-28 Thread Marcelo Araujo
Author: araujo (ports committer) Date: Wed Jul 29 02:21:35 2015 New Revision: 285992 URL: https://svnweb.freebsd.org/changeset/base/285992 Log: Compilers will complain the usage of obsolescent variable declarations. Also it will fix the build problem with sparc64. Submitted by: ed@ Modif

Re: svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-07-28 Thread Bruce Evans
On Wed, 29 Jul 2015, Baptiste Daroussin wrote: On Wed, Jul 29, 2015 at 08:52:52AM +1000, Bruce Evans wrote: On Tue, 28 Jul 2015, Baptiste Daroussin wrote: Log: Check uid/gid used when creating a user/group are not larger than UID_MAX/GID_MAX PR:173977 Reported by: nv...@gmx

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

2015-07-28 Thread Bryan Drewery
On 6/19/15 7:56 AM, Simon J. Gerraty wrote: > Author: sjg > Date: Fri Jun 19 14:56:24 2015 > New Revision: 284598 > URL: https://svnweb.freebsd.org/changeset/base/284598 > > Log: > Move include of make.conf back to its old position. > > This means moving include of local.sys.mk and src.sys.

Re: svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-07-28 Thread Baptiste Daroussin
On Wed, Jul 29, 2015 at 08:52:52AM +1000, Bruce Evans wrote: > On Tue, 28 Jul 2015, Baptiste Daroussin wrote: > > > Log: > > Check uid/gid used when creating a user/group are not larger than > > UID_MAX/GID_MAX > > > > PR:173977 > > Reported by: nv...@gmx.com > > This is

Re: svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-07-28 Thread Bruce Evans
On Tue, 28 Jul 2015, Baptiste Daroussin wrote: Log: Check uid/gid used when creating a user/group are not larger than UID_MAX/GID_MAX PR:173977 Reported by: nv...@gmx.com This is broken in a different way than before. Modified: head/usr.sbin/pw/pw.c ===

svn commit: r285990 - head/lib/libc/sys

2015-07-28 Thread Bryan Drewery
Author: bdrewery Date: Tue Jul 28 22:48:58 2015 New Revision: 285990 URL: https://svnweb.freebsd.org/changeset/base/285990 Log: unlink(2): Note the possibility for ENOSPC to be returned on ZFS. PR: 154930 Modified: head/lib/libc/sys/unlink.2 Modified: head/lib/libc/sys/unlink.

Re: svn commit: r285782 - head/usr.bin/netstat

2015-07-28 Thread Mark Johnston
On Tue, Jul 28, 2015 at 05:31:06PM +0300, Gleb Smirnoff wrote: > Mark, Jason, > > On Tue, Jul 21, 2015 at 11:57:39PM +, Mark Johnston wrote: > M> Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t > *). > M> > M> In the kernel, structs such as tcpstat are manipu

Re: svn commit: r285125 - in head/sys: kern sys

2015-07-28 Thread Jean-Sébastien Pédron
On 23.07.2015 23:36, Adrian Chadd wrote: > I've had no warnings/panics after applying this patch. Can we get it > into -head plz? I'm using this patch for three days and never got the panic again. -- Jean-Sébastien Pédron signature.asc Description: OpenPGP digital signature

svn commit: r285989 - head/usr.sbin/pw

2015-07-28 Thread Baptiste Daroussin
Author: bapt Date: Tue Jul 28 21:49:38 2015 New Revision: 285989 URL: https://svnweb.freebsd.org/changeset/base/285989 Log: Reject usermod and userdel if the user concerned is not on the user database supposed to be manipulated This prevent pw usermod creating a new local user when reques

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

2015-07-28 Thread Jean-Sebastien Pedron
Author: dumbbell Date: Tue Jul 28 21:47:37 2015 New Revision: 285988 URL: https://svnweb.freebsd.org/changeset/base/285988 Log: drm/i915: Sort functions in i915_gem.c to match Linux 3.8's ordering While here, reduce the style diff with Linux. There is no functional change. The goal is

Re: svn commit: r284356 - head/usr.sbin/crunch/crunchgen

2015-07-28 Thread Bryan Drewery
On 7/28/15 2:20 PM, Bryan Drewery wrote: > On 6/13/15 3:01 PM, Adrian Chadd wrote: >> > Author: adrian >> > Date: Sat Jun 13 22:01:21 2015 >> > New Revision: 284356 >> > URL: https://svnweb.freebsd.org/changeset/base/284356 >> > >> > Log: >> > Fix up crunchgen binary generation to work with exte

svn commit: r285986 - head/usr.sbin/crunch/crunchgen

2015-07-28 Thread Bryan Drewery
Author: bdrewery Date: Tue Jul 28 21:39:58 2015 New Revision: 285986 URL: https://svnweb.freebsd.org/changeset/base/285986 Log: Fix rescue build after r284356 with STRIP= by using proper STRIPBIN per build(7). This was causing the following error: rescue sh: rescue: not found

Re: svn commit: r284356 - head/usr.sbin/crunch/crunchgen

2015-07-28 Thread Bryan Drewery
On 6/13/15 3:01 PM, Adrian Chadd wrote: > Author: adrian > Date: Sat Jun 13 22:01:21 2015 > New Revision: 284356 > URL: https://svnweb.freebsd.org/changeset/base/284356 > > Log: > Fix up crunchgen binary generation to work with external cross-build > tools. > > * Allow STRIP to be overrid

svn commit: r285985 - in head/usr.sbin/pw: . tests

2015-07-28 Thread Baptiste Daroussin
Author: bapt Date: Tue Jul 28 21:10:58 2015 New Revision: 285985 URL: https://svnweb.freebsd.org/changeset/base/285985 Log: Check uid/gid used when creating a user/group are not larger than UID_MAX/GID_MAX PR: 173977 Reported by: nv...@gmx.com Added: head/usr.sbin/pw/tests/

svn commit: r285984 - head/usr.sbin/pw

2015-07-28 Thread Baptiste Daroussin
Author: bapt Date: Tue Jul 28 20:52:10 2015 New Revision: 285984 URL: https://svnweb.freebsd.org/changeset/base/285984 Log: Fix wrong warning printed after changing or updating NIS users PR: 37672 Submitted by: chris+free...@chrullrich.de Modified: head/usr.sbin/pw/pw_user.c

svn commit: r285981 - head/sys/kern

2015-07-28 Thread Jeff Roberson
Author: jeff Date: Tue Jul 28 20:24:09 2015 New Revision: 285981 URL: https://svnweb.freebsd.org/changeset/base/285981 Log: - Eliminate the EMPTYKVA queue. It served as a cache of KVA allocations attached to bufs to avoid the overhead of the vm. This purposes is now better served by

svn commit: r285975 - head/crypto/openssh

2015-07-28 Thread Xin LI
Author: delphij Date: Tue Jul 28 19:58:38 2015 New Revision: 285975 URL: https://svnweb.freebsd.org/changeset/base/285975 Log: Fix multiple OpenSSH vulnerabilities. Security: CVE-2014-2653 Security: CVE-2015-5600 Security: FreeBSD-SA-15:16.openssh Modified: head/crypto/op

svn commit: r285974 - head/usr.bin/patch

2015-07-28 Thread Xin LI
Author: delphij Date: Tue Jul 28 19:58:36 2015 New Revision: 285974 URL: https://svnweb.freebsd.org/changeset/base/285974 Log: Fix shell injection vulnerability in patch(1) and drop SCCS support by replacing system() with execve(). Future revisions may remove the functionality completely.

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

2015-07-28 Thread David C Somayajulu
Author: davidcs Date: Tue Jul 28 19:15:44 2015 New Revision: 285973 URL: https://svnweb.freebsd.org/changeset/base/285973 Log: - Avoid lock contention in the if_transmit callback by using trylock and enqueueing the frames when it fails. This way there is some latency removed from the trans

svn commit: r285972 - in head: contrib/libarchive/libarchive contrib/libarchive/libarchive/test lib/libarchive/test

2015-07-28 Thread Bryan Drewery
Author: bdrewery Date: Tue Jul 28 18:41:28 2015 New Revision: 285972 URL: https://svnweb.freebsd.org/changeset/base/285972 Log: MFV r285970: Apply upstream changeset bf4f6ec64e: Fix issue 356: properly skip a sparse file entry in a tar file. PR: 201506 MFC after:

svn commit: r285969 - in head/contrib/libarchive: . libarchive

2015-07-28 Thread Bryan Drewery
Author: bdrewery Date: Tue Jul 28 17:32:14 2015 New Revision: 285969 URL: https://svnweb.freebsd.org/changeset/base/285969 Log: Mark vendor r285968 merged for r280870. Modified: Directory Properties: head/contrib/libarchive/ (props changed) head/contrib/libarchive/libarchive/ (props cha

Re: svn commit: r284959 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/ubsec sys/dev/virtio/random s

2015-07-28 Thread Alexey Dokuchaev
On Sat, Jul 25, 2015 at 10:30:55AM -0700, John-Mark Gurney wrote: > Alexey Dokuchaev wrote this message on Sat, Jul 25, 2015 at 14:36 +: > > On Fri, Jul 24, 2015 at 07:59:35AM +0100, Mark R V Murray wrote: > > > [...] > > > > Heck, piping in mic data to /dev/random is a good way to seed the > >

Re: svn commit: r285782 - head/usr.bin/netstat

2015-07-28 Thread Jason Unovitch
On Jul 28, 2015 10:31 AM, "Gleb Smirnoff" wrote: > > Mark, Jason, > > On Tue, Jul 21, 2015 at 11:57:39PM +, Mark Johnston wrote: > M> Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *). > M> > M> In the kernel, structs such as tcpstat are manipulated as an array

svn commit: r285960 - head/sys/netpfil/pf

2015-07-28 Thread Renato Botelho
Author: garga (ports committer) Date: Tue Jul 28 14:59:29 2015 New Revision: 285960 URL: https://svnweb.freebsd.org/changeset/base/285960 Log: Simplify logic added in r285945 as suggested by glebius Approved by: glebius MFC after:3 days Sponsored by: Netgate Modified: head/sys/n

Re: svn commit: r285945 - head/sys/netpfil/pf

2015-07-28 Thread Gleb Smirnoff
Renato, On Tue, Jul 28, 2015 at 10:18:57AM -0300, Renato Botelho wrote: R> Thanks for pointing this out. Do you approve the following patch? R> R> Index: sys/netpfil/pf/pf.c R> === R> --- sys/netpfil/pf/pf.c (revision 285945)

Re: svn commit: r285782 - head/usr.bin/netstat

2015-07-28 Thread Gleb Smirnoff
Mark, Jason, On Tue, Jul 21, 2015 at 11:57:39PM +, Mark Johnston wrote: M> Fix counter reads on platforms where sizeof(uint64_t) != sizeof(uint64_t *). M> M> In the kernel, structs such as tcpstat are manipulated as an array of M> counter_u64_t (uint64_t *), but made visible to use

svn commit: r285959 - head/sys/contrib/alpine-hal

2015-07-28 Thread Zbigniew Bodek
Author: zbb Date: Tue Jul 28 14:20:33 2015 New Revision: 285959 URL: https://svnweb.freebsd.org/changeset/base/285959 Log: Import Annapurna Labs Alpine HAL to sys/contrib/ Import from vendor-sys/alpine-hal/2.7 SVN rev.: 285432 HAL version: 2.7 Obtained from: Semihalf Sponsored b

svn commit: r285958 - head/release/doc/en_US.ISO8859-1/relnotes

2015-07-28 Thread Gleb Smirnoff
Author: glebius Date: Tue Jul 28 13:48:19 2015 New Revision: 285958 URL: https://svnweb.freebsd.org/changeset/base/285958 Log: Fix the r272906 description. Modified: head/release/doc/en_US.ISO8859-1/relnotes/article.xml Modified: head/release/doc/en_US.ISO8859-1/relnotes/article.xml

Re: svn commit: r285945 - head/sys/netpfil/pf

2015-07-28 Thread Renato Botelho
> On Jul 28, 2015, at 08:20, Gleb Smirnoff wrote: > > Renato, > > On Tue, Jul 28, 2015 at 10:31:35AM +, Renato Botelho wrote: > R> Author: garga (ports committer) > R> Date: Tue Jul 28 10:31:34 2015 > R> New Revision: 285945 > R> URL: https://svnweb.freebsd.org/changeset/base/285945 > R> >

svn commit: r285957 - head/sys/dev/ofw

2015-07-28 Thread Zbigniew Bodek
Author: zbb Date: Tue Jul 28 13:16:08 2015 New Revision: 285957 URL: https://svnweb.freebsd.org/changeset/base/285957 Log: Limit ofw_cpu_early_foreach() to CPUs only On some platforms, the /cpus node contains cpu-to-cluster map which deffinitely is not a CPU node. Its presence was causi

svn commit: r285955 - head/contrib/llvm/tools/lldb/docs

2015-07-28 Thread Ed Maste
Author: emaste Date: Tue Jul 28 13:09:16 2015 New Revision: 285955 URL: https://svnweb.freebsd.org/changeset/base/285955 Log: Remove claim that the OS is Darwin from lldb(1) Reported by: bapt Modified: head/contrib/llvm/tools/lldb/docs/lldb.1 Modified: head/contrib/llvm/tools/lldb/docs

svn commit: r285954 - head/sys/compat/cloudabi

2015-07-28 Thread Ed Schouten
Author: ed Date: Tue Jul 28 12:57:19 2015 New Revision: 285954 URL: https://svnweb.freebsd.org/changeset/base/285954 Log: Implement file attribute modification system calls for CloudABI. CloudABI uses a system call interface to modify file attributes that is more similar to KPI's/FUSE, na

Re: svn commit: r285051 - head/sys/netinet

2015-07-28 Thread Gleb Smirnoff
Ermal, see comments inlined, On Thu, Jul 02, 2015 at 06:10:42PM +, Ermal Luçi wrote: E> Author: eri E> Date: Thu Jul 2 18:10:41 2015 E> New Revision: 285051 E> URL: https://svnweb.freebsd.org/changeset/base/285051 E> E> Log: E> Avoid doing multiple route lookups for the same destinati

svn commit: r285948 - in head/usr.sbin/pw: . tests

2015-07-28 Thread Baptiste Daroussin
Author: bapt Date: Tue Jul 28 12:20:57 2015 New Revision: 285948 URL: https://svnweb.freebsd.org/changeset/base/285948 Log: when -n is passed to any pw subcommand it is always expected to be considered as a name so do not try to convert it to an id if it is a numeric value PR:

svn commit: r285947 - head

2015-07-28 Thread Steven Hartland
etc/malloc.conf".) 20150728: - As ZFS requires a more kernel stack pages than is the default on some + As ZFS requires more kernel stack pages than is the default on some architectures e.g. i386, it now warns if KSTACK_PAGES is less than ZFS_MIN_KSTACK_PAGES (which is 4 at

Re: svn commit: r285945 - head/sys/netpfil/pf

2015-07-28 Thread Gleb Smirnoff
Renato, On Tue, Jul 28, 2015 at 10:31:35AM +, Renato Botelho wrote: R> Author: garga (ports committer) R> Date: Tue Jul 28 10:31:34 2015 R> New Revision: 285945 R> URL: https://svnweb.freebsd.org/changeset/base/285945 R> R> Log: R> Respect pf rule log option before log dropped packets wit

svn commit: r285946 - in head: . sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2015-07-28 Thread Steven Hartland
ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20150728: + As ZFS requires a more kernel stack pages than is the default on some + architectures e.g. i386, it now warns if KSTACK_PAGES is less than + ZFS_MIN_KSTACK_PAGES (which is 4 at the time of writing). + + P

svn commit: r285945 - head/sys/netpfil/pf

2015-07-28 Thread Renato Botelho
Author: garga (ports committer) Date: Tue Jul 28 10:31:34 2015 New Revision: 285945 URL: https://svnweb.freebsd.org/changeset/base/285945 Log: Respect pf rule log option before log dropped packets with IP options or dangerous v6 headers Reviewed by: gnn, eri Approved by: gnn Obtaine

svn commit: r285944 - head/sys/netpfil/pf

2015-07-28 Thread Gleb Smirnoff
Author: glebius Date: Tue Jul 28 09:36:26 2015 New Revision: 285944 URL: https://svnweb.freebsd.org/changeset/base/285944 Log: Fix a typo in r280169. Of course we are interested in deleting nsn only if we have just created it and we were the last reference. Submitted by: dhartmei Modifie

svn commit: r285938 - head/sys/netinet

2015-07-28 Thread Michael Tuexen
Author: tuexen Date: Tue Jul 28 08:50:13 2015 New Revision: 285938 URL: https://svnweb.freebsd.org/changeset/base/285938 Log: Fix a typo reported by Erik Cederstrand. MFC after:1 week Modified: head/sys/netinet/sctp_indata.c Modified: head/sys/netinet/sctp_indata.c =

svn commit: r285935 - head/sys/dev/usb/controller

2015-07-28 Thread Hans Petter Selasky
Author: hselasky Date: Tue Jul 28 07:30:07 2015 New Revision: 285935 URL: https://svnweb.freebsd.org/changeset/base/285935 Log: Optimise the DWC OTG host mode driver's receive path: Remove NAKing limit and pause IN and OUT transactions for 125us in case of NAK response for BULK and CONTRO

Re: svn commit: r285926 - in head: libexec/ypxfr usr.bin/ypcat usr.bin/ypmatch usr.bin/ypwhich usr.sbin/yp_mkdb usr.sbin/yppush usr.sbin/ypserv

2015-07-28 Thread Marcelo Araujo
2015-07-28 15:05 GMT+08:00 Ed Schouten : > Hi Marcelo, > > Thanks for working on this! > > 2015-07-28 4:32 GMT+02:00 Marcelo Araujo : > > -struct ypalias { > > +const struct ypalias { > > char *alias, *name; > > -} ypaliases[] = { > > +} static ypaliases[] = { > > { "passwd", "pass

Re: svn commit: r285926 - in head: libexec/ypxfr usr.bin/ypcat usr.bin/ypmatch usr.bin/ypwhich usr.sbin/yp_mkdb usr.sbin/yppush usr.sbin/ypserv

2015-07-28 Thread Ed Schouten
Hi Marcelo, Thanks for working on this! 2015-07-28 4:32 GMT+02:00 Marcelo Araujo : > -struct ypalias { > +const struct ypalias { > char *alias, *name; > -} ypaliases[] = { > +} static ypaliases[] = { > { "passwd", "passwd.byname" }, > { "master.passwd", "master.passwd.byna

svn commit: r285934 - head/sys/amd64/include

2015-07-28 Thread Konstantin Belousov
Author: kib Date: Tue Jul 28 07:04:51 2015 New Revision: 285934 URL: https://svnweb.freebsd.org/changeset/base/285934 Log: Remove full barrier from the amd64 atomic_load_acq_*(). Strong ordering semantic of x86 CPUs makes only the compiler barrier neccessary to give the acquire behaviour.