OpenBSD cvs log

created 2024-08-25T06:54:41Z
begin 2024-08-22T00:00:00Z
end 2024-08-23T00:00:00Z
path src/sys
commits 4

date 2024-08-22T04:53:07Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm_machdep.c log diff annotate
message unrequired header file in vmm_machdep.c

date 2024-08-22T10:08:25Z
author mvs
files src/sys/dev/dt/dt_dev.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
message Introduce sysctl_securelevel() to modify `securelevel' mp-safe. Keep
KERN_SECURELVL locked until existing `securelevel' checks became moved
out of kernel lock.

Make sysctl_securelevel_int() mp-safe by using atomic_load_int(9) to
unlocked read-only access for `securelevel'.

Unlock KERN_ALLOWDT. `allowdt' is the atomically accessed integer used
only once in dtopen().

ok mpi

date 2024-08-22T10:58:31Z
author mvs
files src/sys/netinet/in_proto.c log diff annotate
src/sys/netinet/ip_ipip.c log diff annotate
src/sys/netinet/ip_ipip.h log diff annotate
message Unlock unlock ipip_sysctl().

- IPIPCTL_ALLOW - atomically accessed integer;
- IPIPCTL_STATS - per-CPU counters;

In ipip_input() load `ipip_allow' value to `ipip_allow_local' and pass
it down to ipip_input_if() as `allow' arg.

ok bluhm

date 2024-08-22T11:36:24Z
author bluhm
files src/sys/arch/amd64/amd64/bus_dma.c log diff annotate
message Fix merge of bounce buffer segments in amd64 bus dma.

If the physical pages are contiguous, _bus_dmamap_load_buffer()
tries to merge the segments. In case of mbuf chains, it can happen
that the physical bounce buffers are contiguous, but the virtual
addresses of mbuf m_data are not. Then during transmit _bus_dmamap_sync()
tries to copy segments where it cannot access the virtual source
address which is mapped in a different mbuf. So if bounce buffers
are used, physical and virtual buffer must be contigous, to merge
a segment.
While there, split check and decrement of variable i in a for loop
to make the code readable.

with and OK hshoexer@