[PATCH] D123908: [HWAsan] Add hwasan_sys_page_size command option to support 4K/8K/16K/64K page size system

Xiaodong Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 06:01:02 PDT 2022


XiaodongLoong added a comment.

> If this is meant to specify the value for the target system, then certainly,
> this is still hardcoding some value, that will still not be always right.



> Hard-coded build page size values may work for your system, but generally isn't reliable.

Yes, you are right. It is not  I have no reliable. I have no better idea on it. I defined a new command option "hwasan-sys-page-size", It can be used as following:

  $ clang -fsanitize=hwaddress -mllvm -hwasan-sys-page-size=8k example.c


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123908/new/

https://reviews.llvm.org/D123908



More information about the llvm-commits mailing list