CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/27 00:46:49

Modified files:
sbin/unwind: control.c frontend.c printconf.c resolver.c 
 unwind.c 

Log message:
unwind(8) traces its ancestry to rad(8) and inherited all of its include
directives, some of them no longer necessary.
Cleanup by Caspar Schutijser, thank you very much!



CVS: cvs.openbsd.org: src

2019-01-26 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/01/27 00:15:57

Modified files:
share/man/man4 : nmea.4 

Log message:
sentences start with capital letters;



CVS: cvs.openbsd.org: src

2019-01-26 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2019/01/27 00:14:11

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

Log message:
add -T to usage();



CVS: cvs.openbsd.org: src

2019-01-26 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2019/01/26 23:30:53

Modified files:
regress/usr.bin/ssh: keyscan.sh test-exec.sh 

Log message:
Generate all key supported key types and enable for keyscan test.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 22:31:10

Modified files:
sys/net: if_mpe.c 

Log message:
don't play with IFF_UP in strange places.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 22:13:04

Modified files:
sys/net: if_mpe.c 
sys/netmpls: mpls.h mpls_input.c 

Log message:
use mpls_ip_adjttl and mpls_ip6_adjttl in mpe instead of rolling it again.

mpls_ip_adjttl now patches the checksum rather than check it and
calculate it again. both mpls_ip_adjttl and mpls_ip6_adjttl now
rely on the caller to check the sysctls for whether they should run
or not, which paves the way for making it configurable in mpe via
the tunnel ioctls.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 21:54:06

Modified files:
sys/net: if_mpe.c 

Log message:
rework mpe_input so it patches ipv4 cksum, and handles ipv6 too.

rather than check and recalculate the ipv4 checksum, we can update
the cksum incrementally. this is a bit faster, and means we'll see
more things on bpf.

also, peek at the first nibble so we can tell ipv6 from ipv4. i
consider them the same FEC, so either can be received now.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 21:21:00

Modified files:
sys/net: if_mpe.c 
sys/netmpls: mpls.h mpls_input.c 

Log message:
change how packets are pushed into mpe(4).

mpe(4) adds itself ot the mpls rtable with RTF_LOCAL set, which
pushes the packet through mpe_output, which sees RTF_LOCAL can calls
mpe_input. this follows what mpw(4) does, and removes a special
case in mpls_input.



CVS: cvs.openbsd.org: src

2019-01-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/01/26 20:59:23

Modified files:
regress/lib/libssl/handshake: handshake_table.c 

Log message:
zap a commented out line. 0RTT will need more thought than
just uncommenting this.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 19:41:56

Modified files:
sys/net: if_mpe.c 
sys/netmpls: mpls.h 

Log message:
move the mpe_softc definition and mpe macros into the mpe driver.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 19:40:47

Modified files:
sys/net: if_mpw.c 

Log message:
let ether_ioctl handle the mtu. set hardmtu to ETHER_MAX_HARDMTU_LEN.

as well as allowing for larger frames to be transported, it also
gets rid of the dependancy on mpe defines.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 19:35:27

Modified files:
sys/net: if_mpe.c 

Log message:
use sc as the name of the softc variable.

makes this more like other drivers to read.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 19:29:46

Modified files:
sys/net: if_mpe.c 

Log message:
put underscores in function names like other drivers

mpestart, mpeioctl and mpeoutput are now mpe_start, mpe_ioctl, and
mpe_output respectively.

no functional change



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 19:24:49

Modified files:
sys/net: if_mpw.c 
sys/netmpls: mpls_input.c 

Log message:
split off "local" input handling

this means the current mpls header will be passed along with the
mbuf for mpw to look at. right now this doesn't do anything, but
it will allow for implementation of RFC 6391 (flow aware transport)
and using the exp header for cos.

when mpe gets moved to adding an RTF_LOCAL route, this will be used
for cos and ttl handling.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 18:42:31

Modified files:
sys/net: if_mpw.c 

Log message:
like ip headers, mpls tags need to be aligned to a 4 byte boundary

copy the semantics for guaranteeing this from egre. when sending
an encapsulated frame, prepend a whole new mbuf for the tags and
transport headers. when rxing a packet, check the alignment of the
ethernet payload and duplicate it on the right boundary if it isn't
already aligned.



CVS: cvs.openbsd.org: src

2019-01-26 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 18:39:05

Modified files:
sys/netmpls: mpls_input.c 

Log message:
forgot to commit the tweaks to mpls_input when mpw became an ethernet iface

the input mechanism for mpw is now that it inserts a tag into the
mpls table with RTF_LOCAL set. mpls_input falls through to calling
the interface output routine (mpw_output in this case) which looks
for that RTF_LOCAL and then calls mpw_input against that mbuf.

ok claudio@ who is keep to apply this semantic to mpe



CVS: cvs.openbsd.org: src

2019-01-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2019/01/26 18:13:20

Modified files:
regress/lib/libssl/handshake: handshake_table.c 

Log message:
refactor and clean up the code generating dot output.



CVS: cvs.openbsd.org: www

2019-01-26 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2019/01/26 16:32:16

Modified files:
.  : ftp.html httpslist 
build  : mirrors.dat 
openbgpd   : ftp.html 
openntpd   : portable.html 
openssh: ftp.html portable.html 

Log message:
mirror.exonetric.net has https now



CVS: cvs.openbsd.org: src

2019-01-26 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/01/26 16:26:20

Modified files:
sbin/dhclient  : clparse.c conflex.c dhcpd.h dhctoken.h 

Log message:
Rename ACTION_NONE to ACTION_USELEASE. TOK_NOACTION to TOK_USELEASE.
More consistent, clearer.



CVS: cvs.openbsd.org: src

2019-01-26 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/01/26 16:14:36

Modified files:
sbin/dhclient  : kroute.c 

Log message:
Zap trailing space that stuck its head up.



CVS: cvs.openbsd.org: src

2019-01-26 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/01/26 16:00:12

Modified files:
sbin/pfctl : pfctl.8 

Log message:
Mention that -r does reverse DNS lookups for tables as well

OK benno



CVS: cvs.openbsd.org: src

2019-01-26 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/01/26 15:55:10

Modified files:
sbin/dhclient  : clparse.c conflex.c dhclient.conf.5 dhctoken.h 

Log message:
Add 'uselease' statement to allow the disabling of built-in or
previously specified 'append', 'default', 'ignore', 'prepend', or
'supersede' actions on the values provided in leases.



CVS: cvs.openbsd.org: src

2019-01-26 Thread Landry Breuil
CVSROOT:/cvs
Module name:src
Changes by: lan...@cvs.openbsd.org  2019/01/26 15:53:25

Modified files:
share/man/man4 : nmea.4 

Log message:
Document the fact that altitude & ground speed values are provided as sensors.



CVS: cvs.openbsd.org: src

2019-01-26 Thread Landry Breuil
CVSROOT:/cvs
Module name:src
Changes by: lan...@cvs.openbsd.org  2019/01/26 15:51:13

Modified files:
sys/kern   : tty_nmea.c 

Log message:
Parse altitude and ground speed values from the GGA & RMC NMEA messages,
and provide them as nmea(4) distance & velocity sensors.

With my 'u-blox GNSS receiver' that gives:

hw.sensors.nmea0.distance0=335.600 m (Altitude), OK
hw.sensors.nmea0.velocity0=18.337 m/s (Ground speed), OK

ok deraadt@



CVS: cvs.openbsd.org: src

2019-01-26 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 15:41:28

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

Log message:
check in scp client that filenames sent during remote->local directory
copies satisfy the wildcard specified by the user.

This checking provides some protection against a malicious server
sending unexpected filenames, but it comes at a risk of rejecting wanted
files due to differences between client and server wildcard expansion rules.

For this reason, this also adds a new -T flag to disable the check.

reported by Harry Sintonen
fix approach suggested by markus@;
has been in snaps for ~1wk courtesy deraadt@



CVS: cvs.openbsd.org: src

2019-01-26 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2019/01/26 15:35:01

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

Log message:
make ssh-keyscan return a non-zero exit status if it finds no keys.
bz#2903



CVS: cvs.openbsd.org: www

2019-01-26 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2019/01/26 14:47:12

Modified files:
.  : errata63.html 

Log message:
the 6.3 files are not ready just yet



CVS: cvs.openbsd.org: www

2019-01-26 Thread T . J . Townsend
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2019/01/26 14:36:37

Modified files:
.  : errata63.html errata64.html 

Log message:
release mincore/nfs/unveil errata.



CVS: cvs.openbsd.org: src

2019-01-26 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/01/26 09:18:52

Modified files:
sys/kern   : subr_witness.c 

Log message:
Use memset() instead of bzero().



CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/26 08:59:05

Modified files:
sbin/unwind: unwind.8 

Log message:
fix trustanchor path; from Caspar Schutijser. Thanks!



CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/26 05:09:39

Modified files:
etc/mtree  : 4.4BSD.dist 

Log message:
revert for now, sysmerge needs to create the group first.
found the hard way by deraadt



CVS: cvs.openbsd.org: src

2019-01-26 Thread Marcus Glocker
CVSROOT:/cvs
Module name:src
Changes by: mgloc...@cvs.openbsd.org2019/01/26 04:57:21

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
Wait a bit for the set mode command to complete for Synaptics devices to
make sure that the device doesn't get enabled before, which would make it
fail.
Fixes regular occurring 'not in sync yet, discard input' issue seen on
ThinkPad X1 Gen6.

ok deraadt@



CVS: cvs.openbsd.org: src

2019-01-26 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/01/26 04:47:41

Modified files:
sys/kern   : subr_witness.c 

Log message:
Tag the start of witness(4) output with prefix "witness:".
This eases data extraction in syzkaller.

Prompted by and OK anton@



CVS: cvs.openbsd.org: src

2019-01-26 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/01/26 04:30:32

Modified files:
lib/libcrypto  : cryptlib.c 

Log message:
Recent discussions about abort() potentially leaving key material in
core files (which can depend upon various file layouts) have resonated
with my hate for this function outside a purely debugging context.  I
also dislike how the report goes to stderr which may get lost or ignored.
Increase the noise (with syslog_r) and use _exit(1) to gaurantee termination.
ok jsing



CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/26 03:59:30

Modified files:
sbin   : Makefile 
usr.sbin   : Makefile 

Log message:
hook up unwind(8) to the build; OK deraadt



CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/26 03:59:50

Modified files:
distrib/sets/lists/base: mi 
distrib/sets/lists/etc: mi 
distrib/sets/lists/man: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/26 03:59:07

Modified files:
etc: Makefile rc rc.conf 
Added files:
etc/rc.d   : unwind 

Log message:
rc(8) bits for unwind(8); OK deraadt



CVS: cvs.openbsd.org: src

2019-01-26 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/01/26 03:58:54

Modified files:
usr.bin/ldap   : ldapclient.c 

Log message:
avoid double free, instead flowing through a free(NULL)
from Ville Valkonen



CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/26 03:58:32

Modified files:
etc/mtree  : 4.4BSD.dist 

Log message:
create /etc/unwind; OK deraadt



CVS: cvs.openbsd.org: src

2019-01-26 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/26 03:58:06

Modified files:
etc: group master.passwd 
etc/mail   : aliases 

Log message:
add _unwind user; OK deraadt