[PATCH] D123910: [HWAsan] Support 4K/8K/16K/64K page size to ring buffer
Xiaodong Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 06:32:57 PDT 2022
XiaodongLoong added a comment.
In D123910#3457079 <https://reviews.llvm.org/D123910#3457079>, @eugenis wrote:
> Generally, there is no way to tell the target page size in advance. And there is no need for that, too - just untie this value from the page size instead, and fix the munmap issue in the runtime library by up/down aligning the bounds to the runtime page size. You can also increase the default / minimal ring buffer size at runtime to be a multiple of the page size.
Sorry, my expression may not be accurate at first. I want to support more kind of page size for HWAsan. I add a command option to custom page size in D123908 <https://reviews.llvm.org/D123908>.
I think the runtime can know the real page size by sysconf syscall adaptively.
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123910/new/
https://reviews.llvm.org/D123910
More information about the llvm-commits
mailing list