Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1173338imu; Fri, 7 Dec 2018 15:58:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/VC5dKTFVLEOdSTR+VzXft78IdAb0RDsu1NE2EDTswOTKj3ZLebKNfs5iHivcpKehBEYsbE X-Received: by 2002:a62:4e49:: with SMTP id c70mr4115459pfb.167.1544227107913; Fri, 07 Dec 2018 15:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544227107; cv=none; d=google.com; s=arc-20160816; b=HskNL030w4XvlpYebjM4blKF1gIwNVI4y21rVP5wFzOP19iS1PxZ7WhtFC/ERr4lDX gwHhH/ZYazZCVnufiuMK1XkaF3jcqioggjsYQjjdeEWETDKeKEeOd4arfCWSJ03AIMQR 5WCu1mBHbWEsOh9mzqtj1HI6mmfZFdaLMwGqAIw1V+gMPYgGv4qvXZ7HoVNe6gQRY5wZ DaV9D8A080vj4ZKuUYjnuyV33M86FqFelzCxYJKw+GaWCi/nVvk8xLYoQmKECsmMK0LM sIPdMbHToc6JleUWpgqxfCnUDIog/7H6ExjgRkmkmx4a8fA7WDt0EdP9idbuYvX+Ygfr 9YNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nLe5UeyGurhEqYfK1f0Se8TatwlMIOywnlLcnp2P5pA=; b=ZDo2/pv7cR3zL3j8N/Jj3GA801YpCJC2JB/wfI5oLIIXt5FeXxqS3SyymqiOzQ47mg 286AeurzyxgDP9THFpeosIbQoI9zzATwCIVwRCNV//sRVviGqhJpm4J5VovTusVqR8hP nmadJka6ImNFkyVnGZnYjIKaGoL7IbpbCtsVyW9KcaiMJCgdzYYLI7u1MKcrj3e3rODL 09QWZACBbGLWYiufpAU9UbCFhIlT976WFgsVzRDS9g9Xd7OSg0JSm9pROIandO765Fxb gRwb9+bmPFvEgF2onPeIBCj81pnZnmbD5xwDPT6dduydLAGKrfVdshaCqyDVliXD/kPa 2rbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sfuYKD9D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v32si4238706plb.369.2018.12.07.15.58.10; Fri, 07 Dec 2018 15:58:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sfuYKD9D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbeLGX5Z (ORCPT + 99 others); Fri, 7 Dec 2018 18:57:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:59522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbeLGX5Y (ORCPT ); Fri, 7 Dec 2018 18:57:24 -0500 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B080A21479 for ; Fri, 7 Dec 2018 23:57:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544227044; bh=47TLBbbgzo45ICeLUzvQqospcO4xTJkR4BwLHJbKjho=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sfuYKD9DxeGcyNQFiiG4Jr8zcEhK85j/tP/c8MCrZvCwQZhZ+rf3usvcnOr0U1I4d mnlpTXTLHNmbC/YnN2dnI5m/w6NNKdY0y69Ka6GAjH10lQgHNbmavAAnkOfPisspvW 2xH3FUcqOpQuBll/y7qzJYZn0f2VxVtL9qif4jYk= Received: by mail-wm1-f45.google.com with SMTP id y185so2345958wmd.1 for ; Fri, 07 Dec 2018 15:57:23 -0800 (PST) X-Gm-Message-State: AA+aEWYVNs5h6pQqLOQ2ZXCslNnqbWmlkfHw0CCFMSg+NUMj2LYVd7Lm Agyj50DB6KSeL9EA2VJ5LZGnVMSQ0bu7HEGbY+Ndlw== X-Received: by 2002:a1c:b1d5:: with SMTP id a204mr4048526wmf.32.1544227042104; Fri, 07 Dec 2018 15:57:22 -0800 (PST) MIME-Version: 1.0 References: <20181207184423.1962-1-sean.j.christopherson@intel.com> <20181207195223.23968-1-sean.j.christopherson@intel.com> <20181207220646.GH10404@linux.intel.com> In-Reply-To: From: Andy Lutomirski Date: Fri, 7 Dec 2018 15:57:10 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] x86/fault: Decode and print #PF oops in human readable form To: Linus Torvalds Cc: "Christopherson, Sean J" , Dave Hansen , Andrew Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , X86 ML , "H. Peter Anvin" , LKML , Rik van Riel , Yu-cheng Yu , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 7, 2018 at 2:14 PM Linus Torvalds wrote: > > On Fri, Dec 7, 2018 at 2:06 PM Sean Christopherson > wrote: > > > > Looking at it again, my own personal preference would be to swap the order > > of the #PF lines. > > Yeah, probably. > > Also: > > > [ 160.246820] BUG: unable to handle kernel paging request at ffffbeef00000000 > > [ 160.247517] #PF: supervisor-privileged instruction fetch from kernel code > > [ 160.248085] #PF: error_code(0x0010) - not-present page > > With this form, I think the "kernel" in the first line is actually > misleading. Yes, it's a #PF for the kernel, but then the "kernel" on > the second line talks about what mode we were in when it happened, so > we have two different meanings of "kernel" on two adjacent lines. I'm okay with this variant. I have a slight preference for: #PF: supervisor-privileged instruction fetch from kernel code #PF error_code: 0x0010 [READ] Which is what we'd get from Sean's patch plus my patch here: https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?h=x86/mm&id=ccfb1941f90153818c07fb1a7dc22121a970d252 Sean, what do you think? > So maybe that "BUG: unable to handle kernel paging request" message > should be something like > > "BUG: unable to handle page fault for address ffffbeef00000000" > > instead? Does that make sense to people? Yes please.