On Mon, Nov 28, 2022 at 4:35 AM Hongtao Liu <crazy...@gmail.com> wrote: > > On Fri, Nov 11, 2022 at 9:26 AM liuhongt <hongtao....@intel.com> wrote: > > > > 2 years ago, ARM folks support HWASAN[1] in GCC[2], and introduced several > > target hooks(Many thanks to their work) so other backends can do similar > > things if they have similar feature. > > Intel LAM(linear Address Masking)[3 Charpter 14] supports similar feature > > with > > the upper bits of pointers can be used as metadata, LAM support two modes: > > LAM_U48:bits 48-62 can be used as metadata > > LAM_U57:bits 57-62 can be used as metedata. > > > > These 2 patches mainly support those target hooks, but HWASAN is not really > > enabled until the final decision for the LAM kernel interface which may take > > quite a long time. We have verified our patches with a "fake" interface > > locally[4], and > > decided to push the backend patches to the GCC13 to make other HWASAN > > developper's work > > easy. > > > > [1] https://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html > > [2] https://gcc.gnu.org/pipermail/gcc-patches/2020-November/557857.html > > [3] > > https://www.intel.com/content/dam/develop/external/us/en/documents/architecture-instruction-set-extensions-programming-reference.pdf > > [4] https://gitlab.com/x86-gcc/gcc/-/tree/users/intel/lam/master > > > > > > Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. > > Ok for trunk? > I'll install 2 patches if there's no objections in next 7 days.
FYI, I have no objection. Uros.