OpenBSD cvs log

created 2018-11-29T22:29:37Z
begin 2018-06-21T00:00:00Z
end 2018-06-22T00:00:00Z
path src/sys
commits 7

date 2018-06-21T05:41:54Z
author kevlo
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Add missing comma. This fixes compilation if we enable VMM_DEBUG macro.

ok deraadt@

date 2018-06-21T07:33:30Z
author mlarkin
files src/sys/arch/amd64/amd64/acpi_wakecode.S log diff annotate
src/sys/arch/amd64/amd64/hibernate_machdep.c log diff annotate
src/sys/arch/amd64/include/hibernate.h log diff annotate
src/sys/arch/i386/i386/hibernate_machdep.c log diff annotate
src/sys/arch/i386/include/hibernate.h log diff annotate
src/sys/arch/loongson/include/hibernate.h log diff annotate
src/sys/kern/subr_hibernate.c log diff annotate
src/sys/sys/hibernate.h log diff annotate
message Save and restore retguard area during hibernate unpack. This copies the
original retguard data to the piglet and bcopys it back in place
immediately before resuming via the ACPI Sx trampoline.

ok deraadt, guenther, tested by many.

date 2018-06-21T07:40:43Z
author mpi
files src/sys/net/if.c log diff annotate
message Grab the KERNEL_LOCK() rather than asserting that it is held.

Prevent a panic now that some syscall are running unlocked.

Found the hardway by Gregor Best.

date 2018-06-21T07:49:13Z
author mlarkin
files src/sys/kern/subr_hibernate.c log diff annotate
message don't let the retguard skip region exceed the space we have reserved for
it in the piglet during unhibernate. Missed this block during the previous
commit. We'll panic, which will likely just reboot the machine, but that's
better than trashing a chunk and causing mystery errors later.

date 2018-06-21T13:58:21Z
author visa
files src/sys/kern/kern_proc.c log diff annotate
src/sys/kern/kern_prot.c log diff annotate
src/sys/sys/ucred.h log diff annotate
message Use atomic operations for updating cred structure reference counts
to make crfree() and crhold() MP-safe. Make crhold() a proper function.
Put the definition into file kern_prot.c to constrain the need of the
header.

While there, adjust the IPL of ucred_pool to avoid lock order problems
with the kernel lock (pointed out by kettenis@).

OK mpi@

date 2018-06-21T14:17:23Z
author visa
files src/sys/kern/vfs_vops.c log diff annotate
src/sys/miscfs/fuse/fuse_vnops.c log diff annotate
src/sys/msdosfs/msdosfs_vnops.c log diff annotate
src/sys/nfs/nfs_vnops.c log diff annotate
src/sys/ufs/ext2fs/ext2fs_vnops.c log diff annotate
src/sys/ufs/ufs/ufs_vnops.c log diff annotate
message Drop redundant "node == parent node" checks from VOP_RMDIR()
implementations. Rely on the VFS layer to do the checking.

OK mpi@, helg@

date 2018-06-21T14:53:36Z
author helg
files src/sys/miscfs/fuse/fuse_device.c log diff annotate
src/sys/miscfs/fuse/fuse_lookup.c log diff annotate
src/sys/miscfs/fuse/fusebuf.c log diff annotate
src/sys/miscfs/fuse/fusefs.h log diff annotate
message Don't timeout on fb_queue(9). The current process will block
indefinitely and cannot be interrupted or killed. This is consistent
with how VFS system calls should behave. If the file system becomes
unresponsive then the only sane solution is for the user to kill the
file system daemon.

Implementing the equivalent of nfs -osoft or -ointr to either timeout
or allow the blocking FUSE operation to be interrupted can be considered
in a future patch.

ok mpi@