CVS: cvs.openbsd.org: src

2016-12-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2016/12/07 22:32:49

Modified files:
sys/dev: rnd.c 

Log message:
fix spelling errors and typos, from Michael W. Bombardieri



CVS: cvs.openbsd.org: src

2016-12-07 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2016/12/07 20:20:50

Modified files:
lib/libc/net   : linkaddr.c 

Log message:
Fix regressions introduce in the fix for CVE-2016-6559.
>From FreeBSD (glebius)



CVS: cvs.openbsd.org: src

2016-12-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2016/12/07 20:20:04

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

Log message:
sync



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 16:27:42

Modified files:
regress/usr.bin/mandoc/char/space: Makefile 
Added files:
regress/usr.bin/mandoc/char/space: trailing-mdoc.in 
   trailing-mdoc.out_ascii 
   trailing-mdoc.out_lint 

Log message:
test different kinds of the "WARNING: whitespace at end of input line";
bluhm@ noticed that this area can grow regressions



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 16:12:25

Modified files:
regress/usr.bin/mandoc/roff/args: man.in man.out_ascii 
  man.out_lint 

Log message:
comment out non-working parts of the test with .ig rather than \",
this is not supposed to test whitespace at the end of comments;
noticed by bluhm@ who sent a different patch



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 16:08:07

Modified files:
regress/usr.bin/mandoc/roff/args: roff.in 

Log message:
enable commented parts of the test, they seem to work now



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 16:06:57

Modified files:
regress/usr.bin/mandoc/roff/args: roff.out_ascii roff.out_lint 

Log message:
enable commented parts of the test, they seem to work now



CVS: cvs.openbsd.org: src

2016-12-07 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2016/12/07 16:03:04

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

Log message:
Do not clear the prompt when a message is shown, just leave it around and
return to it when the message is finished.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 15:57:36

Modified files:
usr.bin/mandoc : read.c 

Log message:
When reporting "whitespace at end of input line" on lines ending with
roff(7) comments, let the column number in the message point to the
end of the line rather than to the beginning of the comment.
Improvement suggested by bluhm@.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 14:08:55

Modified files:
sys/dev/pv : xbf.c 

Log message:
Add required padding to the response descriptor

Xen source code relies on the compiler to pad members of the structure
representing the descriptor layout in memory; we're however trying to
be more defensive and define packed structures.

Figured out the hard way with reyk@.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 14:06:55

Modified files:
sys/dev/pv : xbf.c 

Log message:
Response status field is signed; adjust the debug message



CVS: cvs.openbsd.org: src

2016-12-07 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2016/12/07 13:18:54

Modified files:
regress/usr.sbin/arp: arptest1.ok arptest2.ok arptest3.ok 
  arptest4.ok arptest5.ok arptest6.ok 

Log message:
Spacing in arp -a output has changed, adapt test.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 13:11:55

Modified files:
lib/libssl/man : Makefile 
Added files:
lib/libssl/man : SSL_renegotiate.3 

Log message:
Write SSL_renegotiate(3) manual from scratch; this function is listed
in ssl(3) and , so it's clearly a public interface.

More could probably be said, the code looks somewhat mysterious to me,
but i think this stub is already better than nothing.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2016/12/07 13:03:22

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

Log message:
DHCP requests can be relayed through multiple relays.  Currently we
drop requests that have already been relayed.  To allow usage in the
middle of a chain, remove this check and only set giaddr if it has not
been set yet.  This giaddr will be used by the DHCP server to identify
which subnet the client is connected to.

RFC 1542 specifies that we should increase the hop counter every time
we relay a request.  If we receive a request whose hop counter exceeds
the value of 16 we must silently drop it.

ok jca@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Patrick Wildt
CVSROOT:/cvs
Module name:src
Changes by: patr...@cvs.openbsd.org 2016/12/07 12:51:48

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

Log message:
If the BROADCAST flag is set on a BOOTREPLY, the RFC specifies that
we SHOULD forward the packet not only as L3 broadcast, but also as
L2 broadcast.  Apparently that helps on older machines that can't
handle L2 unicast replies.

ok jca@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2016/12/07 12:47:40

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

Log message:
sync



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 12:17:52

Modified files:
sys/dev/pv : xbf.c 

Log message:
Fall back to the minimum amount of ring pages

Some AWS volumes lack both max-ring-page-order and max-ring-pages
properties so we have to default to a minimum amount of 1 ring page.
Noticed and fix tested by reyk@ on EC2.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 11:47:23

Modified files:
lib/libssl/man : SSL_read.3 

Log message:
add missing .Nm SSL_peek in the NAME section



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 11:33:45

Modified files:
sys/dev/pv : xbf.c 

Log message:
splbio isn't doing us any good here and prevents polling from working



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 11:09:31

Modified files:
lib/libssl/man : Makefile 
Added files:
lib/libssl/man : SSL_copy_session_id.3 

Log message:
Write SSL_copy_session_id(3) manual from scratch.  This function is
listed in ssl(3) and , so it's clearly a public interface.

We might wish to merge the improved code from OpenSSL 1.1.0,
but that's major bump, so i'm documenting the BUGS for now.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2016/12/07 10:58:52

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

Log message:
sync



CVS: cvs.openbsd.org: src

2016-12-07 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2016/12/07 10:11:09

Modified files:
share/man/man4 : pvbus.4 xbf.4 

Log message:
tweak previous;



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 10:09:07

Modified files:
lib/libssl/man : Makefile 
Added files:
lib/libssl/man : SSL_dup.3 

Log message:
Write new SSL_dup(3) manual from scratch.  This function is listed
in ssl(3) and , so it is clearly public.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2016/12/07 09:41:17

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

Log message:
pledge(2) dhcrelay with "stdio route".  route is needed for interface ioctls.

OK rzalamena@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:54:06

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

Log message:
Mention X552, don't mention X557 which is a PHY



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:53:05

Modified files:
share/man/man4 : pvbus.4 Makefile 

Log message:
Add xbf(4)



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:51:27

Added files:
share/man/man4 : xbf.4 

Log message:
xbf(4) manual page



CVS: cvs.openbsd.org: src

2016-12-07 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2016/12/07 08:48:44

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

Log message:
Add mira support to iwn(4).
Please let me know about any regressions.

Tested by myself, tb@, okan@, jca@, naddy@, mlarkin@
ok tb@ jca@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:37:45

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

Log message:
Add a commented out entry for xbf(4)

xbf(4) driver creates a shim on top of Xen I/O rings and exports
it as a SCSI adaptor with a single target for a disk or a cdrom.
The disks that are attached to it are managed by the sd(4) driver,
but thankfully OpenBSD users do not require any migration strategy
to move from emulated wd(4) disks to paravirtualized ones since
disklabel UIDs are used by default in /etc/fstab making referencing
particular partitions independent from the underlying device driver.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:30:04

Modified files:
sys/dev/pv : files.pv 

Log message:
Add xbf(4)



CVS: cvs.openbsd.org: src

2016-12-07 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:src
Changes by: ajacou...@cvs.openbsd.org   2016/12/07 08:36:50

Modified files:
usr.sbin/syspatch: syspatch.sh 

Log message:
Cleanup syspatch directories that do not contain a tarball; it means it
was not applied properly.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:26:43

Added files:
sys/dev/pv : xbf.c 

Log message:
A driver for Xen Blkfront heavily based on vdsk(4) from kettenis@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:21:04

Modified files:
sys/dev/pv : xenstore.c xenvar.h 

Log message:
Add a simple mechanism to poll for a change in the property value



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:11:41

Modified files:
sys/dev/pv : xen.c 

Log message:
Remove some leftovers from before the dynamic grant table code



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:18:02

Modified files:
sys/dev/pv : xenstore.c 

Log message:
Factor out the polling loop into a separate function



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 08:14:34

Modified files:
lib/libssl/man : Makefile 
Added files:
lib/libssl/man : SSL_dup_CA_list.3 

Log message:
New SSL_dup_CA_list(3) manual written from scratch.
Mentioned in ssl(3) and , so it is public.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2016/12/07 08:13:23

Modified files:
sys/dev/pv : xenstore.c 

Log message:
Return proper error values from xs_{get,set}prop



CVS: cvs.openbsd.org: src

2016-12-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2016/12/07 07:38:43

Modified files:
lib/libssl/man : SSL_load_client_CA_file.3 

Log message:
Add documentation for SSL_add_file_cert_subjects_to_stack(3) and
SSL_add_dir_cert_subjects_to_stack(3), written from scratch.
Both functions are listed in ssl(3) and  and recommended
for the use by browsers in source code comments, so they are clearly
public interfaces.

Mention deduplication.
Purge some duplicate text and improve some wording while here.
Two additional cross references instead of the useless ssl(3).
Add HISTORY, AUTHORS, and BUGS.

It is depressing that BUGS (purely from code inspection) became
longer than the DESCRIPTION.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2016/12/07 06:40:17

Modified files:
lib/libssl : s3_clnt.c 

Log message:
Convert ssl3_send_client_kex_dhe() to CBB.

ok doug@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Rafael Zalamena
CVSROOT:/cvs
Module name:src
Changes by: rzalam...@cvs.openbsd.org   2016/12/07 06:19:18

Modified files:
usr.sbin/dhcrelay: dhcpd.h dhcrelay.c dispatch.c 

Log message:
Rename function discover_interfaces into get_interface and change its
prototype to be more useful.

ok reyk@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2016/12/07 06:18:38

Modified files:
lib/libssl : s3_srvr.c 

Log message:
Ensure that we zero memory that contiansthe ASN.1 encoded session, since
this contains the session master key.

ok deraadt@ doug@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2016/12/07 06:17:33

Modified files:
lib/libssl : ssl_asn1.c 

Log message:
Ensure that we zero memory used to hold the ASN.1 encoded session, since
this contains the session master key.

ok deraadt@ doug@



CVS: cvs.openbsd.org: src

2016-12-07 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2016/12/07 02:16:55

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

Log message:
Only skip moving the cursor if it is already in the last position _on
the same line_, fixes redraw bug reported by patrick keshishian.



CVS: cvs.openbsd.org: src

2016-12-07 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2016/12/07 02:16:13

Modified files:
usr.bin/tmux   : key-bindings.c server-client.c 

Log message:
Make prefix work in all tables (except the prefix table). Users who want
to avoid this can set prefix to "none" and bind send-prefix
themselves. Allows C-b t be bound in the copy mode tables again, pointed
out by millert@.