This is an archive of the discontinued LLVM Phabricator instance.

[MSan] add KMSAN support to Clang driver
ClosedPublic

Authored by glider on Aug 8 2018, 6:00 AM.

Details

Summary

Boilerplate code for using KMSAN instrumentation in Clang.

We add a new command line flag, -fsanitize=kernel-memory, with a corresponding SanitizerKind::KernelMemory, which, along with SanitizerKind::Memory, maps to the memory_sanitizer feature.
KMSAN is only supported on x86_64 Linux.
It's incompatible with other sanitizers, but supports code coverage instrumentation.

This revision depends on https://reviews.llvm.org/D34451

Diff Detail

Event Timeline

glider created this revision.Aug 8 2018, 6:00 AM
glider updated this revision to Diff 159716.Aug 8 2018, 7:31 AM

Added tests.

eugenis accepted this revision.Aug 8 2018, 1:35 PM
This revision is now accepted and ready to land.Aug 8 2018, 1:35 PM
glider added a comment.Sep 7 2018, 2:24 AM

Landed r341641, thank you!

shafik closed this revision.Sep 21 2023, 11:42 AM
shafik added a subscriber: shafik.

Closing since this was landed