diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-12-16 16:48:13 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-12-16 16:48:13 +0100 |
| commit | d3c088db4a54da1c40ceeb976e1702b8bcf2f777 (patch) | |
| tree | 2ac455a63bb9dd8c604876c473e30bfcf1d51802 | |
| parent | 22e64dbcb73e196c737c551a103de0fea94136d1 (diff) | |
| parent | 6b2d1faa493a84ed230d7e255dbc7cfc609106dd (diff) | |
Merge pull request #7 from daviddrysdale/doc-update
Tweaks for current syzkaller
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | fuzzer/fuzzer.go | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -56,6 +56,8 @@ In particular: $SSHID -p $PORT root@localhost` without being prompted for a password (where `SSHID` is the SSH identification file and `PORT` is the port that are specified in the `manager` configuration file). + - The kernel exports coverage information via a debugfs entry, so the VM image needs to mount + the debugfs filesystem at `/sys/kernel/debug`. TODO: Describe how to support other types of VM other than QEMU. diff --git a/fuzzer/fuzzer.go b/fuzzer/fuzzer.go index f71b2d90f..f85a59a64 100644 --- a/fuzzer/fuzzer.go +++ b/fuzzer/fuzzer.go @@ -518,8 +518,10 @@ func (g *Gate) Leave(idx int) { func kmemleakInit() { fd, err := syscall.Open("/sys/kernel/debug/kmemleak", syscall.O_RDWR, 0) if err != nil { - if !*flagLeak { + if *flagLeak { panic(err) + } else { + return } } defer syscall.Close(fd) |
