From: Ben Hutchings <ben@decadent.org.uk>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: the arch/x86 maintainers <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH] x86: Make x32 syscall support conditional on a kernel parameter
Date: Thu, 06 Nov 2014 16:25:13 +0000 [thread overview]
Message-ID: <1415291113.3398.63.camel@decadent.org.uk> (raw)
In-Reply-To: <CAMuHMdVn7ERrXZBbzLZxWFnUhZdXectLMDoVKucte5Zr-U3Mow@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
On Thu, 2014-11-06 at 09:02 +0100, Geert Uytterhoeven wrote:
> On Thu, Nov 6, 2014 at 4:53 AM, Ben Hutchings <ben@decadent.org.uk> wrote:
[...]
> > diff --git a/arch/x86/kernel/syscall_64.c b/arch/x86/kernel/syscall_64.c
> > index 4ac730b..7a6e66f 100644
> > --- a/arch/x86/kernel/syscall_64.c
> > +++ b/arch/x86/kernel/syscall_64.c
>
> > +static int __init x32_enable(void)
> > +{
> > + BUG_ON(system_call_fast_compare_end - system_call_fast_compare != 10);
> > + BUG_ON(system_call_trace_compare_end - system_call_trace_compare != 10);
> > + BUG_ON(system_call_mask_compare_end - system_call_mask_compare != 10);
>
> BUILD_BUG_ON
No, these can't be evaluated at compile time because the symbols are
external.
> > +
> > + if (x32_enabled) {
> > + text_poke_early(system_call_fast_compare,
> > + system_call_mask_compare, 10);
> > + text_poke_early(system_call_trace_compare,
> > + system_call_mask_compare, 10);
> > +#ifdef CONFIG_X86_X32_DISABLED
> > + pr_info("Enabled x32 syscalls\n");
> > +#endif
>
> I don't think it hurts to print this unconditionally.
[...]
It seemed like it would be unnecessary noise in an x32-only system.
Ben.
--
Ben Hutchings
Beware of programmers who carry screwdrivers. - Leonard Brandwein
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2014-11-06 16:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 3:53 [RFC][PATCH] x86: Make x32 syscall support conditional on a kernel parameter Ben Hutchings
2014-11-06 8:02 ` Geert Uytterhoeven
2014-11-06 16:25 ` Ben Hutchings [this message]
2014-11-06 22:46 ` Andy Lutomirski
2014-12-07 22:41 ` Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415291113.3398.63.camel@decadent.org.uk \
--to=ben@decadent.org.uk \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox