[PATCH] D96005: [AArch64] Stack probing for dynamic allocas in SelectionDAG

Oliver Stannard (Linaro) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 02:28:53 PST 2021


ostannard created this revision.
ostannard added reviewers: jnspaulsson, serge-sans-paille, bzEq, tnfchris.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
ostannard requested review of this revision.
Herald added a project: LLVM.

This adds a stack probing instruction sequence for dynamic stack
allocations, to protect against stack clash attacks. The instruction
sequence used is the same one used for unknown-size allocations in
function prologues.

This patch only applies to the SelectionDAG instruction selector,
GlobalISel support will be added in a later patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96005

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/stack-probing-dynamic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96005.321353.patch
Type: text/x-patch
Size: 19586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/578ac02e/attachment.bin>


More information about the llvm-commits mailing list