OpenBSD cvs log

created 2022-02-20T02:55:20Z
begin 2022-02-15T00:00:00Z
end 2022-02-16T00:00:00Z
path src/sys
commits 19

date 2022-02-15T00:27:11Z
author jsg
files src/sys/arch/hppa/include/db_machdep.h log diff annotate
message fix mask in hppa inst_trap_return()

inst_trap_return() was checking for rfir by masking with 0xfc001fc0
which made it impossible to match rfir (0xca0)

rfi: return from interruption
00 rv rv rv 60 0
6 5 5 3 8 5

rfir: return from interruption and restore
00 rv rv rv 65 0
6 5 5 3 8 5

from "PA-RISC 1.1 Architecture and Instruction Set Reference Manual"
where rv indicates reserved bits

change the mask to only mask out reserved bits and check for rfi
in addition to rfir

ok miod@

date 2022-02-15T02:29:23Z
author deraadt
files src/sys/dev/acpi/acpi_x86.c log diff annotate
message The DVACT_POWERDOWN step was accidentally moved in relation to some MD
steps, so shuffle the MD steps to reinforce the order.

date 2022-02-15T02:38:16Z
author deraadt
files src/sys/arch/arm64/dev/apm.c log diff annotate
message MI disable_lid_wakeups() is not needed, x86 systems can do this
in sleep_resume(), which seems sensible for other future systems also

date 2022-02-15T02:38:17Z
author deraadt
files src/sys/arch/macppc/dev/apm.c log diff annotate
src/sys/dev/acpi/acpi_x86.c log diff annotate
message MI disable_lid_wakeups() is not needed, x86 systems can do this
in sleep_resume(), which seems sensible for other future systems also

date 2022-02-15T02:38:18Z
author deraadt
files src/sys/kern/subr_suspend.c log diff annotate
src/sys/sys/device.h log diff annotate
message MI disable_lid_wakeups() is not needed, x86 systems can do this
in sleep_resume(), which seems sensible for other future systems also

date 2022-02-15T03:31:17Z
author jsg
files src/sys/net/pipex_local.h log diff annotate
message remove unused and uneeded bits in a byte define
posix requires a byte to be 8 bits

date 2022-02-15T03:53:58Z
author jsg
files src/sys/kern/tty.c log diff annotate
message unifdef TIOCHPCL, 4.3BSD compat ioctl
ok deraadt@ guenther@

date 2022-02-15T04:16:10Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message make tun_link_state take the ifnet pointer instead of tun_softc.

it only works on struct ifnet data, so passing ifp makes it clearer
what's actually being manipulated. also fix tun_dev_open so
tun_link_state is called before if_put instead of immediately after.

date 2022-02-15T04:19:52Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message only tweak ifp if_flags while holding NET_LOCK.

tun_dev_open and tun_dev_close were being optmistic.

date 2022-02-15T08:43:50Z
author visa
files src/sys/net/bpf.c log diff annotate
message Use knote_modify_fn() and knote_process_fn() in bpf.

OK dlg@

date 2022-02-15T10:30:23Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c log diff annotate
src/sys/dev/pci/drm/i915/i915_drv.c log diff annotate
src/sys/dev/pci/drm/radeon/radeon_device.c log diff annotate
message consistently use __linux__

date 2022-02-15T10:36:59Z
author jsg
files src/sys/dev/sbus/rfx.c log diff annotate
message unifdef OpenBSD
ok miod@

date 2022-02-15T11:54:19Z
author kn
files src/sys/uvm/uvm_map.c log diff annotate
message Backout previous "Unwire with map lock held" (commitid: SsVz7dLGFgR21kFe)

The (known) lock order reversals which now occur more reliably and much
earlier on WITNESS boots with this diff knock out syzcaller reports since
syzcaller stops at the first "crash report":
https://syzkaller.appspot.com/bug?id=81b39e970cd2eb21b97d1b31746c693e300fd2dd

date 2022-02-15T12:04:44Z
author jsg
files src/sys/dev/ic/uha.c log diff annotate
message unifdef __OpenBSD__

date 2022-02-15T12:24:55Z
author claudio
files src/sys/dev/acpi/com_acpi.c log diff annotate
message com at acpi like com at isa needs com_active() for suspend/resume support.
Fixes my com0 issues after zzz and ZZZ.
OK kettenis@ miod@

date 2022-02-15T16:54:48Z
author deraadt
files src/sys/arch/arm64/dev/apm.c log diff annotate
src/sys/arch/macppc/dev/apm.c log diff annotate
src/sys/dev/acpi/acpi_x86.c log diff annotate
src/sys/kern/subr_suspend.c log diff annotate
src/sys/sys/device.h log diff annotate
message when the MI suspend code encounters problems, we need a way to
reset the MD state before bailing out. New MD function sleep_abort()
does that.

date 2022-02-15T21:13:39Z
author kettenis
files src/sys/dev/acpi/acpitoshiba.c log diff annotate
message Defer the actual setting of the display brightness to the acpi thread.

ok deraadt@

date 2022-02-15T21:17:12Z
author deraadt
files src/sys/arch/arm64/dev/apm.c log diff annotate
src/sys/arch/macppc/dev/apm.c log diff annotate
src/sys/dev/acpi/acpi_x86.c log diff annotate
src/sys/kern/subr_suspend.c log diff annotate
src/sys/sys/device.h log diff annotate
message Since acpitoshiba brightness button processing no longer plays games
with AML parsing outside the acpi thread, the locking-release dance
around wsdisplay_{suspend,resume} can be removed
ok kettenis

date 2022-02-15T23:16:00Z
author rob
files src/sys/kern/vfs_syscalls.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Reintroduce ps state flag 'c' indicating chrooted process (via PS_BITS).
Ok deraat@