[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <21759.6343.498011.499541@quad.stoffel.home>
Date: Tue, 10 Mar 2015 12:16:07 -0400
From: "John Stoffel" <john@...ffel.org>
To: Andy Lutomirski <luto@...capital.net>
Cc: Ingo Molnar <mingo@...nel.org>, Andi Kleen <andi@...stfloor.org>,
"H. Peter Anvin" <hpa@...or.com>,
Al Viro <viro@...iv.linux.org.uk>, x86@...nel.org,
linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH v2 2/2] x86_64,signal: Remove 'fs' and 'gs' from sigcontext
>>>>> "Andy" == Andy Lutomirski <luto@...capital.net> writes:
Andy> As far as I can tell, these fields have been set to zero on save and
Andy> ignored on restore since Linux was imported into git. Rename them
Andy> '__pad1' and '__pad2' to avoid confusion and to allow them to be
Andy> recycled some day.
Andy> I'm intentionally avoiding calling either of them __pad0: the field
Andy> formerly known as __pad0 is now ss.
Andy> Signed-off-by: Andy Lutomirski <luto@...capital.net>
Andy> ---
Andy> arch/x86/include/asm/sigcontext.h | 4 ++--
Andy> arch/x86/include/uapi/asm/sigcontext.h | 4 ++--
Andy> arch/x86/kernel/signal.c | 4 ++--
Andy> 3 files changed, 6 insertions(+), 6 deletions(-)
Andy> diff --git a/arch/x86/include/asm/sigcontext.h b/arch/x86/include/asm/sigcontext.h
Andy> index f910cdcb71fd..5f0ef11719e1 100644
Andy> --- a/arch/x86/include/asm/sigcontext.h
Andy> +++ b/arch/x86/include/asm/sigcontext.h
Andy> @@ -57,8 +57,8 @@ struct sigcontext {
Andy> unsigned long ip;
Andy> unsigned long flags;
Andy> unsigned short cs;
Andy> - unsigned short gs;
Andy> - unsigned short fs;
Andy> + unsigned short __pad2; /* Was called gs, but was always zero. */
Andy> + unsigned short __pad1; /* Was called gs, but was always zero. */
Shouldn't this comment read:
/* Was called fs, but was always zero. */
for the second one?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists