split .bazelrc asan config into asan and ubsan#7947
split .bazelrc asan config into asan and ubsan#7947yevgenypats wants to merge 1 commit intoenvoyproxy:masterfrom
Conversation
|
@yevgenypats If you incorporate google/oss-fuzz#2664 to #7509 I guess it will unblock you there, can you try if that works? |
|
@lizan I can try that. I already had a working fuzzer build that was based on oss-fuzz scripts that was working. @htuch wanted to have a native bazel build that will build the fuzzers so there won't be duplicate scripts building the same thing. I will happily do either but let's get to a consensus so we won't do duplicate work. |
|
@yevgenypats Oh I missed that comment, re native bazel build, isn't https://github.com/envoyproxy/envoy/blob/master/.bazelrc#L144 already working? @asraa might know more. |
|
I don't have any strong objections to this PR, I get what @yevgenypats is trying to do. My main concern is that we are doing this in terms of builds that are targeted at |
|
/retest |
|
🔨 rebuilding |
|
@htuch I'm not planning on using gcc this is totally related to clang where I want to have an option not to use ubsan for some of the fuzzers because this makes life hard when trying to build it in unprivileged containers like in CircleCI. |
lizan
left a comment
There was a problem hiding this comment.
I want to have an option not to use ubsan for some of the fuzzers because this makes life hard when trying to build it in unprivileged containers like in CircleCI.
Out of curiousity, which sanitizer need privileged containers?
The current build issue in this PR for ubsan is from vptr which I commented above, which I addressed in the oss-fuzz PR if you want to sanitize on vptr.
Anyway lets see whether #7949 works, which I think it does, then we don't need
|
|
||
| # Basic UBSAN that works for gcc | ||
| build:ubsan --copt -fsanitize=undefined | ||
| build:ubsan --linkopt -fsanitize=undefined |
There was a problem hiding this comment.
You need move -fno-sanitize=vptr after this line.
|
Agree let's wait for #7949 |
|
#7949 is landed, do you still need this one? |
|
nope. we can remove this. |
Description:
This splits the asan config in
.bazelrcto ubsan and asan. This solves an issue with #7805 and this is a block for #7509. Because currently the asan-fuzzer doesnt work with ubsan.Risk Level:
Low
Testing:
No
CC @htuch @asraa