-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add support for FreeBSD #496
Comments
I want to use s2e to analyze freebsd. |
The S2E engine shouldn't have any issues running FreeBSD or any other x86 OS. However, all the tooling around S2E only supports Linux and Windows. Here's what you could do to get started:
s2e image_build builds Linux and Windows images in such a way that when they are resumed by launch-s2e.sh, they fetch a bootstrap script from the host. See [1] for details. Note that fetching files from the host requires the s2ecmd binary to be built for FreeBSD. Please check the guest/ folder, you may need to cross-compile it. [1] https://s2e.systems/docs/ImageInstallation.html Once you have guest tools built, you can technically start symbolic execution. Use that tool to create symbolic files in a ramdisk. You may want to study the Linux tooling and tweak that for FreeBSD (e.g., s2e image_build, s2e new_project, etc). To have full plugin support, you will need to create a FreeBSDMonitor plugin, similar to LinuxMonitor and WindowsMonitor. This may require instrumenting the kernel in order to provide the monitor all the required information to implement the OSMonitor interface. |
thanks,i'll give it a try. |
That's because qemu thinks it's a raw image. Those don't support snapshots. |
I found image_ Build without freebsd.why does s2e not support freebsd?What do I need to do if I want it to support freebsd?
The text was updated successfully, but these errors were encountered: