[PATCH] D119816: [SanitizerBounds] Add support for NoSanitizeBounds function

Tong Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 25 10:08:18 PST 2022


ztong0001 added a comment.

In D119816#3345302 <https://reviews.llvm.org/D119816#3345302>, @melver wrote:

> Looks good. Few minor changes.
>
> I did some more digging, and it's only fsanitize=local-bounds, so please verify this and also update the commit description. In fact, the Linux kernel already has a comment about Clang's weirdness of local-bounds vs. array-bounds here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/Kconfig.ubsan#n62

Yes I can confirm this. It is indeed fsanitize=local-bounds causing the kernel crash we discussed earlier. (UBSAN_LOCAL_BOUNDS=y)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119816



More information about the cfe-commits mailing list