From ecb386fe6f6849c451955e16556d04b388b1fde1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Oct 2018 19:08:19 +0100 Subject: sys: check that target consts are defined Currently when we get target consts with target.ConstMap["name"] during target initialization, we just get 0 for missing consts. This is error-prone as we can mis-type a const, or a const may be undefined only on some archs (as we have common unix code shared between several OSes). Check that all the consts are actually defined. The check detects several violations, to fix them: 1. move mremap to linux as it's only defined on linux 2. move S_IFMT to openbsd, as it's only defined and used on openbsd 3. define missing MAP_ANONYMOUS for freebsd and netbsd 4. fix extract for netbsd --- executor/defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/defs.h b/executor/defs.h index cdd8519e6..2a83d0141 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -20,7 +20,7 @@ #if GOARCH_amd64 #define GOARCH "amd64" -#define SYZ_REVISION "06d50288c46275b56218cab0097fcb71a7f0f80e" +#define SYZ_REVISION "b8fc36a63d4105cc2a16b4671864f7a5adddadaa" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 @@ -115,7 +115,7 @@ #if GOARCH_amd64 #define GOARCH "amd64" -#define SYZ_REVISION "741d8f94955b7b371dee88f03db02ab85d5a9384" +#define SYZ_REVISION "f7c2c212cb60211857a9c1c50c9336f899bb9ce9" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 -- cgit mrf-deployment