From a21a8419b67b5ef8ebc3d6dd834d065e6860c41f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 31 Jan 2025 13:49:04 +0100 Subject: tools/docker: add libdw-dev to the syzbot container Linux-next now offers a choice between using `CONFIG_GENDWARFKSYMS` and `CONFIG_GENKSYMS`. See: Docs: https://www.kernel.org/doc/html/next/kbuild/gendwarfksyms.html Series: https://patchwork.kernel.org/project/linux-kbuild/list/?series=922143 We could either enforce CONFIG_GENKSYMS=y and keep things as they used to be or we could add a libdw-dev dependency to the container and be more flexible. CONFIG_GENDWARFKSYMS offers a slight advantage in that it will be better if/when we start fuzzing Rust code in the kernel. --- tools/docker/syzbot/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/docker') diff --git a/tools/docker/syzbot/Dockerfile b/tools/docker/syzbot/Dockerfile index 717cbaa61..6bf331a66 100644 --- a/tools/docker/syzbot/Dockerfile +++ b/tools/docker/syzbot/Dockerfile @@ -22,7 +22,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q \ util-linux dosfstools ocfs2-tools reiserfsprogs xfsprogs erofs-utils \ exfatprogs gfs2-utils \ # Needed for buiding gVisor. - crossbuild-essential-amd64 crossbuild-essential-arm64 libbpf-dev + crossbuild-essential-amd64 crossbuild-essential-arm64 libbpf-dev \ + # Needed for CONFIG_GENDWARFKSYMS. + libdw-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 \ -- cgit mrf-deployment