[PATCH] D49072: Enable automatic mitigation against control flow speculation.

Kristof Beyls via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 9 04:46:43 PDT 2018


kristof.beyls created this revision.
Herald added a reviewer: javed.absar.
Herald added a subscriber: llvm-commits.

This is part of implementing a technique to mitigate against Spectre v1,
similar in spirit to what has been proposed by Chandler for X86_64 at
http://lists.llvm.org/pipermail/llvm-dev/2018-March/122085.html.

This patch implements a specific policy for automatically mitigating
against Spectre v1 attacks.  The policy implemented in this patch
protects all integer data that is loaded from being used in
miss-speculaled path executions.  Presumably, a number of different
policies could be better in different situations (e.g. not
automatically protecting data loaded from the stack). Therefore, I see
this patch as one example of a policy to automatically mitigate
against Spectre v1.


Repository:
  rL LLVM

https://reviews.llvm.org/D49072

Files:
  lib/Target/AArch64/AArch64SpeculationHardening.cpp
  test/CodeGen/AArch64/speculation-hardening-automatic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49072.154574.patch
Type: text/x-patch
Size: 4569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180709/90e15632/attachment.bin>


More information about the llvm-commits mailing list