CVS: cvs.openbsd.org: src

2017-10-24 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2017/10/24 20:10:39

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

Log message:
uninitialised variable in PermitTunnel printing code



CVS: cvs.openbsd.org: src

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

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

Log message:
transfer ownership of stdout to the session channel by dup2'ing
/dev/null to fd 1. This allows propagation of remote stdout close to
the local side; reported by David Newall, ok markus@



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/ssh: servconf.c servconf.h sshd.8 sshd.c 
 sshd_config.5 

Log message:
add a "rdomain" criteria for the sshd_config Match keyword to allow
conditional configuration that depends on which rdomain(4) a connection
was recevied on. ok markus@



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/ssh: misc.c misc.h packet.h packet.c servconf.c 
 servconf.h sshd.c sshd_config.5 

Log message:
add sshd_config RDomain keyword to place sshd and the subsequent
user session (including the shell and any TCP/IP forwardings) into
the specified rdomain(4)

ok markus@



CVS: cvs.openbsd.org: src

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

Modified files:
usr.bin/ssh: channels.c misc.c misc.h servconf.c servconf.h 
 sshd.c sshd_config.5 

Log message:
Add optional rdomain qualifier to sshd_config's ListenAddress option
to allow listening on a different rdomain(4), e.g.

ListenAddress 0.0.0.0 rdomain 4



CVS: cvs.openbsd.org: src

2017-10-24 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/24 14:35:54

Modified files:
gnu/usr.bin/binutils-2.17/include/elf: aarch64.h 
sys/arch/arm64/include: reloc.h 
libexec/ld.so/aarch64: rtld_machine.c 

Log message:
R_AARCH64_NONE should be zero, not 256.  The latter was a deprecated
assignment and isn't used by clang/lld.

ok jsg@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/24 14:06:54

Modified files:
sys/arch/amd64/conf: ld.script 
sys/arch/arm64/conf: kern.ldscript 
sys/arch/i386/conf: ld.script 

Log message:
In ld scripts, an output section with no input sections is always marked
writable, so the stub gap.o has .rodata flagged as RW.  Instead of letting
that propagate to the final :rodata PT_LOAD section, force the flags on
the section to 4 (==PF_R) in the PHDRS block.

problem noted by mortimer@
ok deraadt@ kettenis@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/10/24 13:41:45

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

Log message:
Kill dead store and some spaces vs. tabs indent in parse_user_host_path().
Noticed by markus@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2017/10/24 13:33:32

Modified files:
regress/usr.bin/ssh: Makefile 
Added files:
regress/usr.bin/ssh: connect-uri.sh scp-uri.sh sftp-uri.sh 

Log message:
Add tests for URI parsing.  OK markus@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2017/10/24 11:49:35

Modified files:
usr.bin/nc : netcat.c 

Log message:
Use a smaller buffer size too peek the receive data.  The content
is discarded anyway, the plen variable is a leftover from the -j
jumbo option.
reported by Nan Xiao; OK deraadt@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/10/24 11:06:51

Modified files:
sys/arch/sparc64/include: ctlreg.h psl.h 

Log message:
Use "static inline" instead of "extern inline" for compatibility with
proper C99 compilers.

ok deraadt@, visa@, mpi@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/10/24 11:00:34

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

Log message:
Attach syscon(4) early.  Also attach psci(4) early such that cpuresetfn
and powerdowfn are initialized in the same way as before.

ok patrick@, jsg@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2017/10/24 08:49:29

Modified files:
sys/netinet: tcp_input.c tcp_var.h 

Log message:
Refactor handling of partial TCP acknowledgements

With input from Klemens Nanni, OK visa, mpi, bluhm



CVS: cvs.openbsd.org: src

2017-10-24 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/10/24 08:21:10

Modified files:
bin/dd : misc.c 

Log message:
When dd(1) fails because it receives an INT signal,
exit with a non-zero EXIT STATUS, as required by POSIX,
consistent with what other operating systems do, consistent
with how other OpenBSD programs behave, and making wait(2)
consistent with what happens when dd(1) dies from other signals.
Patch from .
OK florian@ tb@.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/net80211   : ieee80211_ioctl.h 
sys/dev/wscons : wsconsio.h 
sys/net: if_ppp.h 
sys/netinet6   : in6_var.h 
sys/sys: cdio.h dkio.h disklabel.h sockio.h 
sys/dev/ata: wd.c 
sys/arch/octeon/dev: amdcf.c octcf.c 
sbin/wsconsctl : mouse.c 
usr.sbin/wsmoused: wsmoused.c 
share/man/man4 : bridge.4 switch.4 

Log message:
remove defines for ioctls the kernel doesn't recognise
ok mpi@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/24 03:30:15

Modified files:
sys/netinet: in.c 
sys/netinet6   : in6.c 

Log message:
Remove some more tests checking for a non-NULL `ifp->if_ioctl'.

if_attach() enforces it is properly defined.



CVS: cvs.openbsd.org: src

2017-10-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/24 03:01:05

Modified files:
lib/libfuse: fuse.c 

Log message:
Add more sanity checks to prevent a segfault and a NULL-dereference
when manipulating callers probided pointers.

>From Helg Bredow.



CVS: cvs.openbsd.org: src

2017-10-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/24 02:57:11

Modified files:
sys/sys: sockio.h 
sys/netinet: in.c 
sys/netinet6   : in6.c 

Log message:
Remove support for never used ioctls originating from KAME.

ok florian@, claudio@, bluhm@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/24 02:53:15

Modified files:
sys/kern   : kern_rwlock.c 

Log message:
Use membar_enter_after_atomic(9) amd membar_exit_before_atomic(9).

Micro-optimization useful to x86 archs where the cmpxchg{q,l} instruction
used by rw_enter(9) and rw_exit(9) already include an implicit memory
barrier.

>From Mateusz Guzik, ok visa@, mikeb@, kettenis@



CVS: cvs.openbsd.org: src

2017-10-24 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/10/24 01:58:52

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

Log message:
Remove terminate_vm/vm_remove logic from vmm_dispatch_parent. This
logic is present in vmm_sighdlr when a VM process has signaled
SIGCHLD for proper cleanup.

From: Carlos Cardenas, thanks!



CVS: cvs.openbsd.org: src

2017-10-24 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2017/10/24 01:51:46

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

Log message:
The VMD parent process didn't handle the case of a VM exiting
with a non 0 return properly (i.e. EIO).

From: Carlos Cardenas, thanks!



CVS: cvs.openbsd.org: src

2017-10-24 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2017/10/24 00:27:42

Modified files:
usr.bin/ssh: ssh_config.5 

Log message:
tweak previous; ok djm