Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933524AbbLONab (ORCPT ); Tue, 15 Dec 2015 08:30:31 -0500 Received: from mga02.intel.com ([134.134.136.20]:36993 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933465AbbLONa2 (ORCPT ); Tue, 15 Dec 2015 08:30:28 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,432,1444719600"; d="scan'208";a="618318854" Subject: Re: 4.4-rc5: ugly warn on: 5 W+X pages found To: Pavel Machek References: <20151115070022.GA15417@amd> <20151214080403.GA3708@amd> <20151214085803.GA10520@pd.tnic> <20151214090726.GA6472@amd> <20151214202627.GA15104@amd> <566F3378.8070009@linux.intel.com> <20151215075656.GA3734@amd> Cc: Andy Lutomirski , Linus Torvalds , Borislav Petkov , kernel list , Stephen Smalley , Brian Gerst , Denys Vlasenko , Peter Anvin , Mike Galbraith , Peter Zijlstra , Thomas Gleixner From: Arjan van de Ven Message-ID: <567014E8.2090809@linux.intel.com> Date: Tue, 15 Dec 2015 05:26:00 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151215075656.GA3734@amd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 892 Lines: 22 On 12/14/2015 11:56 PM, Pavel Machek wrote: > On Mon 2015-12-14 13:24:08, Arjan van de Ven wrote: >> >>> That's weird. The only API to do that seems to be manually setting >>> kmap_prot to _PAGE_KERNEL_EXEC, and nothing does that. (Why is >>> kmap_prot a variable on x86 at all? It has exactly one writer, and >>> that's the code that initializes it in the first place. Shouldn't we >>> #define kmap_prot _PAGE_KERNEL? >> >> iirc it changes based on runtime detection of NX capability > > Huh. Is it possible that core duo is so old that it has no NX? really stupid question I guess, but is PAE on ? (64 bit pagetables are required for NX) -- 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/