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

Unexpected output with specialized binary using configuration priming: wget, dnsproxy, sans, totd #48

Closed
mudbri opened this issue Jul 4, 2021 · 5 comments
Assignees
Labels
bug Generic bug occamized-binary-exec-wrong-output The specialized binary generated by OCCAM produces a wrong output over-specialization

Comments

@mudbri
Copy link

mudbri commented Jul 4, 2021

The following 4 applications work incorrectly when specialized with the --enable-config-prime flag: wget, dnsproxy, sans, totd. All four applications use a configuration file as a static argument in their manifests. All the required files for reproduction are attached here. The issues can be reproduced in the following way:

  1. cd [application name]
  2. make (The following dependencies might be required: apt-get install autoconf libpcre3-dev libpcre3)
  3. bash build.sh --enable-config-prime
  4. make test

The tests for all four applications fail with the --enable-config-prime flag provided. However, the tests pass if the flag is not provided (i.e. bash build.sh).

@caballa
Copy link

caballa commented Jul 6, 2021

I list here the four benchmarks to follow the progress:

  • wget
  • dnsproxy
  • sans
  • totd

@caballa caballa self-assigned this Jul 6, 2021
@caballa caballa added bug Generic bug help wanted labels Jul 6, 2021
@caballa
Copy link

caballa commented Jul 6, 2021

wget is fixed in commit ca2e845.

@mudbri : would you mind to check the other three programs? The scripts to run the tests have sudo and I cannot run as sudo. I modified the scripts to run without sudo and I get errors such as unable to bind socket: Permission denied so hopefully it works for you.

@mudbri
Copy link
Author

mudbri commented Jul 28, 2021

Thanks! wget and dnsproxy are fixed now but sans and totd are still not working correctly.
The sudo to run test_totd.py can be removed. The test should work fine without it

@caballa caballa added occamized-binary-exec-crash The specialized binary generated by OCCAM crashes and removed help wanted labels Aug 2, 2021
@caballa
Copy link

caballa commented Aug 2, 2021

The reason for the crashes in sans and totd is explained in issue #54.

@caballa caballa added the limitation Current limitations of OCCAM label Aug 2, 2021
@caballa caballa changed the title Specialized binaries (with configuration files) working incorrectly with config-priming: wget, dnsproxy, sans, totd Unexpected output with specialized binary using configuration priming: wget, dnsproxy, sans, totd Sep 22, 2021
@caballa caballa added occamized-binary-exec-wrong-output The specialized binary generated by OCCAM produces a wrong output over-specialization and removed occamized-binary-exec-crash The specialized binary generated by OCCAM crashes limitation Current limitations of OCCAM labels Sep 22, 2021
@caballa
Copy link

caballa commented Oct 1, 2021

sans and totd works fine after commit 948ca53

@caballa caballa closed this as completed Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Generic bug occamized-binary-exec-wrong-output The specialized binary generated by OCCAM produces a wrong output over-specialization
Projects
None yet
Development

No branches or pull requests

2 participants