CVS: cvs.openbsd.org: src

2020-03-24 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2020/03/24 23:30:18

Modified files:
sys/dev/pci: qle.c 

Log message:
Indicate that the case handling data underruns falls through to the case
handling overruns and normal completions.

CID 1452878.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/03/24 13:14:53

Modified files:
sbin/iked  : ca.c iked.h ikev2.c 

Log message:
Add ikev2_print_static_id() to print static IDs in log_debug() output.

ok markus@



CVS: cvs.openbsd.org: src

2020-03-24 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2020/03/24 01:53:24

Modified files:
sys/dev/wscons : wskbd.c wsmouse.c wsmux.c 

Log message:
Ensure that me_evp is still NULL before assignment during open of wscons
devices. This condition is checked early on during open but since the
same routine could end up sleeping before assigning me_evp, a race
against adding the same wscons device to a wsmux could be lost. This in
turn can cause a NULL deference during close.

ok mpi@

Reported-by: syzbot+34c3041bfd96c888c...@syzkaller.appspotmail.com



CVS: cvs.openbsd.org: src

2020-03-24 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2020/03/24 01:00:40

Modified files:
usr.bin/fgen   : fgen.h fgen.l 

Log message:
Sync to latest from wiz at netbsd, needed for upcoming sparc64 bootblk changes;
ok kettenis@



CVS: cvs.openbsd.org: src

2020-03-24 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2020/03/24 02:09:44

Modified files:
usr.bin/tmux   : Makefile cmd-display-menu.c cmd-display-panes.c 
 cmd.c job.c menu.c screen-redraw.c 
 server-client.c tmux.1 tmux.h tty.c 
Added files:
usr.bin/tmux   : popup.c 

Log message:
Add support for overlay popup boxes to show text or output temporarily
above the normal layout. These work similarly to menus and are created
with the display-popup command.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2020/03/24 02:05:52

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
Rename wsmousedoioctl() -> wmouse_do_ioctl() and follow the same
convention for the open routine. This increases the consistency between
wskbd, wsmouse and wsmux.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2020/03/24 02:12:00

Modified files:
sys/dev/wscons : wskbd.c wsmouse.c 

Log message:
Remove a chatty debug printf (not enabled by default) in wskbdopen() and
wsmouseopen(); bringing them closer to wsmuxopen(). No functional
change.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2020/03/24 03:30:06

Modified files:
sys/dev/pci: if_em.c 

Log message:
Put MSI-X stuff under !SMALL_KERNEL to reduce the growth for i386 floppy.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Inoguchi Kinichiro
CVSROOT:/cvs
Module name:src
Changes by: inogu...@cvs.openbsd.org2020/03/24 04:46:38

Modified files:
lib/libcrypto/asn1: tasn_prn.c 

Log message:
Fix ASN1 print functions

Check and print out boolean type properly.
Based on OpenSSL commit ad72d9fdf7709ddb97a58d7d45d755e6e0504b96.
Reduced unneeded parentheses from if condition.

Check return value from i2s_ASN1_INTEGER.
Based on OpenSSL commit 5e3553c2de9a365479324b8ba8b998f0cce3e527.
Added if condition expression and return 0 if NULL is returned.

ok tb@



CVS: cvs.openbsd.org: src

2020-03-24 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/03/24 07:32:36

Modified files:
sbin/iked  : config.c 

Log message:
Fix user database corruption from 'ikectl reload'. Copy only the new password
instead of the full iked_user struct to preserve the RB_TREE pointers.

>From Bernardo Cunha Vieira 
ok patrick@



CVS: cvs.openbsd.org: src

2020-03-24 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/03/24 07:50:18

Modified files:
sys/net: rtsock.c 

Log message:
Remove redundant 'NULL' check for 'rtm'.

CID 1453252

ok claudio@ mpi@



CVS: cvs.openbsd.org: src

2020-03-24 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2020/03/24 08:09:14

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

Log message:
When doing a loop inside a loop for input validation make sure that the
continue statement for the outer loop is executed in the outer loop.

Found the hard way by breaking snmpd(8) in my local tree.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2020/03/24 06:34:14

Modified files:
sys/dev/wscons : wsmouse.c 

Log message:
Backout the rename, it was more confusing then helpful.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2020/03/24 08:03:30

Modified files:
sys/msdosfs: msdosfs_vnops.c 

Log message:
Kill some dead code that tests bits immediately after setting them.

CID 1452873



CVS: cvs.openbsd.org: xenocara

2020-03-24 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2020/03/24 08:48:29

Modified files:
app/cwm: calmwm.c 

Log message:
zap stray tabs



CVS: cvs.openbsd.org: xenocara

2020-03-24 Thread Okan Demirmen
CVSROOT:/cvs
Module name:xenocara
Changes by: o...@cvs.openbsd.org2020/03/24 08:47:29

Modified files:
app/cwm: calmwm.h client.c screen.c xevents.c xutil.c 

Log message:
Instead of using _NET_ACTIVE_WINDOW on restart, use the pointer location
to determine what client to set active. Reduces a round trip for every
window.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2020/03/24 08:59:52

Modified files:
share/man/man5 : bsd.port.mk.5 

Log message:
document DPB_LOCKNAME
the feature itself is obvious, but the restrictions are many, and the
actual usage should be very rare.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2020/03/24 09:04:00

Modified files:
sys/uvm: uvm_meter.c 

Log message:
Use FALLTHROUGH in uvm_total() like it is done in uvm_loadav().

CID 1453262.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2020/03/24 11:34:06

Modified files:
share/misc : na.phone 

Log message:
587 and 825 are additional Alberta area codes since 2008.



CVS: cvs.openbsd.org: src

2020-03-24 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/03/24 12:50:18

Modified files:
sbin/iked  : ikev2.c 

Log message:
The certreq payload has no use in PSK authenticated exchanges. Once we are
sure the policy uses PSK we can safely ignore it.
The initiator always knows what authentication method will be used, the
responder knows after the policy relookup with the initiator's ID.
The old behaviour broke interop with strongswan when PSK was used.

ok markus@



CVS: cvs.openbsd.org: src

2020-03-24 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/03/24 12:57:25

Modified files:
sbin/iked  : ikev2.c 

Log message:
Always clear sa_simult when initiating a new CREATE_CHILD_SA exchange, not
just on explicit errors.  This is to make sure we don't try to resolve a
conflict from a previous failed simultaneous rekeying exchange.

ok markus@



CVS: cvs.openbsd.org: xenocara

2020-03-24 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2020/03/24 11:56:57

Modified files:
distrib/sets/lists/xserv: mi 
distrib/sets/lists/xshare: mi 

Log message:
more xorg-macros.m4 to xhare/mi where it belongs. noticed by espie@



CVS: cvs.openbsd.org: src

2020-03-24 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/03/24 13:11:46

Modified files:
sbin/iked  : ca.c 

Log message:
Make our CERTREQ payload handling less strict.  If we can not find a
certificate or key matching the trust anchor sent in the CERTREQ, find
any certificate matching the peers ID or use the own public key.
The CERTRQ contentss should only be interpreted as a hint on what the
peer supports.  It may still accept our certificate/key if it does
not match the CERTREQ.

ok markus@