From: Ingo Molnar <mingo@kernel.org>
To: Dave Hansen <dave@sr71.net>
Cc: linux-kernel@vger.kernel.org, dave.hansen@linux.intel.com,
x86@kernel.org, luto@kernel.org, fenghua.yu@intel.com,
yu-cheng.yu@intel.com
Subject: Re: [PATCH] x86, fpu: fix 32-bit signal frame handling
Date: Fri, 27 Nov 2015 11:06:27 +0100 [thread overview]
Message-ID: <20151127100627.GA32475@gmail.com> (raw)
In-Reply-To: <564517CA.7090600@sr71.net>
* Dave Hansen <dave@sr71.net> wrote:
> On 11/10/2015 04:23 PM, Dave Hansen wrote:
> > For MPX, this leads to the most permissive state and means we
> > silently lose bounds violations. I think this would also mean
> > that we could lose *ANY* FPU/SSE/AVX state. I'm not sure why
> > no one has spotted this bug.
>
> FWIW, I looked at this a little more today.
>
> We lose all extended state for our "extended xfeatures", also known as
> state component numbers >=2 (AVX, MPX, AVX-512, PKEYs)... But we retain
> the state for FP/SSE state. So we lose the top half of the AVX
> registers (the bottom half are SSE state).
>
> I also did a little objdump'ing and grep'ing in a 32-bit distro.
> There's no sign of actual use of the ymm registers.
>
> Basically, it appears nobody has taken a 64-bit Sandybridge or later
> CPU, put a 32-bit distro on it that had a >=3.7 kernel on it and tried
> to use AVX instructions. Or, if they did, they got random corruption
> and gave up before actually diagnosing the problem. :)
Weird: putting a 32-bit distro on such a fine piece of 64-bit hardware is pure
masochism - and such masochism would also imply the willingness to track down
random corruptions! ;-)
Thanks,
Ingo
prev parent reply other threads:[~2015-11-27 10:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 0:23 [PATCH] x86, fpu: fix 32-bit signal frame handling Dave Hansen
2015-11-12 13:28 ` [tip:x86/urgent] x86/fpu: Fix " tip-bot for Dave Hansen
2015-11-12 22:50 ` [PATCH] x86, fpu: fix " Dave Hansen
2015-11-27 10:06 ` Ingo Molnar [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=20151127100627.GA32475@gmail.com \
--to=mingo@kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=dave@sr71.net \
--cc=fenghua.yu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=x86@kernel.org \
--cc=yu-cheng.yu@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.