From: Jes Sorensen <jes@sgi.com>
To: Dmitry Mishin <dim@openvz.org>
Cc: "David S. Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org,
netfilter-devel@lists.netfilter.org, rusty@rustcorp.com.au,
devel@openvz.org
Subject: Re: [NET][IA64] Unaligned access in sk_run_filter
Date: 20 Feb 2006 10:43:16 -0500 [thread overview]
Message-ID: <yq0u0auqbmz.fsf@jaguar.mkp.net> (raw)
In-Reply-To: <200602201828.29098.dim@openvz.org>
>>>>> "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
prev parent reply other threads:[~2006-02-20 15:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 15:28 Dmitry Mishin
2006-02-20 15:43 ` Jes Sorensen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yq0u0auqbmz.fsf@jaguar.mkp.net \
--to=jes@sgi.com \
--cc=davem@davemloft.net \
--cc=devel@openvz.org \
--cc=dim@openvz.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netfilter-devel@lists.netfilter.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®