From: Bin Meng <bmeng.cn@gmail.com>
To: Eduardo Habkost <ehabkost@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
Richard Henderson <richard.henderson@linaro.org>
Cc: Bin Meng <bin.meng@windriver.com>
Subject: Re: [PATCH] target/i386: seg_helper: Correct segement selector nullification in the RET/IRET helper
Date: Thu, 12 Nov 2020 14:33:15 +0800 [thread overview]
Message-ID: <CAEUhbmV9pNg0d6hE_copdMQyb2=3HyrSo--q26MeJT_c_yAM-w@mail.gmail.com> (raw)
In-Reply-To: <CAEUhbmVs0SdqA_KFK4xiuCqHcKFke5sNBBrwjLTXbyCbew-nxg@mail.gmail.com>
On Mon, Nov 2, 2020 at 4:20 PM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Thu, Oct 22, 2020 at 6:16 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> >
> > From: Bin Meng <bin.meng@windriver.com>
> >
> > Per the SDM, when returning to outer privilege level, for segment
> > registers (ES, FS, GS, and DS) if the check fails, the segment
> > selector becomes null, but QEMU clears the base/limit/flags as well
> > as nullifying the segment selector, which should be a spec violation.
> >
> > Real hardware seems to be compliant with the spec, at least on one
> > Coffee Lake board I tested.
> >
> > Signed-off-by: Bin Meng <bin.meng@windriver.com>
> > ---
> >
> > target/i386/seg_helper.c | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
>
> Ping?
Ping?
next prev parent reply other threads:[~2020-11-12 6:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-22 10:16 [PATCH] target/i386: seg_helper: Correct segement selector nullification in the RET/IRET helper Bin Meng
2020-11-02 8:20 ` Bin Meng
2020-11-12 6:33 ` Bin Meng [this message]
2020-11-12 11:48 ` Paolo Bonzini
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='CAEUhbmV9pNg0d6hE_copdMQyb2=3HyrSo--q26MeJT_c_yAM-w@mail.gmail.com' \
--to=bmeng.cn@gmail.com \
--cc=bin.meng@windriver.com \
--cc=ehabkost@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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;
as well as URLs for NNTP newsgroup(s).