Skip to content

Commit 8b9ca61

Browse files
docker: make clang-kmsan hermetic
The existing build lacked some headers, which prevented us from being able to configure newer kernels.
1 parent 0b33604 commit 8b9ca61

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tools/docker/env/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ RUN mkdir -p /syzkaller/gopath/src/github.com/google/syzkaller && \
3737

3838
# Download and install the custom Clang required to build KMSAN.
3939
# TODO(@ramosian-glider): switch to stable Clang once KMSAN is upstreamed.
40-
RUN curl https://storage.googleapis.com/syzkaller/clang-2b554920f11c-patched.tar.gz | tar -C /syzkaller -xz
41-
RUN ln -s /syzkaller/clang-2b554920f11c-patched /syzkaller/clang-kmsan
40+
ENV CLANG_KMSAN_VER 38e16e1cebb8
41+
RUN curl https://storage.googleapis.com/syzkaller/clang-${CLANG_KMSAN_VER}.tar.gz | tar -C /usr/local/ -xz
42+
RUN ln -s /usr/local/clang-${CLANG_KMSAN_VER} /usr/local/clang-kmsan
4243

4344
# The default Docker prompt is too ugly and takes the whole line:
4445
# I have no name!@0f3331d2fb54:~/gopath/src/github.com/google/syzkaller$

tools/docker/syzbot/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ ENV PATH /usr/local/go/bin:$PATH
3434

3535
# Download and install the custom Clang required to build KMSAN.
3636
# TODO(@ramosian-glider): switch to stable Clang once KMSAN is upstreamed.
37-
RUN mkdir -p /syzkaller
38-
RUN curl https://storage.googleapis.com/syzkaller/clang-2b554920f11c-patched.tar.gz | tar -C /syzkaller -xz
39-
RUN ln -s /syzkaller/clang-2b554920f11c-patched /syzkaller/clang-kmsan
37+
ENV CLANG_KMSAN_VER 38e16e1cebb8
38+
RUN curl https://storage.googleapis.com/syzkaller/clang-${CLANG_KMSAN_VER}.tar.gz | tar -C /usr/local/ -xz
39+
RUN ln -s /usr/local/clang-${CLANG_KMSAN_VER} /usr/local/clang-kmsan
4040

4141
# Not really GRTE, but it's enough to run some scripts that hardcode the path.
4242
RUN mkdir -p /usr/grte/v5/bin && ln -s /usr/bin/python3 /usr/grte/v5/bin/python2.7

0 commit comments

Comments
 (0)