Resolve TOCTOU in vmd(8) virtio by copying descriptor chains.
Adds logic for extracting copies of the descriptor chain to prevent
TOCTOU issues as a device processes the descriptors. Validation is
performed on a copy of the chain and the validated copy is used for
device virtqueue processing.
This commit changes the entropy (viornd) and block (vioblk) devices
to use the new logic. Network and SCSI devices will be migrated
next.
Issue originally found and reported by Acts1631 for the virtio
entropy device. A guest can change the buffer length on a descriptor
after vmd has validated the value but before allocating a host-side
buffer on the heap resulting in leaking host memory to the guest.
ok hshoexer@
fix xapian-omega hidden dep on libspectre, found by naddy, and an
additional one on gnome libgepub that I found while looking
while there, fix search path for omindex modules, move them out of the
cgi-bin dir where they shouldn't be, and subpackage them so the main
indexer doesn't pull in quite so much of the world
Raise log level to 'verbose' for partially completed authentication (i.e.
for part of a comma-separated AuthenticationMethods set, where all of the set
must be satisfied) in the same way that it's already done for fully accepted
authentication.
This means that algorithm and fingerprint for an accepted pubkey are
logged at info (i.e. by default) for cases where publickey comes first
("publickey,password"), not just where it's last ("password,publickey").
ok djm
Add support for composite ML-DSA 87 / ECDSA p384 signatures
based on draft-ietf-sshm-composite-sigs-01 as "ssh-mldsa87-p384"
with the corresponding "ssh-mldsa87-p384-cert" certificate type
Not yet enabled by default.
ok markus
Remove "go-first copy.svg" duplicates whose names contain spaces.
They make gtk-update-icon-cache fail with "The generated cache was invalid" at
pkg_add time.
Reported by Raf Czlonka
add some omitted details and tweak markup
Add some missing arguments to key/value options, and MLDSA44-ED25519
to the description of the standard user key files.
Also fix a mandoc lint warning and mark up arguments consistently.
libcrypto: avoid buffer overwrite due to truncating long to int
The cached DER encoding has a length stored as a long but the i2d API
uses an int. Since i2d has this two-step Muppet API where the first
call reports back an int to allow the caller to allocate a buffer and
then have i2d write to it, this can go wrong when LONG_MAX > INT_MAX:
the caller allocates the truncated int size reported back and passes
that in and the API then writes out the long-sized buffer containing
the cached DER, writing past the end.
This requires lots of memory to be an actual issue.
Fix adapted from OpenSSL 8257d58a by Cygnus Qu with a few tweaks by me.
ok jsing kenjiro
lang/gcc/16: avoid picking python3 build deps
M2 uses python to build full documentation, and without it, it builds some
generic version which is fine.
Reported by sthen@
Work-in-progress driver for the FireGL-UX boards.
The sti rom on these boards is horribly limited and gives a rachitic 640x400
display (even smaller than VGA...). This driver picks a larger video mode
(currently 1024x768, but user can pick 1280x104) to be less frustrating on
the eyes. Unfortunately, it is dog slow.
Based on the Linux gxt4500 driver for RS/6000 systems, no surprise as this is
an IBM design...
Support USB-C device attachment.
Take the attach state from the Configuration Channel (CC) status and the
power role from the PD status. When this port resolves as the source, its
provider path is now enabled, so the attached device receives bus power
and enumerates on the USB controller.
Refactor x509_pubkey_get_ski
Now that a second algorithm no longer is a consideration this function
can be simplified, while at it get rid of a goto label.
OK tb@