diff options
| author | Billy Lau <billylau1@gmail.com> | 2017-01-26 13:19:22 +0000 |
|---|---|---|
| committer | Billy Lau <billylau1@gmail.com> | 2017-01-26 13:19:22 +0000 |
| commit | a0a4a8ed95f53d206394c9b432ab37eef55c013d (patch) | |
| tree | 0641c834a75001f72d0f55648e6e41c25307568e /executor/executor.cc | |
| parent | 72353dc4f60168cc69d156bc38cffd6c6070ff12 (diff) | |
adb: executor: Revert to adb reboot
Using `adb shell syz-executor reboot` to reboot devices has stopped
working with the recent Android update, probably due to the intro
of seccomp. I have reverted the device reboot logic to use `adb
shell reboot` although it can be flaky at times so that we can
continue to fuzz on devices, until a more reliable solution can be
sought out.
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 03999559a..165d2c7e2 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -133,11 +133,6 @@ uint64_t cover_dedup(thread_t* th, uint64_t n); int main(int argc, char** argv) { - if (argc == 2 && strcmp(argv[1], "reboot") == 0) { - reboot(LINUX_REBOOT_CMD_RESTART); - return 0; - } - prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); if (mmap(&input_data[0], kMaxInput, PROT_READ, MAP_PRIVATE | MAP_FIXED, kInFd, 0) != &input_data[0]) fail("mmap of input file failed"); |
