x86_64 aliasing mode will use fewer than 8 bits for tags, so refactor
existing code to remove hard-coded 0xff and 8 values.
Also introduces kAddressUntagMask, which in aliasing mode will only
untag the alias bits and not fixed bits in the tag.
Paths
| Differential D98072
[HWASan][NFC] Introduce constants for tag bits and masks. ClosedPublic Authored by morehouse on Mar 5 2021, 12:58 PM.
Details Summary x86_64 aliasing mode will use fewer than 8 bits for tags, so refactor Also introduces kAddressUntagMask, which in aliasing mode will only
Diff Detail
Event Timelinemorehouse added a parent revision: D98069: [HWASan] Disable stack, globals and force callbacks for x86_64..Mar 5 2021, 12:59 PM
morehouse added inline comments.
This revision is now accepted and ready to land.Mar 5 2021, 3:04 PM morehouse marked an inline comment as done. Comment Actions
Comment Actions @eugenis @vitalybuka I've made some changes to this patch to accommodate changes in the following patches. Please take another look. Closed by commit rGfe5f66d925c3: [HWASan][NFC] Introduce constants for tag bits and masks. (authored by morehouse). · Explain WhyMar 22 2021, 12:33 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 328633 compiler-rt/lib/hwasan/hwasan.h
compiler-rt/lib/hwasan/hwasan_checks.h
compiler-rt/lib/hwasan/hwasan_thread.cpp
|
should this be kTagMask for consistency?