[all-commits] [llvm/llvm-project] c6ad3f: [asan][fuchsia] Implement PlatformUnpoisonStacks

Marco Vanotti via All-commits all-commits at lists.llvm.org
Wed Jul 28 18:02:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6ad3f2157ce374dbd2fd3e50699fc0303553714
      https://github.com/llvm/llvm-project/commit/c6ad3f2157ce374dbd2fd3e50699fc0303553714
  Author: Marco Vanotti <mvanotti at google.com>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M compiler-rt/lib/asan/asan_fuchsia.cpp

  Log Message:
  -----------
  [asan][fuchsia] Implement PlatformUnpoisonStacks

This CL modifies the PlatformUnpoisonStacks so that fuchsia can
implement its own logic for unpoisoning the stacks.

For the general case, the behavior is the same as with regular asan: it
will unpoison everything from the current stack pointer until the base
of the stack (stack top).

In some situations, the current stack might not be the same as the
default stack. In those cases, the code will now unpoison the entire
default stack, and will also unpoison the current page of the stack.

Reviewed By: mcgrathr

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




More information about the All-commits mailing list