OpenBSD cvs log

created 2020-10-25T07:36:19Z
begin 2020-10-21T00:00:00Z
end 2020-10-22T00:00:00Z
path src/sys
commits 20

date 2020-10-21T02:16:53Z
author jsg
files src/sys/dev/pci/drm/drm_gem.c log diff annotate
src/sys/dev/pci/drm/drm_vma_manager.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c log diff annotate
src/sys/dev/pci/drm/i915/gem/i915_gem_mman.c log diff annotate
src/sys/dev/pci/drm/i915/gem/i915_gem_object.c log diff annotate
src/sys/dev/pci/drm/include/drm/drm_vma_manager.h log diff annotate
src/sys/dev/pci/drm/radeon/radeon_ttm.c log diff annotate
message change drm_vma function arguments to take struct drm_file *

reduces the diff to linux 5.7.y
ok kettenis@

date 2020-10-21T04:10:56Z
author deraadt
files src/sys/arch/hppa/hppa/machdep.c log diff annotate
message hppa also has a similar to arm64: copyout(9), copyinstr(9) and
copyoutstr(9) should bail out properly if they are called with a
length of 0.
ok kettenis@

date 2020-10-21T08:08:04Z
author sashan
files src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pf_osfp.c log diff annotate
message - move NET_LOCK() further down in pf_ioctl.c. Also move memory allocations
outside of NET_LOCK()/PF_LOCK() scope in easy spots.

OK kn@

date 2020-10-21T08:55:40Z
author mpi
files src/sys/uvm/uvm_fault.c log diff annotate
message Move the top part of uvm_fault() (lookups, checks, etc) in their own function.

The name, uvm_fault_check() and logic comes from NetBSD as reuducing diff
with their tree is useful to learn from their experience and backport fixes.

No functional change intended.

ok kettenis@

date 2020-10-21T09:08:14Z
author mpi
files src/sys/dev/pci/drm/drm_gem.c log diff annotate
src/sys/dev/pci/drm/ttm/ttm_bo_vm.c log diff annotate
src/sys/uvm/uvm_aobj.c log diff annotate
src/sys/uvm/uvm_aobj.h log diff annotate
src/sys/uvm/uvm_device.c log diff annotate
src/sys/uvm/uvm_object.c log diff annotate
src/sys/uvm/uvm_object.h log diff annotate
src/sys/uvm/uvm_pager.c log diff annotate
src/sys/uvm/uvm_vnode.c log diff annotate
message Constify and use C99 initializer for "struct uvm_pagerops".

While here put some KERNEL_ASSERT_LOCKED() in the functions called from
the page fault handler. The removal of locking of `uobj' will need to be
revisited and these are good indicator that something is missing and that
many comments are lying.

ok kettenis

date 2020-10-21T11:36:56Z
author mpi
files src/sys/net/pf_osfp.c log diff annotate
message Prevent NULL dereference introduced in previous.

Used a different variable to not shadow `entry' allocated before grabbing
the lock.

date 2020-10-21T13:26:44Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c log diff annotate
src/sys/dev/pci/drm/i915/gem/i915_gem_context.c log diff annotate
src/sys/dev/pci/drm/include/linux/capability.h log diff annotate
message handle capable(CAP_SYS_NICE) for allowing high priority contexts

date 2020-10-21T15:35:25Z
author sashan
files src/sys/net/pf_osfp.c log diff annotate
message - fixing fatal typos fp vs fp_prealloc.

OK mpi

date 2020-10-21T15:50:00Z
author deraadt
files src/sys/arch/mips64/mips64/lcore_access.S log diff annotate
message mips64 has same bug as arm64: copyout(9), copyinstr(9) and
copyoutstr(9) should bail out properly if they are called with
a length of 0.
ok visa

date 2020-10-21T16:15:32Z
author kettenis
files src/sys/net/pf_osfp.c log diff annotate
message Provide dummy definitions for NET_LOCK() and PF_LOCK() when compiling this
file as part of tcpdump(8). Unbreaks the tree.

ok deraadt@

date 2020-10-21T17:54:33Z
author deraadt
files src/sys/arch/alpha/alpha/trap.c log diff annotate
src/sys/arch/m88k/m88k/trap.c log diff annotate
src/sys/arch/mips64/mips64/trap.c log diff annotate
src/sys/arch/sh/sh/trap.c log diff annotate
src/sys/arch/sparc64/sparc64/trap.c log diff annotate
message uvm_grow() now does the vm_maxsaddr check (before locking), so callers don't
need to do it
ok kettenis

date 2020-10-21T19:00:14Z
author kettenis
files src/sys/arch/amd64/include/setjmp.h log diff annotate
message Save and restore the MXCSR register and the FPU control word such that
floating-point control modes are properly restored by longjmp(3).

ok guenther@

date 2020-10-21T19:12:58Z
author deraadt
files src/sys/arch/sh/sh/trap.c log diff annotate
message The condition around uvm_grow() can be simplified, as the error result
adjustment is effectively a dead store
ok kettenis

date 2020-10-21T21:24:56Z
author deraadt
files src/sys/arch/hppa/hppa/trap.c log diff annotate
message move the backwards-stack vm_minsaddr check from hppa trap.c to uvm_grow(),
within the correct #ifdef of course.
ok kettenis

date 2020-10-21T21:24:57Z
author deraadt
files src/sys/uvm/uvm_unix.c log diff annotate
message move the backwards-stack vm_minsaddr check from hppa trap.c to uvm_grow(),
within the correct #ifdef of course.
ok kettenis

date 2020-10-21T21:53:45Z
author deraadt
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
src/sys/arch/arm64/arm64/trap.c log diff annotate
message last argument to pmap_fault_fixup() is unused, delete it
noticed by kettenis

date 2020-10-21T21:53:47Z
author deraadt
files src/sys/arch/arm64/include/pmap.h log diff annotate
message last argument to pmap_fault_fixup() is unused, delete it
noticed by kettenis

date 2020-10-21T21:59:50Z
author deraadt
files src/sys/arch/alpha/alpha/trap.c log diff annotate
message whitespace

date 2020-10-21T22:01:52Z
author deraadt
files src/sys/arch/alpha/alpha/trap.c log diff annotate
message (same as sh/sh/trap.c)
The condition around uvm_grow() can be simplified, as the error result
adjustment is effectively a dead store
ok kettenis

date 2020-10-21T23:53:22Z
author mortimer
files src/sys/arch/powerpc64/powerpc64/locore.S log diff annotate
message Add retguard macros to powerpc64 locore functions.

ok deraadt@ kettenis@