mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
kvm: don't call panic from signal handlers
throw has to be used in such cases. PiperOrigin-RevId: 473087177
This commit is contained in:
@@ -380,13 +380,13 @@ func (m *machine) mapPhysical(physical, length uintptr, phyRegions []physicalReg
|
||||
_, physicalStart, length, pr := calculateBluepillFault(physical, phyRegions)
|
||||
if pr == nil {
|
||||
// Should never happen.
|
||||
panic("mapPhysical on unknown physical address")
|
||||
throw("mapPhysical on unknown physical address")
|
||||
}
|
||||
|
||||
// Is this already mapped? Check the usedSlots.
|
||||
if !m.hasSlot(physicalStart) {
|
||||
if _, ok := handleBluepillFault(m, physical, phyRegions); !ok {
|
||||
panic("handleBluepillFault failed")
|
||||
throw("handleBluepillFault failed")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user