From: Denys Vlasenko <dvlasenk@redhat.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>, "H. Peter Anvin" <hpa@zytor.com>,
Andy Lutomirski <luto@amacapital.net>,
Kees Cook <keescook@chromium.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns
Date: Fri, 18 Sep 2015 16:53:19 +0200 [thread overview]
Message-ID: <55FC255F.4070202@redhat.com> (raw)
In-Reply-To: <20150918073357.GA2691@gmail.com>
On 09/18/2015 09:33 AM, Ingo Molnar wrote:
>
> * Denys Vlasenko <dvlasenk@redhat.com> wrote:
>
>> Run-tested by booting with "no387 nofxsr" and running test programs:
>>
>> # ./test_FCMOV
>> [RUN] Testing fcmovCC instructions
>> [OK] fcmovCC
>> # ./test_FCOMI
>> [RUN] Testing f[u]comi[p] instructions
>> [OK] f[u]comi[p]
>>
>> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
>> CC: Ingo Molnar <mingo@kernel.org>
>> CC: Borislav Petkov <bp@alien8.de>
>> CC: "H. Peter Anvin" <hpa@zytor.com>
>> CC: Andy Lutomirski <luto@amacapital.net>
>> CC: Kees Cook <keescook@chromium.org>
>> CC: x86@kernel.org
>> CC: linux-kernel@vger.kernel.org
>> ---
>>
>> The patches did not change since last submission.
>> The difference, now they are run-tested.
>>
>> arch/x86/math-emu/fpu_aux.c | 70 ++++++++++++++++++++++
>> arch/x86/math-emu/fpu_entry.c | 49 +++++++++------
>> arch/x86/math-emu/fpu_proto.h | 12 ++++
>> arch/x86/math-emu/reg_compare.c | 128 ++++++++++++++++++++++++++++++++++++++++
>> 4 files changed, 241 insertions(+), 18 deletions(-)
>
> I wanted to apply this patch, but noticed the following problem: why are two
> instruction families added in a single patch?
They were introduced at the same time in the CPU evolution
(when CMOV feature was added).
The idea is that there may be programs which assume that "cmov"
in /proc/cpuinfo means both these insns are safe to use,
which is true for all real CPUs.
> Note that regressing math-emu for real is a real concern here: we start
> interpreting real instructions. If anything breaks, and the failure isn't right at
> the instruction that is buggy (but some time later), it would be nice which new
> instruction causes the problem and make it all bisectable ...
>
> So we should be finegrained and only add a single (family) of instructions in a
> single patch. Please split this patch into two
I'm sending a new patchset.
next prev parent reply other threads:[~2015-09-18 14:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 19:48 [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Denys Vlasenko
2015-09-16 19:48 ` [PATCH 2/2] x86/math-emu: Remove define layer for undocumented opcodes Denys Vlasenko
2015-09-18 7:36 ` Ingo Molnar
2015-09-16 19:51 ` [PATCH 1/2] x86/math-emu: Add support for FCMOVcc and F[U]COMI[P] insns Denys Vlasenko
2015-09-17 7:22 ` Ingo Molnar
2015-09-18 7:33 ` Ingo Molnar
2015-09-18 14:53 ` Denys Vlasenko [this message]
2015-09-20 8:13 ` Ingo Molnar
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=55FC255F.4070202@redhat.com \
--to=dvlasenk@redhat.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mingo@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