Daniele Marsella via llvm-dev
2019-May-03 11:33 UTC
[llvm-dev] Working with Stack Safety Analysis
Hi, I'm a student of Computer Science and I'm working on a project that aims to identify vulnerabilities in binary programs. I started to write an LLVM Pass that analyzes the lifted representation of the program and I planned to use the Stack Safety Analysis to obtain some information on the program functions, but I've found that the FunctionInfo variable of StackSafetyInfo class is private and there is no method that returns a reference to it. Is there any way to obtain useful information on the result of the Stack Safety Analysis? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190503/c6e2b10d/attachment-0001.html>
Vlad Tsyrklevich via llvm-dev
2019-May-06 19:15 UTC
[llvm-dev] Working with Stack Safety Analysis
Daniele, the SSA was intended to be an inter-procedural ThinLTO-aware generalization of a similar algorithm used in the SafeStack pass intended for use in both SafeStack as well as HWASAN. Unfortunately other priorities have come up so ThinLTO support has not been upstreamed and as it is not yet used by any passes you'll likely find that it's not immediately usable in its current state (e.g. its lacking accessors that you need to extract information about allocas.) You would either have to plumb them in yourself, or if you only need an intra-procedural analysis you could use the one in the SafeStack pass. On Sun, May 5, 2019 at 10:17 AM Daniele Marsella via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi, I'm a student of Computer Science and I'm working on a project that > aims to identify vulnerabilities in binary programs. I started to write an > LLVM Pass that analyzes the lifted representation of the program and I > planned to use the Stack Safety Analysis to obtain some information on the > program functions, but I've found that the FunctionInfo variable of > StackSafetyInfo class is private and there is no method that returns a > reference to it. > Is there any way to obtain useful information on the result of the Stack > Safety Analysis? > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190506/7264bf52/attachment.html>