Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threads info and UAF checker info #22

Closed
wants to merge 9 commits into from
Closed

Threads info and UAF checker info #22

wants to merge 9 commits into from

Conversation

marcinguy
Copy link

Added UAF Check info to Readme.MD and Threads and LLVM Bitcode info.

@@ -21,7 +23,8 @@ RUN mkdir src
WORKDIR src
RUN git clone https://github.com/Boolector/btor2tools.git
RUN git clone https://github.com/Boolector/boolector.git
RUN git clone https://github.com/PLSysSec/sys.git
RUN git clone https://github.com/Gavazzi1/sys
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer the official repo vs. fork

@@ -74,7 +75,9 @@ checkPaths config = do
fork :: Checker a b () -> Checker a b ()
fork act = do
s0 <- get
void $ liftIO $ forkIO (curTGroup s0) $ evalChecker act s0
void $ liftIO $ do
setNumCapabilities 1 -- number of Threads
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want this. Definitely not fixed to 1, but more generally you can control this from the cli with flags to ghc, no?


# Getting Bitcode (LLVM)

You can use wllvm or gllvm to get Bitcode and Assembly Language Format Files (*.ll)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice add, I'd make it part of a separate PR. I have no idea what these are so links to them and how to use vs. say our dclang would be great.

@marcinguy
Copy link
Author

This PR is to document my tests to fix the OOM issue. Added some changes to process files in 2 files batch (I think it works, new to Haskell)

Want to see on which file, function it OOMs .... actually a cool feature would be to make a timeout in thread and when one file takes too long, it could be skipped.

This can be totally wrong, as my other ideas.

Just playing with it around.

@marcinguy
Copy link
Author

Kind of solved with a script that restarts job after it was OOMed ... it knows where to start since processed files were renamed to (*.ll.done). Will see how it works ...

@deian
Copy link
Member

deian commented Mar 28, 2021

@marcinguy it's awesome that you're playing with Sys! Keep it up! But please be mindful that we get emails and notifications about issues, PRs, and even every push and comment to a PR. So let's keep PRs to pull requests (where e.g. we review the code/docs to an issues) please.

@deian deian closed this Mar 28, 2021
@marcinguy marcinguy deleted the threads_uaf branch April 1, 2021 08:16
@marcinguy marcinguy restored the threads_uaf branch April 1, 2021 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants