CVS commit: src/sys/kern

2016-11-17 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Nov 17 08:06:49 UTC 2016

Modified Files:
src/sys/kern: subr_bufq.c

Log Message:
Use compile-time initialization for the list head, and make sure that
the sysctllog is also initialized before being used.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/kern/subr_bufq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/traceroute6

2016-11-17 Thread Mateusz Kocielski
Module Name:src
Committed By:   shm
Date:   Thu Nov 17 09:21:34 UTC 2016

Modified Files:
src/usr.sbin/traceroute6: traceroute6.c

Log Message:
CID 978587: Removed unnecessary check against NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/traceroute6/traceroute6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/mrinfo

2016-11-17 Thread Mateusz Kocielski
Module Name:src
Committed By:   shm
Date:   Thu Nov 17 09:29:01 UTC 2016

Modified Files:
src/usr.sbin/mrinfo: mrinfo.c

Log Message:
Add couple FALLTHROUGHs CIDs: 976559, 976560, 976561

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/usr.sbin/mrinfo/mrinfo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librefuse

2016-11-17 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Thu Nov 17 14:20:26 UTC 2016

Modified Files:
src/lib/librefuse: refuse.c

Log Message:
Change the way how puffs_fuse_node_create() behaves.

In puffs "create" and "open" are two separate operations with
atomicity achieved by locking the parent vnode. In fuse, on the other
hand, "create" is actually a create-and-open-atomically and the open
flags (O_RDWR, O_APPEND, ...) are passed via fi.flags. So the only way
to emulate the fuse semantics is to open the file with dummy flags and
then immediately close it.

You might think that we could simply use fuse->op.mknod all the time
but no, that's not possible because most file systems nowadays expect
op.mknod to be called only for non-regular files and many don't even
support it.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/lib/librefuse/refuse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2016-11-17 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Nov 17 16:26:08 UTC 2016

Modified Files:
src/sys/arch/amd64/amd64: machdep.c
src/sys/arch/x86/x86: pmap.c

Log Message:
Remap the pages with G until kern_end, and not just the preloaded modules.
This way the bootstrap tables, proc0's stack and the I/O mem area don't get
flushed each time userland needs a TLB shootdown.


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/sys/arch/amd64/amd64/machdep.c
cvs rdiff -u -r1.225 -r1.226 src/sys/arch/x86/x86/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/x86

2016-11-17 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Thu Nov 17 16:32:06 UTC 2016

Modified Files:
src/sys/arch/x86/x86: pmap.c

Log Message:
Unmap tmpva once we are done using it, not to pollute the page tree.


To generate a diff of this commit:
cvs rdiff -u -r1.226 -r1.227 src/sys/arch/x86/x86/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/xorg-server/dist/hw/xfree86/common

2016-11-17 Thread Soren Jacobsen
Module Name:xsrc
Committed By:   snj
Date:   Thu Nov 17 16:52:53 UTC 2016

Modified Files:
xsrc/external/mit/xorg-server/dist/hw/xfree86/common: xf86Config.c

Log Message:
fix misplaced conditionalized } that broke pointer detection under
vmware when running X without a config file.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Config.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/libpthread_dbg

2016-11-17 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Nov 17 17:30:22 UTC 2016

Modified Files:
src/tests/lib/libpthread_dbg: t_dummy.c

Log Message:
Mark dummy2 and dummy3 in lib/libpthread_dbg/t_dummy with expected fail

The dummy2 test reports failures on i386 releng machines.

The same with dummy3, but it's also reproducible sometimes on my amd64
setup. It's not always broken, neither always functional - once a while it
reports failure. So far I have not reproduced failure in dummy2.

PR lib/51633 tests/lib/libpthread_dbg/t_dummy unreliable

Sponsored by 


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libpthread_dbg/t_dummy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpvfs

2016-11-17 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Thu Nov 17 23:15:38 UTC 2016

Modified Files:
src/sys/rump/librump/rumpvfs: rump_vfs.c

Log Message:
In addition to initializing the bufq subsystem, we also need to init
the individual strategy modules.


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/rump/librump/rumpvfs/rump_vfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/sgimips/sgimips

2016-11-17 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Thu Nov 17 23:46:52 UTC 2016

Modified Files:
src/sys/arch/sgimips/sgimips: cpu.c

Log Message:
KASSERT that MIPS_SR_KX is set when entering interrupt handler in !o32


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/sgimips/sgimips/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2016-11-17 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Nov 18 02:37:33 UTC 2016

Modified Files:
src/sys/kern: subr_bufq.c

Log Message:
By popular request, don't both initializing a static pointer to NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/kern/subr_bufq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2016-11-17 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Nov 18 06:41:52 UTC 2016

Modified Files:
src/sys/sys: pslist.h

Log Message:
Explain why we don't touch the next pointer of the removed entry.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/sys/pslist.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2016-11-17 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Fri Nov 18 06:50:04 UTC 2016

Modified Files:
src/sys/netinet: tcp_usrreq.c udp_usrreq.c
src/sys/netinet6: dccp6_usrreq.c in6.c mld6.c raw_ip6.c sctp6_usrreq.c
udp6_usrreq.c

Log Message:
fix: "ifconfig destory" can stalls when "ifconfig" is done parallel.
This problem occurs only if NET_MPSAFE on.

ifconfig destroy side:
kernel entry point is ifioctl => if_clone_destroy.
pr_purgeif() acquires softnet_lock, and then ifa_remove() calls
pserialize_perform() holding softnet_lock.
ifconfig side:
kernel entry point is socreate.
pr_attach()(udp_attach_wrapper()) calls sosetlock(). In this call path,
sosetlock() try to acquire softnet_lock.
These can cause dead lock.


To generate a diff of this commit:
cvs rdiff -u -r1.212 -r1.213 src/sys/netinet/tcp_usrreq.c
cvs rdiff -u -r1.228 -r1.229 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.8 -r1.9 src/sys/netinet6/dccp6_usrreq.c \
src/sys/netinet6/sctp6_usrreq.c
cvs rdiff -u -r1.221 -r1.222 src/sys/netinet6/in6.c
cvs rdiff -u -r1.74 -r1.75 src/sys/netinet6/mld6.c
cvs rdiff -u -r1.152 -r1.153 src/sys/netinet6/raw_ip6.c
cvs rdiff -u -r1.125 -r1.126 src/sys/netinet6/udp6_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2016-11-17 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Fri Nov 18 06:55:01 UTC 2016

Modified Files:
src/sys/dev/pci: if_wm.c

Log Message:
 Fix WOL related setting of the WUC register for other than PCH*
in wm_enable_wakeup(). Tested with 82567V(ICH8) and 82583V.


To generate a diff of this commit:
cvs rdiff -u -r1.450 -r1.451 src/sys/dev/pci/if_wm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS import: src/sys/fs/nfs

2016-11-17 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Fri Nov 18 07:49:15 UTC 2016

Update of /cvsroot/src/sys/fs/nfs
In directory ivanova.netbsd.org:/tmp/cvs-serv13078

Log Message:
Update to FreeBSD revision 308975 ( approx 2016-11-18 07:30 UTC)

If I'm going to try to get this working, I should at least start with
the most recent code available.

Status:

Vendor Tag: FREEBSD
Release Tags:   FREEBSD-308975

C src/sys/fs/nfs/nfs2netbsd.sh
C src/sys/fs/nfs/files.newnfs
N src/sys/fs/nfs/client/nfs_clkdtrace.c
U src/sys/fs/nfs/client/nfs_clcomsubs.c
U src/sys/fs/nfs/client/nfs_clsubs.c
C src/sys/fs/nfs/client/nfs_clstate.c
U src/sys/fs/nfs/client/nfs_clkrpc.c
U src/sys/fs/nfs/client/nfs_clrpcops.c
C src/sys/fs/nfs/client/nfs_clvnops.c
U src/sys/fs/nfs/client/nfs_clnode.c
U src/sys/fs/nfs/client/nfs_clvfsops.c
U src/sys/fs/nfs/client/nfs_clport.c
C src/sys/fs/nfs/client/nfs_clbio.c
U src/sys/fs/nfs/client/nfs_clnfsiod.c
U src/sys/fs/nfs/client/nfs.h
U src/sys/fs/nfs/client/nfsmount.h
U src/sys/fs/nfs/client/nfs_kdtrace.h
U src/sys/fs/nfs/client/nlminfo.h
U src/sys/fs/nfs/client/nfsnode.h
U src/sys/fs/nfs/common/bootp_subr.c
U src/sys/fs/nfs/common/krpc.h
C src/sys/fs/nfs/common/krpc_subr.c
U src/sys/fs/nfs/common/nfs_common.h
U src/sys/fs/nfs/common/nfs_diskless.c
U src/sys/fs/nfs/common/nfs_fha.c
C src/sys/fs/nfs/common/nfs_fha.h
U src/sys/fs/nfs/common/nfs_kdtrace.h
U src/sys/fs/nfs/common/nfs_lock.c
U src/sys/fs/nfs/common/nfs_lock.h
U src/sys/fs/nfs/common/nfs_mountcommon.h
U src/sys/fs/nfs/common/nfs_nfssvc.c
U src/sys/fs/nfs/common/nfsdiskless.h
U src/sys/fs/nfs/common/nfssvc.h
U src/sys/fs/nfs/common/old_xdr_subs.h
U src/sys/fs/nfs/common/oldnfsproto.h
U src/sys/fs/nfs/common/nfs.h
U src/sys/fs/nfs/common/nfs_commonacl.c
U src/sys/fs/nfs/common/nfs_commonkrpc.c
U src/sys/fs/nfs/common/nfs_commonport.c
U src/sys/fs/nfs/common/nfs_commonsubs.c
U src/sys/fs/nfs/common/nfs_var.h
U src/sys/fs/nfs/common/nfscl.h
U src/sys/fs/nfs/common/nfsclstate.h
U src/sys/fs/nfs/common/nfsdport.h
U src/sys/fs/nfs/common/nfskpiport.h
C src/sys/fs/nfs/common/nfsm_subs.h
U src/sys/fs/nfs/common/nfsport.h
U src/sys/fs/nfs/common/nfsproto.h
U src/sys/fs/nfs/common/nfsrvcache.h
U src/sys/fs/nfs/common/nfsrvstate.h
U src/sys/fs/nfs/common/nfsv4_errstr.h
U src/sys/fs/nfs/common/rpcv2.h
U src/sys/fs/nfs/common/xdr_subs.h
U src/sys/fs/nfs/nlm/nlm_advlock.c
U src/sys/fs/nfs/nlm/nlm_prot_clnt.c
C src/sys/fs/nfs/nlm/nlm_prot_impl.c
U src/sys/fs/nfs/nlm/nlm_prot_server.c
U src/sys/fs/nfs/nlm/nlm_prot_svc.c
U src/sys/fs/nfs/nlm/nlm_prot_xdr.c
U src/sys/fs/nfs/nlm/sm_inter_xdr.c
U src/sys/fs/nfs/nlm/nlm_prot.h
U src/sys/fs/nfs/nlm/sm_inter.h
U src/sys/fs/nfs/nlm/nlm.h
U src/sys/fs/nfs/server/nfs_fha_new.c
U src/sys/fs/nfs/server/nfs_nfsdsocket.c
C src/sys/fs/nfs/server/nfs_nfsdsubs.c
C src/sys/fs/nfs/server/nfs_nfsdstate.c
C src/sys/fs/nfs/server/nfs_nfsdkrpc.c
C src/sys/fs/nfs/server/nfs_nfsdserv.c
U src/sys/fs/nfs/server/nfs_nfsdport.c
C src/sys/fs/nfs/server/nfs_nfsdcache.c
U src/sys/fs/nfs/server/nfs_fha_new.h

14 conflicts created by this import.
Use the following command to help the merge:

cvs checkout -jFREEBSD:yesterday -jFREEBSD src/sys/fs/nfs