Re: [NET][IA64] Unaligned access in sk_run_filter [message #1717 is a reply to message #1708] |
Mon, 20 February 2006 15:43  |
Jes Sorensen
Messages: 5 Registered: February 2006
|
Junior Member |
|
|
>>>>> "Dmitry" == Dmitry Mishin <dim@openvz.org> writes:
Dmitry> Hello, We have an issue on ia64 box. It is easy triggerable
Dmitry> 'kernel unaligned access' in sk_run_filter:
Dmitry> ptr = load_pointer(skb, k, 4, &tmp);
Dmitry> if (ptr != NULL) {
Dmitry> A = ntohl(*(u32 *)ptr); << here
Change the above line to something like this:
A = ntohl(get_unaligned((u32*)ptr));
And add an #include <asm/unaligned.h>
Cheers,
Jes
|
|
|