gcc-11/changes: Document new Hardware-assisted AddressSanitizer. I have put it in the "general" section rather than AArch64 since the feature does add a general framework, so I believe the news is interesting for people interesting in architectures other than AArch64 that may want to implement this for their own targets (where possible).
############### Attachment also inlined for ease of reply ############### diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html index 46a6a37225526227fb6a46d9d3248d6ba9f36a07..0127a3f99f2ca897bf1c32e967d359fb9ace6f6b 100644 --- a/htdocs/gcc-11/changes.html +++ b/htdocs/gcc-11/changes.html @@ -116,6 +116,24 @@ a work-in-progress.</p> option (which defaults to 8 spaces per tab stop). </p> </li> + <li> + <p> + Introduce <a href="http://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html"> + Hardware-assisted AddressSanitizer</a> support. This sanitizer currently only works + for the AArch64 target. It helps debug address problems similarly to + <a href="https://github.com/google/sanitizers/wiki/AddressSanitizer"> + AddressSanitizer</a> but is based on partial hardware assistance and + provides probabilistic protection to use less RAM at runtime. + <a href="http://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html"> + Hardware-assisted AddressSanitizer</a> is not production-ready for userspace, and is + provided mainly for use compiling the Linux Kernel. + </p> + To use this sanitizer the command line arguments are: + <ul> + <li><code>-fsanitize=hwaddress</code> to instrument userspace code.</li> + <li><code>-fsanitize=kernel-hwaddress</code> to instrument kernel code.</li> + </ul> + </li> </ul> <!-- .................................................................. -->
diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html index 46a6a37225526227fb6a46d9d3248d6ba9f36a07..0127a3f99f2ca897bf1c32e967d359fb9ace6f6b 100644 --- a/htdocs/gcc-11/changes.html +++ b/htdocs/gcc-11/changes.html @@ -116,6 +116,24 @@ a work-in-progress.</p> option (which defaults to 8 spaces per tab stop). </p> </li> + <li> + <p> + Introduce <a href="http://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html"> + Hardware-assisted AddressSanitizer</a> support. This sanitizer currently only works + for the AArch64 target. It helps debug address problems similarly to + <a href="https://github.com/google/sanitizers/wiki/AddressSanitizer"> + AddressSanitizer</a> but is based on partial hardware assistance and + provides probabilistic protection to use less RAM at runtime. + <a href="http://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html"> + Hardware-assisted AddressSanitizer</a> is not production-ready for userspace, and is + provided mainly for use compiling the Linux Kernel. + </p> + To use this sanitizer the command line arguments are: + <ul> + <li><code>-fsanitize=hwaddress</code> to instrument userspace code.</li> + <li><code>-fsanitize=kernel-hwaddress</code> to instrument kernel code.</li> + </ul> + </li> </ul> <!-- .................................................................. -->