Skip to content

Conversation

@ohsayan
Copy link
Member

@ohsayan ohsayan commented Aug 2, 2024

Fixed a bunch of memory leaks (mostly very low impact since a majority of them only happen at startup time and don't change throughout) and some possible violations resulting from noalias optimizations (rustc -> generated LLVM IR) for unique pointers in std.

Unsafe code audit for Q2 2024 stands complete.


✔️ By submitting this pull request, I agree to the CLA at: https://cla.skytable.io/skytable/skytable

ohsayan added 5 commits July 25, 2024 22:10
Multiple fixes were applied:
- Memory leak in `FixedVec` due to zero length free
- Possible unsoundess in use of moved boxed slice pointers
- Fixed user-after-free (UAF) in ordered idx impl

I'm further working on finding and fixing other
sources of safety violations; even though they may not be "major" but we must
steer clear of them (such as miri SB violations).
Also note that we now properly classify tests based on leak
severity for the generic audit routine.
Due to the amount of single core burn miri needs, it is almost
impractical to run it on every commit with our currently allocated
CI resources.

We may revisit this in the future.
@ohsayan
Copy link
Member Author

ohsayan commented Aug 3, 2024

This is good to go; fully tested locally (impossible to run on CI). @glydr r+

Copy link
Collaborator

@glydr glydr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📌 PR #364 approved by @ohsayan

@glydr glydr merged commit c0efcdd into next Aug 3, 2024
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