[CRIU] [PATCH 3/4] compel: arch, x86 -- Don't require compat frame alignment

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 14 02:26:34 PST 2017


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 compel/arch/x86/src/lib/infect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compel/arch/x86/src/lib/infect.c b/compel/arch/x86/src/lib/infect.c
index 418c43414d32..92bbb528dc78 100644
--- a/compel/arch/x86/src/lib/infect.c
+++ b/compel/arch/x86/src/lib/infect.c
@@ -117,7 +117,7 @@ int sigreturn_prep_fpu_frame_plain(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