[all-commits] [llvm/llvm-project] e37000: [VE][NFC] Fix use-after-free in PVFMK expansion

Simon Moll via All-commits all-commits at lists.llvm.org
Thu Dec 2 01:42:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e37000f3bff384e20e0696ab4c9126d50030b144
      https://github.com/llvm/llvm-project/commit/e37000f3bff384e20e0696ab4c9126d50030b144
  Author: Simon Moll <simon.moll at emea.nec.com>
  Date:   2021-12-02 (Thu, 02 Dec 2021)

  Changed paths:
    M llvm/lib/Target/VE/VEInstrInfo.cpp

  Log Message:
  -----------
  [VE][NFC] Fix use-after-free in PVFMK expansion

There is custom expansion code for packed VFMK Pseudos in the VE
backend.  This code erased the Pseudo without telling
ExpandPostRAPseudos about it, causing the generic expansion function to
access the erased Pseudo.  This bug triggered in the
test/CodeGen/VE/VELIntrinsics/vfmk.ll test with asan-enabled builds.

Detected by:
sanitizer-x86_64-linux-fast
(https://lab.llvm.org/buildbot/#/builders/5/builds/15393)




More information about the All-commits mailing list