CVS commit: src/usr.sbin/timed/timed

2018-01-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Jan 16 07:57:58 UTC 2018

Modified Files:
src/usr.sbin/timed/timed: slave.c timed-extern.h

Log Message:
Returns void, mark noreturn.

>From Eitan Adler in PR bin/52925


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/timed/timed/slave.c
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/timed/timed/timed-extern.h

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



CVS commit: src/sys/netinet6

2018-01-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Tue Jan 16 07:56:55 UTC 2018

Modified Files:
src/sys/netinet6: nd6_nbr.c

Log Message:
Revert "Work around softnet_lock handling" as per pgoyette@'s request

We should avoid if (mutex_owned(softnet_lock)).


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/sys/netinet6/nd6_nbr.c

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



CVS commit: src/sys/net80211

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Jan 16 07:53:02 UTC 2018

Modified Files:
src/sys/net80211: ieee80211_input.c ieee80211_var.h

Log Message:
Start cleaning up this mess.


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/net80211/ieee80211_input.c
cvs rdiff -u -r1.31 -r1.32 src/sys/net80211/ieee80211_var.h

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



CVS commit: src/sys

2018-01-15 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Tue Jan 16 07:34:12 UTC 2018

Modified Files:
src/sys/modules/if_agr: Makefile
src/sys/net/agr: if_agr.c

Log Message:
Fix agr(4) module build. Reviewed by pgoyette@n.o, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/modules/if_agr/Makefile
cvs rdiff -u -r1.44 -r1.45 src/sys/net/agr/if_agr.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

2018-01-15 Thread Kengo NAKAHARA
Module Name:src
Committed By:   knakahara
Date:   Tue Jan 16 07:23:13 UTC 2018

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

Log Message:
Fix wm_watchdog_txq() lock region.

Not only wm_txeof() but also wm_watchdog_txq() itself requires txq_lock
as it reads Tx descriptor management variables such as "txq_free".

There is almost no influence on performance.


To generate a diff of this commit:
cvs rdiff -u -r1.554 -r1.555 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 commit: src/sys/dev/pci

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Jan 16 07:05:25 UTC 2018

Modified Files:
src/sys/dev/pci: if_ipw.c if_iwi.c if_iwn.c

Log Message:
Fix overflow.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/pci/if_ipw.c
cvs rdiff -u -r1.104 -r1.105 src/sys/dev/pci/if_iwi.c
cvs rdiff -u -r1.86 -r1.87 src/sys/dev/pci/if_iwn.c

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



CVS commit: src/games/bcd

2018-01-15 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Jan 16 06:43:53 UTC 2018

Modified Files:
src/games/bcd: bcd.6

Log Message:
Neither bcd(6) nor morse(6) produce output containing slashes, and the
-d (decode) option works just fine with dashes.  :)


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/games/bcd/bcd.6

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Tue Jan 16 06:38:42 UTC 2018

Modified Files:
src/sys/net: if_gre.c

Log Message:
style


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 src/sys/net/if_gre.c

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



CVS commit: src/games/morse

2018-01-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue Jan 16 06:20:24 UTC 2018

Modified Files:
src/games/morse: morse.c

Log Message:
Add _, from Eitan Adler in PR bin/52897


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/games/morse/morse.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/amd64/stand/prekern

2018-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 15 22:38:01 UTC 2018

Modified Files:
src/sys/arch/amd64/stand/prekern: prekern.h

Log Message:
avoid typedef redefinitiones


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/amd64/stand/prekern/prekern.h

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



CVS commit: src/usr.bin/xlint/lint1

2018-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 15 22:14:24 UTC 2018

Modified Files:
src/usr.bin/xlint/lint1: err.c

Log Message:
fix indent


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/usr.bin/xlint/lint1/err.c

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



CVS commit: src/usr.bin/xlint/lint1

2018-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 15 21:58:55 UTC 2018

Modified Files:
src/usr.bin/xlint/lint1: cgram.y scan.l

Log Message:
Add a _Noreturn token


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.79 -r1.80 src/usr.bin/xlint/lint1/scan.l

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



CVS commit: src/sys/arch/sparc/sparc

2018-01-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Jan 15 21:25:25 UTC 2018

Modified Files:
src/sys/arch/sparc/sparc: cache.c

Log Message:
vcache_flush_* event counters are not interrupt type.  mark them misc.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/sparc/sparc/cache.c

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



CVS commit: src

2018-01-15 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 15 20:39:53 UTC 2018

Modified Files:
src: build.sh

Log Message:
Restore formatting/indentation of the configure call in rebuildmake()
to what it used to be.


To generate a diff of this commit:
cvs rdiff -u -r1.322 -r1.323 src/build.sh

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



CVS commit: src/tools/make

2018-01-15 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 15 20:14:49 UTC 2018

Modified Files:
src/tools/make: buildmake.sh.in

Log Message:
Do not use HOST_CFLAGS to link the make binary.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/tools/make/buildmake.sh.in

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



CVS commit: src/tools/make

2018-01-15 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 15 19:57:49 UTC 2018

Modified Files:
src/tools/make: buildmake.sh.in

Log Message:
G/c unused runcmd.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tools/make/buildmake.sh.in

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



CVS commit: src

2018-01-15 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jan 15 19:52:54 UTC 2018

Modified Files:
src: build.sh
src/tools/make: buildmake.sh.in

Log Message:
Make sure nbmake is always built with the right _PATH_DEFSYSPATH.


To generate a diff of this commit:
cvs rdiff -u -r1.321 -r1.322 src/build.sh
cvs rdiff -u -r1.8 -r1.9 src/tools/make/buildmake.sh.in

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



CVS commit: src/doc

2018-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 15 19:01:55 UTC 2018

Modified Files:
src/doc: CHANGES

Log Message:
add date


To generate a diff of this commit:
cvs rdiff -u -r1.2345 -r1.2346 src/doc/CHANGES

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 16:36:51 UTC 2018

Modified Files:
src/sys/net: if_ether.h if_vlan.c if_vlanvar.h

Log Message:
Mostly style, and add a bunch of KASSERTs.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/net/if_ether.h
cvs rdiff -u -r1.123 -r1.124 src/sys/net/if_vlan.c
cvs rdiff -u -r1.12 -r1.13 src/sys/net/if_vlanvar.h

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



CVS commit: src/usr.sbin/autofs

2018-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 15 14:38:06 UTC 2018

Modified Files:
src/usr.sbin/autofs: automount.c

Log Message:
avoid passing literal string to unconst.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/autofs/automount.c

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 14:00:34 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Style, and fix a bug in the AppleTalk path: we're doing
M_PREPEND(M_DONTWAIT), but we forgot to NULL-check the mbuf afterwards.


To generate a diff of this commit:
cvs rdiff -u -r1.255 -r1.256 src/sys/net/if_ethersubr.c

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 13:14:18 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Fix two bugs in altq_etherclassify. When scanning the mbuf chain we need
to make sure that m_next is not NULL, otherwise NULL deref. After that,
we must not touch m->m_pkthdr, given that 'm' may not be the first mbuf
of the chain anymore.

Declare mtop, and add a KASSERT to make sure it has M_PKTHDR set.


To generate a diff of this commit:
cvs rdiff -u -r1.254 -r1.255 src/sys/net/if_ethersubr.c

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 13:05:40 UTC 2018

Modified Files:
src/sys/net: if.h

Log Message:
Add a KASSERT in IFQ_CLASSIFY, we really need to make sure the given
mbuf is the top of the chain.


To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/sys/net/if.h

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

2018-01-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Jan 15 12:58:06 UTC 2018

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

Log Message:
indent to magic logic


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/pci/mpii.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

2018-01-15 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Mon Jan 15 12:43:43 UTC 2018

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

Log Message:
malloc+memset zero to malloc(, |M_ZERO);

ok rkujawa


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/pci/ahd_pci.c

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



CVS commit: src/sbin/gpt

2018-01-15 Thread Stephen Borrill
Module Name:src
Committed By:   sborrill
Date:   Mon Jan 15 12:20:47 UTC 2018

Modified Files:
src/sbin/gpt: gpt.8

Log Message:
Explain what suffixes are accepted when specifying a size.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sbin/gpt/gpt.8

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 12:17:05 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Fix a bug in the VLAN path: there's an inverted logic, the mbuf needs to
be bigger than struct ether_vlan_header, not smaller.

Meanwhile add a KASSERT in the LLC path.


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/net/if_ethersubr.c

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 11:57:27 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Style, make the code more readable, and add a KASSERT (we expect the mbuf
to have M_PKTHDR set).


To generate a diff of this commit:
cvs rdiff -u -r1.252 -r1.253 src/sys/net/if_ethersubr.c

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



CVS commit: src/bin/sh

2018-01-15 Thread Robert Elz
Module Name:src
Committed By:   kre
Date:   Mon Jan 15 11:27:39 UTC 2018

Modified Files:
src/bin/sh: sh.1

Log Message:
Paul Goyette suggested improvements to parts of the description of
LINENO ... this is what resulted (with thanks for the grammar lessons,
and sundry references provided!)

No date (Dd) bump - there is no change of substance here, just (hopefully)
a clearer way of saying the same thing.


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 src/bin/sh/sh.1

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



CVS commit: src/sys/net/agr

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 11:16:04 UTC 2018

Modified Files:
src/sys/net/agr: if_agr.c

Log Message:
Mmh, fix a weird mistake: the guy who added #if NVLAN > 0 forgot to
actually include vlan.h, so the branches are never compiled.

They don't compile, by the way, so fix that too, by reproducing the vlan
input path of ether_input().


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/net/agr/if_agr.c

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 10:27:51 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Several fixes:
 - Style and typos
 - Use kmem_zalloc, in case there is a padding between the fields of
   the structures
 - Use ETHER_ADDR_LEN instead of a hard-coded '6'
 - kmem_alloc(KM_SLEEP) can't fail
 - Simplify ether_aton_r
 - Use mutex_obj_free, not to leak memory


To generate a diff of this commit:
cvs rdiff -u -r1.251 -r1.252 src/sys/net/if_ethersubr.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/sparc/include

2018-01-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jan 15 10:06:49 UTC 2018

Modified Files:
src/sys/arch/sparc/include: reg.h

Log Message:
Redo previous: apply the alignement to the whole struct fpstate - everything
in there is properly aligned, and we need to have fs_queue double aligned
as well.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc/include/reg.h

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




CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 09:49:16 UTC 2018

Modified Files:
src/sys/net: if_bridge.c

Log Message:
If the bridge is not running, don't call bridge_stop. Otherwise the
following commands will crash the kernel:

ifconfig bridge0 create
ifconfig bridge0 destroy


To generate a diff of this commit:
cvs rdiff -u -r1.147 -r1.148 src/sys/net/if_bridge.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/sparc/conf

2018-01-15 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jan 15 09:48:28 UTC 2018

Modified Files:
src/sys/arch/sparc/conf: GENERIC

Log Message:
Enable DIAGNOSTIC


To generate a diff of this commit:
cvs rdiff -u -r1.256 -r1.257 src/sys/arch/sparc/conf/GENERIC

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 09:26:21 UTC 2018

Modified Files:
src/sys/net: if_gif.c

Log Message:
Fix spl leak.

ifconfig gif0 create
ifconfig gif0 destroy
WARNING: SPL NOT LOWERED ON ...


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/net/if_gif.c

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 08:45:19 UTC 2018

Modified Files:
src/sys/net: if_vlan.c

Log Message:
Style, improve comment, and add KASSERTs on the assumptions.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/net/if_vlan.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/include

2018-01-15 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jan 15 08:17:20 UTC 2018

Modified Files:
src/sys/arch/x86/include: specialreg.h

Log Message:
 Add IA32_SPEC_CTRL MSR and IA32_PRED_CMD MSR.


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/x86/include/specialreg.h

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



CVS commit: src/sys

2018-01-15 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Jan 15 08:17:35 UTC 2018

Modified Files:
src/sys/netinet: in.c
src/sys/netinet6: in6.c

Log Message:
Remove extra pserialize_perform from in_purgeaddr

It's already performed in ifa_remove. Note so there (in in6_unlink_ifa too).


To generate a diff of this commit:
cvs rdiff -u -r1.214 -r1.215 src/sys/netinet/in.c
cvs rdiff -u -r1.257 -r1.258 src/sys/netinet6/in6.c

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



CVS commit: src/sys/net

2018-01-15 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Mon Jan 15 07:59:48 UTC 2018

Modified Files:
src/sys/net: if_ethersubr.c

Log Message:
Fix the net.ether.multicast sysctl. If there is no multicast address
don't kmem_alloc(0) (which panics the kernel), and if the number of
multicast addresses has decreased don't copyout uninitialized kernel
data.


To generate a diff of this commit:
cvs rdiff -u -r1.250 -r1.251 src/sys/net/if_ethersubr.c

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