Re: Fix asm constraint in put_user

From: David Mosberger-Tang <>
Date: 2005-11-22 09:38:18
On 11/21/05, Andreas Schwab <> wrote:

> There is nothing worth clobbering here.  The memory written to is
> completely separate to anything GCC knows about.  The old version didn't
> clobber either.

That's usually true, but I don't think it's always true.  Consider the
case where put_user() is used to write kernel memory (which happens in
the ia32 emulation layer, for example).  I agree it's probably
extremely unlikely for this to trigger a real problem (especially
considering that the kernel is compiled without strict aliasing) but
still, the safe thing to do would be to add a "memory" clobber if
there is no better alternative.

Mosberger Consulting LLC, voice/fax: 510-744-9372,
35706 Runckel Lane, Fremont, CA 94536
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Nov 22 09:39:43 2005

This archive was generated by hypermail 2.1.8 : 2005-11-22 09:39:50 EST