Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932472AbbLNVYj (ORCPT ); Mon, 14 Dec 2015 16:24:39 -0500 Received: from mga01.intel.com ([192.55.52.88]:46851 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932075AbbLNVYg (ORCPT ); Mon, 14 Dec 2015 16:24:36 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,428,1444719600"; d="scan'208";a="617924544" Subject: Re: 4.4-rc5: ugly warn on: 5 W+X pages found To: Andy Lutomirski , Pavel Machek References: <20151115070022.GA15417@amd> <20151214080403.GA3708@amd> <20151214085803.GA10520@pd.tnic> <20151214090726.GA6472@amd> <20151214202627.GA15104@amd> Cc: 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: <566F3378.8070009@linux.intel.com> Date: Mon, 14 Dec 2015 13:24:08 -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: Content-Type: text/plain; charset=utf-8; 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: 620 Lines: 14 > 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 -- 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/