CVS: cvs.openbsd.org: src

2017-08-13 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/08/13 23:52:21

Modified files:
sys/dev/usb: if_run.c 

Log message:
Attach run(4) to D-Link DWA-137 and DWA-140 rev D1.
Patch by Mike Korbakov



CVS: cvs.openbsd.org: src

2017-08-13 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/08/13 23:51:21

Modified files:
sys/dev/usb: usbdevs.h usbdevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2017-08-13 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/08/13 23:50:37

Modified files:
sys/dev/usb: usbdevs 

Log message:
Add USB device IDs for D-Link DWA-137 and DWA-140 rev D1.
Patch by Mike Korbakov



CVS: cvs.openbsd.org: src

2017-08-13 Thread Brent Cook
CVSROOT:/cvs
Module name:src
Changes by: bc...@cvs.openbsd.org   2017/08/13 23:29:32

Modified files:
lib/libcrypto/modes: gcm128.c 

Log message:
fix missing bracket on ARM

ok beck@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Rob Pierce
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/08/13 21:15:28

Modified files:
usr.sbin/ifstated: ifstated.c ifstated.h 

Log message:
Remove some dead logging code that was never used.

Ok benno@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 20:16:28

Modified files:
sys/dev/pci/drm: drm_dp_mst_topology.c 

Log message:
drm/mst: Avoid processing partially received up/down message transactions

>From Imre Deak
4ca0f3730e2734f67e648b2b4f12b66673e995e1 in linux-4.4.y/4.4.79
636c4c3e762b62aa93632c645ca65879285b16e3 in mainline linux

ok kettenis@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 20:10:24

Modified files:
sys/dev/pci/drm: drm_dp_mst_topology.c 

Log message:
drm/mst: Avoid dereferencing a NULL mstb in drm_dp_mst_handle_up_req()

>From Imre Deak
3d26e2ed7c8b4b1a0d9406fef7f3b5d6309fba49 in linux-4.4.y/4.4.79
7f8b3987da54cb4d41ad2545cd4d7958b9a36bdf in mainline linux

ok kettenis@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 20:07:06

Modified files:
sys/dev/pci/drm: drm_dp_mst_topology.c 

Log message:
drm/mst: Fix error handling during MST sideband message reception

>From Imre Deak
3383334a6cf38af6843793e343c95081b02773f1 in linux-4.4.y/4.4.79
448421b5e93b9177c5698f0cf6f5e72d2995eeca in mainline linux

ok kettenis@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 19:35:04

Modified files:
sys/dev/pci/drm: drm_linux.h 

Log message:
Make the vga_client_register() stub available to all archs to unbreak
the drm build on non amd64/i386 archs after recent changes prompted by a
coverity scan.  Reported by miod.



CVS: cvs.openbsd.org: src

2017-08-13 Thread Stefan Fritsch
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/08/13 17:36:27

Modified files:
sys/msdosfs: msdosfs_fat.c 

Log message:
minor msdosfs tweaks

* add to comments for pcbmap()
* remove useless ";"

ok tb@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/08/13 16:28:23

Modified files:
sys/dev/rasops : rasops.c 

Log message:
Fix rotation in combination wth vcons support by calling
rasops_putchar_rotated() within the other rotation support functions.

ok patrick@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/13 16:08:44

Modified files:
sys/kern   : vfs_vnops.c 

Log message:
Nuke trailing whitespace



CVS: cvs.openbsd.org: src

2017-08-13 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/13 16:02:22

Modified files:
sys/sys: vnode.h 

Log message:
remove accidental addition



CVS: cvs.openbsd.org: src

2017-08-13 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/13 16:01:08

Modified files:
sys/sys: vnode.h 

Log message:
Evidence suggests this trailing whitespace was left here by maurauding
Vikings... We don't need to keep it



CVS: cvs.openbsd.org: src

2017-08-13 Thread Brent Cook
CVSROOT:/cvs
Module name:src
Changes by: bc...@cvs.openbsd.org   2017/08/13 15:10:42

Modified files:
lib/libssl : t1_lib.c 

Log message:
match function implementation with declaration, ok beck@, doug@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/08/13 14:26:33

Modified files:
share/man/man9 : pool.9 
sys/kern   : subr_pool.c sys_futex.c 
sys/sys: pool.h 

Log message:
New flag PR_RWLOCK for pool_init(9) makes the pool use rwlocks instead
of mutexes.  Use this immediately for the pool_cache futex pools.

Mostly worked out with dlg@ during e2k17
ok mpi@ tedu@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Bob Beck
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/08/13 13:47:49

Modified files:
lib/libcrypto/asn1: a_time_tm.c asn1_locl.h 
lib/libcrypto/x509: x509_vfy.c 

Log message:
Add ability to clamp a notafter to values representable in a 32 bit time_t
This will only be used in portable. As noted, necessary to
make us conformant to RFC 5280 4.1.2.5.
ok jsing@ bcook@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Doug Hogan
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/08/13 13:42:33

Modified files:
lib/libcrypto  : Makefile 
lib/libssl : Makefile 
lib/libtls : Makefile 
usr.bin/openssl: Makefile 

Log message:
Switch to -Werror with clang for libressl.

Discussed with beck@ and jsing@
ok beck@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/08/13 13:34:12

Modified files:
lib/libc/sys   : Makefile.inc ktrace.2 

Log message:
add fktrace to libc



CVS: cvs.openbsd.org: src

2017-08-13 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2017/08/13 13:03:19

Modified files:
share/man/man5 : resolv.conf.5 

Log message:
Bring the dhclient(8) related text into
line with reality. More polishing sure
to follow.

ok beck@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/08/13 12:51:06

Modified files:
sys/sys: ktrace.h 

Log message:
declaration for fktrace



CVS: cvs.openbsd.org: src

2017-08-13 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/08/13 12:08:03

Modified files:
sys/dev/pci: if_iwm.c 

Log message:
Remove the second parameter of iwm_stop(). It was not used for anything.
No functional change.



CVS: cvs.openbsd.org: src

2017-08-13 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2017/08/13 11:57:32

Modified files:
sbin/dhclient  : dhclient.c dispatch.c privsep.c privsep.h 

Log message:
Simplify HUP handling now that proper error
checks are done on the imsg socket to detect
closure, etc.

Die immediately if the priv process notices
the interface name can't be turned into an
index.



CVS: cvs.openbsd.org: src

2017-08-13 Thread Brent Cook
CVSROOT:/cvs
Module name:src
Changes by: bc...@cvs.openbsd.org   2017/08/13 11:46:24

Modified files:
lib/libcrypto/modes: ctr128.c gcm128.c xts128.c 
lib/libcrypto/rc4: rc4_enc.c 

Log message:
move endian/word size checks from runtime to compile time

ok guenther@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Doug Hogan
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/08/13 11:04:36

Modified files:
lib/libssl : ssl_lib.c 

Log message:
Make SSL{,_CTX}_set_alpn_protos() do atomic updates and handle NULL.

Previously, the code would accept NULL and 0 length and try to
malloc/memcpy it.  On OpenBSD, malloc(0) does not return NULL.  It could
also fail in malloc and leave the old length.

Also, add a note that this public API has backwards semantics of what you
would expect where 0 is success and 1 is failure.

input + ok jsing@ beck@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2017/08/13 10:57:20

Modified files:
sys/net: pf.c pfvar.h 

Log message:
to change a state's state (that term is overloaded in pf, protocol state
like ESTABLISHED for tcp here), don't do it directly, but go through a newly
introduced pf_set_protostate()
ok bluhm benno



CVS: cvs.openbsd.org: src

2017-08-13 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/08/13 10:55:31

Modified files:
lib/libcrypto/chacha: chacha-merged.c 

Log message:
Convert the sigma and tau initialisers to byte arrays, rather than using
strings. The original code is perfectly valid C, however it causes some
compilers to complain since it lacks room for a string NUL terminator and
the compiler is not smart enough to realise that these are only used as
byte arrays and never treated as strings.

ok bcook@ beck@ inoguchi@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2017/08/13 10:45:07

Modified files:
usr.sbin/vmd   : vmd.c 

Log message:
don't issue a termination command to an already stopped vm

ok mlarkin@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/08/13 10:28:45

Modified files:
lib/libssl : ssl.h t1_lib.c 

Log message:
Remove support for the TLS padding extension.

This was added as a workaround for broken F5 TLS termination, which then
created issues talking to broken IronPorts. The size of the padding is
hardcoded so it cannot be used in any generic sense.

ok bcook@ beck@ doug@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2017/08/13 10:25:19

Modified files:
lib/libssl : ssl.h t1_lib.c 

Log message:
Nuke SSL_OP_CRYPTOPRO_TLSEXT_BUG.

This was a workaround for a server that needed to talk GOST to old/broken
CryptoPro clients. This has no impact on TLS clients that are using GOST.

ok bcook@ beck@ doug@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2017/08/13 09:41:30

Modified files:
distrib/amd64/iso: Makefile 
distrib/amd64/ramdiskA: Makefile.inc 
distrib/amd64/ramdisk_cd: Makefile.inc 
distrib/i386/common: Makefile.inc 
distrib/i386/iso: Makefile 
distrib/macppc/ramdisk: Makefile 

Log message:
strip .SUNW_ctf in the remaining strip invocations

broke amd64/ramdisk_cd as it no longer fit; spotted by jsg@
ok deraadt@ mpi@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/08/13 09:34:54

Modified files:
sys/dev/pci: if_iwm.c if_iwmvar.h 

Log message:
Add proper support for iwm(4) firmware's time event. Cancel the event if
it is still scheduled before tearing down firmware state in iwm_unauth().

This change does not address any particular known issue, but matches what
Linux does. If it causes any problems, let me know.

ok tb@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2017/08/13 09:28:51

Modified files:
usr.bin/ctfconv: ctfstrip 

Log message:
Fix arguments that are passed to strip(1). In particular,
$INFILE should not appear twice.

OK mpi@, jasper@



CVS: cvs.openbsd.org: www

2017-08-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:www
Changes by: m...@cvs.openbsd.org2017/08/13 09:06:30

Modified files:
faq: current.html 

Log message:
Kernel build now require an installed ctfstrip(1).

Reminded by jsg@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/08/13 09:04:47

Modified files:
sys/dev/pci: if_iwn.c 

Log message:
When iwn_stop() releases the scan lock wake processes sleeping on it.
Fixes ifconfig scan hanging after resume if system suspended during a scan.

ok stsp



CVS: cvs.openbsd.org: src

2017-08-13 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2017/08/13 09:02:45

Modified files:
sys/dev/pci: if_iwm.c 

Log message:
When iwm_stop() releases the scan lock wake processes sleeping on it.
Fixes ifconfig scan hanging after resume if system suspended during a scan.
ok tb@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/08/13 09:00:29

Modified files:
sys/dev/ic : ahci.c 

Log message:
improve AHCI hibernate writeout performance by doing smaller delay()s
between each I/O.

ok kettenis@, jmatthew@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2017/08/13 08:57:20

Modified files:
libexec/ld.so/mips64: archdep.h 

Log message:
Get R_MIPS_* defines via .

OK guenther@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2017/08/13 08:56:09

Modified files:
sys/arch/mips64/include: exec.h reloc.h 

Log message:
Make R_MIPS_* defines available via .

OK guenther@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Nayden Markatchev
CVSROOT:/cvs
Module name:src
Changes by: nay...@cvs.openbsd.org  2017/08/13 08:56:05

Modified files:
sys/sys: ctf.h 

Log message:
Convert variable type to C99.
OK mpi@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2017/08/13 08:46:04

Modified files:
sys/arch/octeon/dev: octohci.c 

Log message:
Fix a dereference of a bogus pointer.



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 05:45:22

Modified files:
distrib/notes/armv7: prep 

Log message:
mention raw SD card offset for U-Boot on Rockchip RK3xxx



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 05:20:53

Modified files:
distrib/notes/armv7: prep 
distrib/notes/arm64: prep 

Log message:
Avoid raw devices when dd'ing U-Boot.  Avoids cases that might require
conv=sync.  Discussed with kettenis some time ago.



CVS: cvs.openbsd.org: src

2017-08-13 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2017/08/13 05:10:31

Modified files:
usr.sbin/smtpd : pony.c smtp_session.c smtpd.h 
usr.sbin/smtpd/smtpd: Makefile 

Log message:
bypass the filter code for incoming smtp sessions.
experimental support for filters has been removed from the config
parser already, and we want to get rid of the remaining code.

ok gilles@



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 04:48:08

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2017-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/08/13 04:42:15

Modified files:
sys/dev/fdt: if_dwge_fdt.c 

Log message:
remove uneeded bpf include



CVS: cvs.openbsd.org: src

2017-08-13 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2017/08/13 04:16:35

Modified files:
distrib/sets/lists/comp: md.loongson md.octeon md.sgi 

Log message:
sync



CVS: cvs.openbsd.org: src

2017-08-13 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2017/08/13 01:52:17

Modified files:
usr.sbin/rtadvd: rtadvd.c 

Log message:
The impossibility has been impossible since an impossible long
time. And indeed it is impossible to arrive here with something other
than a ND_OPT_PREFIX_INFORMATION. Remove #if 0'ed block.