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

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 14 14:30:09 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 d86e0a8112ef..76e116db1164 100644
--- a/compel/arch/x86/src/lib/infect.c
+++ b/compel/arch/x86/src/lib/infect.c
@@ -115,7 +115,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