Ask a simple question : I svn checkout compiler-rt in llvm/project. And I compile llvm through cmake. How can I make for all those testing files? make test? - mudongliang 2015-09-02 0:58 GMT+08:00 Kostya Serebryany <kcc at google.com>:> Take a look at > > clang.llvm.org/docs/ControlFlowIntegrityDesign.html > clang.llvm.org/docs/ControlFlowIntegrity.html > > And the tests: > https://github.com/llvm-mirror/compiler-rt/tree/master/test/cfi > > On Mon, Aug 31, 2015 at 7:43 PM, 慕冬亮 via llvm-dev <llvm-dev at lists.llvm.org > > wrote: > >> I want to create an experiment to show the effectiveness of cfi : >> For example , >> I first need a program with vulnerability so that we can hijack its >> control flow; >> >> then I enforce cfi of llvm and we can't hijack its control flow. >> >> Do you have any advice for me? >> >> - mudongliang >> >> >> >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://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/20150902/903bbb6f/attachment.html>
make check-cfi Peter On Wed, Sep 02, 2015 at 10:56:17AM +0800, 慕冬亮 via llvm-dev wrote:> Ask a simple question : > I svn checkout compiler-rt in llvm/project. And I compile llvm through > cmake. > How can I make for all those testing files? > make test? > - mudongliang > > 2015-09-02 0:58 GMT+08:00 Kostya Serebryany <kcc at google.com>: > > > Take a look at > > > > clang.llvm.org/docs/ControlFlowIntegrityDesign.html > > clang.llvm.org/docs/ControlFlowIntegrity.html > > > > And the tests: > > https://github.com/llvm-mirror/compiler-rt/tree/master/test/cfi > > > > On Mon, Aug 31, 2015 at 7:43 PM, 慕冬亮 via llvm-dev <llvm-dev at lists.llvm.org > > > wrote: > > > >> I want to create an experiment to show the effectiveness of cfi : > >> For example , > >> I first need a program with vulnerability so that we can hijack its > >> control flow; > >> > >> then I enforce cfi of llvm and we can't hijack its control flow. > >> > >> Do you have any advice for me? > >> > >> - mudongliang > >> > >> > >> > >> > >> > >> _______________________________________________ > >> LLVM Developers mailing list > >> llvm-dev at lists.llvm.org > >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >> > >> > >> _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- Peter
I don't know either. It works for me. Re-adding llvm-dev. On Wed, Sep 02, 2015 at 11:59:09AM +0800, 慕冬亮 wrote:> I checkout llvm , clang, compiler-rt to make llvm,clang according to > http://clang.llvm.org/get_started.html! > > cmake -G "Unix Makefiles" ../llvm > make > > When it finishes,I search check-cfi in make help! > I don't know why! > > 2015-09-02 11:50 GMT+08:00 Peter Collingbourne <peter at pcc.me.uk>: > > > Try running cmake again. If you checked out compiler-rt after running cmake > > you might not have an up to date set of makefiles. > > > > Peter > > > > On Wed, Sep 02, 2015 at 11:45:02AM +0800, 慕冬亮 wrote: > > > mdl at NjuMdl:~/Repos/svn/build$ make check-cfi > > > make: *** No rule to make target 'check-cfi'。 Stop。 > > > > > > mdl at NjuMdl:~/Repos/svn/build$ make help | grep cfi > > > mdl at NjuMdl:~/Repos/svn/build$ > > > > > > I don't have this option. > > > - mudongliang > > > > > > > > > 2015-09-02 11:03 GMT+08:00 Peter Collingbourne <peter at pcc.me.uk>: > > > > > > > make check-cfi > > > > > > > > Peter > > > > > > > > On Wed, Sep 02, 2015 at 10:56:17AM +0800, 慕冬亮 via llvm-dev wrote: > > > > > Ask a simple question : > > > > > I svn checkout compiler-rt in llvm/project. And I compile llvm > > through > > > > > cmake. > > > > > How can I make for all those testing files? > > > > > make test? > > > > > - mudongliang > > > > > > > > > > 2015-09-02 0:58 GMT+08:00 Kostya Serebryany <kcc at google.com>: > > > > > > > > > > > Take a look at > > > > > > > > > > > > clang.llvm.org/docs/ControlFlowIntegrityDesign.html > > > > > > clang.llvm.org/docs/ControlFlowIntegrity.html > > > > > > > > > > > > And the tests: > > > > > > https://github.com/llvm-mirror/compiler-rt/tree/master/test/cfi > > > > > > > > > > > > On Mon, Aug 31, 2015 at 7:43 PM, 慕冬亮 via llvm-dev < > > > > llvm-dev at lists.llvm.org > > > > > > > wrote: > > > > > > > > > > > >> I want to create an experiment to show the effectiveness of cfi : > > > > > >> For example , > > > > > >> I first need a program with vulnerability so that we can hijack > > its > > > > > >> control flow; > > > > > >> > > > > > >> then I enforce cfi of llvm and we can't hijack its control flow. > > > > > >> > > > > > >> Do you have any advice for me? > > > > > >> > > > > > >> - mudongliang > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> _______________________________________________ > > > > > >> LLVM Developers mailing list > > > > > >> llvm-dev at lists.llvm.org > > > > > >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > > > >> > > > > > >> > > > > > > > > > > > > > > > _______________________________________________ > > > > > LLVM Developers mailing list > > > > > llvm-dev at lists.llvm.org > > > > > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > > > > > > > > > > -- > > > > Peter > > > > > > > > -- > > Peter > >-- Peter
I checkout llvm , clang, compiler-rt to make llvm,clang according to http://clang.llvm.org/get_started.html! cmake -G "Unix Makefiles" ../llvm make When it finishes,I search check-cfi in make help! mdl at NjuMdl:~/Repos/svn/build$ make check-cfi make: *** No rule to make target 'check-cfi'。 Stop。 I don't know why! Do I need to open some options? - mudongliang 2015-09-02 11:03 GMT+08:00 Peter Collingbourne <peter at pcc.me.uk>:> make check-cfi > > Peter > > On Wed, Sep 02, 2015 at 10:56:17AM +0800, 慕冬亮 via llvm-dev wrote: > > Ask a simple question : > > I svn checkout compiler-rt in llvm/project. And I compile llvm through > > cmake. > > How can I make for all those testing files? > > make test? > > - mudongliang > > > > 2015-09-02 0:58 GMT+08:00 Kostya Serebryany <kcc at google.com>: > > > > > Take a look at > > > > > > clang.llvm.org/docs/ControlFlowIntegrityDesign.html > > > clang.llvm.org/docs/ControlFlowIntegrity.html > > > > > > And the tests: > > > https://github.com/llvm-mirror/compiler-rt/tree/master/test/cfi > > > > > > On Mon, Aug 31, 2015 at 7:43 PM, 慕冬亮 via llvm-dev < > llvm-dev at lists.llvm.org > > > > wrote: > > > > > >> I want to create an experiment to show the effectiveness of cfi : > > >> For example , > > >> I first need a program with vulnerability so that we can hijack its > > >> control flow; > > >> > > >> then I enforce cfi of llvm and we can't hijack its control flow. > > >> > > >> Do you have any advice for me? > > >> > > >> - mudongliang > > >> > > >> > > >> > > >> > > >> > > >> _______________________________________________ > > >> LLVM Developers mailing list > > >> llvm-dev at lists.llvm.org > > >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > >> > > >> > > > > > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > -- > Peter >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150902/3d562877/attachment.html>