[all-commits] [llvm/llvm-project] 861b2a: [KernelAddressSanitizer] Fix globals exclusion for...

Marco Elver via All-commits all-commits at lists.llvm.org
Mon Dec 14 14:15:46 PST 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 861b2a24bc49f8ad801df5035347d7073eaafee5
      https://github.com/llvm/llvm-project/commit/861b2a24bc49f8ad801df5035347d7073eaafee5
  Author: Marco Elver <elver at google.com>
  Date:   2020-12-14 (Mon, 14 Dec 2020)

  Changed paths:
    M clang/test/CodeGen/asan-globals-alias.cpp
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

  Log Message:
  -----------
  [KernelAddressSanitizer] Fix globals exclusion for indirect aliases

GlobalAlias::getAliasee() may not always point directly to a
GlobalVariable. In such cases, try to find the canonical GlobalVariable
that the alias refers to.

Link: https://github.com/ClangBuiltLinux/linux/issues/1208

Reviewed By: dvyukov, nickdesaulniers

Differential Revision: https://reviews.llvm.org/D92846

(cherry picked from commit c28b18af19621e6b5cca257ef7139ba93833df0c)




More information about the All-commits mailing list