This is an archive of the discontinued LLVM Phabricator instance.

[msan][libcxx] Enable -fsanitize-memory-param-retval
AbandonedPublic

Authored by ldionne on Apr 18 2022, 9:04 PM.

Details

Summary

We are considering to make -fsanitize-memory-param-retval enabled by default so probably this patch is unnneded.

Diff Detail

Event Timeline

vitalybuka created this revision.Apr 18 2022, 9:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 9:04 PM
vitalybuka requested review of this revision.Apr 18 2022, 9:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 9:04 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
vitalybuka retitled this revision from [msan][libcxx] Enable -fsanitize-memory-param-retval to [WIP][msan][libcxx] Enable -fsanitize-memory-param-retval.
vitalybuka edited the summary of this revision. (Show Details)
EricWF accepted this revision.Apr 19 2022, 9:07 AM
EricWF added a subscriber: EricWF.

Thanks. Any other sanitizers we can turn up/on?

This revision is now accepted and ready to land.Apr 19 2022, 9:07 AM

Thanks. Any other sanitizers we can turn up/on?

From stuff which is not enabled by default -fsanitize-address-use-after-return=always can be useful
But it's also good candidate for being enabled by default in clang.

vitalybuka retitled this revision from [WIP][msan][libcxx] Enable -fsanitize-memory-param-retval to [msan][libcxx] Enable -fsanitize-memory-param-retval.Apr 28 2022, 7:01 PM
This revision was automatically updated to reflect the committed changes.

I see errors in the MSAN CI build. The first failure was about 2 hours after you landed this patch.

https://buildkite.com/llvm-project/libcxx-ci/builds/10483

Could you check whether this change is the cause of the failure?

vitalybuka reopened this revision.May 9 2022, 7:46 PM
This revision is now accepted and ready to land.May 9 2022, 7:46 PM
vitalybuka planned changes to this revision.May 9 2022, 7:50 PM
ldionne commandeered this revision.Sep 19 2023, 9:36 AM
ldionne added a reviewer: vitalybuka.
ldionne added a subscriber: ldionne.

[Github PR transition cleanup]

Abandoning since this needs work. Please reopen as a github PR if you still want to proceed!

ldionne abandoned this revision.Sep 19 2023, 9:36 AM