Skip to content

Conversation

kpamnany
Copy link
Collaborator

@kpamnany kpamnany commented May 2, 2025

PR Description

This does not fix the underlying issue that can occur here which is a collision of build_ids.lo between modules in IR decompression. Fixing that requires a somewhat significant overhaul to the serialization of IR (probably using the module identity as a key). This does mean we use a lot more of the bits available here so it makes collisions a lot less likely( they were already extremely rare) but hrtime does tend to only use the lower bits of a 64 bit integer and this will hopefully add some more randomness and make this even less likely

This also adds a check for collisions when modules are loaded and calls abort() when a collision is detected.

Checklist

Requirements for merging:

@kpamnany kpamnany force-pushed the kp-backport-58258 branch 2 times, most recently from 1a46a61 to 0b9416c Compare May 3, 2025 15:35
@kpamnany kpamnany marked this pull request as ready for review May 3, 2025 15:36
This does not fix the underlying issue that can occur here which is a
collision of build_ids.lo between modules in IR decompression. Fixing
that requires a somewhat significant overhaul to the serialization of IR
(probably using the module identity as a key). This does mean we use a
lot more of the bits available here so it makes collisions a lot less
likely( they were already extremely rare) but hrtime does tend to only
use the lower bits of a 64 bit integer and this will hopefully add some
more randomness and make this even less likely
@kpamnany kpamnany force-pushed the kp-backport-58258 branch from 0b9416c to a69aaab Compare May 3, 2025 15:40
@kpamnany kpamnany merged commit 494de59 into v1.10.2+RAI May 3, 2025
1 check passed
@kpamnany kpamnany deleted the kp-backport-58258 branch May 3, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants