Interesting technique by Todd Mortimer to reduce the number of gadgets on x86 even further: https://marc.info/?l=openbsd-tech&m=150869222214001&w=2 #OpenBSD #clang
"This change removes about 3% of total gadgets from the kernel, but about 6% of unique gadgets."
Follow-up x86 "ROP friendly" gadget reduction framework for #clang, which can be extended. Impressive work by Todd Mortimer! 😎 https://marc.info/?l=openbsd-cvs&m=152495643720502&w=2 #OpenBSD
This uses OpenBSD's random-data memory feature, which was used by the stack protector to provide per shared object cookies.
@canadianbryan That's really interesting. Do you think upstream might consider applying that sort of patch, or will it stay OpenBSD-only?
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!