summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-30 12:45:24 -0700
committergVisor bot <gvisor-bot@google.com>2020-10-30 12:45:24 -0700
commitc94bf137da809551f2ccdaec061576eb98cceb67 (patch)
tree523208c04a0bf253087b7c8aaeb207fe1033dde6
parentd66aebb15a5804f84240dccac55cd56b1dde15e5 (diff)
parentd7ea53769f4bfffdb836f53a0e0709d0607c2c4c (diff)
Merge pull request #4564 from zhlhahaha:1981
PiperOrigin-RevId: 339921446
-rw-r--r--pkg/sentry/platform/kvm/machine_arm64_unsafe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/platform/kvm/machine_arm64_unsafe.go b/pkg/sentry/platform/kvm/machine_arm64_unsafe.go
index 1344ed3c9..c68d96c6f 100644
--- a/pkg/sentry/platform/kvm/machine_arm64_unsafe.go
+++ b/pkg/sentry/platform/kvm/machine_arm64_unsafe.go
@@ -221,7 +221,7 @@ func (c *vCPU) SwitchToUser(switchOpts ring0.SwitchOpts, info *arch.SignalInfo)
if regs := switchOpts.Registers; !ring0.IsCanonical(regs.Pc) {
return nonCanonical(regs.Pc, int32(syscall.SIGSEGV), info)
} else if !ring0.IsCanonical(regs.Sp) {
- return nonCanonical(regs.Sp, int32(syscall.SIGBUS), info)
+ return nonCanonical(regs.Sp, int32(syscall.SIGSEGV), info)
}
// Assign PCIDs.