From: Borislav Petkov <bp@alien8.de>
To: Ingo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@amacapital.net>, x86-ml <x86@kernel.org>,
lkml <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: Remove __end_entry_SYSENTER_compat?
Date: Wed, 12 Jul 2017 11:25:14 +0200 [thread overview]
Message-ID: <20170712092514.GA24119@nazgul.tnic> (raw)
In-Reply-To: <20170712084803.ar6v3fiks65v25lc@gmail.com>
On Wed, Jul 12, 2017 at 10:48:03AM +0200, Ingo Molnar wrote:
> Hm, I'd argue that the old code is much clearer: we need both the start and the
> end of a function and have the properly named symbols for that.
>
> That entry_SYSCALL_compat() happens to start just where
> __end_entry_SYSENTER_compat is an accident of placement.
Yeah, probably not worth the effort of actually making it less reliable
this way...
> Is it even true - doesn't ENTRY() imply an .align, in which case it might be that
> __end_entry_SYSENTER_compat != entry_SYSCALL_compat?
Yes, ENTRY does .p2align:
.globl __end_entry_SYSENTER_compat; __end_entry_SYSENTER_compat:
.type entry_SYSENTER_compat, @function ; .size entry_SYSENTER_compat, .-entry_SYSENTER_compat
# 184 "arch/x86/entry/entry_64_compat.S"
.globl entry_SYSCALL_compat ; .p2align 4, 0x90 ; entry_SYSCALL_compat:
^^^^^^
Pads to an alignment of 4 with NOPs.
> In fact that appears to be the case for my defconfig:
>
> ffffffff81942f90 T entry_SYSENTER_compat
> ffffffff81942feb T __end_entry_SYSENTER_compat
> ffffffff81942ff0 T entry_SYSCALL_compat
>
> So unless there's some disadvantage beyond having one more symbol, I'd favor the
> old approach.
Yeah, my only concern was getting rid of the global symbol but it
doesn't work in this case.
Thanks.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
prev parent reply other threads:[~2017-07-12 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-12 4:13 Borislav Petkov
2017-07-12 8:48 ` Ingo Molnar
2017-07-12 9:25 ` Borislav Petkov [this message]
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=20170712092514.GA24119@nazgul.tnic \
--to=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--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
all inboxes | Powered by JetHome®