ladybird/Kernel/Devices
Patrick Meyer 83f88df757 Kernel: Add option to build with coverage instrumentation and KCOV
GCC and Clang allow us to inject a call to a function named
__sanitizer_cov_trace_pc on every edge. This function has to be defined
by us. By noting down the caller in that function we can trace the code
we have encountered during execution. Such information is used by
coverage guided fuzzers like AFL and LibFuzzer to determine if a new
input resulted in a new code path. This makes fuzzing much more
effective.

Additionally this adds a basic KCOV implementation. KCOV is an API that
allows user space to request the kernel to start collecting coverage
information for a given user space thread. Furthermore KCOV then exposes
the collected program counters to user space via a BlockDevice which can
be mmaped from user space.

This work is required to add effective support for fuzzing SerenityOS to
the Syzkaller syscall fuzzer. :^) :^)
2021-07-26 17:40:28 +02:00
..
HID
AsyncDeviceRequest.cpp
AsyncDeviceRequest.h
BlockDevice.cpp
BlockDevice.h
CharacterDevice.cpp
CharacterDevice.h
Device.cpp
Device.h
FullDevice.cpp
FullDevice.h
KCOVDevice.cpp Kernel: Add option to build with coverage instrumentation and KCOV 2021-07-26 17:40:28 +02:00
KCOVDevice.h Kernel: Add option to build with coverage instrumentation and KCOV 2021-07-26 17:40:28 +02:00
KCOVInstance.cpp Kernel: Add option to build with coverage instrumentation and KCOV 2021-07-26 17:40:28 +02:00
KCOVInstance.h Kernel: Add option to build with coverage instrumentation and KCOV 2021-07-26 17:40:28 +02:00
MemoryDevice.cpp
MemoryDevice.h
NullDevice.cpp
NullDevice.h
PCISerialDevice.cpp
PCISerialDevice.h
PCSpeaker.cpp
PCSpeaker.h
RandomDevice.cpp
RandomDevice.h
SB16.cpp
SB16.h
SerialDevice.cpp
SerialDevice.h
VMWareBackdoor.cpp
VMWareBackdoor.h
ZeroDevice.cpp
ZeroDevice.h