Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030289AbWBTPnU (ORCPT ); Mon, 20 Feb 2006 10:43:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964940AbWBTPnU (ORCPT ); Mon, 20 Feb 2006 10:43:20 -0500 Received: from jaguar.mkp.net ([192.139.46.146]:36561 "EHLO jaguar.mkp.net") by vger.kernel.org with ESMTP id S964938AbWBTPnS (ORCPT ); Mon, 20 Feb 2006 10:43:18 -0500 To: Dmitry Mishin Cc: "David S. Miller" , 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 References: <200602201828.29098.dim@openvz.org> From: Jes Sorensen Date: 20 Feb 2006 10:43:16 -0500 In-Reply-To: <200602201828.29098.dim@openvz.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 729 Lines: 17 >>>>> "Dmitry" == Dmitry Mishin 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 Cheers, Jes - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/