Re: Kernel 2.6.20.4 Unaligned address

From: Patrick McHardy
Date: Sat Apr 14 2007 - 13:18:33 EST


David Miller wrote:
> From: "doctor raid" <drraid@xxxxxxxxx>
> Date: Tue, 10 Apr 2007 16:02:01 -0700
>
>
>>[1] kernel errors reporting unaligned access of memory
>>[2] The following two lines iterate twice a piece, about once every 2 minutes:
>>
>> Kernel unaligned access at TPC[79c344] arpt_do_table+0x3cc/0x640
>> Kernel unaligned access at TPC[79c33c] arpt_do_table+0x3c4/0x640
>
>
> This patch below should fix this problem.
>
> Patrick I'm going to push this to Linus. Even if it doesn't
> fix this person's problem, either both the input device loop
> and the output device loop should use the "long" casting
> optimization or both should not :-)


Looks good, thanks Dave. On 64 bit both interfaces are unaligned
within struct arpt_arp:

char iniface[16]; /* 94 16 */
char outiface[16]; /* 110 16 */
-
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/