Received: by 10.223.185.116 with SMTP id b49csp1697935wrg; Thu, 22 Feb 2018 01:24:39 -0800 (PST) X-Google-Smtp-Source: AH8x227J1CcRqvEVVb2UWohAXTKctw3YQgWX5bOuGlHHF2ynZVu8qPLHMGxLgMtVogCY9Aq4rEMO X-Received: by 2002:a17:902:68cb:: with SMTP id x11-v6mr5954053plm.198.1519291479817; Thu, 22 Feb 2018 01:24:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519291479; cv=none; d=google.com; s=arc-20160816; b=YmYjq/MRh7UAHbVgI3bcPQjGxE5IJZa+Qrlic75Ua3gwW7OqUE3yBsR0Pf+fleA/6j ol/VwvIUr6v4tcma6QGBjUK76KqR1cQizuURJAxDBH75bVj4MFHapv9VpM5YWkh1wIg1 JaToUf4Gyqvz/IFpdU6D9ATHA5FEvT5dbvcTfgQdGo/qfDHho8e+1tiYmLX1+kn+89hc xNwTwIieBhjZzjN7bGAETOFOxl9w/DO/ZF2xHpIEvy7r4EclTDcRnRawr2QVXx/UMoJz 6mD62K0tgPuBY0sYE2EIWgertxi2P8tdMQbSCdGqEXE/XoHdxD4BT7DgHUNzZI5ip3kp qBMA== 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:arc-authentication-results; bh=M2/8Y7kMBdK6Al4BXz74Mmz2rHzKQOxHdgor3UlexH4=; b=KvsB4vXwutHscfYfQGK5yFb5RJ4Im6mxoaiX4YsSs0ijuweBgxDp9qY7IwTgrNrot/ nrwGMlU168ZnGV+9RnwTM2UJpHTfJZyuCwkJgIQeDc6fshN4U1pnEYHkIXYg4xPDJ1dm /jgpB7AZ1lSsBte/QauOua22QBCuz3Mevo5AH2N8Hd3Pi3Jmka/M0ZyfdYOFi9duL1iy lYlV8Nm0gKvUVfj1j27Jxp0P8tL1neHqMyn7O0/EtwHFOoYDk7MOhHMl2PO3L6MJzyBr +/BuNATk/q6Hkgk5Vjt7iGnrykGHFRj87x0PAfh9H1qqRiLTtDUdcwmpqhLPsJ9ksIIi ZAOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=LhDiBuNa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si733956plr.622.2018.02.22.01.24.24; Thu, 22 Feb 2018 01:24:39 -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=@infradead.org header.s=merlin.20170209 header.b=LhDiBuNa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753051AbeBVJXk (ORCPT + 99 others); Thu, 22 Feb 2018 04:23:40 -0500 Received: from merlin.infradead.org ([205.233.59.134]:48622 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752857AbeBVJXj (ORCPT ); Thu, 22 Feb 2018 04:23:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=M2/8Y7kMBdK6Al4BXz74Mmz2rHzKQOxHdgor3UlexH4=; b=LhDiBuNa8vedAabysR596zKfC DsmmmDc9h9CGvHq2RRtmT+Z/OLelN6JQV12Uv4E0m2avpFrC/BZ9+UClIo9vRyp6+zhb8Gywq4LzU yebcom+RWXQItR3UpTiBd5Ri1hOud26cAD/uadaDzcBWWFGx2Ggcoo2KEpaqb9mA/Fu/IZK/IckHG A6UqqZabrTssH4l8w1/BwzrJSf+CQ9Isrv7E93M1BW1X44sViqxVoBxJkI7rfAS5SE7A5g7jHFR4F CRSMMbuyHRhcyDHAtDZ7q2zzpTIl6zenyv7x+8oL7o/GVAU99KNRmosyaap/ctjbbUzViIkyt/O22 kwg9cmTtw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eon6A-000359-Ht; Thu, 22 Feb 2018 09:23:30 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5EF642029FA04; Thu, 22 Feb 2018 10:23:27 +0100 (CET) Date: Thu, 22 Feb 2018 10:23:27 +0100 From: Peter Zijlstra To: Linus Torvalds Cc: Borislav Petkov , Ingo Molnar , Josh Poimboeuf , Andy Lutomirski , X86 ML , LKML Subject: Re: [PATCH 0/5] x86/dumpstack: Cleanups and user opcode bytes Code: section Message-ID: <20180222092327.GM25201@hirez.programming.kicks-ass.net> References: <20180219202826.19797-1-bp@alien8.de> <20180220192956.si2a6m3ckskexvte@treble> <20180220204435.GC24320@pd.tnic> <20180221091553.gxnvhbitiewo2mjc@gmail.com> <20180221175429.GC9989@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 01:39:52PM -0800, Linus Torvalds wrote: > showing with a hung kernel. And most of the above is actually > completely useless. Those are the *usermode* registers it shows, not > the kernel registers at the time of the crash (the final rip/rsp/code > lines are for the actual kernel crash, but I'm talking about the > register dump above it). > > So notice how most of the *useful* data has actually scrolled off the > screen and is all gone because the machine is hung. Instead, we've > added stuff that doesn't help at all, usually. > > It's not just that last patch, obviously. The big hunk o fuser > register dumping is actually from Josh's trace improvements. But the > above really is a great example of how we have made oopses *harder* to > read by trying to add more data. They have gotten messier, but they > have also gotten so verbose that the *good* stuff has all scrolled > away. > > So I think we should take a hard look at that "more data is better". > Look at the above 25 lines and tell me - is that actually 25 useful > lines for debugging a crash in sysrq_handle_crash? So being one to only use machines that have a serial line this does not really affect me; but it would appear to me that it might make sense to try and reverse the entire dump. That is 'obviously' going to be rather tricky, because we'll have to print in the direct reverse direction we discover the data and the only way to do that is with extra buffers, which adds extra complexity to something we want absolutely robust. But a simply line based reverse of the output would get us the most useful data last, just what we want.