Conversation

GrapheneOS used to implement a local-init sanitizer for Clang to zero uninitialized variables in C and C++. In the development branch, this feature is once again globally enabled for Vanadium and the GrapheneOS kernel/userspace via Clang's new -ftrivial-auto-var-init=zero switch.
2
31
For 32-bit processes on 64-bit, the entire 32-bit address space is accessible other than below mmap_min_addr. It's important for the pattern to be chosen so that dereferences of pointers will be caught, including reasonable offsets from the address created by the fill pattern.
2