OpenBSD cvs log

created 2022-08-13T12:12:54Z
begin 2022-08-06T00:00:00Z
end 2022-08-07T00:00:00Z
path src/sys
commits 7

date 2022-08-06T08:59:28Z
author kettenis
files src/sys/dev/ofw/fdt.c log diff annotate
message Prevent buffer overflow in OF_getpropintarray().

ok jsg@

date 2022-08-06T09:42:13Z
author kettenis
files src/sys/arch/arm64/dev/aplmca.c log diff annotate
message Fix backpointer.

ok jsg@

date 2022-08-06T13:31:13Z
author semarie
files src/sys/sys/_types.h log diff annotate
src/sys/sys/types.h log diff annotate
message remove swblk_t type from sys/types.h

- it is currently unused (except in some regress)
- it is non-standard
- it shouldn't have been visible in first place

ok jca@ mpi@ todd@ deraadt@

date 2022-08-06T13:44:04Z
author semarie
files src/sys/kern/subr_blist.c log diff annotate
src/sys/sys/blist.h log diff annotate
src/sys/uvm/uvm_swap.c log diff annotate
message blist: use swblk_t type (defined in sys/blist.h)

reduce the diff with DragonFlyBSD by using swblk_t and u_swblk_t types.

while here, move bitmap type (u_swblk_t) to u_int64_t on all archs. it makes the
regress the same on 64 and 32bits archs (and it success on both).

ok mpi@

date 2022-08-06T14:48:33Z
author krw
files src/sys/kern/subr_disk.c log diff annotate
message Refactor readdoslabel() into a more readable form using various
helper functions.

The refactored code ensures disklabels are read from/written to
disk only from/to unused space or an OpenBSD partition. This
prevents accidental damage to filesystems that start immediately
following an MBR or GPT.

The refactored code also finds the disklabel present on the
i386/amd64 floppyXX.img, rather than spoofing the media as a
single MSDOS partition.

Tweak and positive comments from jmatthew@

date 2022-08-06T15:57:58Z
author bluhm
files src/sys/net/if.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
message Clean up the netlock macros. Merge NET_RLOCK_IN_SOFTNET and
NET_RLOCK_IN_IOCTL, which have the same implementation. The R and
W are hard to see, call the new macro NET_LOCK_SHARED. Rename the
opposite assertion from NET_ASSERT_WLOCKED to NET_ASSERT_LOCKED_EXCLUSIVE.
Update some outdated comments about net locking.
OK mpi@ mvs@

date 2022-08-06T15:57:59Z
author bluhm
files src/sys/netinet/in.c log diff annotate
src/sys/netinet/in_pcb.c log diff annotate
src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet/ip_ipsp.c log diff annotate
src/sys/netinet/ip_mroute.c log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
src/sys/netinet6/in6.c log diff annotate
src/sys/netinet6/in6_pcb.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
src/sys/netinet6/ip6_mroute.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
src/sys/sys/systm.h log diff annotate
message Clean up the netlock macros. Merge NET_RLOCK_IN_SOFTNET and
NET_RLOCK_IN_IOCTL, which have the same implementation. The R and
W are hard to see, call the new macro NET_LOCK_SHARED. Rename the
opposite assertion from NET_ASSERT_WLOCKED to NET_ASSERT_LOCKED_EXCLUSIVE.
Update some outdated comments about net locking.
OK mpi@ mvs@