OpenBSD cvs log

created 2019-05-08T05:04:47Z
begin 2018-01-25T00:00:00Z
end 2018-01-26T00:00:00Z
path src/sys
commits 5

date 2018-01-25T14:04:36Z
author mpi
files src/sys/net/ifq.c log diff annotate
message Assert that ifiq_destroy() is not called with the NET_LOCK() held.

Calling taskq_barrier() on a softnet thread while holding the lock
is clearly a deadlock.

ok visa@, dlg@, bluhm@

date 2018-01-25T14:09:52Z
author mpi
files src/sys/arch/i386/conf/Makefile.i386 log diff annotate
src/sys/conf/ log diff annotate
message Use a new LDFLAGS variable to pass "-melf_i386_obsd" on amd64.

Makes the linker generate a correct i386 gap.o file.

ok kettenis@, deraadt@

date 2018-01-25T14:47:35Z
author mpi
files src/sys/netinet/ip_carp.c log diff annotate
message Use a workaround for detached parent in carp_proto_input_c().

A NULL dereference can happen since processing protocol layer is
deffered to a second task. In other words the NET_LOCK() is released
then regrabbed between ip_input() and carp_proto_input().

The same workaround is already in use in carp_output() due to deffered
processing in case of IPsec.

The real fix is to make carp(4) MP-safe and use if_get(9) there, any

Found & fix tested by Hrvoje Popovski.

date 2018-01-25T15:06:29Z
author mpi
files src/sys/arch/alpha/conf/files.alpha log diff annotate
src/sys/arch/alpha/include/mutex.h log diff annotate
src/sys/arch/amd64/conf/files.amd64 log diff annotate
src/sys/arch/amd64/include/mutex.h log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/include/mutex.h log diff annotate
src/sys/arch/i386/conf/files.i386 log diff annotate
src/sys/arch/i386/include/mutex.h log diff annotate
src/sys/arch/mips64/conf/files.mips64 log diff annotate
src/sys/arch/mips64/include/mutex.h log diff annotate
src/sys/arch/powerpc/conf/files.powerpc log diff annotate
src/sys/arch/powerpc/include/mutex.h log diff annotate
src/sys/kern/kern_lock.c log diff annotate
src/sys/sys/mutex.h log diff annotate
message Move common mutex implementations to a MI place.

Archs not yet converted can to the jump by defining __USE_MI_MUTEX.

ok visa@

date 2018-01-25T15:19:33Z
author mpi
files src/sys/arch/alpha/alpha/Attic/mutex.c log diff annotate
src/sys/arch/amd64/amd64/Attic/mutex.c log diff annotate
src/sys/arch/arm64/arm64/Attic/arm64_mutex.c log diff annotate
src/sys/arch/i386/i386/Attic/mutex.c log diff annotate
src/sys/arch/mips64/mips64/Attic/mutex.c log diff annotate
src/sys/arch/powerpc/powerpc/Attic/mutex.c log diff annotate
message Remove mutex implementations that now live in MI code.