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
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.
https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/libexec/ld.so/SPECS.randomdata
https://www.openbsd.org/innovations.html
Todd Mortimer just landed his #RETGUARD mitigation work (aka #clang -fret-protector) into #OpenBSD -current, and enabled by default.
https://marc.info/?l=openbsd-cvs&m=152824407931917&w=2
#infosec