diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-30 12:45:24 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-30 12:45:24 -0700 |
commit | c94bf137da809551f2ccdaec061576eb98cceb67 (patch) | |
tree | 523208c04a0bf253087b7c8aaeb207fe1033dde6 /pkg/sentry/platform/kvm | |
parent | d66aebb15a5804f84240dccac55cd56b1dde15e5 (diff) | |
parent | d7ea53769f4bfffdb836f53a0e0709d0607c2c4c (diff) |
Merge pull request #4564 from zhlhahaha:1981
PiperOrigin-RevId: 339921446
Diffstat (limited to 'pkg/sentry/platform/kvm')
-rw-r--r-- | pkg/sentry/platform/kvm/machine_arm64_unsafe.go | 2 |
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. |