[PATCH] Do not sanitize kernel area on 32-bit targets

Kostya Serebryany kcc at google.com
Wed Mar 26 23:20:53 PDT 2014


  LGTM


================
Comment at: lib/sanitizer_common/sanitizer_posix.cc:65
@@ +64,3 @@
+  uptr res = (1ULL << 32) - 1;  // 0xffffffff;
+  res -= GetKernelStartAddress();
+  return res;
----------------
Yury Gribov wrote:
> May make sense to do a sanitity CHECK_LT((uptr)&res, res).
yes, won't hurt


http://llvm-reviews.chandlerc.com/D3119



More information about the llvm-commits mailing list