From 2b420c9686b7c95216d491a97fcd5158acb810f2 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 15 Sep 2022 13:36:15 +0000 Subject: sys/linux: extract raw images from syz_mount_image To simplify the extraction code, let's make segments non-overlapping even before execution. --- sys/linux/init.go | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/linux/init.go') diff --git a/sys/linux/init.go b/sys/linux/init.go index 9080cbd7c..09b70f092 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -54,6 +54,7 @@ func InitTarget(target *prog.Target) { target.MakeDataMmap = targets.MakePosixMmap(target, true, true) target.Neutralize = arch.neutralize + target.ExtractMountedImage = arch.extractSyzMountImage target.SpecialTypes = map[string]func(g *prog.Gen, typ prog.Type, dir prog.Dir, old prog.Arg) ( prog.Arg, []*prog.Call){ "timespec": arch.generateTimespec, -- cgit mrf-deployment