OpenBSD cvs log

created 2022-02-01T15:38:07Z
begin 2022-01-11T00:00:00Z
end 2022-01-12T00:00:00Z
path src/sys
commits 20

date 2022-01-11T00:37:23Z
author jsg
files src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/dwiic_pci.c log diff annotate
src/sys/dev/pci/ichiic.c log diff annotate
message match on Intel Jasper Lake

cavs/hda is pci class multimedia subclass audio so not automatically
matched by azalia but confirmed to work after matched

tested by Sven Wolf on Acer Swift 1 SF114-34 with Pentium Silver N6000

date 2022-01-11T03:13:58Z
author jsg
files src/sys/isofs/cd9660/cd9660_lookup.c log diff annotate
message spelling
ok jmc@

date 2022-01-11T03:13:59Z
author jsg
files src/sys/isofs/udf/ecma167-udf.h log diff annotate
src/sys/isofs/udf/udf_vfsops.c log diff annotate
src/sys/msdosfs/msdosfs_lookup.c log diff annotate
src/sys/nfs/nfs_aiod.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/nfs/nfs_subs.c log diff annotate
src/sys/ntfs/ntfs.h log diff annotate
src/sys/ntfs/ntfs_subr.c log diff annotate
src/sys/ntfs/ntfs_vfsops.c log diff annotate
src/sys/ufs/ext2fs/ext2fs_lookup.c log diff annotate
src/sys/ufs/ffs/fs.h log diff annotate
src/sys/ufs/ufs/dirhash.h log diff annotate
src/sys/ufs/ufs/ufs_lookup.c log diff annotate
message spelling
ok jmc@

date 2022-01-11T06:00:41Z
author anton
files src/sys/dev/kcov.c log diff annotate
message In revision 1.43 of kcov.c, the redundant conditional of checking for
an exising kcov descriptor with the given device minor was removed since
kcov is a cloning device; i.e. the device minor should always be unique.

However, there's one edge case to still consider in which one thread
have tracing enabled while another thread closes the same kcov
descriptor. The kcov descriptor is kept alive until thread with tracing
enabled exits to prevent usage after free. This does however cause the
spec file layer above to flag the device minor as unused. Any subsequent
open of /dev/kcov would trip on the assertion in kcovopen() until the
thread with tracing enabled exits.

Therefore unconditionally remove the kcov descriptor from the global
list of active descriptors which is fine since the same kcov descriptor
will later be freed in kcov_exit().

I have never seen this in the wild but realized while hunting another
bug.

date 2022-01-11T06:23:05Z
author anton
files src/sys/dev/kcov.c log diff annotate
message Add temporary verbose logging when remote coverage fails to attach.
In the hopes of tracking down a rare bug seen on syzkaller.

date 2022-01-11T06:35:03Z
author visa
files src/sys/lib/libsa/readdir.c log diff annotate
message Remove dead store to f and avoid use of unvalidated fd.

Found by LLVM scan-build.

OK millert@ deraadt@

date 2022-01-11T07:31:50Z
author semarie
files src/sys/kern/kern_unveil.c log diff annotate
message move kern_unveil.c to use DPRINTF()

Changes the way printf debug is done in kern_unveil.c

Currently, each printf() is enclosed in #ifdef DEBUG_UNVEIL. It moves
to using DPRINTF(), and reduces the number of #ifdef inside the file.

Also changes some strings to use __func__ instead of using the
function name verbatim.

ok visa@

date 2022-01-11T08:09:14Z
author mvs
files src/sys/kern/syscalls.master log diff annotate
message Unlock getpeername(2). For inet and unix sockets it follows the code
which was unlocked with accept(2) unlocking. For key management and
route domain sockets it just copies the read-only data.

ok bluhm@

date 2022-01-11T08:10:03Z
author mvs
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2022-01-11T09:00:17Z
author sashan
files src/sys/net/pf_ioctl.c log diff annotate
message move allocations in DIOCSADDRULE and DIOCHANGERULE outside of locks.
this diff lets pf_rule_copyin() to be called outside of PF_LOCK()/NET_LOCK().

OK bluhm@

date 2022-01-11T09:21:34Z
author jsg
files src/sys/lib/libkern/mcount.c log diff annotate
src/sys/lib/libkern/arch/amd64/strlen.S log diff annotate
message spelling

date 2022-01-11T09:21:35Z
author jsg
files src/sys/lib/libkern/arch/hppa/milli.S log diff annotate
src/sys/lib/libkern/arch/m88k/bzero.S log diff annotate
message spelling

date 2022-01-11T10:23:17Z
author uaa
files src/sys/dev/fdt/sxirsb.c log diff annotate
message fix RSB_DMCR_DEVICE_MODE_DATA value to enter RSB mode correctly
ok kettenis@ patrick@

date 2022-01-11T10:34:13Z
author claudio
files src/sys/dev/usb/if_umb.c log diff annotate
message Remove KASSERT(0) and default switch case. No other sc_ncm_format
switch has a default case and umb_ncm_setup_format() ensures that
only 16 and 32bit formats are accepted. Fixes build error without
DIAGNOSTIC set.
Found by and OK robert@

date 2022-01-11T11:51:14Z
author uaa
files src/sys/dev/fdt/com_fdt.c log diff annotate
src/sys/dev/ic/com.c log diff annotate
src/sys/dev/ic/comreg.h log diff annotate
src/sys/dev/ic/comvar.h log diff annotate
src/sys/dev/ic/ns16550reg.h log diff annotate
message add Synopsys Degisnware UART (dw-apb-uart) support

To fix Allwinner H6's UART problem, need to add dw-apb-uart special code.
ok kettenis@

date 2022-01-11T16:54:58Z
author kettenis
files src/sys/arch/armv7/include/vmparam.h log diff annotate
message Bump KVA space up to 512MB (and a bit).

ok phessler@, deraadt@, miod@

date 2022-01-11T20:34:22Z
author tobhe
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Make sure 'out' is initialized to 0 before adding flags.

ok dv@ mlarkin@

date 2022-01-11T21:41:15Z
author jsg
files src/sys/dev/pci/sdhc_pci.c log diff annotate
message Jasper Lake eMMC needs the same 0V quirk as Apollo Lake and Gemini Lake

fixes accessing eMMC on Acer Swift 1 SF114-34
problem reported and fix tested by Sven Wolf

date 2022-01-11T23:10:11Z
author jsg
files src/sys/scsi/cd.c log diff annotate
src/sys/scsi/ch.c log diff annotate
src/sys/scsi/scsi_all.h log diff annotate
src/sys/scsi/scsi_changer.h log diff annotate
src/sys/scsi/scsi_disk.h log diff annotate
src/sys/scsi/st.c log diff annotate
message spelling

date 2022-01-11T23:59:55Z
author jsg
files src/sys/sys/gmon.h log diff annotate
src/sys/sys/namei.h log diff annotate
src/sys/sys/stat.h log diff annotate
src/sys/sys/sysctl.h log diff annotate
src/sys/sys/unpcb.h log diff annotate
message spelling