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@
Prevent overread of pfsync received messages
Only reachable by a host that can deliver a pfsync packet to the sync
interface with IP TTL of 255.
OK sashan@, dlg@
drm/amdgpu: re-enable GFXOFF for compute on GFX12
From Harkirat Gill
1e9c0d5c3dedb213857c1827a6bcd5b45d7eb7d6 in linux-6.18.y/6.18.65
6a1dbb006056ad1ce6df0d6d5f2155767c20f410 in mainline linux
drm/amd/display: copy function name into dcn_optc_lock_unlock_state trace event
From Melissa Wen
391a4181d49a56b5673279defd696e04badb8778 in linux-6.18.y/6.18.65
624a5a158c2a49f07edba7f8653eeecca114921f in mainline linux
drm/amd/display: copy function name into dcn_fpu trace event
From Melissa Wen
dcefbab09b127ad1d37bbc6fae1d8ad5b5551107 in linux-6.18.y/6.18.65
b4d41522012d91cd875cebdfd1a3bbb04eb863dd in mainline linux
drm/amd/display: use right type for amdgpu_dc_performance event entries
From Melissa Wen
2164d0e7fd444373a42b622b1c9d205517e4e73c in linux-6.18.y/6.18.65
99858eda764364bae733448c7eb79145d3d043ec in mainline linux
drm/amd/display: fix vready offset assignment in dcn_optc_lock_unlock_state
From Melissa Wen
0c777d071f793ec1c3f77a57e38f25be6109885e in linux-6.18.y/6.18.65
3ad7f4ca58efd6c1216632c50873dfffdefbe3ff in mainline linux
drm/amd/display: remove duplicated prev_p_state_change_support assignment
From Melissa Wen
dc95f03eb15ce2ef5d5a2e84acd90788bf1ccba6 in linux-6.18.y/6.18.65
11e8f72b09a6a3c0950b9558abd37559dd098698 in mainline linux
drm/amd/display: assign missing trace entry in amdgpu_dm_dc_clocks_state
From Melissa Wen
0b79819d925c9357bd9138e9c5f75b03c6fd5214 in linux-6.18.y/6.18.65
ec167063dbf9fc66dc1364b6f9dd220c6742edeb in mainline linux