OpenBSD cvs log

created 2022-07-03T20:22:57Z
begin 2022-06-26T00:00:00Z
end 2022-06-27T00:00:00Z
path src/sys
commits 18

date 2022-06-26T05:20:42Z
author visa
files src/sys/isofs/cd9660/cd9660_node.h log diff annotate
src/sys/isofs/cd9660/cd9660_vnops.c log diff annotate
src/sys/kern/spec_vnops.c log diff annotate
src/sys/kern/tty_tty.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/vfs_vops.c log diff annotate
src/sys/miscfs/deadfs/dead_vnops.c log diff annotate
src/sys/miscfs/fifofs/fifo.h log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
src/sys/miscfs/fuse/fuse_vnops.c log diff annotate
src/sys/msdosfs/denode.h log diff annotate
src/sys/msdosfs/msdosfs_vnops.c log diff annotate
src/sys/nfs/nfs_vnops.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
src/sys/sys/specdev.h log diff annotate
src/sys/sys/vnode.h log diff annotate
src/sys/tmpfs/tmpfs_fifoops.c log diff annotate
src/sys/tmpfs/tmpfs_specops.c log diff annotate
src/sys/tmpfs/tmpfs_vnops.c log diff annotate
src/sys/tmpfs/tmpfs_vnops.h log diff annotate
src/sys/ufs/ext2fs/ext2fs_vnops.c log diff annotate
message Remove unused VOP_POLL().

OK mpi@

date 2022-06-26T05:20:43Z
author visa
files src/sys/ufs/ffs/ffs_vnops.c log diff annotate
src/sys/ufs/mfs/mfs_vnops.c log diff annotate
src/sys/ufs/ufs/ufs_extern.h log diff annotate
src/sys/ufs/ufs/ufs_vnops.c log diff annotate
message Remove unused VOP_POLL().

OK mpi@

date 2022-06-26T06:11:49Z
author jsg
files src/sys/kern/kern_pledge.c log diff annotate
message allow HW_USERMEM64 in sysctl pledge

chromium loads vulkan when going to chrome://gpu
anv, the Intel vulkan driver in Mesa uses HW_USERMEM64

ok sthen@ deraadt@

date 2022-06-26T06:49:09Z
author dv
files src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmd: create a copy of bios at 4g boundary

Newer Linux kernels call into the bios to perform a reboot and our
version of SeaBIOS assumes there's a "copy" of the bios ending at
4g. When SeaBIOS reads from this area, since vmd doesn't perform
mmio yet, guests terminate with an unhandled fault.

Carve out some space ending at 4g and copy the bios there. Technically
we could load garbage there, but give SeaBIOS what it wants for
now.

ok mlarkin@

date 2022-06-26T07:14:55Z
author mlarkin
files src/sys/arch/amd64/include/cpu.h log diff annotate
message Delete trailing whitespace. No code change.

date 2022-06-26T10:51:11Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Don't reinitialize DMCUB on s0ix resume

From Nicholas Kazlauskas
7fd1d002852f93f5c03b3188f585245c50b52aea in linux 5.15.y/5.15.50
79d6b9351f086e0f914a26915d96ab52286ec46c in mainline linux

date 2022-06-26T11:37:08Z
author mbuhl
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_if.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pf_table.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message Allow waiting during ktable allocation in pf_ioctl.

OK bluhm

Reported-by: [email protected]
Reported-by: [email protected]

date 2022-06-26T13:14:37Z
author mvs
files src/sys/net/if_pppx.c log diff annotate
src/sys/net/pipex.c log diff annotate
src/sys/net/pipex_local.h log diff annotate
message 'pipex_mppe' and 'pipex_session' structures have uint16_t bit fields
which represent flags. We mix unlocked access to immutable flags with
protected access to mutable ones. This could be not MP independent on
some architectures, so convert these fields to u_int `flags' variables.

ok bluhm@

date 2022-06-26T15:25:03Z
author jmatthew
files src/sys/dev/usb/if_uaq.c log diff annotate
message add missing splx in error path

from Christian Ludwig

date 2022-06-26T15:33:37Z
author jmatthew
files src/sys/dev/pci/if_mcx.c log diff annotate
message Break out of the switch statement rather than returning early on ioctl
errors, ensuring the IPL is correctly restored.

from Christian Ludwig

date 2022-06-26T15:38:11Z
author jmatthew
files src/sys/dev/usb/if_urtwn.c log diff annotate
message Add missing splx before returning when urtwn_ccmp_decap() fails.

from Christian Ludwig

date 2022-06-26T15:50:21Z
author mvs
files src/sys/net/if_ethersubr.c log diff annotate
src/sys/net/if_gre.c log diff annotate
src/sys/net/if_pppx.c log diff annotate
src/sys/net/pipex.c log diff annotate
src/sys/net/pipex.h log diff annotate
src/sys/net/pipex_local.h log diff annotate
src/sys/netinet/ip_gre.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
message The "ifq_set_maxlen(..., 1);" hack we use to enforce pipex(4) related
(*if_qstart)() be always called with netlock held doesn't work anymore
with PPPOE sessions.

Introduce `pipex_list_mtx' mutex(9) and use it to protect global pipex(4)
lists and radix trees.

Protect pipex(4) `session' dereference with reference counters, because we
could sleep when accessing pipex(4) from ioctl(2) path, and this is not
possible with mutex(9) held.

ok bluhm@

date 2022-06-26T16:07:00Z
author claudio
files src/sys/net/rtsock.c log diff annotate
message Switch walkargs for the buffer size to size_t and change the overflow
check to the less awkward w->w_needed <= w->w_given.
OK bluhm@

date 2022-06-26T18:56:09Z
author mvs
files src/sys/net/pipex.c log diff annotate
message Fix spacing.

date 2022-06-26T20:05:06Z
author sthen
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
src/sys/arch/i386/conf/GENERIC log diff annotate
src/sys/arch/i386/conf/RAMDISK_CD log diff annotate
src/sys/arch/powerpc64/conf/GENERIC log diff annotate
src/sys/arch/powerpc64/conf/RAMDISK log diff annotate
src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
message add a few missing drivers for recent nics, input from jmatthew kettenis mbuhl deraadt

date 2022-06-26T21:19:53Z
author mvs
files src/sys/net/if_ethersubr.c log diff annotate
message Don't take kernel lock on pipex(4) pppoe input. This extra serialization
is not required. In packet processing path we have shared netlock held,
but we do read-only access on per session `flags' and `ifindex'. We always
modify them from ioctl(2) path with exclusive netlock held. The rest of
pipex(4) session is immutable or uses per-session locks.

ok bluhm@

date 2022-06-26T21:29:34Z
author mvs
files src/sys/net/pipex.c log diff annotate
message Don't reset `idle_time' timeout on closed pipex(4) sessions in packet
processing path. Such sessions already reached time to live timeout, and
the garbage collector waits a little to before kill them. Otherwise we
could make session's life time more then PIPEX_CLOSE_TIMEOUT.

ok bluhm@

date 2022-06-26T22:51:58Z
author mvs
files src/sys/net/if_pppx.c log diff annotate
src/sys/net/pipex.c log diff annotate
message Mark `pipex_enable' as atomic. We never check `pipex_enable' within
(*if_qstart)() and we don't worry it's not serialized with the rest of
output path. Also we will process already enqueued pipex(4) packets
regardless on `pipex_enable' state.

Use the local copy of `pipex_enable' within pppx_if_output(), otherwise we
loose consistency.

pointed and ok by bluhm@