Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

kallsyms/snapshot-lkm

Repository files navigation

snapshot-lkm

Repo deprecated in favor of the AFL++ fork.

A kernel module that creates a snapshot() syscall for fast fuzzing. Developed off of kernel 5.4.23, but since this is a LKM hopefully version doesn't matter (too much).

Idea from AFL++ ideas page.

For original implementation (as a kernel fork/patch), see https://github.com/sslab-gatech/perf-fuzz.

How it works

  • Overwrites sys_tuxcall (unused) syscall table entry for the "new" snapshot syscall
  • Overwrites syscall table to intercept sys_exit_group (and maybe restore state)
  • Uses kprobes to hook a few kernel-internal functions (see snapshot/module.c) to build and restore snapshot data (see snapshot/associated_data.c)

About

https://github.com/sslab-gatech/perf-fuzz as a kernel module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •