Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758232AbZJTCZq (ORCPT ); Mon, 19 Oct 2009 22:25:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932437AbZJTCZp (ORCPT ); Mon, 19 Oct 2009 22:25:45 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59140 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757355AbZJTCZp (ORCPT ); Mon, 19 Oct 2009 22:25:45 -0400 Message-ID: <4ADD1E03.4070200@zytor.com> Date: Tue, 20 Oct 2009 11:18:43 +0900 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Kees Cook CC: Arjan van de Ven , Thomas Gleixner , Ingo Molnar , x86@kernel.org, Pekka Enberg , Jan Beulich , Vegard Nossum , Yinghai Lu , Jeremy Fitzhardinge , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] [x86] detect and report lack of NX protections References: <20091019184234.GN5394@outflux.net> <20091020084335.4e8d97e9@infradead.org> <20091020020426.GS5394@outflux.net> In-Reply-To: <20091020020426.GS5394@outflux.net> Content-Type: text/plain; charset=ISO-8859-1; 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: 1001 Lines: 21 On 10/20/2009 11:04 AM, Kees Cook wrote: > It is possible for x86_64 systems to lack the NX bit (see check_efer()) > either due to the hardware lacking support or the BIOS having turned > off the CPU capability, so NX status should be reported. Additionally, > anyone booting NX-capable CPUs in 32bit mode without PAE will lack NX > functionality, so this change provides feedback for that case as well. > > v2: use "Alert:" instead of "Warning:" to avoid confusiong with WARN_ON() > They're both wrong. Both imply that the user needs to take an action, which is wrong because the kernel is working as intended. If you need to use any kind of alert word, it should be something like "Notice:", and it should be KERN_NOTICE or even KERN_INFO. -hpa -- 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/