From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754652AbcILQtT (ORCPT ); Mon, 12 Sep 2016 12:49:19 -0400 Received: from mga01.intel.com ([192.55.52.88]:49528 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754366AbcILQtQ (ORCPT ); Mon, 12 Sep 2016 12:49:16 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,323,1470726000"; d="scan'208";a="7611718" Subject: Re: [PATCH 1/1] x86: do not skip PKRU register if debug registers are not used To: Nicolas Iooss , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org References: <20160910183045.4618-1-nicolas.iooss_linux@m4x.org> Cc: linux-kernel@vger.kernel.org From: Dave Hansen Message-ID: <57D6DC82.6060601@linux.intel.com> Date: Mon, 12 Sep 2016 09:49:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20160910183045.4618-1-nicolas.iooss_linux@m4x.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2016 11:30 AM, Nicolas Iooss wrote: > When commit c0b17b5bd4b7 ("x86/mm/pkeys: Dump PKRU with other kernel > registers") made __show_regs() show PKRU, this register was only printed > if the debug registers were not in their default state (there is an > if(...) return; before). > > Change the logic to report PKRU value even when debug registers are in > their default state. Ahh, thanks for finding this. This looks like the correct fix to me. Acked-by: Dave Hansen