Re: AUDIT: copy_from_user is a deathtrap.

Pavel Machek (pavel@suse.cz)
Wed, 22 May 2002 00:21:39 +0200


Hi!

> > Pavel makes a reasonable point that copy_*_user may elect
> > to copy the data in something other than strictly ascending
> > user virtual addresses. In which case it's not possible to return
> > a sane "how much was copied" number.
>
> I don't agree that that is true.
>
> Do you have _any_ reasonable implementation taht would do that_

I believe I seen some strange memcpy for PPro (or something that
obscure) that done out-of-order accesses to trigger prefetch logic. I
can't find it any more, so I can't be sure...
Pavel

-- 
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/