On Wed, 21 Feb 2007, Linus Torvalds wrote: > > > 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.
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. - Davide - 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
