Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265886AbUFISKK (ORCPT ); Wed, 9 Jun 2004 14:10:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265887AbUFISJ7 (ORCPT ); Wed, 9 Jun 2004 14:09:59 -0400 Received: from mtvcafw.SGI.COM ([192.48.171.6]:33699 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S265886AbUFISJu (ORCPT ); Wed, 9 Jun 2004 14:09:50 -0400 Date: Wed, 9 Jun 2004 11:09:42 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: linux-kernel@vger.kernel.org cc: linux-ia64@vger.kernel.org Subject: Unaligned accesses in net/ipv4/netfilter/arp_tables.c:184 Message-ID: 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: 788 Lines: 17 The following code casts pointers to char to long in order to do a fast comparison. This causes alignment errors on IA64 and likely also on other platforms: /* Look for ifname matches; this should unroll nicely. */ for (i = 0, ret = 0; i < IFNAMSIZ/sizeof(unsigned long); i++) { ret |= (((const unsigned long *)indev)[i] ^ ((const unsigned long *)arpinfo->iniface)[i]) & ((const unsigned long *)arpinfo->iniface_mask)[i]; } iniface is a pointer to char. - 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/