Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 29 Mar 2001 01:11:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 29 Mar 2001 01:11:22 -0500 Received: from saturn.cs.uml.edu ([129.63.8.2]:3589 "EHLO saturn.cs.uml.edu") by vger.kernel.org with ESMTP id ; Thu, 29 Mar 2001 01:11:07 -0500 From: "Albert D. Cahalan" Message-Id: <200103290610.f2T6A7s282810@saturn.cs.uml.edu> Subject: Re: [patch] pae-2.4.3-C3 To: mingo@elte.hu Date: Thu, 29 Mar 2001 01:10:07 -0500 (EST) Cc: linux-kernel@vger.kernel.org (Linux Kernel List), linux-mm@kvack.org In-Reply-To: from "Ingo Molnar" at Mar 28, 2001 11:57:52 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Ingo Molnar writes: > the attached pae-2.4.3-C3 patch fixes the PAE code to work with SLAB > FORCED_DEBUG (which enables redzoning) too. > > the problem is that redzoning is enabled unconditionally, and SLAB has no > information about how crutial alignment is in the case of any particular > SLAB cache. The CPU generates a general protection fault if in PAE mode a > non-16-byte aligned pgd is loaded into %cr3. How about just fixing the debug code to align things? Sure it wastes a bit of memory, but debug code is like that. Sane alignment might be: largest power-of-two factor of the size, or 4 bytes, which ever is larger. (adjust "4" per-arch as needed) For an SMP config, set a minimum alignment equal to the cache line size. - 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/