Re: kernel unaligned accesses on 2.6.29.

From: Robin Holt
Date: Tue Mar 24 2009 - 21:21:22 EST


On Tue, Mar 24, 2009 at 08:14:18PM -0500, Robin Holt wrote:
> Had a few minutes to look around.
...
> This one is:
> u64 *p = (u64 *)&nsm->sm_priv.data;
> ...
> *p = (unsigned long)nsm;
...
> > e3d0: 0a 60 28 1c 8d 39 [MMI] cmp4.eq p12,p13=10,r14;;
> > e3d6: 00 a8 95 30 23 00 st8 [r37]=r53
>

Well, that was easy. This is the store part of
*p++ = timespec_to_ns(&ts);

Again, comes down to &nsm->sm_priv.data not being aligned.

Robin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/