From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755928AbZBJOO0 (ORCPT ); Tue, 10 Feb 2009 09:14:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754740AbZBJOOP (ORCPT ); Tue, 10 Feb 2009 09:14:15 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:43929 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752271AbZBJOOO (ORCPT ); Tue, 10 Feb 2009 09:14:14 -0500 Date: Tue, 10 Feb 2009 15:14:05 +0100 From: Ingo Molnar To: Pengfei Hu , Vegard Nossum Cc: akpm@linux-foundation.org, torvalds@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: Using module private memory to simulate microkernel's memory protection Message-ID: <20090210141405.GA16147@elte.hu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Pengfei Hu wrote: > diff -Nurp old/arch/x86/Kconfig.debug new/arch/x86/Kconfig.debug > --- old/arch/x86/Kconfig.debug 2008-10-10 06:13:53.000000000 +0800 > +++ new/arch/x86/Kconfig.debug 2008-12-07 19:19:40.000000000 +0800 > @@ -67,6 +67,16 @@ config DEBUG_PAGEALLOC > This results in a large slowdown, but helps to find certain types > of memory corruptions. > > +config DEBUG_KM_PROTECT > + bool "Debug kernel memory protect" > + depends on DEBUG_KERNEL > + select DEBUG_PAGEALLOC > + select SLUB > + help > + Change page table's present flag to prevent other module's accidental > + access. This results in a large slowdown and waste more memory, but > + helps to find certain types of memory corruptions. Hm, are you aware of the kmemcheck project? Ingo From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with ESMTP id C72DA6B0047 for ; Tue, 10 Feb 2009 09:14:13 -0500 (EST) Date: Tue, 10 Feb 2009 15:14:05 +0100 From: Ingo Molnar Subject: Re: Using module private memory to simulate microkernel's memory protection Message-ID: <20090210141405.GA16147@elte.hu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org To: Pengfei Hu , Vegard Nossum Cc: akpm@linux-foundation.org, torvalds@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: * Pengfei Hu wrote: > diff -Nurp old/arch/x86/Kconfig.debug new/arch/x86/Kconfig.debug > --- old/arch/x86/Kconfig.debug 2008-10-10 06:13:53.000000000 +0800 > +++ new/arch/x86/Kconfig.debug 2008-12-07 19:19:40.000000000 +0800 > @@ -67,6 +67,16 @@ config DEBUG_PAGEALLOC > This results in a large slowdown, but helps to find certain types > of memory corruptions. > > +config DEBUG_KM_PROTECT > + bool "Debug kernel memory protect" > + depends on DEBUG_KERNEL > + select DEBUG_PAGEALLOC > + select SLUB > + help > + Change page table's present flag to prevent other module's accidental > + access. This results in a large slowdown and waste more memory, but > + helps to find certain types of memory corruptions. Hm, are you aware of the kmemcheck project? Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org