From e16e2c9a4cb6937323e861b646792a6c4c978a3c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 4 Jun 2024 12:55:41 +0200 Subject: 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) --- executor/executor_linux.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'executor/executor_linux.h') 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& 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); } -- cgit mrf-deployment