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

Triple-nested execution of BenchExec fails with "[Errno 22] Creating overlay mount for '...' failed: Invalid argument" #1067

Closed
PhilippWendler opened this issue Aug 5, 2024 · 0 comments · Fixed by #1062
Labels
container related to container mode

Comments

@PhilippWendler
Copy link
Member

Nesting for example runexec or containerexec into a run of BenchExec works, but it starts to fail once three layers of BenchExec are involved and overlay mode is used for some directory in all three of the layers.

Examples that work (two layers, or three without overlay):

bin/containerexec --read-only-dir / --overlay-dir /home -- bin/containerexec --read-only-dir / --overlay-dir /home -- bash
bin/containerexec --read-only-dir / -- bin/containerexec --read-only-dir / -- bin/containerexec --read-only-dir / -- bash

Example that fails with BenchExec 3.25:

bin/containerexec --read-only-dir / --overlay-dir /home -- bin/containerexec --read-only-dir / --overlay-dir /home -- bin/containerexec --read-only-dir / --overlay-dir /home -- bash

The error message in this case is

Failed to configure container with operation 'raise OSError(': [Errno 22] Creating overlay mount for '/home' failed: Invalid argument. Please use other directory modes, for example '--read-only-dir /home'.

The reason for this is that nesting overlayfs is only supported up to depth 2 in the kernel.

This issue is just for the record and for making it possible for users to find this error message in our tracker, because we already have a solution. Using fuse-overlayfs, i.e., #928, will not just help against #776, but also solve this issue. #1062 is going to implement this.

Ping @ricffb because this might interest you.

@PhilippWendler PhilippWendler added the container related to container mode label Aug 5, 2024
@PhilippWendler PhilippWendler linked a pull request Sep 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
container related to container mode
Development

Successfully merging a pull request may close this issue.

1 participant