diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-06-04 12:55:41 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-06-24 09:57:34 +0000 |
| commit | e16e2c9a4cb6937323e861b646792a6c4c978a3c (patch) | |
| tree | 6c513e98e5f465b44a98546d8984485d2c128582 /executor/executor_linux.h | |
| parent | 90d67044dab68568e8f35bc14b68055dbd166eff (diff) | |
executor: add runner mode
Move all syz-fuzzer logic into syz-executor and remove syz-fuzzer.
Also restore syz-runtest functionality in the manager.
Update #4917 (sets most signal handlers to SIG_IGN)
Diffstat (limited to 'executor/executor_linux.h')
| -rw-r--r-- | executor/executor_linux.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/executor/executor_linux.h b/executor/executor_linux.h index 30c10a615..cb980838f 100644 --- a/executor/executor_linux.h +++ b/executor/executor_linux.h @@ -279,22 +279,15 @@ NORETURN void doexit_thread(int status) } #define SYZ_HAVE_KCSAN 1 -static void setup_kcsan_filterlist(char** frames, int nframes, bool suppress) +static void setup_kcsan_filter(const std::vector<std::string>& frames) { + if (frames.empty()) + return; int fd = open("/sys/kernel/debug/kcsan", O_WRONLY); if (fd == -1) fail("failed to open kcsan debugfs file"); - - printf("%s KCSAN reports in functions: ", - suppress ? "suppressing" : "only showing"); - if (!suppress) - dprintf(fd, "whitelist\n"); - for (int i = 0; i < nframes; ++i) { - printf("'%s' ", frames[i]); - dprintf(fd, "!%s\n", frames[i]); - } - printf("\n"); - + for (const auto& frame : frames) + dprintf(fd, "!%s\n", frame.c_str()); close(fd); } |
