diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-12-17 12:45:03 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-12-22 10:11:08 +0100 |
| commit | 9867c87359492308a169e6da6e007082e299ac3a (patch) | |
| tree | ae304695ecce329ef882711f2be7e42fdc5c457e /sys/linux/init.go | |
| parent | 8482d3c1035095c89d112c75bfcc2e4095b486bf (diff) | |
prog: move image extraction from sys/linux
Now that images are not linux-specific,
we can move all image-related logic directly into prog package
and significantly simplify the logic.
Diffstat (limited to 'sys/linux/init.go')
| -rw-r--r-- | sys/linux/init.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go index 7d537075c..faf4a98af 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -54,7 +54,6 @@ 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, @@ -245,8 +244,6 @@ func (arch *arch) neutralize(c *prog.Call, fixStructure bool) error { case "sched_setattr": // Enabling a SCHED_FIFO or a SCHED_RR policy may lead to false positive stall-related crashes. neutralizeSchedAttr(c.Args[1]) - case "syz_mount_image": - return arch.fixUpSyzMountImage(c, fixStructure) } switch c.Meta.Name { |
