path: root/lib/scudo/scudo_allocator.cpp
diff options
authorKamil Rytarowski <>2017-12-14 20:14:29 +0000
committerKamil Rytarowski <>2017-12-14 20:14:29 +0000
commit1c21b6330ea33fbe97a33afea12c2aca8dc8cd25 (patch)
treedb0b29a7307ee8b565b5aa2f3652f72edc3d1ef3 /lib/scudo/scudo_allocator.cpp
parentccb69d9a1231219ec7e7962743b3ab1ee3122b65 (diff)
[Sanitizers] Basic sanitizer Solaris support (PR 33274)
Summary: This is the first mostly working version of the Sanitizer port to 32-bit Solaris/x86. It is currently based on Solaris 11.4 Beta. This part was initially developed inside libsanitizer in the GCC tree and should apply to both. Subsequent parts will address changes to clang, the compiler-rt build system and testsuite. I'm not yet sure what the right patch granularity is: if it's profitable to split the patch up, I'd like to get guidance on how to do so. Most of the changes are probably straightforward with a few exceptions: * The Solaris syscall interface isn't stable, undocumented and can change within an OS release. The stable interface is the libc interface, which I'm using here, if possible using the internal _-prefixed names. * While the patch primarily target 32-bit x86, I've left a few sparc changes in. They cannot currently be used with clang due to a backend limitation, but have worked fine inside the gcc tree. * Some functions (e.g. largefile versions of functions like open64) only exist in 32-bit Solaris, so I've introduced a separate SANITIZER_SOLARIS32 to check for that. The patch (with the subsequent ones to be submitted shortly) was tested on i386-pc-solaris2.11. Only a few failures remain, some of them analyzed, some still TBD: AddressSanitizer-i386-sunos :: TestCases/Posix/ AddressSanitizer-i386-sunos :: TestCases/ AddressSanitizer-i386-sunos :: TestCases/ AddressSanitizer-i386-sunos :: TestCases/malloc-no-intercept.c AddressSanitizer-i386-sunos-dynamic :: TestCases/Posix/ AddressSanitizer-i386-sunos-dynamic :: TestCases/Posix/ AddressSanitizer-i386-sunos-dynamic :: TestCases/ AddressSanitizer-i386-sunos-dynamic :: TestCases/ AddressSanitizer-i386-sunos-dynamic :: TestCases/ AddressSanitizer-i386-sunos-dynamic :: TestCases/malloc-no-intercept.c SanitizerCommon-Unit :: ./Sanitizer-i386-Test/MemoryMappingLayout.DumpListOfModules SanitizerCommon-Unit :: ./Sanitizer-i386-Test/SanitizerCommon.PthreadDestructorIterations Maybe this is good enough the get the ball rolling. Reviewers: kcc, alekseyshl Reviewed By: alekseyshl Subscribers: srhines, jyknight, kubamracek, krytarowski, fedor.sergeev, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: git-svn-id: 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/scudo/scudo_allocator.cpp')
0 files changed, 0 insertions, 0 deletions