aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/linux_generated.go
Commit message (Collapse)AuthorAgeFilesLines
* tools: correct resolv.conf filename for nameserver configurationRichard Smith2024-06-051-1/+1
| | | | Signed-off-by: Richard Smith <happyercat@gmail.com>
* tools/create-gce-image: add rootwait command line option for ppc64leAndrew Donnellan2023-07-241-1/+1
| | | | | | | | | | | Sometimes it can take a while for a root block device to appear when backed by hardware that is slow to initialise, e.g. the ibmvfc Virtual Fibre Channel interface. Use the "rootwait" option to have the kernel wait for a disk to appear rather than panicking immediately. Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
* tools/create-gce-image.sh: don't use a fixed root device path on ppc64leAndrew Donnellan2023-07-241-1/+1
| | | | | | | | There's no need to hardcode the GRUB device path for the root device - that makes assumptions about how the partition firmware behaves. Just use GRUB's search command to determine it dynamically. Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
* tools/create-gce-image.sh: use DOS MBR instead of GPT for ppc64le imagesAndrew Donnellan2023-07-241-3/+3
| | | | | | | | Some versions of PowerVM Partition Firmware have trouble handling GPT partition tables on boot devices. Use MBR partition tables to avoid compatibility issues. Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
* tools/create-gce-image.sh: enable sftp in ssh daemonAlexander Egorenkov2022-05-101-0/+1
| | | | | | | | | | | | | | | | | | | If we don't enable SFTP in SSH daemon, then scp will not work w/o -O option. Fixes: syz-ci-devel | 2022/05/10 09:01:23 syz-ci-devel-kasan: VM testing failed with: failed to copy test binary to VM: failed to run ["scp" "-P" "55610" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "/workdir/syzkaller/current/bin/linux_s390x/syz-fuzzer" "root@localhost:/syz-fuzzer"]: exit status 255 syz-ci-devel | Warning: Permanently added '[localhost]:55610' (ED25519) to the list of known hosts. syz-ci-devel | subsystem request failed on channel 0 syz-ci-devel | scp: Connection closed Signed-off-by: Alexander Egorenkov <eaibmz@gmail.com>
* dashboard/config/linux: remove panic_on_warn from kcsan/kmsanDmitry Vyukov2021-03-031-1/+1
| | | | These instances ignore WARNINGs, so they don't want panic_on_warn.
* tools/create-gce-image.sh: setup ssh with empty passwordDmitry Vyukov2021-01-291-6/+8
| | | | | | We used to use ssh keys, but there are no partiuclar advantages of using key over empty password. It just makes things more complex. And the new image building code in pkg/build does not support keys.
* tools/create-gce-image.sh: remove unused SYZ_VM_TYPEDmitry Vyukov2021-01-291-10/+0
|
* tools/create-gce-image.sh: move sysctl's to executorDmitry Vyukov2020-11-211-2/+0
| | | | | | | | | Move the remaining sysctls from image creation scripts into executor. We have the rest in executor now, and these are captured in reproducers and are not duplicated. It seems that ping_group_range was accidentially lost along the way, re-add it.
* tools/create-gce-image.sh: drop rodata=nDmitry Vyukov2020-10-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | There is suspicion that the random programs corrupt .text segment: https://groups.google.com/g/syzkaller-bugs/c/d5GC1V8S34k/m/6LTarP8mBAAJ which leads to a number of assorted confusing crashes: https://syzkaller.appspot.com/bug?extid=ce179bc99e64377c24bc Turns out we disable text ro protection with rodata=n. The comment says that's because it's slow with KASAN, but most likely what was slow is actually additional debug checking due to CONFIG_DEBUG_WX. If we don't enable CONFIG_DEBUG_WX (which we don't), rodata itself should be fine and desirable. My experiment with the latest kernel does not show any noticable slowdown without rodata=n: [ 11.985152][ T1] Freeing unused kernel image (initmem) memory: 3432K [ 11.986129][ T1] Write protecting the kernel read-only data: 147456k [ 11.990863][ T1] Freeing unused kernel image (text/rodata gap) memory: 2012K [ 11.992797][ T1] Freeing unused kernel image (rodata/data gap) memory: 1324K [ 11.993895][ T1] Run /sbin/init as init process [ 11.910396][ T1] Freeing unused kernel image (initmem) memory: 3432K [ 11.911277][ T1] Kernel memory protection disabled. [ 11.911984][ T1] Run /sbin/init as init process
* tools/create-gce-image.sh: mount the root filesystem read-writeRadoslav Gerganov2020-09-231-0/+1
| | | | | | | Add fstab entry to mount the root filesystem read-write after boot. This has been done with commit 873745 for create-image.sh. Maybe this hint is not necessary for GCE but it is required when running on other platforms (e.g. VMware).
* tools/create-gce-image.sh: support s390xAlexander Egorenkov2020-09-141-2/+7
| | | | Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
* all: mark auto-generated filesDmitry Vyukov2020-07-291-1/+1
| | | | | | | | | | Use the standard Go convention for Go files: https://golang.org/pkg/cmd/go/internal/generate Use github linguish for other files: https://github.com/github/linguist#generated-code Both are understood by github and should result in these files being collapsed in PRs by default.
* sys/linux: add descriptions for i915 driverZubin Mithra2020-07-171-0/+2
|
* tools: add custom udev rules to generated imagesRicardo Cañuelo2020-06-101-0/+2
| | | | | | | | Add a default udev rule file to the image creation process in create-gce-image.sh and create-image.sh. This change creates a default rule to make udev create a custom-named symlink for the specific vim2m device.
* executor: re-run make generateDmitry Vyukov2020-03-311-2/+1
|
* tools/create-gce-image.sh: enable sysctl.kernel.hung_task_all_cpu_backtrace=1Dmitry Vyukov2020-03-301-0/+1
| | | | | The format of this knob has changed again: https://groups.google.com/d/msg/syzkaller/EJP7uvY4O-c/XLrhrBqGAQAJ
* tools, dashboard: run make generateAndrey Konovalov2020-03-281-2/+2
|
* tools/create-gce-image.sh: Generate ppc64le pseries disk imagesAndrew Donnellan2019-05-031-7/+47
| | | | | | | | | | | | | Add support for generating ppc64le pseries disk images. This will create a disk image with a PowerPC PReP boot partition at the start, and install the IEEE1275/OpenFirmware version of GRUB. If we ever support the powernv platform in the future we're going to have to do something different here. Add a command line argument to specify architecture, defaulting to amd64. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
* all: fix code formattingDmitry Vyukov2018-10-161-1/+0
| | | | Reformat, remove debug leftovers, fix comment style.
* tools/create-gce-image.sh: create ext4 image without journallingDmitry Vyukov2018-10-151-1/+2
| | | | | | We don't need consistent image after reboot since we always reimage. We know of some use cases that don't use journalling, but don't know of any that use journalling.
* tools/create-gce-image.sh: mount securityfs and configfsDmitry Vyukov2018-09-261-0/+2
|
* tools/create-gce-image.sh: disable ftrace_dump_on_oopsDmitry Vyukov2018-09-101-1/+1
| | | | | | | We don't have anything useful there. But sometimes fuzzer somehow poppulates it with some nonsense, and then it all dumped in crashes. Disable it.
* tools/create-gce-image.sh: auto-detect block device typeDmitry Vyukov2018-09-071-4/+9
| | | | | | | Currently we choose block device to use (nbd/loop) based on SYZ_VM_TYPE. Strictly saying these things are orthogonal. losetup is broken on Ubuntu. qemu-nbd is broken on Debian. Try to auto-detect what will work based on uname.
* dashboard/config: re-enable selinuxDmitry Vyukov2018-09-051-1/+0
| | | | | | | Upstream "selinux: fix mounting of cgroup2 under older policies" commit fixes mounting of cgroup2 under wheezy selinux policy. So don't disable selinux on start. Create separate cmdline arguments that enable selinux and apparmor.
* tools/create-gce-image.sh: add default ext4 optionsDmitry Vyukov2018-09-031-1/+1
| | | | Set some realistic modern ext4 options when creating the image.
* pkg/build: move from pkg/kernelDmitry Vyukov2018-06-221-0/+113
Rename pkg/kernel to pkg/build and prepare for multi-OS support.