mirror of
https://github.com/reactos/syzkaller.git
synced 2024-10-07 17:13:26 +00:00
vm/isolated: fix hang when target_reboot is not set
* updated the contributor list * Fixes #1750, syz-manager hangs with "target_reboot:" false in isolated VM mode If in the isolated VM mode, "target_reboot": false option is set in the syz-manager's configuration, it hangs forever. syz-manager essentially keeps on waiting for the VM to reboot, while a reboot is never triggered due to target_reboot option being set to false. The fix is to perform the waitRebootAndSSH() check only when target_reboot is set to true. File(s) changed: vm/isolated/isolated.go: Move the waitRebootAndSSH() check inside the correct block
This commit is contained in:
parent
c61086ab68
commit
203d1b0208
@ -57,3 +57,4 @@ Ethercflow
|
||||
Christoph Paasch
|
||||
Collabora
|
||||
André Almeida
|
||||
Dipanjan Das
|
||||
|
@ -274,11 +274,11 @@ func (inst *instance) repair() error {
|
||||
} else {
|
||||
log.Logf(2, "isolated: ssh succeeded, trying to reboot by ssh")
|
||||
inst.ssh("reboot") // reboot will return an error, ignore it
|
||||
if err := inst.waitRebootAndSSH(5*60, 30*time.Minute); err != nil {
|
||||
return fmt.Errorf("waitRebootAndSSH failed: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
if err := inst.waitRebootAndSSH(5*60, 30*time.Minute); err != nil {
|
||||
return fmt.Errorf("waitRebootAndSSH failed: %v", err)
|
||||
}
|
||||
if inst.cfg.StartupScript != "" {
|
||||
log.Logf(2, "isolated: executing startup_script")
|
||||
// Execute the contents of the StartupScript on the DUT.
|
||||
|
Loading…
Reference in New Issue
Block a user