This is an archive of the discontinued LLVM Phabricator instance.

[msan] unpoison_file from fclose and fflash
ClosedPublic

Authored by vitalybuka on Nov 20 2020, 3:53 AM.

Details

Summary

Also unpoison IO_write_base/_IO_write_end buffer

memcpy from fclose and fflash can copy internal bytes without metadata into user memory.

Diff Detail

Event Timeline

vitalybuka created this revision.Nov 20 2020, 3:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 20 2020, 3:53 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka requested review of this revision.Nov 20 2020, 3:53 AM
vitalybuka updated this revision to Diff 306650.

format

vitalybuka edited the summary of this revision. (Show Details)Nov 20 2020, 3:56 AM
eugenis accepted this revision.Nov 20 2020, 1:01 PM

LGTM
The unpoison_file stuff is very incomplete, but this seems like an improvement.

This revision is now accepted and ready to land.Nov 20 2020, 1:01 PM
This revision was landed with ongoing or failed builds.Nov 20 2020, 1:09 PM
This revision was automatically updated to reflect the committed changes.