summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/sigcontext.h
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@amacapital.net>2015-03-12 13:57:52 -0700
committerIngo Molnar <mingo@kernel.org>2015-03-17 09:25:26 +0100
commit9a036b93a344235b7899401d04e97c34f3a2554c (patch)
tree62a66cf3356c6fdd4835868d6fae5816a1c12cb3 /arch/x86/include/asm/sigcontext.h
parentc6f2062935c8fcb31235799eaee8bcd5b649936b (diff)
downloadlinux-0-day-9a036b93a344235b7899401d04e97c34f3a2554c.tar.gz
linux-0-day-9a036b93a344235b7899401d04e97c34f3a2554c.tar.xz
x86/signal/64: Remove 'fs' and 'gs' from sigcontext
As far as I can tell, these fields have been set to zero on save and ignored on restore since Linux was imported into git. Rename them '__pad1' and '__pad2' to avoid confusion. This may also allow us to recycle them some day. This also adds a comment clarifying the history of those fields. I'm intentionally avoiding calling either of them '__pad0': the field formerly known as '__pad0' is now 'ss'. Signed-off-by: Andy Lutomirski <luto@amacapital.net> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Borislav Petkov <bp@alien8.de> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/844f8490e938780c03355be4c9b69eb4c494bf4e.1426193719.git.luto@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/sigcontext.h')
-rw-r--r--arch/x86/include/asm/sigcontext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/sigcontext.h b/arch/x86/include/asm/sigcontext.h
index f910cdcb71fde..6fe6b182c9981 100644
--- a/arch/x86/include/asm/sigcontext.h
+++ b/arch/x86/include/asm/sigcontext.h
@@ -57,8 +57,8 @@ struct sigcontext {
unsigned long ip;
unsigned long flags;
unsigned short cs;
- unsigned short gs;
- unsigned short fs;
+ unsigned short __pad2; /* Was called gs, but was always zero. */
+ unsigned short __pad1; /* Was called fs, but was always zero. */
unsigned short ss;
unsigned long err;
unsigned long trapno;