aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create-buildroot-image.sh
Commit message (Collapse)AuthorAgeFilesLines
* tools: update create-buildroot-image.sh scriptAleksandr Nogikh2025-05-071-3/+12
| | | | | | | | | Use a newer Buildroot release. Use an appropriate arm instruction set for arm32. Reduce the syslogd logging level. Closes #5986. Closes #5452.
* tools: mount devtmpfs in Buildroot images explicitlyAleksandr Nogikh2024-09-271-0/+3
| | | | | It will enable Buildroot image usage also for the kenrels that don't enable CONFIG_DEVTMPFS_MOUNT.
* tools: build a new ext4 image for arm32Aleksandr Nogikh2023-09-291-0/+1
| | | | | | | | | | The newly built image resolves the following problem: debug1: Sending subsystem: sftp debug1: pledge: fork subsystem request failed on channel 0 Also, ext2->ext4 transition allows to fuzz swap on arm32.
* tools: disable ext4 feature verity in buildrootSpace Meyer2023-04-201-1/+1
| | | | | | | | Our current buildroot can't be mounted by v5.3 kernels and older: EXT4-fs (sda): couldn't mount RDWR because of unsupported optional features (8000) This has caused lots of bad bisection results, see #3224. Our buildroot must support very old kernels so we can test during cause bisections.
* tools: upgrade Buildroot image versionAleksandr Nogikh2022-11-241-1/+1
| | | | | | | | | | There are two reasons: - The 2022.02 version does not longer build with the latest versions of the build tools. - The latest version was tested to work fine with the scp changes that came with OpenSSH 9.0 (the use of the SFTP protocol). Document the problem with scp in the troubleshooting guide.
* tools/create-buildroot-image.sh: configure sftp subsystemKuniyuki Iwashima2022-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | create-buildroot-image.sh creates a minimal sshd_config, which does not configure sftp. Thus, if the initial scp to setup syz-fuzzer uses sftp, it fails with the error below, and syz-manager never starts fuzzing. 2022/09/06 16:03:44 failed to copy binary: failed to run ["scp" "-P" "14125" ... "/home/ec2-user/syzkaller/bin/linux_amd64/syz-fuzzer" "root@localhost:/syz-fuzzer"]: exit status 255 Warning: Permanently added '[localhost]:14125' (ED25519) to the list of known hosts. subsystem request failed on channel 0 Connection closed We can see sftp throws the same sequences by manually running scp in verbose mode. $ scp -v -P 14125 /home/ec2-user/syzkaller/bin/linux_amd64/syz-fuzzer root@localhost:/syz-fuzzer Executing: program /usr/bin/ssh host localhost, user root, command sftp ... debug1: Connecting to localhost [localhost] port 14125. debug1: Connection established. ... debug1: Sending subsystem: sftp subsystem request failed on channel 0 Connection closed Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
* tools: fix create-buildroot-image.sh for AMD64Patrick Meyer2022-04-201-0/+1
|
* tools: relax Linux requirements for arm64 imagesAleksandr Nogikh2022-04-061-0/+2
| | | | Require Linux >= 5.10 instead of 5.15.
* tools: generate bootable arm64 images with buildrootAleksandr Nogikh2022-04-061-6/+31
|
* tools: update buildroot versionAleksandr Nogikh2022-02-171-1/+1
| | | | | | | | | 2021.08.x does not build on Linux 5.15+ due to the following error. interpret.c:48:10: fatal error: linux/ipx.h: No such file or directory 48 | #include <linux/ipx.h> It was fixed in the newer buildroot versions.
* tools/create-buildroot-image.sh: remove bogus mountsDmitry Vyukov2021-12-201-3/+0
| | | | | | | | | | | | | | | | | | | | Currently the following errors happen during boot: mount: mounting mqueue on /dev/mqueue failed: No such file or directory mount: mounting hugetlbfs on /dev/hugepages failed: No such file or directory mount: mounting fuse.lxcfs on /var/lib/lxcfs failed: No such file or directory Remove these mounts. Mounting of /dev/mqueue and /dev/hugepages fails because these dirs don't exist and the buildroot init does not create them for some reason. We can't pre-create them because /dev is itself mounted as devtmpfs. But we also don't need these mounts. Both mqueue and hugetlbfs are trivial to mount and the fuzzer does not have problems mounting them locally and using (we have good coverage anyway). fuse.lxcfs is simply a fuse filesystem (".lxcfs" is ignored). We don't need to mount an empty global fuse filesystem. And it won't work w/o a userspace server anyway.
* tools: do not create /dev/binderN devices for buildroot imageAleksandr Nogikh2021-10-291-3/+0
| | | | It's not necessary any longer because now we're using binderfs.
* tools: add script for building of buildroot imagesDmitry Vyukov2021-10-181-0/+221
We used to use Debian-based images, but they have several issues: 1. They boot too slowly (we don't need full systemd power). 2. Systemd mounts cgroup controllers so that we can't use them during fuzzing (can be mounted only once). 3. We have poor control over contents of the image. This script creates lightweight buildroot-based images that boot fast.