r/programming • • Apr 09 '14
Theo de Raadt: "OpenSSL has exploit mitigation countermeasures to make sure it's exploitable"
[deleted] — view deleted post
2.0k
Upvotes
r/programming • • Apr 09 '14
[deleted] — view deleted post
View all comments
Show parent comment
2
u/oridb Apr 10 '14
OpenBSD tries to put all large allocations at the end of pages, with guard pages at the end to prevent overflows from silently reading/writing memory, specifically for exploit mitigation.
OpenBSD wrote it's allocator so that it randomizes allocations, and is not predictable, specifically for exploit mitigation. On top of that, randomizing allocs will lead to small allocs periodically being at the end of pages, which will cause segfaults on writes past the end.