[CRIU] [PATCH 2/4] criu: arch, x86 -- Don't require alignment on compat frame
Cyrill Gorcunov
gorcunov at openvz.org
Tue Feb 14 02:26:33 PST 2017
In compat mode the fpu frame won't be aligned on 32 bit
due to kernel specifics.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
criu/arch/x86/sigframe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/arch/x86/sigframe.c b/criu/arch/x86/sigframe.c
index 7faed892aa7b..755439fcf15b 100644
--- a/criu/arch/x86/sigframe.c
+++ b/criu/arch/x86/sigframe.c
@@ -20,7 +20,7 @@ int sigreturn_prep_fpu_frame(struct rt_sigframe *sigframe,
if (sigframe->is_native && (addr % 64ul) == 0ul) {
sigframe->native.uc.uc_mcontext.fpstate = &fpu_state->xsave;
- } else if (!sigframe->is_native && (addr % 32ul) == 0ul) {
+ } else if (!sigframe->is_native) {
sigframe->compat.uc.uc_mcontext.fpstate = (uint32_t)addr;
} else {
pr_err("Unaligned address passed: %lx (native %d)\n",
--
2.7.4
More information about the CRIU
mailing list