From 181b3575afc392c704ae3be02baf0c4b8150cd87 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Fri, 30 Apr 2021 09:49:53 +0300 Subject: [PATCH] [lxc] turn off AFL for now (#5685) It seems LXC is failing to compile with AFL with ``` ../../src/lxc/storage -pthread -O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -stdlib=libc++ -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -Wl,-fuse-ld=gold -o fuzz-lxc-define-load fuzz_lxc_define_load-fuzz-lxc-define-load.o ../lxc/.libs/liblxc.a /usr/lib/libFuzzingEngine.a -lpthread -pthread Step #32: /usr/bin/ld: /usr/lib/libFuzzingEngine.a(aflpp_driver.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC Step #32: /usr/lib/libFuzzingEngine.a: error adding symbols: Bad value Step #32: clang-12: [0;1;31merror: [0m[1mlinker command failed with exit code 1 (use -v to see invocation)[0m Step #32: make[3]: *** [fuzz-lxc-config-read] Error 1 ``` Apparently aflpp tends to misdetect compiler/linker features 30% (70%?) of the time: https://github.com/google/oss-fuzz/issues/4280#issuecomment-829733181 --- projects/lxc/project.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/lxc/project.yaml b/projects/lxc/project.yaml index f19d3563af95..7f1b3da3afa7 100644 --- a/projects/lxc/project.yaml +++ b/projects/lxc/project.yaml @@ -10,3 +10,6 @@ auto_ccs: - stgraber@stgraber.org - evverx@gmail.com main_repo: "https://github.com/lxc/lxc" +fuzzing_engines: + - libfuzzer + - honggfuzz