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.
This commit is contained in:
Billy Lau 2018-05-15 15:21:06 -07:00 committed by Dmitry Vyukov
parent 68ce85f1a9
commit 75b2448a26

View File

@ -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
}