CVS: cvs.openbsd.org: src

2017-12-18 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/12/18 17:49:30

Modified files:
regress/usr.bin/ssh: agent.sh 

Log message:
explicitly test all key types and their certificate counterparts

refactor a little



CVS: cvs.openbsd.org: src

2017-12-18 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/12/18 17:24:34

Modified files:
usr.bin/ssh: auth2-pubkey.c 

Log message:
include signature type and CA key (if applicable) in some debug messages



CVS: cvs.openbsd.org: src

2017-12-18 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/12/18 16:16:24

Modified files:
usr.bin/ssh: clientloop.c serverloop.c 

Log message:
unbreak hostkey rotation; attempting to sign with a desired signature
algorithm of kex->hostkey_alg is incorrect when the key type isn't
capable of making those signatures. ok markus@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/12/18 16:14:34

Modified files:
usr.bin/ssh: ssh-rsa.c 

Log message:
log mismatched RSA signature types; ok markus@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/12/18 16:13:42

Modified files:
usr.bin/ssh: packet.c 

Log message:
pass kex->hostkey_alg and kex->hostkey_nid from pre-auth to post-auth
unpriviledged child processes; ok markus@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Robert Peichaer
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2017/12/18 15:48:28

Modified files:
distrib/miniroot: install.sub 

Log message:
Change the question at the end of installs and upgrades to present a choice
between exiting to the shell or to reboot the latter being the default.
(On sparc64 the second choice is to halt the system which leaves it at the
OpenBoot PROM prompt)

While there add a newline after the CONGRATULATIONS message.

OK tb@
positive feedback naddy@ deraadt@ giovanni@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/12/18 15:13:36

Modified files:
usr.bin/tmux   : client.c 

Log message:
Do not try to put more in command message than will fit when sending
(the server will treat as a fatal error). GitHub issue 1200.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Sebastian Benoit
CVSROOT:/cvs
Module name:src
Changes by: be...@cvs.openbsd.org   2017/12/18 14:45:57

Modified files:
usr.sbin/relayd: hce.c 

Log message:
always initialize the hce_launch_checks event timer.
Fixes a crash when poll is run without any checks.
Found and fixed by Hiltjo Posthuma (hiltjo -AT- codemadness -DOT- org).
ok claudio@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2017/12/18 14:33:26

Modified files:
distrib/miniroot: install.sub 

Log message:
Display $MODE (install/upgrade) in the prompt before we know the hostname.

suggested by deraadt
ok rpe



CVS: cvs.openbsd.org: www

2017-12-18 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2017/12/18 13:50:14

Modified files:
faq: current.html 

Log message:
tweak previous



CVS: cvs.openbsd.org: www

2017-12-18 Thread Landry Breuil
CVSROOT:/cvs
Module name:www
Changes by: lan...@cvs.openbsd.org  2017/12/18 13:43:18

Modified files:
faq: current.html 

Log message:
Add a blurb about the buildbot upgrade. Probably rewritten/improved by a
native speaker :)



CVS: cvs.openbsd.org: src

2017-12-18 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2017/12/18 13:37:58

Modified files:
share/man/man3 : intro.3 

Log message:
Sync cross references related to libutil; ok jmc@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2017/12/18 13:30:14

Modified files:
bin/ksh: exec.c 

Log message:
Get rid of a todo by stop declaring variable texec as static and instead zeroing
it out prior to continuing down the recursive call chain.

Initial diff from Michael W. Bombardieri, later tweaked; ok tb@



CVS: cvs.openbsd.org: src

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

Modified files:
sys/dev/fdt: files.fdt 
sys/arch/armv7/conf: GENERIC RAMDISK 

Log message:
Properly implement the rsb attribute and actually use it.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/12/18 13:21:06

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

Log message:
Add sensors for the AXP809.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/12/18 13:03:48

Modified files:
sys/arch/arm64/arm64: trap.c 

Log message:
Generate SIGBUS/BUS_ADRALN when we see a PC Alignment Exception from userland.

ok patrick@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/12/18 12:40:12

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

Log message:
Use axppmic as a dependency instead of axppmic_rsb.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2017/12/18 12:19:08

Modified files:
regress/bin/csh: Makefile 
Added files:
regress/bin/csh: env.in env.ok 

Log message:
Add tests for the environment related commands in csh. While here, print a
descriptive header before each test, inspired by the many others in regress.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2017/12/18 12:12:24

Modified files:
bin/csh: func.c 

Log message:
No need to declare variable name as static in dounsetenv(). Also, drop a
redundant call to free() since name is always freed upon return.

>From Michael W. Bombardieri, with some tweaks by myself.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2017/12/18 12:04:53

Modified files:
bin/ksh: emacs.c 

Log message:
Add another pair of home/end key bindings; from Lari Rasku.

ok jca@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/12/18 11:42:33

Modified files:
sys/dev/ic : bwfmreg.h 

Log message:
Read RAM size for chips with SOCRAM like the BCM4334 on one of my
Intel machines.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/12/18 11:40:50

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

Log message:
Read RAM size for chips with SOCRAM like the BCM4334 on one of my
Intel machines.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/12/18 10:28:54

Modified files:
usr.bin/ssh: scp.c 

Log message:
Add helper function for uri handing in scp where a missing path
simply means ".".  Also fix exit code and add warnings when an
invalid uri is encountered.  OK otto@



CVS: cvs.openbsd.org: www

2017-12-18 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2017/12/18 10:15:10

Modified files:
.  : ftp.html ftplist httpslist 
openbgpd   : ftp.html 
openssh: ftp.html portable.html 
openntpd   : portable.html 

Log message:
sync



CVS: cvs.openbsd.org: www

2017-12-18 Thread Job Snijders
CVSROOT:/cvs
Module name:www
Changes by: j...@cvs.openbsd.org2017/12/18 10:11:23

Modified files:
build  : mirrors.dat 

Log message:
Add cloudflare mirror service

OK sthen@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/12/18 10:01:27

Modified files:
regress/sys/net/pf_divert: Client.pm LICENSE Makefile Packet.pm 
   Proc.pm README Remote.pm Server.pm 
   remote.pl 

Log message:
When setting KTRACE in the environment, client and server write
ktrace files.  This simplifies debugging as system calls can be
inspected with kdump.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/12/18 09:44:49

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

Log message:
Pass the BSSID to the join command so that we connect to the AP that
we chose instead of any AP the firmware chooses based on the SSID.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2017/12/18 09:33:37

Modified files:
sys/dev/ic : bwfm.c bwfmreg.h 

Log message:
Pass scan type directly to the scan command instead of using the global
variable.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2017/12/18 07:20:23

Modified files:
lib/libfuse: fuse.c 

Log message:
Add call to fuse_remove_signal_handlers(3) in fuse_teardown(3) to do the
opposite of fuse_setup(3).

ok mpi@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2017/12/18 07:17:58

Modified files:
sbin/dhclient  : clparse.c dhclient.c dhclient.leases.5 dhcpd.h 

Log message:
Stop inserting and paying attention to 'interface ;'
inside 'lease {}' declarations. We don't keep leases from
multiple interfaces in dhclient.leases. files.

One less thing to parse and keep in memory. More rope for
those wanting to do unspeakable things with their lease files.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2017/12/18 05:53:33

Modified files:
sys/arch/amd64/stand/libsa: diskprobe.c softraid_amd64.c 
sys/arch/i386/stand/libsa: diskprobe.c softraid_i386.c 

Log message:
Add sizes for free() in libsa for amd64 and i386.

OK tom@, deraadt@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2017/12/18 05:39:34

Modified files:
usr.bin/tmux   : status.c 

Log message:
Remove unused variable from Thomas Adam.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Helg Bredow
CVSROOT:/cvs
Module name:src
Changes by: h...@cvs.openbsd.org2017/12/18 04:41:41

Modified files:
lib/libfuse: fuse.c fuse_private.h 

Log message:
Refactor libfuse option processing to better support options in the
future. Immediate benefits are that gid, uid and umask are now
supported and max_read is now honoured for all file systems. Mounting
read_only is now possible but requires more thorough testing.

ok mpi@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/12/18 03:51:24

Modified files:
sys/arch/armv7/conf: GENERIC 

Log message:
Enable RSB attachment for axppmic(4).



CVS: cvs.openbsd.org: src

2017-12-18 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/12/18 03:50:13

Modified files:
sys/dev/fdt: axppmic.c files.fdt 
Removed files:
sys/dev/fdt: axp20x.c 

Log message:
Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well.  The AXP209 is extended to support
regulators and sensors.  The ACIN and VBUS indicators are now exported as
sensors.  Retire the old AXP152/AXP209 support code.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/12/18 03:13:45

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

Log message:
Map framebuffer into userland as non-cachable (but normal) memory.  We still
map the framebuffer as device memory in the kernel.  Using mismatched
memory attributes like this is discouraged (and we should probably fix this
at some point) but this particular case is well-defined and the potential
side-effects should not matter for thus use-case.

ok patrick@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/12/18 03:10:53

Modified files:
sys/kern   : kern_event.c 
sys/sys: event.h 

Log message:
Revert support for multiple threads to enter kqueue_scan() in parallel.

It is not clear if this change is responsible for the lockups experienced
by dhill@ and jcs@ but since we're no longer grabbing the socket lock in
kqueue(2) filters there's no need for this change.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/12/18 03:07:55

Modified files:
sys/kern   : uipc_socket.c 
sys/sys: socketvar.h 
sys/miscfs/fifofs: fifo_vnops.c 

Log message:
Revert grabbing the socket lock in kqueue(2) filters.

This change exposed or created a situation where a CPU started to be
irresponsive while holding the KERNEL_LOCK().  These led to lockups and
even with MP_LOCKDEBUG it was not clear what happened to this CPU.

These situations have been experience by dhill@ with dcrwallet and jcs@
with syncthing.  Both applications are written in Go and do kevent(2)
& networking across multiple threads.



CVS: cvs.openbsd.org: src

2017-12-18 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/12/18 03:05:43

Modified files:
sys/kern   : kern_rwlock.c 

Log message:
Make rw_exit() always succeed after a panic.

Prevents a deadlock in if_downall() when rw_enter() succeed without
really grabbing the lock.

Reported by and ok phessler@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/12/18 02:40:17

Modified files:
sys/net: rtsock.c 

Log message:
Size for free(9).

>From 



CVS: cvs.openbsd.org: src

2017-12-18 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/12/18 02:13:47

Modified files:
sys/dev/ofw: ofw_regulator.c ofw_regulator.h 

Log message:
Add support for enabling registered regulators.  Make sure that we leave
regulators with a "regulator-always-on" property alone.

ok patrick@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/12/18 02:12:49

Modified files:
usr.bin/bgplg  : bgplg.c bgplg.h misc.c 

Log message:
Reclaim browser screen real estate in bgplg

Removing versioning information too.

OK deraadt@



CVS: cvs.openbsd.org: src

2017-12-18 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:src
Changes by: ajacou...@cvs.openbsd.org   2017/12/18 02:09:53

Modified files:
sbin/disklabel : disklabel.8 editor.c 

Log message:
Tighten /usr/local and /usr/X11R6 so that 8G disks still fit in our default
partitioning scheme.

ok florian@ benno@