All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>,
	"H. Peter Anvin" <hpa-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org,
	"H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
Subject: Re: [RFC UNTESTED PATCH] eal_common_cpuflags: Fix %rbx corruption, and simplify the code
Date: Thu, 20 Mar 2014 18:02:52 +0100	[thread overview]
Message-ID: <2288041.gdk3FRcxLX@xps13> (raw)
In-Reply-To: <20140320163921.GC7721-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>

Hi,

20/03/2014 12:39, Neil Horman :
> On Thu, Mar 20, 2014 at 08:53:50AM -0700, H. Peter Anvin wrote:
> > Neil Horman reported that on x86-64 the upper half of %rbx would get
> > clobbered when the code was compiled PIC or PIE, because the
> > i386-specific code to preserve %ebx was incorrectly compiled.
> > 
> > However, the code is really way more complex than it needs to be.  For
> > one thing, the CPUID instruction only needs %eax (leaf) and %ecx
> > (subleaf) as parameters, and since we are testing for bits, we might
> > as well list the bits explicitly.  Furthermore, we can use an array
> > rather than doing a switch statement inside a structure.
> > 
> > Reported-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
> > Signed-off-by: H. Peter Anvin <hpa-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
> 
> Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>

This is a RFC UNTESTED patch.
So should I understand with this acknowledgement that you have tested it?
As a shared library? in 32-bit mode?

-- 
Thomas

  parent reply	other threads:[~2014-03-20 17:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1395330830-1310-1-git-send-email-hpa@linux.intel.com>
     [not found] ` <1395330830-1310-1-git-send-email-hpa-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-03-20 16:39   ` [RFC UNTESTED PATCH] eal_common_cpuflags: Fix %rbx corruption, and simplify the code Neil Horman
     [not found]     ` <20140320163921.GC7721-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-03-20 17:02       ` Thomas Monjalon [this message]
2014-03-20 18:04       ` Neil Horman
     [not found]         ` <20140320180443.GE7721-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-03-20 18:59           ` Neil Horman
2014-03-21 14:49       ` [PATCH v2] " Neil Horman
     [not found]         ` <1395413340-27392-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2014-03-21 15:03           ` H. Peter Anvin
     [not found]             ` <532C54C6.2060202-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-03-21 17:48               ` Neil Horman
     [not found]                 ` <20140321174839.GB21998-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-03-24 11:18                   ` Thomas Monjalon
2014-03-24 17:44       ` [PATCH v3] " Neil Horman
     [not found]         ` <1395683088-19687-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2014-03-24 18:09           ` H. Peter Anvin
     [not found]             ` <533074F0.3060204-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-03-24 19:52               ` Neil Horman
     [not found]                 ` <20140324195206.GG19368-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-03-24 20:47                   ` H. Peter Anvin
     [not found]                     ` <533099FB.5030702-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-03-25 10:41                       ` Neil Horman
2014-03-25 17:03       ` [PATCH v4] " Neil Horman
     [not found]         ` <1395767000-28709-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2014-03-25 17:06           ` Chris Wright
2014-03-25 17:37           ` H. Peter Anvin
2014-03-25 19:52       ` [PATCH v5] " Neil Horman
     [not found]         ` <1395777179-4345-1-git-send-email-nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2014-03-25 20:51           ` H. Peter Anvin
     [not found]             ` <5331EC38.2070901-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-04-02 11:16               ` Neil Horman
     [not found]                 ` <20140402111643.GB6974-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org>
2014-04-02 11:53                   ` Thomas Monjalon
2014-04-02 12:42               ` Thomas Monjalon
2014-03-20 16:44 [RFC UNTESTED PATCH] " H. Peter Anvin
     [not found] ` <1395333868-2808-1-git-send-email-hpa-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2014-03-20 16:55   ` Neil Horman
2014-03-20 17:03   ` H. Peter Anvin
     [not found]     ` <532B1F79.1050308-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2014-03-24 16:06       ` Neil Horman
     [not found]         ` <20140324160647.GF19368-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2014-03-24 16:11           ` H. Peter Anvin

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=2288041.gdk3FRcxLX@xps13 \
    --to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=hpa-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
    --cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
    --cc=nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.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 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.