CVS: cvs.openbsd.org: src

2018-01-15 Thread Carlos Cardenas
CVSROOT:/cvs
Module name:src
Changes by: ccarde...@cvs.openbsd.org   2018/01/15 23:10:45

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

Log message:
VMD: vioscsi - add support for REPORT_LUNS opcode

ok mlarkin@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/01/15 16:58:43

Modified files:
regress/sys/kern/mount: Makefile disktemplate 

Log message:
Add tests that unmount a file system while it is busy.  On a vnd
device "cp -r" and "rm -rf" are working in the background while
"umount -f" or "mount -ur" are executed.  Then "fsck -f" is used
to verify that the file system is clean.
Currently this triggers a bug quite reliably.  After the mount point
has been changed to read-only, the file system check shows that not
everything was flushed and synced properly.



CVS: cvs.openbsd.org: src

2018-01-15 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/01/15 15:30:38

Modified files:
bin/ksh: history.c 

Log message:
Don't try to open HISTFILE if the variable is unset.

str_val returns null, not NULL, if the variable isn't set.  The
erroneous check means that we later tried to open("").

ok millert@ tb@ anton@ benno@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/01/15 15:24:17

Modified files:
sys/dev/pci/drm: drm_linux.c drm_linux.h 
sys/dev/pci/drm/i915: i915_drv.h intel_i2c.c 

Log message:
Switch the inteldrm(4) i2c code over to the Linux code base.  This gives us
several quirks that wre absent in the old OpenBSD-specific reimplementation.
Fixes several issues with external connectors on several generations of
hardware.

ok deraadt@, benno@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2018/01/15 14:30:49

Modified files:
sys/uvm: uvm_mmap.c 

Log message:
mask out (ie. ignore) the bit which will be MAP_STACK in the future,
so diffs in snapshots can exercise the change in a less disruptive way
idea with sthen, ok kettenis tom others



CVS: cvs.openbsd.org: src

2018-01-15 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/01/15 13:38:47

Modified files:
share/mk   : bsd.regress.mk 

Log message:
We have no deprecated regress variables in our tree.  Remove the
compatibility layer.



CVS: cvs.openbsd.org: src

2018-01-15 Thread Bryan Steele
CVSROOT:/cvs
Module name:src
Changes by: bry...@cvs.openbsd.org  2018/01/15 12:45:51

Modified files:
usr.bin/file   : Makefile file.c 

Log message:
Revert my changes in r1.60 back to nicm@'s latest for now.

Fixes "file *|grep" breakage reported by espie@

ok nicm, deraadt



CVS: cvs.openbsd.org: src

2018-01-15 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2018/01/15 11:57:59

Modified files:
sys/arch/amd64/include: specialreg.h 

Log message:
tabs vs spaces



CVS: cvs.openbsd.org: xenocara

2018-01-15 Thread Robert Nagy
CVSROOT:/cvs
Module name:xenocara
Changes by: rob...@cvs.openbsd.org  2018/01/15 08:30:36

Modified files:
xserver: configure configure.ac 
xserver/hw/xfree86/drivers/modesetting: drmmode_display.c 
drmmode_display.h 
xserver/include: dix-config.h.in do-not-use-config.h.in 

Log message:
watch for events sent by drm(4) over kevent using EVFILT_DEVICE
and NOTE_CHANGE to notify the desktop environment to deal with
the change (e.g. after plugging in an HDMI cable)

with this change there is no need to manually do any randr commands
if your desktop environment supports it (gnome, mate, kde, etc.)

ok matthieu@, kettenis@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/01/15 08:30:03

Modified files:
usr.bin/tmux   : cmd-find.c 

Log message:
Another redundant check, GitHub issue 1219.



CVS: cvs.openbsd.org: src

2018-01-15 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2018/01/15 08:27:03

Modified files:
usr.bin/tmux   : cfg.c cmd-find.c cmd-load-buffer.c 

Log message:
Some unused code, GitHub issue 1219.



CVS: cvs.openbsd.org: src

2018-01-15 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2018/01/15 07:58:05

Modified files:
bin/ksh: c_ksh.c config.h edit.c exec.c history.c lex.c 
 lex.h main.c misc.c sh.h var.c 

Log message:
Stop pretending we support building ksh without EDIT/HISTORY support

ok anton@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2018/01/15 07:11:16

Modified files:
sys/arch/arm/arm: cpu.c cpufunc_asm_armv7.S fault.c 
sys/arch/arm/include: cpu.h cpufunc.h 

Log message:
Improve defense against branch predictor target injection (Spectre "variant 2")
attacks.  OpenBSD/armv7 is already in pretty good shape as we have always
been flushing the branch predictor cache on context switches.  This diff adds
additional flushes to page faults in kernel address space.  The impact on
performance should be minimal as these page faults should only happen when
userland (deliberately or accidentally) tries to access kernel addres space
which would lead to a fatal signal (SIGSEGV or SIGBUS).

Loosely based on changes made by Marc Zyngier in Linux and based on
information in Arm Trusted Firmware Security Advisory TFV 6.

Note that for Cortex-A15 (and Cortex-A72) you will need firmware that sets
the ACTRL[0] bit for this diff to be effective.  Also note that with this
diff Cortex-A57 is still vulnerable.

ok jsg@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/01/15 06:48:32

Modified files:
sys/netinet: if_ether.c 
sys/netinet6   : nd6.c 

Log message:
There was an issue that dynamic path MTU discovery together with
ARP or ND timeout could delete local routes.  Put an assert into
arptfree() and nd6_free() so this cannot happen again.
OK mpi@



CVS: cvs.openbsd.org: www

2018-01-15 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2018/01/15 05:45:07

Modified files:
.  : want.html 

Log message:
Drives needed for an R410 (I'll need to move my mirror).



CVS: cvs.openbsd.org: src

2018-01-15 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/01/15 05:27:45

Modified files:
regress/sys/net/pf_forward: Makefile 

Log message:
Enable traceroute test for incoming route-to rule.



CVS: cvs.openbsd.org: src

2018-01-15 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2018/01/15 05:25:03

Modified files:
sys/net: pf.c 

Log message:
When pf(4) forwards incoming packets with route-to or reply-to,
decrement the time-to-live or hop-limit field to prevent routing
loops.  Sending an ICMP time exceeded error makes traceroute work.
For outgoing packets ip_forward() has already done this.
OK visa@ sashan@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2018/01/15 04:02:07

Modified files:
usr.bin/openssl: s_cb.c 

Log message:
Add s_server and s_client -tlsextdebug messages

ok sthen@ jsing@



CVS: cvs.openbsd.org: src

2018-01-15 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2018/01/15 02:54:48

Modified files:
sbin/isakmpd   : connection.c crypto.c dnssec.c exchange.c 
 exchange.h ike_aggressive.c ike_auth.c 
 ike_main_mode.c ike_quick_mode.c init.c ipsec.c 
 isakmp_cfg.c isakmpd.c log.c message.h 
 monitor.c policy.c sa.h transport.h 
sbin/isakmpd/sysdep/openbsd: sysdep.c 

Log message:
Spacing, no object change.



CVS: cvs.openbsd.org: src

2018-01-15 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2018/01/15 01:48:40

Modified files:
usr.sbin/smtpd : spfwalk.c 

Log message:
fix parsing of RDATA for TXT records

ok gilles@