aboutsummaryrefslogtreecommitdiffstats
path: root/vm/adb
diff options
context:
space:
mode:
authorBilly Lau <billylau1@gmail.com>2018-05-15 15:21:06 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-05-16 10:33:18 +0200
commit75b2448a26db1eeb6e27168b88304b42b1a230ae (patch)
tree3d4bd294a8956177f504ff2d50573ea4a3d517bf /vm/adb
parent68ce85f1a91e45f87bf444a63bed8c1faebfad16 (diff)
vm/adb: disable kptr_restrict for Android
echo 0 to kptr_restrict in /proc/sys/kernel to unhide kernel pointers when fuzzing for more reliable crash dedup and easier debugging when analyzing crash.
Diffstat (limited to 'vm/adb')
-rw-r--r--vm/adb/adb.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/adb/adb.go b/vm/adb/adb.go
index 1c1271b34..586bab9f1 100644
--- a/vm/adb/adb.go
+++ b/vm/adb/adb.go
@@ -112,6 +112,7 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) {
if _, err := inst.adb("shell", "rm -Rf /data/syzkaller*"); err != nil {
return nil, err
}
+ inst.adb("shell", "echo 0 > /proc/sys/kernel/kptr_restrict")
closeInst = nil
return inst, nil
}