OpenBSD cvs log

created 2024-01-25T13:23:08Z
begin 2024-01-21T00:00:00Z
end 2024-01-22T00:00:00Z
path src/sys
commits 10

date 2024-01-21T00:23:29Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message some bizzare glitch related to ramdisk instbin static binaries, their
mutable mapping is not working right, so temporarily bring back the
RW -> R *only* for ramdisk kernels

date 2024-01-21T00:26:14Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message oops, brain scrambled trying to squeeze the ifdef into bad place

date 2024-01-21T01:17:20Z
author bluhm
files src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
message Assert that inpcb table has correct address family.

Since inpcb tables for UDP and Raw IP have been split into IPv4 and
IPv6, assert that INP_IPV6 flag is correct instead of checking it.
While there, give the table variable a nicer name.

OK sashan@ mvs@

date 2024-01-21T07:17:06Z
author miod
files src/sys/arch/loongson/dev/kb3310.c log diff annotate
message Print raw battery information if KB3310_DEBUG, not DEBUG. NFC

date 2024-01-21T07:35:28Z
author tb
files src/sys/lib/libz/deflate.c log diff annotate
src/sys/lib/libz/deflate.h log diff annotate
src/sys/lib/libz/trees.c log diff annotate
src/sys/lib/libz/zlib.h log diff annotate
src/sys/lib/libz/zutil.h log diff annotate
message sync with userland

date 2024-01-21T07:46:55Z
author tb
files src/sys/lib/libz/deflate.c log diff annotate
src/sys/lib/libz/zconf.h log diff annotate
message sync with userland

date 2024-01-21T13:36:40Z
author kettenis
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
message Add support for multiple matches in the component code.

ok jsg@

date 2024-01-21T16:57:06Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message madvise(2) and msync(2) have some memory/mapping destructive ops which should
not be allowed upon immutable memory, instead return EPERM.
Some of these ops are not destructive in OpenBSD, but they are destructive
on other systems, so we take the "all ops" are illegal approach.

Related to this, it should not be allowed to minherit(MAP_INHERIT_ZERO)
immutable regions, or vice versa, calling mimmutable() upon MAP_INHERIT_ZERO
regions, because such a range will be zero'd post-fork in the child.
These now also return EPERM.

Adjusting the madvise / msync behaviour upon immutable memory brings us
closer to the behaviour of the mimmutable clone "mseal" being proposed by
google for inclusion in Linux.
ok kettenis

date 2024-01-21T16:59:15Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message For minherit(MAP_INHERIT_ZERO) upon readonly memory return EPERM.
ok kettenis

date 2024-01-21T17:21:55Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message workaround for the static non-PIE instbin "instbin" program on the install
media is no longer needed, due to fix in libc/dlfcn/init.c
thanks kettenis and gkoehler