From 1c202847db0380015a8920bfd21375c2d9f28ddb Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 3 Sep 2021 16:20:07 +0000 Subject: all: refactor fault injection into call props Now that call properties mechanism is implemented, we can refactor fault injection. Unfortunately, it is impossible to remove all traces of the previous apprach. In reprolist and while performing syz-ci jobs, syzkaller still needs to parse the old format. Remove the old prog options-based approach whenever possible and replace it with the use of call properties. --- prog/decodeexec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'prog/decodeexec.go') diff --git a/prog/decodeexec.go b/prog/decodeexec.go index ff1ab5727..f803d5b4c 100644 --- a/prog/decodeexec.go +++ b/prog/decodeexec.go @@ -115,13 +115,14 @@ func (dec *execDecoder) parse() { case execInstrEOF: dec.commitCall() return + case execInstrSetProps: + dec.readCallProps(&dec.call.Props) default: dec.commitCall() if instr >= uint64(len(dec.target.Syscalls)) { dec.setErr(fmt.Errorf("bad syscall %v", instr)) return } - dec.readCallProps(&dec.call.Props) dec.call.Meta = dec.target.Syscalls[instr] dec.call.Index = dec.read() for i := dec.read(); i > 0; i-- { -- cgit mrf-deployment