summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2017-06-21 19:23:12 +0000
committerderaadt <deraadt@openbsd.org>2017-06-21 19:23:12 +0000
commit6ad246754118312ee2894796687958bdf081baed (patch)
tree0bddbd2d5070d834f39b06c89c606da26b77d92e /sys/kern/subr_hibernate.c
parentAdd regression tests for the filec feature in csh. (diff)
downloadwireguard-openbsd-6ad246754118312ee2894796687958bdf081baed.tar.xz
wireguard-openbsd-6ad246754118312ee2894796687958bdf081baed.zip
Large nopsleds make it easier for ROP machinery to sloppily reach targets.
Convert these to "trapsleds' instead. Since these can occur inside fall-through blocks of code (and gcc sure isn't helping us by identifying those), convert most to "short jump over" followed a sequence of int3. This works for sled sizes 3-15, for i386 and amd64. Work by Todd Mortimer ok mlarkin
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions