Sign inSign up

qgrain/ubuntu20-kernel

By qgrain

Updated over 2 years ago

ubuntu 20.04 for kernel fuzzing (Syzkaller), with related packages installed

Image
Security
Operating systems
0

174

qgrain/ubuntu20-kernel repository overview

ubuntu20-kernel

Usage

Pull or Create contrainer directly

docker run -itd -p XXXXX:22 -v /HOST/PATH/KERNELS:/root/kernels --name NAME --privileged=true qgrain/ubuntu20-kernel:latest

Notice: every tag version is usable

Parameter Explanation:

  • set -p for ssh port mapping
  • set -v for kernels and images, which is convenient for common files sharing in multiple containers
  • set --priviledged to ensure the KVM module permmision

What is done?

v1 (2023-03)
  • Installed
net-tools openssh-server curl inetutils-ping wget vim screen
  • Configurations
tsinghua mirror is set
/etc/ssh/sshd_config is not configured for root login
v2 (2023-04)
  • Installed
# packages
unzip sudo bc git
binutils build-essential flex bison cmake ninja-build
debootstrap qemu qemu-kvm
libssl-dev libelf-dev libc6-dev libc6-dev-i386 linux-libc-dev libgmp3-dev libmpfr-dev libmpc-dev

# software
go1.19.6 syzkaller
gcc-9.4 g++-9.4 gdb-10.2 llvm-13.0.1
  • Configurations
/etc/ssh/sshd_config is configured for root login
http_proxy and https_proxy are set in ~/.bashrc
# directory structure changed
rm -r ~/kernels, use volume instead.
rm -r ~/images, use volume instead.
v3 (2023-07-13)
  • Installed
# more packages
python3-dev python3-pip virtualenvwrapper tmux
v4 (rebased on v1) (2024-05-04)
  • Installed
# packages
unzip sudo bc git tmux python3-dev python3-pip
binutils build-essential flex bison cmake(3.20.6) ninja-build
debootstrap qemu qemu-kvm
libssl-dev libelf-dev libc6-dev libc6-dev-i386 linux-libc-dev libgmp3-dev libmpfr-dev libmpc-dev

# software
syzkaller go1.21.8 gcc12 llvm-project-15.0.6
  • Configurations
screen is beautified
http_proxy now works for sudo
directory structure:
| - software
    | - go1.21.8
    | - gopath1.21.8
    | - llvm-project-16.0.6.install
| - fuzzers
    | - syzkaller-f1b6b00
| - images
    | - image-template (created by syzkaller's create-image.sh)
    | - boot.sh (to boot qemu vm)
    | - debug.sh (to boot qemu vm for debug)

Tag summary

Content type

Image

Digest

sha256:8b91cc19d

Size

3.3 GB

Last updated

over 2 years ago

docker pull qgrain/ubuntu20-kernel:v4