From cde43bc6bc3f8d3434d99f4e313c95f6b0ac53ec Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 11 Apr 2018 11:23:30 +0200 Subject: [PATCH] syz-fuzzer: add a TODO for fault injection --- syz-fuzzer/fuzzer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syz-fuzzer/fuzzer.go b/syz-fuzzer/fuzzer.go index 0a2b19d0..44558800 100644 --- a/syz-fuzzer/fuzzer.go +++ b/syz-fuzzer/fuzzer.go @@ -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)