allow ssh-keyscan to make progress when confronted with a server
that deliberately stalls during KEX by sending SSH_MSG_IGNORE
messages to keep the connection open and avoid timeouts;
Anthropic ANT-2026-1OFCJX6S
Reshuffle the if condition for the hash xml attribute
The if condition should do the hasHash++ == 0 check last since that
one has a side-effect we count on. Not that it matters since the
code will fall through into PARSE_FAIL and abort there.
With and OK tb@
sys/uvideo: fix queries for auto and power line frequency controls
Use fixed ranges for auto and power line frequency controls; use a one
byte frequency value and expose Auto on UVC 1.5 and later; propagate
uvideo_g_ctrl() errors.
OK: mglocker@
rpki-client: add further validation for Name
RFC 6487, sections 4.4, 4.5, and 5 require the CommonName attribute and
allow the serialNumber attribute in cert issuer, subject and CRL issuer,
respectively. The commonName must be a PrintableString per section 4.4
(for BRKs too, per eid8653). Further, X.520 specifies a PrintableString
for serialNumber and RFC 5280 specifies a SIZE (1..64) constraint for
both attributes.
All serialNumber in the wild attributes are PrintableString(SIZE(1..64)),
but there are ~110 CAs (almost all of them part of rebistro.br) that use
a very old version of Krill (older than 0.9.3rc2) to ship ~900 products
were rpki-rs added the full hex encoded SPKI DER into the CommonName
instead of hashing it to become a key identifier (as recomended for the
subject name in RFC 6487, section 8, 1)). This was fixed in rpki-rs#165
and krill#704 in 2021.
Enforce encoding of serialNumber as a PrintableString() and enforce the
length constraints, but carve out an exception allowing a CommonName of
[6 lines not shown]
Fix the keyboard for the HP OmniBook X boot> prompt by using CheckEvent()
to poll the WaitForKey event in efi_cons_getc().
The HP OmniBook X firmware only polls the keyboard from the notify function
of the WaitForKey event, which ReadKeyStroke() alone never triggers, so the
keyboard didn't work at the boot> prompt.
Feedback and ok kettenis@
legitimize_operand() tries to use convert double constants to float, if the
conversion is lossless, in order to reduce register pressure. But the way the
code has been written is too optimistic in deciding which double values can
indeed get safely converted to float. Trust exact_real_truncate() instead,
which knows better.
Bug reported by Izumi Tsutsui, thanks!
Make sure the 88100 fcmp instruction doas not raise invalid on quiet NaNs,
similarly to the 88110 fcmpu instruction.
Conformance issue raised by Izumi Tsutsui, thanks!
Fix link-local nexthop calculation for P2P networks
The information used to lookup the link LSA of a router depends on the
rtr_link type. For transit networks the nbr_rtr_id and nbr_iface_id are
set to the DR rtr_id and iface_id. In that case the adv_rtr and iface_id
of that router need to be used for the lookup. For p2p and virtual links
the nbr_rtr_id and nbr_iface_id need to be used instead.
This fixes a case where wrong nexthops were selected for p2p links.
Also fix rt_nexthop_add and compare not only the nexthop address but also
the interface index aka scope since all nexthops are link-local and IPv6
is such a beautiful creature that needs scopes.
Based on a report and diff tested by Kapetanakis Giannis (bilias at edu.physics.uoc.gr)
Correctly handle VPN import into the FIB
If a VPN route was imported into the FIB and a later update changes the
import to exclude that route the route is not correctly withdrawn from the
FIB. The problem is that only the new prefix is checked for import and
simply skipped the insertion if it is not selected for import.
Add the missing check which deletes a possible old entry if it was imported
before.
Reported by N0zoM1z0 PR#181
OK tb@
Make rde_reflector check for ebgp peers before accepting the attributes.
Route-reflectors should only use the ORIGINATOR_ID and CLUSTER_LIST
attributes if sent from an internal peer. For ebgp sessions these
attributes need to be ignored. This is already done in rde_attr_parse()
but until recently the check for ORIGINATOR_ID was missing there.
This is the code implementing most of the route-reflector logic and
it is the right place to ensure ebgp peers are correctly handled.
OK tb@
Adjust flag handling for other attributes that are known
Attributes like OTC, ORIGINATOR_ID or CLUSTER_LIST are known by bgpd
and so force the flags to the flags documented in the RFCs.
OTC is always transitive and so there is no need to do that check while
ORIGINATOR_ID and CLUSTER_LIST are never transitive and never sent to
ebgp peers. Also do the same for AGGREGATOR which is also an optional
transitive attribute.
OK tb@
Fix incremental search to restart from the original cursor position
while preserving the position when fails, like Emacs. GitHub issue 5884
from Michael Grant.
rpki-client: fix length check in valid_uri()
If a uri scheme is present, len is the length of the part of uri after
the '://', so use the correct usz, covering the entire uri.
ok claudio
rpki-client: reduce number of explicit X509 * accesses
x509_print(), added for JSON output, was never used outside print.c, so
make it static. Also, all caller pass in a struct cert's x509 member.
Unpack that in x509_print() itself.
ok claudio
revert wscons group changes for /dev/tty* and /dev/console; it went too far
opening up these devices are bad and i did not consider these cases
the logged in user must own their tty without wscons group rw access to it
this also reverts to the previous behavior of getty and login so that
the tty always gets chown'd
initial patch and findings by deraadt@