On Wed, 21 Feb 2007, Davide Libenzi wrote:
> 
> I don't think we can safely assume that we can access a potentially 
> 4-bytes aligned u64 on 64 bit architectures that require compat:
> 
>       put_user(ev.data, &events->data);

Oh, we can. "put_user()" and "get_user()" already have to work on totally 
unaligned data. If some architecture has problems with that, they have 
bigger issues, methinks.

We can't trust user pointers, and that includes not trusting them being 
aligned. 

                Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to