Skip to content
/ vock Public

A lightweight, wrapper-based kernel coverage viewer for any command, powered by kcov and LD_PRELOAD.

License

Notifications You must be signed in to change notification settings

kzall0c/vock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vock

A lightweight, wrapper-based kernel coverage viewer for any command, powered by kcov and LD_PRELOAD. You need root privileges to access /sys/kernel/debug/kcov and use the kernel's code coverage feature. You can find more information at the linux kernel document: KCOV: code coverage for fuzzing

 $ make
 # make install
 # vock [--kernel-src PATH (default: $HOME/linux)] \
        [--vmlinux FILE (default: $HOME/linux/vmlinux] \
        [--filter Keyword (File paths by keyword)] \
        <target program>

I am using vock with virtme-ng on a linux kernel that has CONFIG_KCOV and CONFIG_DEBUG_INFO enabled. This setup is the same as the one in the demo below.

vock

About

A lightweight, wrapper-based kernel coverage viewer for any command, powered by kcov and LD_PRELOAD.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published