diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2021-09-03 16:20:07 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-09-22 15:40:02 +0200 |
| commit | 1c202847db0380015a8920bfd21375c2d9f28ddb (patch) | |
| tree | 6693da3a936398a9ac6678842ac181c5f0e3e429 /executor/common_bsd.h | |
| parent | a7ce77be27d8e3728b97122a005bc5b23298cfc3 (diff) | |
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.
Diffstat (limited to 'executor/common_bsd.h')
| -rw-r--r-- | executor/common_bsd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h index d5030d482..332e68e5f 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -60,7 +60,7 @@ static int inject_fault(int nth) en.scope = FAULT_SCOPE_LWP; en.mode = 0; // FAULT_MODE_NTH_ONESHOT - en.nth = nth + 2; // FAULT_NTH_MIN + en.nth = nth + 1; // FAULT_NTH_MIN if (ioctl(fd, FAULT_IOC_ENABLE, &en) != 0) failmsg("FAULT_IOC_ENABLE failed", "nth=%d", nth); |
