OpenBSD cvs log

created 2020-08-23T07:53:43Z
begin 2020-08-18T00:00:00Z
end 2020-08-19T00:00:00Z
path src/sys
commits 8

date 2020-08-18T04:48:11Z
author gnezdo
files src/sys/kern/kern_sysctl.c log diff annotate
message Add sysctl_bounded_arr as a replacement for sysctl_int_arr

Design by deraadt@

ok deraadt@

date 2020-08-18T04:48:12Z
author gnezdo
files src/sys/sys/sysctl.h log diff annotate
message Add sysctl_bounded_arr as a replacement for sysctl_int_arr

Design by deraadt@

ok deraadt@

date 2020-08-18T05:21:21Z
author gnezdo
files src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/netinet/tcp_var.h log diff annotate
message Convert tcp_sysctl to sysctl_bounded_args

This introduces bounds checks for many net.inet.tcp sysctl variables.
Folded some fitting cases into the framework: tcp_do_sack, tcp_do_ecn.

ok derradt@

date 2020-08-18T13:38:24Z
author visa
files src/sys/kern/subr_log.c log diff annotate
src/sys/sys/msgbuf.h log diff annotate
message Remove an unnecessary field from struct msgbuf.

OK mvs@

date 2020-08-18T13:41:49Z
author visa
files src/sys/kern/subr_log.c log diff annotate
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@

date 2020-08-18T16:30:38Z
author krw
files src/sys/scsi/scsiconf.c log diff annotate
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.

date 2020-08-18T18:19:30Z
author gnezdo
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/netinet/tcp_usrreq.c log diff annotate
message Style fixups from hurried commits

Thanks kettenis@ for pointing out.

ok kettenis@

date 2020-08-18T19:50:08Z
author mglocker
files src/sys/dev/pci/drm/include/linux/delay.h log diff annotate
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@