CVS: cvs.openbsd.org: src

2020-08-18 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2020/08/19 00:37:23

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

Log message:
Respond to colour requests if a colour is available, from Michal Goral.



CVS: cvs.openbsd.org: src

2020-08-18 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2020/08/18 23:55:08

Modified files:
sbin/slaacd: frontend.c 

Log message:
When sending a router solicitation use the link-layer (mac) address of
the outgoing interface in the source link-layer address ICMPv6 option
instead of the address of the last configured autoconf interface.

It is not the most efficient way to first transform an if_index into
and interface name and then iterate over all addresses but this is
also not in the hot path. Under normal operations slaacd will send
one solicitation when an interface is set to autoconf and then
never again because it will see unsolicitated router advertisements
before addresses expire.

OK kn



CVS: cvs.openbsd.org: src

2020-08-18 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2020/08/18 15:02:49

Modified files:
sbin/iked  : ca.c config.c iked.conf.5 iked.h ocsp.c parse.y 
 types.h 

Log message:
Add optional time-stamp validaten for ocsp.  The new optional 'tolerate'
parameter specifies how many seconds leeway are allowed in the check.
The optional maxage parameter indicates the allowed maximum age of
the `thisUpdate' OCSP attribute value.

ok patrick@



CVS: cvs.openbsd.org: src

2020-08-18 Thread Marcus Glocker
CVSROOT:/cvs
Module name:src
Changes by: mgloc...@cvs.openbsd.org2020/08/18 13:50:08

Modified files:
sys/dev/pci/drm/include/linux: delay.h 

Log message:
Our usleep_range(min, max) implementation today is only taking account
of the min value to delay.  On the iMac11,2 this was too short, causing
a timeout in the DP AUX transaction retry loop, leaving the eDP dark
after the KMS initialization attempt.  Affected code line for reference:

sys/dev/pci/drm/drm_dp_helper.c:771, revision 1.11

Therefore we change the behavior of usleep_range(min, max) to delay
the average value of min and max instead, which finally fixes the KMS
initialization on the iMac11,2.

Help and ok jsg@



CVS: cvs.openbsd.org: src

2020-08-18 Thread Greg Steuck
CVSROOT:/cvs
Module name:src
Changes by: gne...@cvs.openbsd.org  2020/08/18 12:19:30

Modified files:
sys/kern   : kern_sysctl.c 
sys/netinet: tcp_usrreq.c 

Log message:
Style fixups from hurried commits

Thanks kettenis@ for pointing out.

ok kettenis@



CVS: cvs.openbsd.org: src

2020-08-18 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2020/08/18 10:39:14

Modified files:
regress/sys/fifofs: fifotest.c fifotest.out 

Log message:
Fix bug in the select() portion of the test, the timeout was ignored.
The select() results are now consistent with what poll() returns.



CVS: cvs.openbsd.org: src

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

Modified files:
sys/scsi   : scsiconf.c 

Log message:
Try to avoid a theoretical infinite loop while detaching all the scsi_link's on
the bus. Use SLIST_FOREACH_SAFE() rather than 'while (!SLIST_EMPTY())'' as there
is a condition which would cause scsi_detach_link() to return without removing
the scsi_link from the SLIST.



CVS: cvs.openbsd.org: src

2020-08-18 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2020/08/18 07:41:49

Modified files:
sys/kern   : subr_log.c 

Log message:
Fix kn_data returned by filt_logread().

Take into account the circular nature of the message buffer when
computing the number of available bytes. Move the computation into
a separate function and use it with the kevent(2) and ioctl(2)
interfaces.

OK mpi@



CVS: cvs.openbsd.org: src

2020-08-18 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2020/08/18 07:38:24

Modified files:
sys/kern   : subr_log.c 
sys/sys: msgbuf.h 

Log message:
Remove an unnecessary field from struct msgbuf.

OK mvs@