aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/init_images_test.go
Commit message (Collapse)AuthorAgeFilesLines
* prog: move image extraction from sys/linuxDmitry Vyukov2022-12-221-114/+0
| | | | | | Now that images are not linux-specific, we can move all image-related logic directly into prog package and significantly simplify the logic.
* executor: don't pass uncompressed zlib sizeDmitry Vyukov2022-11-231-3/+3
| | | | | | This will allow us to mutate the image size. Fixes #3527
* sys/linux/init_alg_test.go: change package name to linux_test (#3540)Taras Madan2022-11-221-1/+1
| | | It is an external test. It uses only exported "linux" package functions.
* sys/linux: update asset storage for new `syz_mount_image`Hrutvik Kanabar2022-11-211-51/+11
| | | | | | | | | | | | Asset storage is now significantly simpler: we just take the Base64-encoded, compressed image and output it to a file. There is a slight overhead in that we decompress from the `zlib` format and re-compress to the `gzip` format. This commit removes most of the logic from `init_images.go`, and therefore most of the tests from `init_images_test.go`. We could instead keep this logic around and use it to adapt old-style `syz_mount_image` calls in existing corpuses to match the new format.
* sys: control structural changes during neutralizationAleksandr Nogikh2022-09-291-3/+5
| | | | | | | | | | | Ideally, we should properly support the already existing fix flag to distinguish between fixing and checking, but for now at least let it control whether structural changes are to be made. Otherwise we get into trouble while hint-mutating syz_mount_image calls, because we iterate over all call arguments and (possibly) remove them at the same time. It leads to `bad group arg size %v, should be <= %v for %#v type %#v` errors.
* sys/linux: extract raw images from syz_mount_imageAleksandr Nogikh2022-09-271-6/+120
| | | | | To simplify the extraction code, let's make segments non-overlapping even before execution.
* executor: move syz_mount_image's sanity checks to syz-fuzzerAleksandr Nogikh2022-09-271-0/+38
It will simplify the C code and let us extract the raw images in a more convenient way.