-
Notifications
You must be signed in to change notification settings - Fork 517
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
Bind version 9.17.6 patch does not work on WSL #408
Comments
I'm not that familiar with WSL2, but given it's running full Linux kernel under a VM hypervisor, you probably need to set /proc/sys/kernel/unprivileged_userns_clone in the top-level kernel (i.e. not under Docker), if it exists there. I don't think there's any parameter to Docker which would enable unprivileged CLONE_NEWUSER if it's disabled in the kernel itself. You'd also have to run docker with |
I had some luck getting it to work on a native Ubuntu 16.04 (Xenial). I also tried building a Docker image on the above native Ubuntu but got stuck with an error. I tried using Xenial and Bionic images as the base, but both had the following issue.
This error doesn't occur if
If you have any idea why this is happening, that would be really helpful. Thanks. |
Which patch did you use? I did it like that:
now, when it's compiled
Also, did you edid compile.sh to point CC and CXX to your hfuzz-clang and to hfuzz-clang++ respectively? |
Yes, I did. The My host environment ( Dockerfile:
The image gets built successfully, and I run a container of that image. Then I edited the
Executing
I tried the same thing with Centos host OS, and it gave the same error, but with Windows (WSL2, Docker v20.10.7) as the host machine, the command executed successfully. But WSL2 has the |
You should have now config.log or somesuch, with presumably more details. |
Yeah, there is
|
Hi @robertswiecki, I finally figured out how to fix this.
I have few questions here about the fuzzing execution:
First of all, thanks a lot for your quick replies earlier. I am sorry for such a long comment and for asking too many questions; I will be happy if you answered some of them, or please point me to some README or blog if you have mentioned these in general. |
Hello,
The latest patch for Bind in the repository doesn't work.
Bind now doesn't have the package,
libtool
as option. So when theconfigure
command is run it prints the following in the end:After
./compile.sh
, themake install
also finishes without any errors but with some warnings.Running
named -g
after that gives the following error:named: error while loading shared libraries: libisc.so.1705: cannot open shared object file: No such file or directory
I ran
ldconfig -v
to link the libraries and after that the following error occurs:The
sysctl
did not work as well:sysctl: cannot stat /proc/sys/kernel/unprivileged_userns_clone: No such file or directory
(I am using a Docker container/ WSL2 so there is no such file)
Even with version 1.9 and Bind 9.15.4, the above issue
unprivileged_userns_clone
issue occurs even though thelibisc
issue did not occur.I was able to install and get Bind running with
autoreconf -fi
,./configure
,make
,make install
, andldconfig -v
in a Docker container using the normalclang
(not thehfuzz-clang
).Is there a way to get
Honggfuzz
running in a Ubuntu Docker?The text was updated successfully, but these errors were encountered: