-
Notifications
You must be signed in to change notification settings - Fork 1.4k
vm/adb: Don't check for ret code on adb shell reboot #6599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
The only "successful" return code besides 0 would be 255, right? FWIW in case of a non-zero exit code, the error would be syzkaller/pkg/osutil/osutil.go Lines 80 to 84 in 5757a3d
|
For the moment yes but I don't know if we can rely on this on the long run. If someone decides to change the adb shell ret code from -1 to something else then it will fail again.
Right, thanks for pointing out. |
My concern here is that it could just silently stop working / start failing with those other error codes and we will not even notice it. |
242c9d1 to
db5845a
Compare
Understood, I updated the pull requested to check for those error codes. |
db5845a to
0d750ac
Compare
|
Thanks! |
Prevent the fuzzer from entering in an infinte loop of device reboots when the adb shell reboot command returns with an error code. Fixes: google#6598 Signed-off-by: Sebastian Ene <sebastianene@google.com>
0d750ac to
7bc5fea
Compare
sure, fixed this and pushed another update |
Prevent the fuzzer from entering in an infinte loop of device reboots when the adb shell reboot command returns with an error code.
Fixes: #6598
Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md