This is an archive of the discontinued LLVM Phabricator instance.

Respect personality in kernel area detector
ClosedPublic

Authored by ygribov on May 12 2014, 7:52 AM.

Details

Reviewers
kcc
samsonov

Diff Detail

Event Timeline

ygribov updated this revision to Diff 9310.May 12 2014, 7:52 AM
ygribov retitled this revision from to Respect personality in kernel area detector.
ygribov updated this object.
ygribov edited the test plan for this revision. (Show Details)
ygribov added reviewers: samsonov, kcc.
ygribov added subscribers: Unknown Object (MLST), dvyukov.

Checked x64 (check-all), i386 (only kernel-area) and schroot on x64 with i386 personality (only kernel-area). Looks like currently kernel-area.cc test won't work under schroots because we can't reliably determine asan-32-bits there.

This is a draft so let me know if you'd prefer mmaps or /proc/pid/maps approach.

kcc edited edge metadata.May 12 2014, 9:31 AM

Looks reasonable. But maybe also add the check for the value of current stack pointer?

samsonov added inline comments.May 12 2014, 2:34 PM
lib/sanitizer_common/sanitizer_flags.cc
125

Please provide default value for this flag in SetCommonFlagsDefaults().

ygribov updated this revision to Diff 9356.May 13 2014, 9:04 AM
ygribov edited edge metadata.

Updated based on review. Also relaxed personality check to allow innocent modifications which don't harm uname.

kcc accepted this revision.May 14 2014, 1:22 AM
kcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.May 14 2014, 1:22 AM
kcc closed this revision.May 14 2014, 1:22 AM

r208760.