Clang's new __builtin_dynamic_object_size can help detect more buffer overflows at runtime automatically. https://clang.llvm.org/docs/LanguageExtensions.html#evaluating-object-size-dynamically …
that'd be cool. then you also wouldn't have to unpoison KASAN shadow for the entire allocation on ksize() calls
-
-
that currently makes adding mid-object poison kinda awkward, because if anyone decides to do ksize() on your allocation, suddenly the poison is gone
-
In user-space we have requested size, if we had that in kernel we could return it from ksize, but header memory is expensive. Also if you want some "fun" side-effects: https://bugzilla.kernel.org/show_bug.cgi?id=199359 …
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.