mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-20 03:21:26 +00:00
syz-fuzzer: add a TODO for fault injection
This commit is contained in:
parent
a9b12a986c
commit
cde43bc6bc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user