OpenBSD cvs log

created 2019-09-18T16:56:25Z
begin 2019-09-10T00:00:00Z
end 2019-09-11T00:00:00Z
path src/sys
commits 12

date 2019-09-10T07:39:39Z
author ratchov
files src/sys/dev/audio.c log diff annotate
message If the requensted block size is too large, then use half the
buffer size instead of failing. Problem found and fix tested
by Joe Davis , thanks!

date 2019-09-10T07:49:15Z
author ratchov
files src/sys/dev/pci/azalia.c log diff annotate
message Prevents the block size from exceeding the requested one when a huge
block size is requested. This avoids exceeding half the buffer size.

date 2019-09-10T12:58:55Z
author krw
files src/sys/scsi/st.c log diff annotate
message SET/CLR/ISSET all at once for st->quirks, and a few other rare flags.

date 2019-09-10T14:16:36Z
author krw
files src/sys/scsi/st.c log diff annotate
message !ISSET() for various flags.

date 2019-09-10T15:44:43Z
author krw
files src/sys/scsi/st.c log diff annotate
message Last (?) small bit twiddling modernization.

date 2019-09-10T16:08:43Z
author krw
files src/sys/scsi/st.c log diff annotate
message check pointer against NULL and error values against 0.

date 2019-09-10T16:55:42Z
author krw
files src/sys/scsi/st.c log diff annotate
message Some stray bit twiddles that were using yet another idiom.

date 2019-09-10T18:45:45Z
author krw
files src/sys/scsi/st.c log diff annotate
message Explicitly check error results against 0.

date 2019-09-10T19:04:36Z
author krw
files src/sys/scsi/st.c log diff annotate
message return is not a funciton call. Avoid pointless parenthesis.

date 2019-09-10T19:36:12Z
author anton
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Do not decrement the number of VMs counter twice in one of vm_create()
error paths. If creation of the first VM fails, the counter will wrap
around to a huge value. The same value could later be passed to malloc()
through vm_get_info() causing a panic.

While here, only decrement the same counter in vm_teardown() if the VM
has a valid ID. Otherwise it has not been accounted for.

ok mlarkin@

Reported-by: syzbot+d325bc014d9eca9f36d0@syzkaller.appspotmail.com

date 2019-09-10T22:39:13Z
author krw
files src/sys/scsi/st.c log diff annotate
message No need to check for ST_MOUNTED before calling st_mount_tape() AND in
st_mount_tape(). Just keep the latter.

st_mount_tape() is called from inside stopen() which has already found
the relevant st_softc(), incremented the device reference count, and
checked if it is dying. No need to repeast that in
st_mount_tape(). Just pass the st_softc.

date 2019-09-10T23:07:46Z
author krw
files src/sys/scsi/st.c log diff annotate
message Shuffle a couple of lines to make the device -> st_softc dances look
the same.