-
Notifications
You must be signed in to change notification settings - Fork 62
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
(Question) Inputs for validating bugs #24
Comments
Hmm, are you running the program on a 32 or 64 bit system? I believe validation is done inside a 32-bit docker container. |
I tried searching for the script that did the validation, but I was unable to see how/where it created a docker container. I assume the Unrelated, I'd suggest your documentation links to @moyix's blog posts about LAVA (i.e. starting with this post: http://moyix.blogspot.com/2016/06/how-to-add-a-million-bugs-to-a-program.html). Also, @moyix I was at NDSS and was going to say hi, but I didn't see you after the BAR workshop. Did you leave early, or did I just miss you? |
It's slightly convoluted, but Perhaps the easiest way to see if the bug validates from within the Docker image is to use Adding links to the blog posts is a good idea, thanks! As for NDSS, unfortunately I had to head out right after BAR – hope to catch you at another conference soon! |
I dropped this for a while, but am picking it back up. I'm still having trouble getting it to crash on the purportedly problematic inputs. For example. I ran LAVA on
The return value indicates a crash, but when I run that command, it runs correctly:
I ran this in the docker as suggested (this may be relevant, but I don't see any difference between running |
Hm, this seems unusual. File's behavior is fairly deterministic so if it crashed on an input once, it should crash on it again. Have you gotten any bugs to validate in file or other targets? Some ideas for debugging:
The XXXX should be some number which is compared against in magic.pre.c:4999. If going through that process doesn't help, you could try checking out the |
After getting LAVA running, I ran it on the "toy" example you provided and I'm trying to trigger a bug. The log file has a line like this:
'''
Validating bug 48 of 50
No known solution for bug with id=2274
Bug[2274](type=BUG_PTR_ADD, trigger=DUABytes[DUA[toy.c:2054, ((*ent).bar), real]][0:4](labels=[40, 41, 42, 43]), atp=ATP[11](loc=toy.c:2043, type=ATP_FUNCTION_CALL))
fuzzed = [/home/lava/lava/target_injections/toy/inputs/testsmall-fuzzed-2274.bin]
Run modified program: /home/lava/lava/target_injections/toy/bugs/0/toy/lava-install/bin/toy /home/lava/lava/target_injections/toy/inputs/testsmall-fuzzed-2274.bin
retval = 139
bug type is BUG_PTR_ADD
RV indicates memory corruption
'''
I ran the suggested command, but don't see anything different about the output when compared to the original. Is there an easy way to see the bug?
The text was updated successfully, but these errors were encountered: