Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1789405ybc; Wed, 20 Nov 2019 04:13:18 -0800 (PST) X-Google-Smtp-Source: APXvYqyERuhazLG40+b5NVxLKE+ynTeIpu6iCOgaTaHMTln5j/x+RUG7Lqhs4FSE5a3a2bEsuvue X-Received: by 2002:a17:906:1d01:: with SMTP id n1mr4905504ejh.95.1574251998563; Wed, 20 Nov 2019 04:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574251998; cv=none; d=google.com; s=arc-20160816; b=TqtGApW7c5sQv3IM4+gAq7xuwXSXaicOpq0Zw3kOiDZXSwwG5j8Q5cHvTpqoLEaCMX P0NrEiELGBT7GpK3HlUDMdwn+L07q7OkRuBMS0eSPbjbF1LGeIxUCUm6Dy87Kvgv7cA5 X2Lf7hGgM/fRhdpbRiY3LHMkER8aOslwJnOKooQcBBKXsiecbPbFEfrw4mAXd4zWKU6Q gny+1EzY4IqqxC5TShkoU6nnG+hJejFm3EjfYTyTVS4c4I97XqVaxc1e1nfYuPp1wazl 7u04aclx0dfWnj4ko2d+1x1YMgjwdSLJv0Vyp0q1CSKh+4uTkQHowhOuaHmaAgNRbKNp MXjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x9xVJ7mXWw8oZuqrstfEkI3veCueqnyo7bS5uNfNe1c=; b=uGZffQ/FUMsysvPlE5sfGJGKQlIxghSqWpunBLji7qBI8J7w7TweIm/XuAeIBz0bK0 75QY1INKYIJm5ZCbdeJjw038cj/MIZmCW1Qqw35YOm1tFFximHKYdySlM63SOjOpaK28 cz7K+HGtusos0DLYQsDkig0wSFDHXiOMIAv4DXwBqNTNJ4UlURaQa3gXosoT+NZ/3pAB xbAou7/UIx/0LL4TY3a5pKJjZvWwa881vhJdTx+lu5xh9+mfUaBUOKiTcJgT/0yvm3qa BeLcJ3mJxrIHPF0jMPHDIpdmWrYBfH9wr3LmWoWPby8wJ8kuzuFGIgpTCs7lJVwWt7NF MmSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=eXkRJGZL; 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=fail (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 rv3si15902110ejb.249.2019.11.20.04.12.53; Wed, 20 Nov 2019 04:13:18 -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=fail header.i=@gmail.com header.s=20161025 header.b=eXkRJGZL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729336AbfKTLlo (ORCPT + 99 others); Wed, 20 Nov 2019 06:41:44 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:32814 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728495AbfKTLlo (ORCPT ); Wed, 20 Nov 2019 06:41:44 -0500 Received: by mail-wm1-f67.google.com with SMTP id t26so961787wmi.0 for ; Wed, 20 Nov 2019 03:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=x9xVJ7mXWw8oZuqrstfEkI3veCueqnyo7bS5uNfNe1c=; b=eXkRJGZLZ6D4XKijtgh5kgmQXmomYEzldhHOXjpAShGyutxPONvJiJC4EZGctWpzSj 5ssGLcJxTVEw9mrmWAB1F//yLDm8n3sOdxC0/Hc7BSCW2BejLTxW2kcak2TBQiisTnrV Mzi2keltM1sJcXNTmSz674CvfJRWRJzTugVBfDfJgcm3/atSKA0j6NyHgzWqIQjmZKa8 Ci6i4m/BLT1ZPUFHRKmhfBejleTr8n8W3Mb6O1G4ztzDgy07Gdgs328NOjMm/+d29nCA Df2iPdhnyYCUmYKpY2UXTyclgjNBCqeVu7DgkdGFtkfE7HLwXd9jYPYaegDu6s14q8p0 TI9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=x9xVJ7mXWw8oZuqrstfEkI3veCueqnyo7bS5uNfNe1c=; b=kY0uLUd5y+Lpvzuz/sEznO/6qZ93oqWnT6zyQFxFf85ELQ6+8QZmX3MuHx1i9v8fFB azFmB0wANn1Y2ehJoHOSkfX+hcc4w69cfd+KCsVtG8TGrJy9CR6bfFmk4UvEL77LnwLd fvOTfejMH978oMd0/lhNXPwQCVySpWeVNrCHkdcxPpORIrVid/RokT1ZhQqX+w1nawPj JP7h3ZArvW3m7J/2j3C4imBpp6LiG/V02VJLxd24X3fy2r+5aXDDZSfHyD89LPfdThRg S5v0/fpoOX7+N2nRvRuUsG0MMXkrKmwxUmQtolqL6hizja6bopnVeU0os8wKaZG3Pqby FQ+g== X-Gm-Message-State: APjAAAXTF65x4g3bj3H6VfQ9yTcvJ67rN8e8iUxe+KnXWYJPAWkA4QbP 8C5KOtZGAuqCfJ1iBp0CPXo= X-Received: by 2002:a1c:a512:: with SMTP id o18mr2592588wme.4.1574250101878; Wed, 20 Nov 2019 03:41:41 -0800 (PST) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id v128sm6875441wmb.14.2019.11.20.03.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 03:41:41 -0800 (PST) Date: Wed, 20 Nov 2019 12:41:39 +0100 From: Ingo Molnar To: Borislav Petkov Cc: Dmitry Vyukov , Jann Horn , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , the arch/x86 maintainers , Andrey Ryabinin , Alexander Potapenko , kasan-dev , LKML , Andrey Konovalov , Andy Lutomirski , Sean Christopherson Subject: Re: [PATCH v2 2/3] x86/traps: Print non-canonical address on #GP Message-ID: <20191120114139.GB83574@gmail.com> References: <20191115191728.87338-1-jannh@google.com> <20191115191728.87338-2-jannh@google.com> <20191118142144.GC6363@zn.tnic> <20191118164407.GH6363@zn.tnic> <20191118173850.GL6363@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191118173850.GL6363@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Borislav Petkov wrote: > On Mon, Nov 18, 2019 at 05:44:07PM +0100, Borislav Petkov wrote: > > [ 2.523708] Write protecting the kernel read-only data: 16384k > > [ 2.524729] Freeing unused kernel image (text/rodata gap) memory: 2040K > > [ 2.525594] Freeing unused kernel image (rodata/data gap) memory: 368K > > [ 2.541414] x86/mm: Checked W+X mappings: passed, no W+X pages found. > > > > <--- important first splat starts here: > > > > [ 2.542218] [*] general protection fault while derefing a non-canonical address 0xdfff000000000001: 0000 [#1] PREEMPT SMP > ^ > > Btw, tglx just suggested on IRC to simply slap the die_counter number here so > that you have > > [ 2.543343] [1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc8+ #8 > [ 2.544138] [1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.1-1 04/01/2014 > ... > > which also tells you to which splat the line belongs to. > > Also useful. Yeah - but I think it would be even better to make it part of the timestamp - most tools will already discard the [] bit, so why not merge the two: > [ 2.543343-#1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc8+ #8 > [ 2.544138-#1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.1-1 04/01/2014 Thanks, Ingo