On Wed, 21 Feb 2007, Davide Libenzi wrote:
> > 
> > We can't trust user pointers, and that includes not trusting them being 
> > aligned. 
> 
> Don't we get EFAULT in case of exception (access or alignment) in there?
> For "dealing with", here we'd need them to do the correct thing 
> (split-load?) in case of mis-aligned access.

I sure hope no architecture does that. EFAULT should be for *unmapped* 
accesses, not from users just using unaligned pointers. 

I would argue that it is a bug if some architecture thinks that 
"get_user()" and "put_user()" don't do unaligned accesses. 

(Not to say that it might not be something some odd architecture *does*, 
but I'd be disappointed if somebody did)

                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