aboutsummaryrefslogtreecommitdiffstats
path: root/prog/mutation.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-01-08 17:20:32 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-01-09 20:28:10 +0100
commitbbd4840872f70e3342308c6965ab196ed2606af1 (patch)
tree519ebfa1fbd6cafadd2efd1038e0c8f869ff37eb /prog/mutation.go
parentc377a6514d9a4858e818e6d4637870bab2da6370 (diff)
sys: extend kvm support
Add new pseudo syscall syz_kvm_setup_cpu that setups VCPU into interesting states for execution. KVM is too difficult to setup otherwise. Lots of improvements possible, but this is a starting point.
Diffstat (limited to 'prog/mutation.go')
-rw-r--r--prog/mutation.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/prog/mutation.go b/prog/mutation.go
index 7b5330b87..9a48bcf98 100644
--- a/prog/mutation.go
+++ b/prog/mutation.go
@@ -102,6 +102,8 @@ func (p *Prog) Mutate(rs rand.Source, ncalls int, ct *ChoiceTable, corpus []*Pro
}
case sys.BufferFilename:
arg.Data = []byte(r.filename(s))
+ case sys.BufferText:
+ arg.Data = r.mutateText(a.Text, arg.Data)
default:
panic("unknown buffer kind")
}