Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753725AbZGLJYu (ORCPT ); Sun, 12 Jul 2009 05:24:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752089AbZGLJYl (ORCPT ); Sun, 12 Jul 2009 05:24:41 -0400 Received: from one.firstfloor.org ([213.235.205.2]:58664 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058AbZGLJYl (ORCPT ); Sun, 12 Jul 2009 05:24:41 -0400 To: Rusty Russell Cc: Arjan van de Ven , Ingo Molnar , Siarhei Liakh , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, James Morris , Andrew Morton , Andi Kleen , Thomas Gleixner , "H. Peter Anvin" , linux-cris-kernel@axis.com Subject: Re: [PATCH v5] RO/NX protection for loadable kernel modules From: Andi Kleen References: <817ecb6f0907081610p6d60341cudbee42685eac1347@mail.gmail.com> <200907111821.47769.rusty@rustcorp.com.au> <20090711084958.69ff9196@infradead.org> <200907121410.39874.rusty@rustcorp.com.au> Date: Sun, 12 Jul 2009 11:24:37 +0200 In-Reply-To: <200907121410.39874.rusty@rustcorp.com.au> (Rusty Russell's message of "Sun, 12 Jul 2009 14:10:39 +0930") Message-ID: <87skh29ru2.fsf@basil.nowhere.org> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 801 Lines: 25 Rusty Russell writes: > > (I like the idea of trying kmalloc and falling back, simply because it reduces > TLB pressure, I implemented this for 32bit in 2.4, but I always had second thoughts if that was really reducing TLB pressure. x86 CPUs have separated TLBs for 2MB and 4K and they all have much more 4K entries. So it might actually be worse to use the 2MB TLBs for this. > but that's probably best done after unification). Trying kmalloc doesn't work on x86-64 -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/