openbsd
2 months agoUse curve25519-sha256 kex where possible. Except where we're explicitly
dtucker [Wed, 21 Aug 2024 06:59:08 +0000 (06:59 +0000)]
Use curve25519-sha256 kex where possible.   Except where we're explicitly
testing a different kex, use curve25519-sha256 since it's faster than the
default and supported even when configured without OpenSSL.  Add a check
to ensure that the kex we intended to test is the one we actually tested.
Speeds test up by ~5%.

2 months agoMake sure ai_canonname is set when AI_CANONNAME was requested.
florian [Wed, 21 Aug 2024 05:53:10 +0000 (05:53 +0000)]
Make sure ai_canonname is set when AI_CANONNAME was requested.

We document, and posix requires, to return a NUL-terminated string on
a successful  call to getaddrinfo(3) when AI_CANONNAME was set.

If the canonical name cannot be determined, return the node name as
suggested by posix.

OK guenther

2 months agosatisfy the number version of the quiz; with mglocker
deraadt [Wed, 21 Aug 2024 05:08:54 +0000 (05:08 +0000)]
satisfy the number version of the quiz; with mglocker

2 months agoMention that load- and save-buffer can use stdin, from Ramon Fischer.
nicm [Wed, 21 Aug 2024 05:06:45 +0000 (05:06 +0000)]
Mention that load- and save-buffer can use stdin, from Ramon Fischer.

2 months agoAdd mirrored versions of the main-horizontal and main-vertical layouts where
nicm [Wed, 21 Aug 2024 05:03:13 +0000 (05:03 +0000)]
Add mirrored versions of the main-horizontal and main-vertical layouts where
the main pane is bottom or right instead of top or left, from Sherwyn Sen.

2 months agoAdd a simple random number sequence to the questions
deraadt [Wed, 21 Aug 2024 04:56:27 +0000 (04:56 +0000)]
Add a simple random number sequence to the questions
ok mglocker

2 months agoC-Space and Meta keys should not be translated in mode 1 extended keys.
nicm [Wed, 21 Aug 2024 04:55:57 +0000 (04:55 +0000)]
C-Space and Meta keys should not be translated in mode 1 extended keys.

2 months agoSet the default for extended-keys back to off because it appears emacs turns
nicm [Wed, 21 Aug 2024 04:37:42 +0000 (04:37 +0000)]
Set the default for extended-keys back to off because it appears emacs turns
the keys on but does not correctly handle them except in xterm (!). Also fix so
that off takes effect as expected.

2 months agoAdd lions.
mglocker [Wed, 21 Aug 2024 04:29:43 +0000 (04:29 +0000)]
Add lions.

suggested and ok jmc@

2 months agoAdd numeric morse codes.
mglocker [Wed, 21 Aug 2024 04:28:05 +0000 (04:28 +0000)]
Add numeric morse codes.

ok jmc@

2 months agoHippo and rhino babies are also calf's.
mglocker [Wed, 21 Aug 2024 04:27:02 +0000 (04:27 +0000)]
Hippo and rhino babies are also calf's.

ok jmc@

2 months agoAdd new substraction problem which difference results in the answer to the
mglocker [Wed, 21 Aug 2024 04:25:26 +0000 (04:25 +0000)]
Add new substraction problem which difference results in the answer to the
ultimate question of life, the universe, and everything.

ok jmc@

2 months agoRevamp extended keys support to more closely match xterm and support
nicm [Wed, 21 Aug 2024 04:17:09 +0000 (04:17 +0000)]
Revamp extended keys support to more closely match xterm and support
mode 2 as well as mode 1. From Stanislav Kljuhhin (GitHub issue 4038).

This changes tmux to always request mode 2 from parent terminal, change
to an unambiguous internal representation of keys, and adds an option
(extended-keys-format) to control the format similar to the xterm(1)
formatOtherKeys resource.

2 months agoIf binaries lack a pintable, execve() can now reject them at startup
deraadt [Wed, 21 Aug 2024 03:16:25 +0000 (03:16 +0000)]
If binaries lack a pintable, execve() can now reject them at startup
by returning EINVAL, rather than at runtime when the first system call
occurs (and then probably dumping core).  Let's find out if there are
any surprising exceptions we were unaware of (would need a custom linker,
or a non-crt0 runtime)
errno discussions with kettenis, sthen, millert. Vague concensus it is
worth trying now.

2 months agoWe do not need the PS_LIBCPIN and PS_PIN flag fields anymore, which were
deraadt [Wed, 21 Aug 2024 03:07:45 +0000 (03:07 +0000)]
We do not need the PS_LIBCPIN and PS_PIN flag fields anymore, which were
used during devlopment (for visibility). There is speculation claudio will
immediately use these bits for something else.

2 months agooffset rx buffers by ETHER_ALIGN so ip payloads are properly aligned.
dlg [Wed, 21 Aug 2024 01:22:31 +0000 (01:22 +0000)]
offset rx buffers by ETHER_ALIGN so ip payloads are properly aligned.

2 months agouse 2k clusters on the rx ring instead of 9k clusters.
dlg [Wed, 21 Aug 2024 01:17:50 +0000 (01:17 +0000)]
use 2k clusters on the rx ring instead of 9k clusters.

rge can chain mbufs from multiple rx descriptors together to build
a jumbo packet. 1514 byte packets are still the most common, so
avoiding the waste of most of a 9k cluster if we can still makes
sense.

2 months agosupport building a single packet out of multiple rx descriptors.
dlg [Wed, 21 Aug 2024 01:12:52 +0000 (01:12 +0000)]
support building a single packet out of multiple rx descriptors.

rge is a bit like intel nics where you can put small mbufs on the
rx ring and it will chain them together to make a jumbo packet.
except unlike intel you can use any sized mbufs for the rx descriptors.

this adds the handling of these packets to the rx path. we're still
putting 9k frames on the ring though.

2 months agobe more careful about bus_dmamap_syncs for rx ring descriptors.
dlg [Wed, 21 Aug 2024 00:56:58 +0000 (00:56 +0000)]
be more careful about bus_dmamap_syncs for rx ring descriptors.

this is very similar to the changes made for tx where we fill in
everything except the OWN flag on the rx descriptor, call bus_dmamap_sync
as a barrier for the hw, and then flip the ownership of the OWN
bit. this avoids the potential for the hw to see the own bit before
other things in the descriptor, such as the address and length of
the buffer.

while here, trim code that's not currently used. we don't currently
support rxing one packet by assembling buffers from multiple
descriptors, so stop fiddling with the queue mbuf head and tail
pointers. delete rge_discard_rxbuf() cos it looks like a leftover
from code which tries to reuse mbufs on the rx ring. we free mbufs
when there's an error and let the rxr stuff refill.

ok patrick@
no objections from kevlo@

2 months agoNow that we have dup2(), csh can use it instead of close()+dup().
guenther [Tue, 20 Aug 2024 23:40:39 +0000 (23:40 +0000)]
Now that we have dup2(), csh can use it instead of close()+dup().
Also, as used here, dup/dup2 will clear the close-on-exec flag, so
delete the superfluous fcntl(F_SETFD,0) calls

ok deraadt@

2 months agoUpdate handling of transfer rings.
patrick [Tue, 20 Aug 2024 21:24:15 +0000 (21:24 +0000)]
Update handling of transfer rings.

2 months agoIntroduce and update HAL SRNG ops.
patrick [Tue, 20 Aug 2024 21:23:18 +0000 (21:23 +0000)]
Introduce and update HAL SRNG ops.

2 months agomatch the config_activate_children() sequences found in other usb host
deraadt [Tue, 20 Aug 2024 16:24:50 +0000 (16:24 +0000)]
match the config_activate_children() sequences found in other usb host
controller drivers.

2 months agohaving a file called "OWNER" lying around in a directory of
deraadt [Tue, 20 Aug 2024 16:07:14 +0000 (16:07 +0000)]
having a file called "OWNER" lying around in a directory of
(effectively) public dommain software is weird.  put that info
into a better place.

2 months agoannotate signal race
deraadt [Tue, 20 Aug 2024 15:48:32 +0000 (15:48 +0000)]
annotate signal race

2 months agoFix whitespace in amd64 bus dma.
bluhm [Tue, 20 Aug 2024 15:30:29 +0000 (15:30 +0000)]
Fix whitespace in amd64 bus dma.

2 months agoUse msgbuf_queuelen() instead of accessing the queued member directly.
claudio [Tue, 20 Aug 2024 13:31:49 +0000 (13:31 +0000)]
Use msgbuf_queuelen() instead of accessing the queued member directly.
OK tb@

2 months agoUnlock KERN_MAXFILES.
mvs [Tue, 20 Aug 2024 13:29:25 +0000 (13:29 +0000)]
Unlock KERN_MAXFILES.

`maxfiles' is atomically accessed integer which is lockless and
read-only accessed in file descriptors layer.

lim_startup() called during kernel bootstrap, no need to
atomic_load_int() within.

ok mpi

2 months agoUpdate Geofeed reference
job [Tue, 20 Aug 2024 12:53:47 +0000 (12:53 +0000)]
Update Geofeed reference

RFC 9632 introduced additional constraints and requirements for RPKI-based
Geofeed authenticators (at my request).

2 months agoSend only as much data as needed to trigger rekeying.
dtucker [Tue, 20 Aug 2024 12:36:59 +0000 (12:36 +0000)]
Send only as much data as needed to trigger rekeying.
Speeds up tests by about 10% in the common case, hopefully more when
instrumented with something like valgrind.

2 months agofix bus_dmamap_destroy
sf [Tue, 20 Aug 2024 12:36:09 +0000 (12:36 +0000)]
fix bus_dmamap_destroy

With bounce buffers, we must pass a larger size to free()

ok bluhm@ hshoexer@

2 months agoregen
jsg [Tue, 20 Aug 2024 12:18:36 +0000 (12:18 +0000)]
regen

2 months agoadd Samsung PM9C1 and PM9C1a
jsg [Tue, 20 Aug 2024 12:17:48 +0000 (12:17 +0000)]
add Samsung PM9C1 and PM9C1a
from bmercer@ and Bryan Vyhmeister

2 months agoUse stats.msg_queue_len instead of looking into the msgbuf struct.
claudio [Tue, 20 Aug 2024 12:00:20 +0000 (12:00 +0000)]
Use stats.msg_queue_len instead of looking into the msgbuf struct.
OK tb@

2 months agoUse msgbuf_queuelen() instead of accessing wbuf.queue for msgbuf structs.
claudio [Tue, 20 Aug 2024 11:59:39 +0000 (11:59 +0000)]
Use msgbuf_queuelen() instead of accessing wbuf.queue for msgbuf structs.

Also export the msgbuf queue len as a stats member so bgpctl does not need
to dig into the msgbuf structure inside struct peer.
This skips imsg related msgbuf since that will be handled by a imsgbuf
specific function.
OK tb@

2 months agoCalculate used bounce buffers in amd64 bus dma correctly.
bluhm [Tue, 20 Aug 2024 11:45:31 +0000 (11:45 +0000)]
Calculate used bounce buffers in amd64 bus dma correctly.

There was an off-by-one bug when comparing the used pages for bounce
buffers with the available pages.  As a result _bus_dmamap_load_buffer()
returned ENOMEM although there was one buffer left.
Also the _dm_nused field was updated and never reset in case of an
error.  Use a local variable to count the used pages and update
global map->_dm_nused only if _bus_dmamap_load_buffer() was successful.
This fixes hanging network transmits if bounce buffers are enforced
for vio(4).

OK sf@ hshoexer@

2 months agoactually use the length parameter that was passed in rather than a
djm [Tue, 20 Aug 2024 11:10:04 +0000 (11:10 +0000)]
actually use the length parameter that was passed in rather than a
constant (this makes no difference in practice because the length
is always the same); reported by martin AT nmkd.net

2 months agoMerge AEAD test into main test loop. Removes 3 duplicate tests and
dtucker [Tue, 20 Aug 2024 09:15:49 +0000 (09:15 +0000)]
Merge AEAD test into main test loop.  Removes 3 duplicate tests and
speeds overall test up by about 1%.

2 months agoSet a default RekeyLimit of 256k. Used unless overridden by a
dtucker [Tue, 20 Aug 2024 09:02:45 +0000 (09:02 +0000)]
Set a default RekeyLimit of 256k.  Used unless overridden by a
command-line flag, which simplifies some of the ssh command lines.

2 months agoAdd Compression=no to default ssh_config. All of the rekey tests use it
dtucker [Tue, 20 Aug 2024 07:52:43 +0000 (07:52 +0000)]
Add Compression=no to default ssh_config.  All of the rekey tests use it
(otherwise the encrypted byte counts would not match) so this lets us
simplify the command lines.

2 months agoUnlock KERN_MAXPROC and KERN_MAXTHREAD from `kern_vars'. Both
mvs [Tue, 20 Aug 2024 07:48:23 +0000 (07:48 +0000)]
Unlock KERN_MAXPROC and KERN_MAXTHREAD from `kern_vars'. Both
`maxprocess' and `maxthread' are atomically accessed integers.

ok mpi

2 months agoUnlock etherip_sysctl().
mvs [Tue, 20 Aug 2024 07:47:25 +0000 (07:47 +0000)]
Unlock etherip_sysctl().

- ETHERIPCTL_ALLOW - atomically accessed integer;
- ETHERIPCTL_STATS - per-CPU counters

ok bluhm

2 months agoUnlock igmp_sysctl(), pfsync_sysctl() and rip6_sysctl(). Each of them is
mvs [Tue, 20 Aug 2024 07:46:27 +0000 (07:46 +0000)]
Unlock igmp_sysctl(), pfsync_sysctl() and rip6_sysctl(). Each of them is
the only IGMPCTL_STATS, PFSYNCCTL_STATS and RIPV6CTL_STATS per-CPU
counters.

sysctl_rdstruct() has "newp != NULL" check within and also returns
EPERM, no need for redundant check in igmp_sysctl().

ok bluhm

2 months agoUnlock sysctl_audio().
mvs [Tue, 20 Aug 2024 07:44:36 +0000 (07:44 +0000)]
Unlock sysctl_audio().

It is the only KERN_AUDIO_RECORD. `audio_record_enable' is atomically
accessed integer.

Reasonable from deraadt

2 months agoRemove duplicate curve25519-sha256 kex. curve25519-sha256@libssh.org
dtucker [Tue, 20 Aug 2024 07:41:35 +0000 (07:41 +0000)]
Remove duplicate curve25519-sha256 kex.  curve25519-sha256@libssh.org
is the pre-standardization name for the same thing, so remove it
as a duplicate.  Speeds up test by a tiny amount.

2 months agoUnnest rekey param parsing test and use ssh not sshd. ssh uses the same
dtucker [Tue, 20 Aug 2024 07:27:25 +0000 (07:27 +0000)]
Unnest rekey param parsing test and use ssh not sshd.  ssh uses the same
parsing code, now has "-G" to dump its config and is slightly faster
to start up.  This speeds up the test slightly (~5%) in the common case
but should help more during instrumented tests, eg under valgrind, where
startup costs are magnified.

2 months agovirtio_mmio: Return early if no device
sf [Tue, 20 Aug 2024 07:04:29 +0000 (07:04 +0000)]
virtio_mmio: Return early if no device

If there is no device, don't write to any registers.

ok jan@

2 months agoanother FXE -> FXe
jsg [Tue, 20 Aug 2024 05:52:04 +0000 (05:52 +0000)]
another FXE -> FXe
ok miod@

2 months agoadd (), | has higher precedence than ?:
jsg [Tue, 20 Aug 2024 05:36:38 +0000 (05:36 +0000)]
add (), | has higher precedence than ?:
ok mglocker@

2 months agonasty whitespace
deraadt [Tue, 20 Aug 2024 05:22:05 +0000 (05:22 +0000)]
nasty whitespace

2 months agoplace shielded keys (i.e. keys at rest in RAM) into memory allocated
djm [Tue, 20 Aug 2024 03:48:30 +0000 (03:48 +0000)]
place shielded keys (i.e. keys at rest in RAM) into memory allocated
using mmap(3) with MAP_CONCEAL set. This prevents exposure of the
key material in coredumps, etc (this is in addition to other measures
we take in this area).

ok deraadt@

2 months agorework rge tx start and completion to better bus_dmamap_sync tx descriptors
dlg [Tue, 20 Aug 2024 00:09:12 +0000 (00:09 +0000)]
rework rge tx start and completion to better bus_dmamap_sync tx descriptors

ok patrick@
thanks to kettenis@ for reminding me how computers work again.

2 months agoFix CVE-2024-43688, buffer underflow for very large step values
millert [Mon, 19 Aug 2024 15:08:21 +0000 (15:08 +0000)]
Fix CVE-2024-43688, buffer underflow for very large step values

In get_number(), reject values that are so large that they are
interpreted as negative numbers.  In set_range(), step values smaller
than one or larger than the "stop" value are ignored.  This prevents
bit_nset() from being called with out-of-range values.

Bug found by Dave G. of Supernetworks.

2 months agowhitespaces
deraadt [Mon, 19 Aug 2024 14:46:41 +0000 (14:46 +0000)]
whitespaces

2 months agonow that suspend operations are done as quiesce, we can try to use
deraadt [Mon, 19 Aug 2024 14:24:24 +0000 (14:24 +0000)]
now that suspend operations are done as quiesce, we can try to use
the MXT_T7_POWER_MODE_DEEP_SLEEP operation.

2 months agocorrectly indent a line
jsg [Mon, 19 Aug 2024 13:01:47 +0000 (13:01 +0000)]
correctly indent a line

2 months agoPrepare for releasing version 9.2
job [Mon, 19 Aug 2024 12:44:33 +0000 (12:44 +0000)]
Prepare for releasing version 9.2

2 months agocorrect vm_fault_gtt() merge error in rev 1.19
jsg [Mon, 19 Aug 2024 11:18:29 +0000 (11:18 +0000)]
correct vm_fault_gtt() merge error in rev 1.19

fixes panic when starting X on x40 (855GM gen 2)
problem with 945GM (gen 3) and G41 (gen 4) reported by semarie@

2 months agoUse M_WAITOK where we can; this includes during autoconf where the only
kettenis [Mon, 19 Aug 2024 09:26:58 +0000 (09:26 +0000)]
Use M_WAITOK where we can; this includes during autoconf where the only
realistic option is to panic if we're doing smallish allocations and run
out of memory.

ok deraadt@

2 months agoAllow REP to work with Unicode characters, GitHub issue 3687.
nicm [Mon, 19 Aug 2024 08:31:36 +0000 (08:31 +0000)]
Allow REP to work with Unicode characters, GitHub issue 3687.

2 months agoBoth terminators \007 and \033\\ leave the index pointing to the final
nicm [Mon, 19 Aug 2024 08:29:16 +0000 (08:29 +0000)]
Both terminators \007 and \033\\ leave the index pointing to the final
character of the terminator, so correct the size calculation to always
add one. GitHub issue 4082.

2 months agoavoid NULL deref if malloc fails
jsg [Mon, 19 Aug 2024 08:22:30 +0000 (08:22 +0000)]
avoid NULL deref if malloc fails
ok stsp@

2 months agoavoid uninitialised var use introduced in rev 1.63
jsg [Mon, 19 Aug 2024 08:07:16 +0000 (08:07 +0000)]
avoid uninitialised var use introduced in rev 1.63
found by smatch, ok bluhm@

2 months agoGet rid of inet_aton(3).
florian [Mon, 19 Aug 2024 07:28:22 +0000 (07:28 +0000)]
Get rid of inet_aton(3).

inet_aton(3) is not a good interface to figure out if something looks
like an IP address and a reverse DNS lookup should be performed.

The modern way to do this is to chain getaddrinfo(3) with
getnameinfo(3). As a bonus this gives us reverse lookup for IPv6, too.

OK kn

2 months agoadd missing apostrophe;
jmc [Mon, 19 Aug 2024 07:28:00 +0000 (07:28 +0000)]
add missing apostrophe;

2 months agorobert burns: to a mouse
jmc [Mon, 19 Aug 2024 07:23:26 +0000 (07:23 +0000)]
robert burns: to a mouse

-The best laid schemes o' mice an' men gang aft a-gley{,}:\
+The best laid schemes o' mice an' men gang aft agley{,}:\

most sources i've checked use "best-laid", but not all, so i've erred
on the side of caution;

2 months agocatharine howard -> catherine howard;
jmc [Mon, 19 Aug 2024 07:12:57 +0000 (07:12 +0000)]
catharine howard -> catherine howard;

2 months agoopration -> operation;
jmc [Mon, 19 Aug 2024 06:54:13 +0000 (06:54 +0000)]
opration -> operation;

2 months agopromitto: promise, not primise
jmc [Mon, 19 Aug 2024 06:53:44 +0000 (06:53 +0000)]
promitto: promise, not primise

2 months agofix double space;
jmc [Mon, 19 Aug 2024 06:52:16 +0000 (06:52 +0000)]
fix double space;

2 months agoReplace inet_aton / gethostbyname with getaddrinfo.
florian [Mon, 19 Aug 2024 06:00:18 +0000 (06:00 +0000)]
Replace inet_aton / gethostbyname with getaddrinfo.
test & OK jmatthew

2 months agoReplace too flexible inet_aton(3) with getaddrinfo(3).
florian [Mon, 19 Aug 2024 05:58:41 +0000 (05:58 +0000)]
Replace too flexible inet_aton(3) with getaddrinfo(3).

0xdecafbad will no longer work as an IPv4 address, sorry.

OK bluhm

2 months agotest malloc return against NULL not 0
jsg [Mon, 19 Aug 2024 03:08:27 +0000 (03:08 +0000)]
test malloc return against NULL not 0

2 months agomove ed/tests files to regress/bin/ed, where they are used
deraadt [Mon, 19 Aug 2024 01:43:23 +0000 (01:43 +0000)]
move ed/tests files to regress/bin/ed, where they are used

2 months agofile not needed
deraadt [Mon, 19 Aug 2024 01:04:10 +0000 (01:04 +0000)]
file not needed

2 months agospelling error, fixed by "snj", 21 years ago in some other repository
deraadt [Mon, 19 Aug 2024 01:03:12 +0000 (01:03 +0000)]
spelling error, fixed by "snj", 21 years ago in some other repository

2 months ago21 years ago someone called "jsm" modified another version of this which is
deraadt [Mon, 19 Aug 2024 00:58:09 +0000 (00:58 +0000)]
21 years ago someone called "jsm" modified another version of this which is
also being distributed, with commit message "Fix capitalisation of compass directions."
Seems sensible.

2 months agofix a spelling error found by Ceri Davis 18 years ago.
deraadt [Mon, 19 Aug 2024 00:52:04 +0000 (00:52 +0000)]
fix a spelling error found by Ceri Davis 18 years ago.

2 months agopvbus_activate does nothing except call config_activate_children
deraadt [Mon, 19 Aug 2024 00:03:12 +0000 (00:03 +0000)]
pvbus_activate does nothing except call config_activate_children
(4 possible cases).  it does not need to exist.  encoding NULL
into the cfattach structure does the same thing.

2 months agocall activate functions of children in the correct place.
deraadt [Mon, 19 Aug 2024 00:01:40 +0000 (00:01 +0000)]
call activate functions of children in the correct place.

2 months agowhitespaces
deraadt [Sun, 18 Aug 2024 22:06:40 +0000 (22:06 +0000)]
whitespaces

2 months agoUse define to test bounce buffer in amd64 bus dma.
bluhm [Sun, 18 Aug 2024 21:04:29 +0000 (21:04 +0000)]
Use define to test bounce buffer in amd64 bus dma.

To debug bounce buffers easily on non-SEV hardware, introduce a
define FORCE_BOUNCE_BUFFER that activates them.  Default is off,
no functional change.

OK miod@

2 months agooops, forgot variable
deraadt [Sun, 18 Aug 2024 20:28:41 +0000 (20:28 +0000)]
oops, forgot variable

2 months agoUse OPENSSL_config() instead of OPENSSL_load_builtin_modules()
tb [Sun, 18 Aug 2024 20:24:11 +0000 (20:24 +0000)]
Use OPENSSL_config() instead of OPENSSL_load_builtin_modules()

2 months agofix comment
deraadt [Sun, 18 Aug 2024 20:14:49 +0000 (20:14 +0000)]
fix comment

2 months agofix comment
deraadt [Sun, 18 Aug 2024 20:08:58 +0000 (20:08 +0000)]
fix comment

2 months agowhitespace
deraadt [Sun, 18 Aug 2024 19:58:35 +0000 (19:58 +0000)]
whitespace

2 months agounregister softraid sensors when the volumes are removed
phessler [Sun, 18 Aug 2024 19:44:10 +0000 (19:44 +0000)]
unregister softraid sensors when the volumes are removed

From Sven M. Hallberg

tested and OK phessler@
OK mvs@

2 months agoconf_def.c: shuffle things into a slightly more sensible
tb [Sun, 18 Aug 2024 17:50:10 +0000 (17:50 +0000)]
conf_def.c: shuffle things into a slightly more sensible

Reduces upcoming diffs and avoids annoying prototypes.

2 months agodon't need to put config_activate_children inside cfattach, because
deraadt [Sun, 18 Aug 2024 15:50:47 +0000 (15:50 +0000)]
don't need to put config_activate_children inside cfattach, because
NULL means the same
ok kettenis

2 months agoDriver was not calling the child activate functions in the correct way.
deraadt [Sun, 18 Aug 2024 15:09:49 +0000 (15:09 +0000)]
Driver was not calling the child activate functions in the correct way.
There is a child -- wsmouse, which has an activate function, so this
is another oversight...

2 months agoFor DVACT_RESUME, let the children know we are ready *after* calling
deraadt [Sun, 18 Aug 2024 15:03:01 +0000 (15:03 +0000)]
For DVACT_RESUME, let the children know we are ready *after* calling
our own wakeup().  The wakeup() won't result in anything running now
because DVACT_RESUME is running in "cold !=0, interrupts blocked,
scheduler stopped", but it is idiomatically incorrect to inform your
children you are ready before you are ready.

2 months agoadd qwz firmware
phessler [Sun, 18 Aug 2024 14:58:47 +0000 (14:58 +0000)]
add qwz firmware

2 months agoMost audio drivers were incorrectly (or not at all) informing their children
deraadt [Sun, 18 Aug 2024 14:42:56 +0000 (14:42 +0000)]
Most audio drivers were incorrectly (or not at all) informing their children
about suspend/resume related events, and they all have audio.c as a child,
which definately needs to know!
ok ratchov

2 months agothere are azalia that will fail to attach. in the activate function for
deraadt [Sun, 18 Aug 2024 14:35:14 +0000 (14:35 +0000)]
there are azalia that will fail to attach.  in the activate function for
DVACT_QUIESCE, this was handled by doing nothing.  however, the other
DVACT methods were still trying to touch the device.  This needs to
bail out earlier.
ok ratchov

2 months agoAdd Meteor Lake support.
kettenis [Sun, 18 Aug 2024 11:10:10 +0000 (11:10 +0000)]
Add Meteor Lake support.

ok jsg@

2 months agoDon't short-circuit interrupt handling when the sc_dying flag is set. Just
kettenis [Sun, 18 Aug 2024 11:08:47 +0000 (11:08 +0000)]
Don't short-circuit interrupt handling when the sc_dying flag is set. Just
don't forward reports to the child drivers instead.  This fixes an issue
with hardware that sends an interrupt in response to a reset request when
a level-triggered interrupt is used.  In that case the interrupt would
just keep triggering when we issue a reset when we resume (when sc_dying
is set) since we didn't clear the interrupt condition by reading from the
device.

ok mlarkin@, deraadt@

2 months agoRemove documentation for X509_REQ_[gs]et_extension_nids
tb [Sun, 18 Aug 2024 11:04:55 +0000 (11:04 +0000)]
Remove documentation for X509_REQ_[gs]et_extension_nids

These functions have been disabled for a while and they will be removed
in the next major bump.

2 months agoSome machines have more than one DCP, so apldcp(4) can attach multiple
kettenis [Sun, 18 Aug 2024 10:50:22 +0000 (10:50 +0000)]
Some machines have more than one DCP, so apldcp(4) can attach multiple
times.  So make the task pool private to each instance to avoid
initializing the pool again, which would panic the kernel.

ok tobhe@

2 months agoDrop OpenSSL 3.0 interop testing infrastructure
tb [Sun, 18 Aug 2024 10:02:10 +0000 (10:02 +0000)]
Drop OpenSSL 3.0 interop testing infrastructure

The openssl 3.0 port was removed nearly a year ago shortly after the 7.4
release.