Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More shadow bugs/fixes #218

Merged
merged 3 commits into from
Dec 9, 2024
Merged

More shadow bugs/fixes #218

merged 3 commits into from
Dec 9, 2024

Conversation

vext01
Copy link

@vext01 vext01 commented Dec 9, 2024

A few bits I noticed when auditing the shadow stack logic last week.

Once this (and the other yk PR) is in, I will make another "sync ykllvm" PR on the yk side.

It's not correct to divide a bit size by the number of bits-per-byte,
since things like i1 end up being zero-byte-sized.

Also `sizeof(uintptr_t)` was being used as a proxy for bits-per-byte,
which isn't universally true.
This cast isn't consumed by any later IR instructions, so it is probably
reaped by LLVM's DCE. Probably a leftover from when LLVM didn't have
opaque pointers.
@ltratt ltratt added this pull request to the merge queue Dec 9, 2024
Merged via the queue into ykjit:main with commit 3549259 Dec 9, 2024
2 checks passed
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.

2 participants