From fa5b4dbd9aeca77a90aaa11417ef8153ac9e49d9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 2 Jul 2020 00:04:40 +0200 Subject: [syzkaller] update go get invocation and fix the build (#3754) * syzkaller: update go get invocation The way to checkout the repo has changed. Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21994 * [syzkalle] Fix paths passed to `compile_fuzzer` function. Co-authored-by: Max Moroz --- projects/syzkaller/Dockerfile | 6 +++--- projects/syzkaller/build.sh | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'projects/syzkaller') diff --git a/projects/syzkaller/Dockerfile b/projects/syzkaller/Dockerfile index 983c8fac..efe6c595 100644 --- a/projects/syzkaller/Dockerfile +++ b/projects/syzkaller/Dockerfile @@ -17,11 +17,11 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER mmoroz@chromium.org -RUN go get -u -d github.com/google/syzkaller/... +RUN go get -u -d github.com/google/syzkaller/prog # Dependency for one of the fuzz targets. +# Note: this should not be necessary because this package is in syzkaller/vendor. RUN go get github.com/ianlancetaylor/demangle -RUN git clone --depth 1 https://github.com/google/syzkaller.git -WORKDIR syzkaller +WORKDIR /root/go/src/github.com/google/syzkaller COPY build.sh $SRC/ diff --git a/projects/syzkaller/build.sh b/projects/syzkaller/build.sh index 744ae34a..cf1fdc26 100755 --- a/projects/syzkaller/build.sh +++ b/projects/syzkaller/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash -eu +#!/bin/bash -eux # Copyright 2019 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -27,10 +27,11 @@ function compile_fuzzer { $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer } -compile_fuzzer ./pkg/compiler Fuzz compiler_fuzzer -compile_fuzzer ./prog/test FuzzDeserialize prog_deserialize_fuzzer -compile_fuzzer ./prog/test FuzzParseLog prog_parselog_fuzzer -compile_fuzzer ./pkg/report Fuzz report_fuzzer +make descriptions +compile_fuzzer github.com/google/syzkaller/pkg/compiler Fuzz compiler_fuzzer +compile_fuzzer github.com/google/syzkaller/prog/test FuzzDeserialize prog_deserialize_fuzzer +compile_fuzzer github.com/google/syzkaller/prog/test FuzzParseLog prog_parselog_fuzzer +compile_fuzzer github.com/google/syzkaller/pkg/report Fuzz report_fuzzer # This target is way too spammy and OOMs very quickly. # compile_fuzzer ./tools/syz-trace2syz/proggen Fuzz trace2syz_fuzzer -- cgit v1.2.3