diff options
author | Ruidong Cao <crdfrank@gmail.com> | 2019-02-26 11:47:42 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-26 11:48:49 -0800 |
commit | a2b794b30dd952793f4d99a9423cef7efdc7843f (patch) | |
tree | 46fec12a3642a4dabb98275291fc6dceed7786b8 /pkg | |
parent | 23fe059761a470d7724b462ad8ead09356ec21b7 (diff) |
FPE_INTOVF (integer overflow) should be 2 refer to Linux.
Signed-off-by: Ruidong Cao <crdfrank@gmail.com>
Change-Id: I03f8ab25cf29257b31f145cf43304525a93f3300
PiperOrigin-RevId: 235763203
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/sentry/platform/kvm/machine_amd64.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/platform/kvm/machine_amd64.go b/pkg/sentry/platform/kvm/machine_amd64.go index 5ad805b8b..ccfe837b5 100644 --- a/pkg/sentry/platform/kvm/machine_amd64.go +++ b/pkg/sentry/platform/kvm/machine_amd64.go @@ -290,7 +290,7 @@ func (c *vCPU) SwitchToUser(switchOpts ring0.SwitchOpts, info *arch.SignalInfo) case ring0.Overflow: *info = arch.SignalInfo{ Signo: int32(syscall.SIGFPE), - Code: 1, // FPE_INTOVF (integer overflow). + Code: 2, // FPE_INTOVF (integer overflow). } info.SetAddr(switchOpts.Registers.Rip) // Include address. return usermem.AccessType{}, platform.ErrContextSignal |