compel: arch, x86 -- Don't require compat frame alignment

Acked-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Cyrill Gorcunov 2017-02-15 01:30:09 +03:00 committed by Andrei Vagin
parent 9f6edce06c
commit 88014eb029

View file

@ -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",