[PATCH] D20884: This patch attempts to primitive support for Win64 asan

Wang Wei via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 15:43:45 PDT 2016


wang0109 created this revision.
wang0109 added reviewers: etienneb, rnk.
wang0109 added a subscriber: llvm-commits.
Herald added a subscriber: kubabrecka.

Some known issues are:
  - When "head" include instructions that involve branching,
    the "cut and paste" approach may break down in a way that
    function interception still work but calling back the original
    function does not work.
  - The jmp [rip -8] saves some bytes in the "head" but finding the
    safe zone of 0xCC is not implemented yet. So it may stomp on
    preceding codes.
  - The shadow offset is not working yet on Win64. More complexity
    maybe involved since there are some differences regarding virtual
    address space between Window 8 and Windows 8.1/10.

http://reviews.llvm.org/D20884

Files:
  lib/asan/asan_interceptors.cc
  lib/asan/asan_rtl.cc
  lib/interception/interception_win.cc
  lib/sanitizer_common/sanitizer_platform_interceptors.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20884.59295.patch
Type: text/x-patch
Size: 9622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160601/29617fa3/attachment.bin>


More information about the llvm-commits mailing list