OpenBSD cvs log

created 2022-02-12T20:14:18Z
begin 2022-02-05T00:00:00Z
end 2022-02-06T00:00:00Z
path src/sys
commits 5

date 2022-02-05T03:56:16Z
author dlg
files src/sys/net/if_aggr.c log diff annotate
message remove an extra set of brackets. no functional change.

date 2022-02-05T04:08:27Z
author dlg
files src/sys/net/bpf.c log diff annotate
message make bpf_movein align the packet payload.

bluhm@ hit a problem while running a regress test where a packet
generated and injected via bpf ends up being consumed by the network
stack. the stack assumes that packets are aligned properly, but bpf
was lazy and put whatever was written to it at the start of an mbuf.
ethernet has a 14 byte header, so if you put that at the start the
payload will be misaligned by 2 bytes.

bpf already has handling for different link header types, so this
handling is extended a bit to align the payload after the link
header.

while here we're fixing up a few error codes. short packets produce
EINVAL instead of EPERM, and packets larger than the biggest mbuf
the kernel supports generates EMSGSIZE.

with tweaks and ok bluhm@

date 2022-02-05T07:31:40Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Only install the sensors once as multiple devices can be paired with the
same receiver. Prevents a newly added assertion from triggering.

Problem reported by Joel Carnat <joel at carnat dot net> on bugs@

date 2022-02-05T09:37:06Z
author kettenis
files src/sys/arch/amd64/amd64/vm_machdep.c log diff annotate
message Switch vmapbuf() and vunmapbuf() over to km_alloc(9) and km_free(9) like
we did for arm64 and powerpc64 some time ago.

ok guenther@

date 2022-02-05T20:31:26Z
author daniel
files src/sys/arch/i386/include/param.h log diff annotate
message grow the dmesg buffer on i386 from 4 to 8 pages

I have a machine where the dmesg is too big for 4 pages.

ok deraadt@