From a2b794b30dd952793f4d99a9423cef7efdc7843f Mon Sep 17 00:00:00 2001 From: Ruidong Cao Date: Tue, 26 Feb 2019 11:47:42 -0800 Subject: FPE_INTOVF (integer overflow) should be 2 refer to Linux. Signed-off-by: Ruidong Cao Change-Id: I03f8ab25cf29257b31f145cf43304525a93f3300 PiperOrigin-RevId: 235763203 --- pkg/sentry/platform/kvm/machine_amd64.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry/platform/kvm') 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 -- cgit v1.2.3