Unaligned kernel access in crypto/sha1.c

From: H. J. Lu <hjl_at_lucon.org>
Date: 2004-09-17 09:16:38
I got

Sep 16 15:45:32 gnu-2 kernel: kernel unaligned access to
0xa0000002001c008e, ip=0xa0000001002135e0
Sep 16 15:45:37 gnu-2 kernel: kernel unaligned access to
0xa0000002002d005e, ip=0xa0000001002135e0
Sep 16 15:45:37 gnu-2 kernel: kernel unaligned access to
0xa0000002002d006e, ip=0xa0000001002135e0
Sep 16 15:45:37 gnu-2 kernel: kernel unaligned access to
0xa0000002002d007e, ip=0xa0000001002135e0
Sep 16 15:45:37 gnu-2 kernel: kernel unaligned access to
0xa0000002002d008e, ip=0xa0000001002135e0

on ia64 from sha1_transform in crypto/sha1.c:

/* Hash a single 512-bit block. This is the core of the algorithm. */
static void sha1_transform(u32 *state, const u8 *in)
{
        u32 a, b, c, d, e;
        u32 block32[16];
                                                                                
        /* convert/copy data to workspace */
        for (a = 0; a < sizeof(block32)/sizeof(u32); a++)
          block32[a] = be32_to_cpu (((const u32 *)in)[a]);
				     ^^^^^^^^^^^^^^^^
				 This may not be aligned for u32 on ia64.


H.J.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Sep 16 19:47:59 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:30 EST