Skip to content

docs: fix fuzzing the linux kernel tutorial#127

Merged
Wenzel merged 2 commits intoIntelLabs:masterfrom
Wenzel:docs/fix_fuzz_tutorial
Nov 21, 2022
Merged

docs: fix fuzzing the linux kernel tutorial#127
Wenzel merged 2 commits intoIntelLabs:masterfrom
Wenzel:docs/fix_fuzz_tutorial

Conversation

@Wenzel
Copy link
Copy Markdown
Contributor

@Wenzel Wenzel commented Nov 17, 2022

Fixes a few issues in the tutorial
I don't know how they have made it into the final PR, since we already fixed them before.

  • avoid cd linux-guest when compiling the target kernel
  • use local KAFL_CONFIG_FILE= to activate virtio drivers while fuzzing
  • fix paths to the kernel image

@il-steffen does kafl_cov.py requires the ip parameters anymore ?
image

@Wenzel Wenzel requested a review from il-steffen November 17, 2022 21:22
@Wenzel Wenzel force-pushed the docs/fix_fuzz_tutorial branch from 970758d to f6bdf22 Compare November 17, 2022 21:23
@il-steffen
Copy link
Copy Markdown
Collaborator

@il-steffen does kafl_cov.py requires the ip parameters anymore ?

Unfortunately yes. They are needed for the ptdump tool that is called by kafl_cov.py.

We should add a feature to detect the range based on initial fuzzing setup. The ranges can be set on cmdline, then they are already stored in $WORKDIR/config, but they can also be set via SUBMIT_RANGE hypercall. The most direct solution that will also work with other frontends/agents is to let Qemu write out the active IP ranges before entering the fuzzer loop.

@Wenzel Wenzel merged commit c9c1880 into IntelLabs:master Nov 21, 2022
@Wenzel Wenzel deleted the docs/fix_fuzz_tutorial branch November 21, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants