[9/8] compel/x86: Align xsave_struct_ia32 by 16

Submitted by Dmitry Safonov on Jan. 31, 2018, 5:55 p.m.

Details

Message ID 20180131175527.29736-1-dima@arista.com
State New
Series "x86/ptrace: Workaround Skylake bug"
Headers show

Commit Message

Dmitry Safonov Jan. 31, 2018, 5:55 p.m.
As ::i387 should be aligned by 16 (as per struct definition):
In file included from compel/include/uapi/compel/asm/sigframe.h:7,
                 from compel/plugins/std/infect.c:13:
compel/include/uapi/compel/asm/fpu.h:89:1: error: alignment 1 of 'struct xsave_struct_ia32' is less than 16 [-Werror=packed-not-aligned]
 } __packed;
 ^

Signed-off-by: Dmitry Safonov <dima@arista.com>
---
 compel/arch/x86/src/lib/include/uapi/asm/fpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/compel/arch/x86/src/lib/include/uapi/asm/fpu.h b/compel/arch/x86/src/lib/include/uapi/asm/fpu.h
index f60112b9ba50..6aa757c10f0d 100644
--- a/compel/arch/x86/src/lib/include/uapi/asm/fpu.h
+++ b/compel/arch/x86/src/lib/include/uapi/asm/fpu.h
@@ -86,7 +86,7 @@  struct xsave_struct_ia32 {
 	struct i387_fxsave_struct	i387;
 	struct xsave_hdr_struct		xsave_hdr;
 	struct ymmh_struct		ymmh;
-} __packed;
+} __aligned(16) __packed;
 
 typedef struct {
 	/*