Windows ASan: Allow 9-byte nops as hotpatch padding

David Major via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 25 15:45:20 PDT 2017


This patch makes the 9-byte variant of hint-nop be considered valid padding
for the hotpatch interception technique.

This is needed in order to safely patch ntdll!strcpy in the Windows 10
Creators Update, which has a branch target as its fourth byte. With a
hotpatch we only need to clobber the first two bytes of the function body
and can leave the branch target intact.

Fixes https://github.com/google/sanitizers/issues/829
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170725/976097bb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sanitizers-829.patch
Type: application/octet-stream
Size: 1445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170725/976097bb/attachment.obj>


More information about the llvm-commits mailing list