This is an archive of the discontinued LLVM Phabricator instance.

[asan] Remove FreeBSD XFAIL from asan-sigbus.cpp test
ClosedPublic

Authored by arichardson on Mar 9 2021, 12:12 PM.

Details

Summary

This test passes for me on FreeBSD 12.2.

Diff Detail

Event Timeline

arichardson created this revision.Mar 9 2021, 12:12 PM
arichardson requested review of this revision.Mar 9 2021, 12:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2021, 12:12 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
emaste accepted this revision.Mar 22 2021, 7:53 AM

See https://svnweb.freebsd.org/base?view=revision&revision=352807

Change the delivered signal for accesses to mapped area after the
backing object was truncated.  According to POSIX description for
mmap(2):
   The system shall always zero-fill any partial page at the end of an
   object. Further, the system shall never write out any modified
   portions of the last page of an object which are beyond its
   end. References within the address range starting at pa and
   continuing for len bytes to whole pages following the end of an
   object shall result in delivery of a SIGBUS signal.

   An implementation may generate SIGBUS signals when a reference
   would cause an error in the mapped object, such as out-of-space
   condition.
This revision is now accepted and ready to land.Mar 22 2021, 7:53 AM
This revision was landed with ongoing or failed builds.Mar 31 2021, 1:33 AM
This revision was automatically updated to reflect the committed changes.