[GWP-ASan] Add inbuilt options parser.Adds a modified options parser (shamefully pulled from Scudo, whichshamefully pulled it from sanitizer-common) to GWP-ASan. This allowscustomers (Android) to
[GWP-ASan] Add inbuilt options parser.Adds a modified options parser (shamefully pulled from Scudo, whichshamefully pulled it from sanitizer-common) to GWP-ASan. This allowscustomers (Android) to parse options strings in a common way.Depends on D94117.AOSP side of these patches is staged at: - sepolicy (sysprops should only be settable by the shell, in both root and unrooted conditions): https://android-review.googlesource.com/c/platform/system/sepolicy/+/1517238 - zygote updates: https://android-review.googlesource.com/c/platform/frameworks/base/+/1515009 - bionic changes to add `gwp_asan.<process_name>` system property, and GWP_ASAN_OPTIONS environment variable: https://android-review.googlesource.com/c/platform/bionic/+/1514989Reviewed By: eugenisDifferential Revision: https://reviews.llvm.org/D92696
show more ...
Add GWP-ASan fuzz target to compiler-rt/tools.Summary:@eugenis to approve addition of //compiler-rt/tools.@pree-jackie please confirm that this WFY.D66494 introduced the GWP-ASan stack_trace_co
Add GWP-ASan fuzz target to compiler-rt/tools.Summary:@eugenis to approve addition of //compiler-rt/tools.@pree-jackie please confirm that this WFY.D66494 introduced the GWP-ASan stack_trace_compressor_fuzzer. Building fuzztargets in compiler-rt is a new affair, and has some challenges:- If the host compiler doesn't have compiler-rt, the -fsanitize=fuzzer may not be able to link against `libclang_rt.fuzzer*`.- Things in compiler-rt generally aren't built when you want to build with sanitizers using `-DLLVM_USE_SANITIZER`. This tricky to work around, so we create the new tools directory so that we can build fuzz targets with sanitizers. This has the added bonus of fixing the problem above as well, as we can now just guard the fuzz target build to only be done with `-DLLVM_USE_SANITIZE_COVERAGE=On`.Reviewers: eugenis, pree-jackieReviewed By: eugenis, pree-jackieSubscribers: dberris, mgorny, #sanitizers, llvm-commits, eugenis, pree-jackie, lebedev.ri, vitalybuka, morehouseTags: #sanitizers, #llvmDifferential Revision: https://reviews.llvm.org/D66776llvm-svn: 370094