1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

221791 Commits

Author SHA1 Message Date
claudio
c94cf4486d Add the repoid of the cert in the cert struct. This way it is possible
to track the parent repository id of a publication point.
Nomenclature is confusing but not much we can do here.
OK tb@ job@
2022-09-03 13:30:27 +00:00
mvs
bcad1ab706 Fix socket splicing between inet and inet6 sockets broken by PRU_CONTROL
request splitting to (*pru_control)().

ok bluhm@
2022-09-03 13:29:33 +00:00
tb
4c866cd6bc Allow multiple X.509 locations
While currently everyone only uses a single location, the spec allows for
multiple locations ordered by preference. While rpki-client does not
support more than one location this should not be a fatal error. Instead,
pick the first location and warn if there are more than one.

ok job
2022-09-03 13:06:15 +00:00
tb
bc1fb2e98a Move non-inheritance check for BGPsec certs into cert_parse_pre()
ok claudio job (as part of a larger diff)
2022-09-03 13:01:43 +00:00
mbuhl
ffacad8a92 regen 2022-09-03 12:35:29 +00:00
mbuhl
94bc6e282f add the sendmmsg syscall that allows sending multiple msghdrs at
once. libc, man page, and regress parts to come.
With input from jca@, bluhm@.
OK bluhm@
2022-09-03 12:33:44 +00:00
job
52ce63ca3d Clarify timeout/deadline 2022-09-03 11:01:55 +00:00
claudio
0df898763c Move the repo lookup into queue_from_mft()
OK tb@
2022-09-03 09:22:25 +00:00
kettenis
a7b1c138e5 Add apldcms(4), a driver for the touchpad on M2 laptops. This driver
needs firmware that is provided on the ESP by the Asahi installer and
copied into /etc/firmware/apple by the OpenBSD installer.

ok tobhe@
2022-09-03 08:44:56 +00:00
kettenis
ce015b32c4 Copy Apple touchpad firmware on machines that need it.
ok kn@, deraadt@
2022-09-03 08:37:36 +00:00
mbuhl
7d412f24af Fix the failing libm/rint regress test by adding ieee754 implementations
for the rounding functions.
Input from kettenis@,
OK miod@
2022-09-03 08:26:05 +00:00
jmc
eb775c6ecf use past tense for history; 2022-09-03 06:55:01 +00:00
jsg
6cd90babeb sync with arm64.html 2022-09-03 05:44:04 +00:00
ajacoutot
ff30fda45a Make rc_configtest behave like rc_pre and rc_post; i.e. don't define a default
function (each rc.d script is supposed to define its own if wanted).
This way, we can filter out the "configtest" action depending on whether the
function exists or not.
Adapt documentation.

tweak/ok kn@
2022-09-02 22:11:57 +00:00
claudio
47de54a6f7 Introduce a deadline timer that aborts all repository syncs.
With this rpki-client has a chance to still finish and produce an output
even when a CA is excessivly slow and holds back progress.
With and OK benno@ tb@ and job@
2022-09-02 21:56:45 +00:00
cheloha
f53d796ad2 vmd(8): compute i8254 read-back command latch from singular timestamp
The intent of the i8254 read-back command is (most likely) to permit
simultaneously latching two or three counters at once along with their
statuses.

To simulate this, we should compute olatch from one timestamp per
read-back command, not one timestamp per counter.

Improved with a tweak by dv@.

Link: https://marc.info/?l=openbsd-tech&m=166213670605453&w=2

ok dv@ mlarkin@
2022-09-02 21:33:51 +00:00
miod
3ad05d8a96 Constify nam2blk[], chrtoblktbl[] and octeon devmap[].
ok mpi@ millert@
2022-09-02 20:06:55 +00:00
claudio
c88484cc43 Fix over long lines
OK tb@ job@
2022-09-02 19:14:04 +00:00
claudio
0cda9bffbf Use the abort commands when a repo timeout happens. This is cleaner
then just failing the repo fetch but leaving the backends running.
OK tb@
2022-09-02 19:10:36 +00:00
claudio
4673c6835c Implement RRDP_ABORT, a message to abort a inflight RRDP request.
The abort is done in a way that waits for any inflight files or http
requests to finish before removing the rrdp state and before sending
the rrdp done message indicating failure.
OK tb@ and benno@
2022-09-02 18:37:17 +00:00
tb
98efa06845 rrdp_new() need not return the struct
The only caller does nothing with it.

with/ok claudio
2022-09-02 18:08:43 +00:00
kettenis
12e50ba519 First attempt at supporting audio on machines with multiple speakers.
Probably needs more work as the device tree bindings evolve.
Note that speakers are currently disabled in the device tree for all
Apple Silicon machines except for the Mac mini.
2022-09-02 17:54:42 +00:00
dv
6ff447b090 vmm(4): add tracepoint for in/out handler.
Inserts a new static dt(4) tracepoint in vmm(4) to report details
on in/out instructions (direction, port, and data).

ok mlarkin@
2022-09-02 17:46:37 +00:00
claudio
c8e165a4dc extra newline 2022-09-02 17:39:51 +00:00
kettenis
7141bfc1fe Add a callback for setting the TDM slot used by an audio codec.
Implement this callback in tascodec(4) such that we can pick the audio
channel that it outputs.  This will override the default which is to
downmix stereo input from TDM channels 0 and 1 to mono output.

ok ratchov@
2022-09-02 16:53:28 +00:00
tb
bfee0ecd4f Rewrite RMD-160 tests to be table-driven.
From Joshua Sing
2022-09-02 15:45:52 +00:00
cheloha
3a7fc93ec3 wc(1): accelerate word counting
wc(1) counts a word whenever a whitespace byte is followed by a
non-whitespace byte.  Because the state machine transition occurs
within the space of a single byte we don't need to use getline(3).

Counting words in a big buffer with read(2) is much faster.  The
overhead varies with the length of a line, but for files with 60-100
byte lines, word counting is about twice as fast when we avoid
getline(3).  In the pathological case where each line is a single
byte, word counting is about ten times as fast when we avoid
getline(3).

Link1: https://marc.info/?l=openbsd-tech&m=163715995626532&w=2
Link2: https://marc.info/?l=openbsd-tech&m=165956826103639&w=2

"Seems reasonable." deraadt@
2022-09-02 15:21:40 +00:00
job
6e120aea60 Move mkpath logic after checking for 'noop' to prevent creation of directories in -n mode
OK claudio@
2022-09-02 15:09:19 +00:00
krw
9619265f8a Don't ignore an OpenBSD GPT partition just because the GPT says
it extends beyond the edge of the disk the GPT currently
inhabits. We only care if enough of it is addressable that a
disklabel is accessible.

Brings GPT handling of 'OpenBSD partitions extending too far'
into line with the MBR handling of the same situation.
2022-09-02 14:18:47 +00:00
jan
f09e68de7a Fix TSO large receive offloading in ix(4).
Without this diff it might happen that content of different
TCP connection get mixed up, when reading coalesced buffers
from the receive ring.

Thanks, for a lot of testing effort to mbuhl.

OK mbuhl@
2022-09-02 14:08:09 +00:00
tb
e2deea6569 Retire the old crap. Thanks, Joshua 2022-09-02 13:46:23 +00:00
tb
23177a7ae9 Unhook the old md4 and md5 tests 2022-09-02 13:45:18 +00:00
tb
24f1a0be96 Link new md test to regress. 2022-09-02 13:38:56 +00:00
tb
080aa9e48b New md4/md5 regress tests
These exercise MD4 and MD5 with the test vectors from RFCs 1320 and 1321.

From Joshua Sing <joshua () hypera ! dev>
2022-09-02 13:34:48 +00:00
mbuhl
06acb1cab7 regen 2022-09-02 13:23:33 +00:00
tb
ece7faeb74 Add two const 2022-09-02 13:23:05 +00:00
tb
a79bf4b04b Make test tables static const and fix a style nit 2022-09-02 13:21:32 +00:00
kettenis
5e8575d954 Enable apldc(4), apldchidev(4), apldckbd(4) and aplrtk(4) here as well. 2022-09-02 13:20:46 +00:00
mbuhl
8945982be2 add the recvmmsg syscall that allows receiving multiple msghdrs at
once. libc, man page, and regress parts to come.
With input from jca@, guenther@, bluhm@.
OK bluhm@
2022-09-02 13:18:06 +00:00
mvs
3f68dcd30a Move PRU_CONTROL request to (*pru_control)().
The 'proc *' arg is not used for PRU_CONTROL request, so remove it from
pru_control() wrapper.

Split out {tcp,udp}6_usrreqs from {tcp,udp}_usrreqs and use them for
inet6 case.

ok guenther@ bluhm@
2022-09-02 13:12:31 +00:00
claudio
3e9f5857a4 Rework the rsync proc code. Use a proper queue of requests and enforce
the limit on that queue instead of stopping to read new messages.
This is needed to implement an abort request.
"There is not enough RB_TREE in this diff" tb@
2022-09-02 13:04:16 +00:00
mlarkin
d606fae9b9 Reduce differences to amd64.
ok kettenis
2022-09-02 12:46:18 +00:00
krw
32e11e7050 Nuke TEMPLATE variable and just do it, like amd64/ramdisk_cd does.
ok deraadt@
2022-09-02 12:40:02 +00:00
krw
b5cea687ab Nuke variable partlba that is set but not used. 2022-09-02 12:28:12 +00:00
krw
9dfb435af5 Relax GTP header validity check by allowing 1 sector size usable
LBA area (gh_lba_start == gh_lba_end) and allowing either or both
of gh_lba_start and gh_lba_end to exceed the size of the disk the
GPT currently inhabits.

Reduces false negatives and inappropriate fall through to MBR
spoofing and allows repair of otherwise valid GPT.
2022-09-02 12:24:26 +00:00
tb
fdb0798ee0 Simplify and clean up the ecdsa test a little. Use stdio instead of BIO
for output, use 'err' as a label and avoid some silly repetitions.
2022-09-02 11:47:25 +00:00
tb
a938e53ca8 Retire old SHA tests
The old tests were incomplete, some of them had no license and the code
quality was questionable. The new tests by Joshua Sing cover what they
did (and additionally SHA-224 and SHA-384). Many thanks!
2022-09-02 11:18:09 +00:00
tb
5f735a3461 Unhook old SHA tests 2022-09-02 11:16:03 +00:00
tb
c8db7e7484 Add tests for 1 million repeated "a"
From Joshua Sing
2022-09-02 11:13:34 +00:00
jsg
6f531dd694 sync 2022-09-02 10:41:05 +00:00