more sanitizer functions for blacklist
MODIFY
llvm_mode/LLVMInsTrim.so.cc
llvm_mode/LLVMInsTrim.so.cc
@@ -112,10 +112,8 @@ struct InsTrim : public ModulePass {
static const char *Blacklist[] = {
- "asan.",
- "llvm.",
- "sancov.",
- "__ubsan_handle_",
+ "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign.", "__afl_",
+ "_fini", "__libc_csu", "__asan", "__msan", "msan."
};

MODIFY
llvm_mode/afl-llvm-lto-instrumentation.so.cc
llvm_mode/afl-llvm-lto-instrumentation.so.cc
@@ -134,8 +134,8 @@ class AFLLTOPass : public ModulePass {
static const char *Blacklist[] = {
- "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign.",
- "__afl_", "_fini", "__libc_csu"
+ "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign.", "__afl_",
+ "_fini", "__libc_csu", "__asan", "__msan", "msan."
};
@@ -202,6 +202,8 @@ bool AFLLTOPass::runOnModule(Module &M) {
for (auto &F : M) {
+ //fprintf(stderr, "DEBUG: Function %s\n", F.getName().str().c_str());
+
if (F.size() < 2) continue;
if (isBlacklisted(&F)) continue;

MODIFY
llvm_mode/afl-llvm-lto-whitelist.so.cc
llvm_mode/afl-llvm-lto-whitelist.so.cc
@@ -91,7 +91,8 @@ class AFLwhitelist : public ModulePass {
static const SmallVector<std::string, 5> Blacklist = {
- "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign."
+ "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign.", "__afl_",
+ "_fini", "__libc_csu", "__asan", "__msan", "msan."
};

MODIFY
llvm_mode/afl-llvm-pass.so.cc
llvm_mode/afl-llvm-pass.so.cc
@@ -97,10 +97,8 @@ class AFLCoverage : public ModulePass {
static const char *Blacklist[] = {
- "asan.",
- "llvm.",
- "sancov.",
- "__ubsan_handle_",
+ "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign.", "__afl_",
+ "_fini", "__libc_csu", "__asan", "__msan", "msan."
};

MODIFY
llvm_mode/split-compares-pass.so.cc
llvm_mode/split-compares-pass.so.cc
@@ -78,7 +78,8 @@ class SplitComparesTransform : public ModulePass {
static const char *Blacklist[] = {
- "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign."
+ "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign.", "__afl_",
+ "_fini", "__libc_csu", "__asan", "__msan", "msan."
};

MODIFY
llvm_mode/split-switches-pass.so.cc
llvm_mode/split-switches-pass.so.cc
@@ -83,7 +83,8 @@ class SplitSwitchesTransform : public ModulePass {
static const char *Blacklist[] = {
- "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign."
+ "asan.", "llvm.", "sancov.", "__ubsan_handle_", "ign.", "__afl_",
+ "_fini", "__libc_csu", "__asan", "__msan", "msan."
};

more sanitizer functions for blacklist