From: Masami Hiramatsu <mhiramat@kernel.org>
To: Denys Vlasenko <vda.linux@googlemail.com>
Cc: Ingo Molnar <mingo@kernel.org>,
linux-kernel@vger.kernel.org, x86@kernel.org
Subject: Re: Doubled "opcode != 0x9a" check
Date: Thu, 27 Jul 2017 16:02:05 +0900 [thread overview]
Message-ID: <20170727160205.a20b1af3d5e88d493993dbf2@kernel.org> (raw)
In-Reply-To: <CAK1hOcN-GBnbqHCOwcdod58-ngc7zGBt-yMbgehwGbU0kRdVUg@mail.gmail.com>
On Wed, 26 Jul 2017 21:55:34 +0200
Denys Vlasenko <vda.linux@googlemail.com> wrote:
> commit bd0b90676c30fe640e7ead919b3e38846ac88ab7
> Author: Masami Hiramatsu <mhiramat@kernel.org>
> Date: Wed Mar 29 13:56:56 2017 +0900
>
> kprobes/x86: Fix kprobe-booster not to boost far call instructions
>
> Fix the kprobe-booster not to boost far call instruction,
> because a call may store the address in the single-step
> execution buffer to the stack, which should be modified
> after single stepping.
>
> Currently, this instruction will be filtered as not
> boostable in resume_execution(), so this is not a
> critical issue.
> ... case 0x70:
> return 0; /* can't boost conditional jump */
> + case 0x90:
> + return opcode != 0x9a; /* can't boost call far */
> case 0xc0:
>
>
> Masami. You missed the fact that later, there is this:
Oops, right. Hmm, it should be reverted.
Ingo, could you revert this commit?
Thank you!
>
> default:
> /* segment override prefixes are boostable */
> if (opcode == 0x26 || opcode == 0x36 || opcode == 0x3e)
> goto retry; /* prefixes */
> /* CS override prefix and call are not boostable */
> return (opcode != 0x2e && opcode != 0x9a);
> ^^^^^^^^^^^^^^^^
--
Masami Hiramatsu <mhiramat@kernel.org>
parent reply other threads:[~2017-07-27 7:02 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAK1hOcN-GBnbqHCOwcdod58-ngc7zGBt-yMbgehwGbU0kRdVUg@mail.gmail.com>]
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=20170727160205.a20b1af3d5e88d493993dbf2@kernel.org \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=vda.linux@googlemail.com \
--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®