From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750943AbWGZLlf (ORCPT ); Wed, 26 Jul 2006 07:41:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751366AbWGZLlf (ORCPT ); Wed, 26 Jul 2006 07:41:35 -0400 Received: from omx1-ext.sgi.com ([192.48.179.11]:34191 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S1750943AbWGZLle (ORCPT ); Wed, 26 Jul 2006 07:41:34 -0400 Date: Wed, 26 Jul 2006 04:41:04 -0700 (PDT) From: Christoph Lameter To: Pekka J Enberg cc: Heiko Carstens , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [patch] slab: always follow arch requested alignments In-Reply-To: Message-ID: References: <20060722110601.GA9572@osiris.boeblingen.de.ibm.com> <20060722162607.GA10550@osiris.ibm.com> <84144f020607260422t668c4d8dldfcdedfe3713b73e@mail.gmail.com> 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 On Wed, 26 Jul 2006, Pekka J Enberg wrote: > On Wed, 26 Jul 2006, Christoph Lameter wrote: > > Well that is a bit far reaching. What is broken is that SLAB_RED_ZONE and > > SLAB_STORE_USER ignore any given alignment. If you want to fix that then > > you need to modify how both debugging methods work. > > Not sure I understand what you mean. Isn't it enough that we disable > debugging if architecture or caller mandated alignment is greater than > BYTES_PER_WORD? If you disable them then we are fine. I think the main "bug" is that we create the caches with ARCH_KMALLOC_MINALIGN in kmem_cache_init but allow debug options on them. It seemss that we need to be able to disable debugging from kmem_cache_init.