diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-07-23 13:55:00 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-07-23 14:55:45 +0000 |
| commit | 0c1d6ded3570097468e0af306043c121b2ded6a8 (patch) | |
| tree | 9c79b85903cc5107b4af055ef742abdad2bfd14a /syz-cluster/workflow | |
| parent | d30fcff93686232d4c4cfa51a9f6c2b89cb5d3fc (diff) | |
syz-cluster: install llvm tools in the fuzz-step container
It's required for report symbolization and C repro generation.
Diffstat (limited to 'syz-cluster/workflow')
| -rw-r--r-- | syz-cluster/workflow/fuzz-step/Dockerfile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/syz-cluster/workflow/fuzz-step/Dockerfile b/syz-cluster/workflow/fuzz-step/Dockerfile index 5953e252b..0841b5f0d 100644 --- a/syz-cluster/workflow/fuzz-step/Dockerfile +++ b/syz-cluster/workflow/fuzz-step/Dockerfile @@ -16,7 +16,17 @@ RUN GO_FLAGS=$(make go-flags 2>/dev/null) && go build "$GO_FLAGS" -o /bin/fuzz-s FROM debian:bookworm RUN apt-get update && \ - apt-get install -y qemu-system openssh-client + apt-get install -y qemu-system openssh-client curl + +# Install clang tools. +RUN apt-get install -y -q gnupg software-properties-common apt-transport-https +RUN curl https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +RUN echo "deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-20 main" | tee /etc/apt/sources.list.d/llvm-20.list +RUN apt-get update --allow-releaseinfo-change +RUN apt-get install -y -q --no-install-recommends llvm-20 clang-20 clang-format-20 +RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-20 100 +RUN update-alternatives --install /usr/bin/llvm-addr2line llvm-addr2line /usr/bin/llvm-addr2line-20 100 +RUN update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-20 100 # pkg/osutil uses syzkaller user for sandboxing. RUN useradd --create-home syzkaller |
