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

Separate fixed-size allocations from the others inside zones #124

Open
jvoisin opened this issue Aug 17, 2022 · 1 comment
Open

Separate fixed-size allocations from the others inside zones #124

jvoisin opened this issue Aug 17, 2022 · 1 comment

Comments

@jvoisin
Copy link
Contributor

jvoisin commented Aug 17, 2022

As suggested by @thejh, separating allocations where the compiler can prove that the allocation is fixed-size from the other allocations makes it a bit harder for attacker to exploit UAF, due to object size constrains.

This technique only makes sense when isoalloc isn't used via LD_PRELOAD or in a separate library of course.

@struct
Copy link
Owner

struct commented Dec 16, 2023

I spent some time trying to implement this but ultimately was not able to get clangs __builtin_constant_p to work correctly within iso_alloc() even when compiling sources directly. Can revisit this if you have a PoC?

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

No branches or pull requests

2 participants