This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Move *fstat to the common interceptors
ClosedPublic

Authored by zhaoqin on May 16 2016, 8:49 PM.

Details

Summary

Adds *fstat to the common interceptors.

Removes the now-duplicate fstat interceptor from msan/tsan
This adds fstat to asan/esan, which previously did not intercept it.

Diff Detail

Repository
rL LLVM

Event Timeline

zhaoqin updated this revision to Diff 57431.May 16 2016, 8:49 PM
zhaoqin retitled this revision from to [sanitizer] Move *fstat to the common interceptors.
zhaoqin updated this object.
zhaoqin added reviewers: aizatsky, eugenis, vitalybuka.
zhaoqin added subscribers: kcc, bruening.
aizatsky added inline comments.May 17 2016, 1:51 PM
lib/tsan/rtl/tsan_interceptors.cc
1357 ↗(On Diff #57431)

Do you need to define COMMON_INTERCEPTOR_FD_ACCESS to call FdAccess?

will define it in other *san.

lib/tsan/rtl/tsan_interceptors.cc
1357 ↗(On Diff #57431)

It is defined in tsan already, but it is not defined in other *san.

aizatsky accepted this revision.May 17 2016, 2:17 PM
aizatsky edited edge metadata.
This revision is now accepted and ready to land.May 17 2016, 2:17 PM
zhaoqin updated this revision to Diff 57517.May 17 2016, 2:18 PM
zhaoqin edited edge metadata.

PTAL

Could you please help me land the CL.

This revision was automatically updated to reflect the committed changes.

submit http://reviews.llvm.org/D20350 with possible iso build fixes by disabling FXSTATAT and FXSTATAT64 interception on ios.