CVS: cvs.openbsd.org: src

2024-03-12 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2024/03/12 15:31:29

Modified files:
regress/sys/netinet6/frag6: LICENSE Makefile 
Added files:
regress/sys/netinet6/frag6: frag6_oversize.py 
frag6_unfragsize.py 

Log message:
Add regress test showing that OpenBSD IPv6 fragment reassembly is
not affected by FreeBSD-SA-23:06.ipv6 security advisory.  Scapy
test frag6_oversize.py reassembles fragments of a packet too big
to fit.  Test frag6_unfragsize.py also plays games with ECN bits
and hop-by-hop extension header to check overflow protection.  ICMP6
parameter problem responses are expected.  As pf does not generate
such ICMP6 error packets, these tests are only run with frag6_input()
in the IPv6 stack.



CVS: cvs.openbsd.org: src

2024-03-12 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2024/03/12 11:22:24

Modified files:
usr.sbin/btrace: ksyms.c 

Log message:
btrace(8): cache ELF .symtab, .strtab entries in sorted array

Currently, every kelf_snprintsym() call performs a linear search
through the .symtab for a matching symbol.  The search is very
costly and causes btrace(8) to drop a lot of profiling events.

Storing the STT_FUNC .symtab entries and their corresponding .strtab
entries in a sorted array cuts the lookup cost from O(n) to O(lg n).
Lower overhead reduces the drop rate for profiling events.

With tweaks from mpi@.

Thread: https://marc.info/?l=openbsd-tech=170830125132105=2

probably ok mpi@



CVS: cvs.openbsd.org: src

2024-03-12 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/03/12 10:26:46

Modified files:
sys/dev/mii: ytphy.c 

Log message:
Configure the signal on the CLKOUT pin of the YT8531 PHY when we're
instructed to do so by the device tree.

ok patrick@



CVS: cvs.openbsd.org: src

2024-03-12 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/03/12 10:03:56

Modified files:
regress/usr.sbin/rpki-client: test-http.c 
regress/usr.sbin/rpki-client/libressl: Makefile 

Log message:
Add regress for cross-origin HTTP redirection



CVS: cvs.openbsd.org: src

2024-03-12 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/03/12 10:02:30

Modified files:
usr.sbin/rpki-client: http.c 

Log message:
Enforce same-origin policy for HTTP redirects

Isolate resources from different RRDP servers to avoid
inappropriately increasing resource consumption for both
RRDP clients and the referenced server.

OK claudio@ tb@



CVS: cvs.openbsd.org: src

2024-03-12 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/03/12 07:32:53

Modified files:
sys/arch/arm64/arm64: db_trace.c exception.S 

Log message:
Fix the "fake" frame that we create alongside the trapframe. This fixes
backtraces through trap franes.  Adjust the code that prints backtraces
in ddb as the old code now tries to access a userland address.

ok mpi@