mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andi Kleen <ak@suse.de>, "R. J. Wysocki" <rjwysocki@sisk.pl>,
	linux-kernel@vger.kernel.org, discuss@x86-64.org
Subject: Re: [discuss] Re: Opteron bug
Date: Mon, 12 Jul 2004 14:57:38 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0407121450290.10440@chaos> (raw)
In-Reply-To: <40F2CB97.1070806@zytor.com>

On Mon, 12 Jul 2004, H. Peter Anvin wrote:

> Andi Kleen wrote:
> >
> > The kernel never uses backwards REP prefixes.
> >
>
> Not even for memmove()?
>
> 	-hpa
>

One can't assume that 'cld' is not required because a user can
execute 'std'. Such a user, calling a kernel function in its
context, could really make a mess by executing 'std' before.

You definitely need a 'cld' inside any copy_to/from_user code.
memmove(), can copy overlapping buffers. It does this by
copying backwards when necessary. If it uses ix86 string
primatives, it executes 'std' for the backwards repeat counts.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
            Note 96.31% of all statistics are fiction.



      reply	other threads:[~2004-07-12 18:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-19 20:29 R. J. Wysocki
2004-06-20 13:22 ` Andi Kleen
2004-06-20 11:47   ` R. J. Wysocki
2004-06-20 12:02     ` Jakub Jelinek
     [not found]       ` <200406210254.53124.vda@port.imtp.ilyichevsk.odessa.ua>
2004-06-21  5:29         ` Jakub Jelinek
2004-06-20 13:49     ` Andi Kleen
2004-07-12 17:34   ` [discuss] " H. Peter Anvin
2004-07-12 18:57     ` Richard B. Johnson [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=Pine.LNX.4.53.0407121450290.10440@chaos \
    --to=root@chaos.analogic.com \
    --cc=ak@suse.de \
    --cc=discuss@x86-64.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjwysocki@sisk.pl \
    /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®