[PATCH] D97646: [ASan][RISCV] Fix RISC-V memory mapping

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 13:40:13 PDT 2021


MaskRay added inline comments.


================
Comment at: compiler-rt/lib/asan/asan_mapping.h:75
 //
+// Default Linux/RISCV64 Sv39 mapping:
+// || `[0x1555550000, 0x3fffffffff]` || HighMem    ||
----------------
Nit: Is Sv39 is a standard abbreviation?


================
Comment at: compiler-rt/lib/asan/asan_mapping.h:76
+// Default Linux/RISCV64 Sv39 mapping:
+// || `[0x1555550000, 0x3fffffffff]` || HighMem    ||
+// || `[0x0fffffa000, 0x1555555fff]` || HighShadow ||
----------------
Question: 0x1555550000 instead of 0x1555560000 because of "hat address had to be further rounded to ensure page alignment after the shadow scale shifting is applied. Still, that value explains why the mapping table may look less regular than expected."?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97646



More information about the llvm-commits mailing list