From f689d40a08ae1c9d73d043e7a2e807bc4022931b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Feb 2021 12:52:30 +0100 Subject: executor: don't fail in syz_genetlink_get_family_id We used to use our own netlink socket and then fail on any errors. But commit "sys/linux: add ieee802154 descriptions" made it possible to use fuzzer-provided socket, and fuzzer can pass any invalid fd. So don't fail on errors now. Fixes #2444 --- executor/executor.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index 71e3e7b71..5bb2d7226 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1543,11 +1543,13 @@ void debug(const char* msg, ...) { if (!flag_debug) return; + int err = errno; va_list args; va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); fflush(stderr); + errno = err; } void debug_dump_data(const char* data, int length) -- cgit mrf-deployment