This is an archive of the discontinued LLVM Phabricator instance.

[msan] Allow KMSAN to use -fsanitize-memory-param-retval
ClosedPublic

Authored by glider on Jun 15 2022, 7:33 AM.

Details

Summary

Let -fsanitize-memory-param-retval be used together with
-fsanitize=kernel-memory, so that it can be applied when building the
Linux kernel.

Also add clang/test/CodeGen/kmsan-param-retval.c to ensure that
-fsanitize-memory-param-retval eliminates shadow accesses for parameters
marked as undef.

Diff Detail

Event Timeline

glider created this revision.Jun 15 2022, 7:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 7:33 AM
glider requested review of this revision.Jun 15 2022, 7:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 7:33 AM
eugenis accepted this revision.Jun 15 2022, 3:27 PM

LGTM

This revision is now accepted and ready to land.Jun 15 2022, 3:27 PM
vitalybuka accepted this revision.Jun 15 2022, 3:29 PM
This revision was landed with ongoing or failed builds.Jun 17 2022, 1:54 AM
This revision was automatically updated to reflect the committed changes.