aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2023-12-15 11:55:50 -0800
committerAleksandr Nogikh <nogikh@google.com>2023-12-18 16:14:57 +0000
commitb455167d16775e043bcb382a6281082ff0b86a6f (patch)
tree4d88e0233c3f06a24988bb24de56916ab752867e
parent3222d10cbe77bbedb5a7c455e5bcb6b7081a63b7 (diff)
tools/docker/syzbot: add libbpf-dev to Dockerfile
gVisor relies on eBPF since the following 2 commits, so libbpf-dev is required when building: - https://github.com/google/gvisor/commit/2ae19ffb - https://github.com/google/gvisor/commit/f6d380ad Without this change, syzkaller can't build gVisor and gets the following error: tools/xdp/cmd/bpf/redirect_host.ebpf.c:15:10: fatal error: 'bpf/bpf_endian.h' file not found FAILED: Build did NOT complete successfully
-rw-r--r--CONTRIBUTORS1
-rw-r--r--tools/docker/syzbot/Dockerfile2
2 files changed, 2 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 9e9ad8669..464c82476 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -41,6 +41,7 @@ Google Inc.
Hidenori Kobayashi
Florent Revest
Gabe Kirkpatrick
+ Kevin Krakauer
Baozeng Ding
Lorenzo Stoakes
Jeremy Huang
diff --git a/tools/docker/syzbot/Dockerfile b/tools/docker/syzbot/Dockerfile
index 9ecc590bf..e80a41e59 100644
--- a/tools/docker/syzbot/Dockerfile
+++ b/tools/docker/syzbot/Dockerfile
@@ -18,7 +18,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
# Needed for building Cuttlefish images.
rsync libarchive-tools \
# Needed for buiding gVisor.
- crossbuild-essential-amd64 crossbuild-essential-arm64
+ crossbuild-essential-amd64 crossbuild-essential-arm64 libbpf-dev
RUN test "$(uname -m)" != x86_64 && exit 0 || \
DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
libc6-dev-i386 libc6-dev-i386-amd64-cross lib32gcc-12-dev lib32stdc++-12-dev \