Skip to content

Commit

Permalink
syz-fuzzer: add a TODO for fault injection
Browse files Browse the repository at this point in the history
  • Loading branch information
dvyukov committed Apr 11, 2018
1 parent a9b12a9 commit cde43bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syz-fuzzer/fuzzer.go
Expand Up @@ -173,6 +173,10 @@ func main() {
ct := target.BuildChoiceTable(r.Prios, calls)

// This requires "fault-inject: support systematic fault injection" kernel commit.
// TODO(dvykov): also need to check presence of /sys/kernel/debug/failslab/ignore-gfp-wait
// and /sys/kernel/debug/fail_futex/ignore-private, they can be missing if
// CONFIG_FAULT_INJECTION_DEBUG_FS is not enabled.
// Also need to move this somewhere else (to linux-specific part).
faultInjectionEnabled := false
if fd, err := syscall.Open("/proc/self/fail-nth", syscall.O_RDWR, 0); err == nil {
syscall.Close(fd)
Expand Down

0 comments on commit cde43bc

Please sign in to comment.