Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751237AbWCMOpR (ORCPT ); Mon, 13 Mar 2006 09:45:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751255AbWCMOpQ (ORCPT ); Mon, 13 Mar 2006 09:45:16 -0500 Received: from ns.suse.de ([195.135.220.2]:28137 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1751237AbWCMOpP (ORCPT ); Mon, 13 Mar 2006 09:45:15 -0500 Date: Mon, 13 Mar 2006 15:45:13 +0100 From: Olaf Hering To: linux-kernel@vger.kernel.org, Jaroslav Kysela Cc: netdev@vger.kernel.org Subject: kmalloc_node returns unaligned memory Message-ID: <20060313144513.GA9542@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-DOS: I got your 640K Real Mode Right Here Buddy! X-Homeland-Security: You are not supposed to read this line! You are a terrorist! User-Agent: Mutt und vi sind doch schneller als Notes (und GroupWise) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1006 Lines: 21 kmalloc_node returns unaligned pointers on powerpc, when CONFIG_DEBUG_SLAB is enabled. This makes iptables very unhappy. It checks the alignment in net/ipv6/netfilter/ip6_tables.c:check_entry_size_and_hooks(). __alignof__(struct ip6t_entry) returns 8. But returned pointers from xt_alloc_table_info() are unaligned: Linux version 2.6.16-rc6-git1-default-iptables-slab (olaf@pomegranate) (gcc version 4.1.0 (SUSE Linux)) #2 Mon Mar 13 15:19:45 CET 2006 ... xt_alloc_table_info(250) modprobe(1687):c0,j4294904016 newinfo/size cfc82498/0x278 xt_alloc_table_info(265) modprobe(1687):c0,j4294904038 entries[0] c449611c ip_nat_init: can't setup rules. sys_init_module(1960) modprobe(1687):c0,j4294904071 iptable_nat returned -22 ... Any ideas how to fix that? - 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/