-
Notifications
You must be signed in to change notification settings - Fork 87
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
Is there a patch or document that can show how to patch kafl agent into the target linux kernel? #246
Comments
Hi @liujf628995, I totally agree that the currrent Linux Kernel Tutorial lacks documentation on the internals of the kafl-agent, and its configuration options. In my opinion it doesn't serve it's purpose very well as an introduction to kAFL. That's why I started to build another Linux based target, more accessible: the DVKM module: I'm currently building a detailed tutorial for this, and will be publishing it in a few weeks. Were you specifically interested by the Linux kernel virtualization interfaces fuzzing (Virtio, MSR, CPUID, IOAPIC, RNG,...), and the new DVKM (Damn Vulnerable Kernel Module) target could suit your needs ? |
HI, @Wenzel, Yes,I'm intersting in fuzz the linux kernel and I think the new DVKM will be helpful for me.Would you want to replace the KAFL Agent with DVKM?Or just add this module to the existing agent? I took a look at this link: IntelLabs/kafl.targets#31 |
The exisitng kafl-agent was very specialized to fuzz the linux kernel virtualization communication channels, it's very complicated to understand and maintain, even more for a beginner. The kafl-agent for DVKM will be minimal, only inserting crash hypercalls at the right locations in the kernel, and the rest will be in userland. I will keep you up to date on this ! |
That sounds great!Thanks! |
Hi @liujf628995 The DVKM tutorial has now been merged upstream, and the documentation is online: I'm eager to receive your feedback on it, what works and what doesn't, what's unclear and what unanswered questions you might have. |
Thanks for your detailed tutorial,I'll try it these days and give you feedback later.
|
Thanks ! |
And are there explanations about the kafl kernel config parameters?For example:
grep KAFL config.vanilla.virtio
The text was updated successfully, but these errors were encountered: