Received: by 10.223.185.116 with SMTP id b49csp1008029wrg; Tue, 20 Feb 2018 11:31:27 -0800 (PST) X-Google-Smtp-Source: AH8x225M7PVIfpT1xkPe0igzBSWjnvKXdDfKUwzj/UJmvolPvDkXLUcYj5jvu7FTHlNJqXYJOajJ X-Received: by 10.101.76.13 with SMTP id u13mr521235pgq.287.1519155087273; Tue, 20 Feb 2018 11:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519155087; cv=none; d=google.com; s=arc-20160816; b=nJgl3rvx5GpxxKda8Svxwg8LKUZRUe9EJov/kPl/+tWHJxo4/uL4VgCU8EajIRCNbt S71GGM0snCP3VRQETIwWUE6JRTqSTZCYDoVhY2B3+/Cc7mTv+TjguBd8rwzL/74TZaMJ 7OHChcgCqD0pq9KJpleMUIHQEXsn0Gp9rKcb8R+VCWa1Q4IGwPDlPimWkCkFZzNk118U Savj9ExDmVtcWfGUoYTHrFBna5U+22FYFOnOoF2KLitfp31dTUnzJhG6jdNyXcXc4jUx GIjhM5bmnWkEVMpkqfLrfTYVf2Wnp9eyeOtUovhOpqszkEjmiJvaeAVPXbRq+poe4MIX jR2w== 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:arc-authentication-results; bh=2Lgff4cHjK3noDbEQckd0FtJpF+/6CYtEyBHiTL4UR8=; b=t7pcZPL/xJmi/9GFOqdaOIXBxu4W1RBwOBCNOIv1r2Cwzb9DFmkHC/zS9pHObib+Ym ecg4nokWFPYOFr14HzcKHx0yCovnRJkgPbdMYzqCl0Al7WLza5gM6ozIML6jq4KYWmwa 6Ci/E1q3++LaUw7xBKeTkFCcT5FQHXs2bjhC00LtrAFEiFBFB50AhZxvQT6CflBjHUE/ 3eC2hP3Lrh1LfAaqhpYhBinwdL6YNTalniCqYucd4fr5cF6Mgsjp91sfLv3GC8enPuQt ftZ9DQ1p0rYCZqGjGt3+ffZvb0WCVtlQoJfdXPOxhmFwCPCRJJCS3McMnpT25iCtIuva B05A== ARC-Authentication-Results: i=1; mx.google.com; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23-v6si7503541plk.567.2018.02.20.11.31.10; Tue, 20 Feb 2018 11:31: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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753022AbeBTT36 (ORCPT + 99 others); Tue, 20 Feb 2018 14:29:58 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33248 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751994AbeBTT35 (ORCPT ); Tue, 20 Feb 2018 14:29:57 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 45F708182D15; Tue, 20 Feb 2018 19:29:57 +0000 (UTC) Received: from treble (ovpn-120-38.rdu2.redhat.com [10.10.120.38]) by smtp.corp.redhat.com (Postfix) with SMTP id EEF8F1006ECE; Tue, 20 Feb 2018 19:29:56 +0000 (UTC) Date: Tue, 20 Feb 2018 13:29:56 -0600 From: Josh Poimboeuf To: Andy Lutomirski Cc: Borislav Petkov , X86 ML , Peter Zijlstra , LKML Subject: Re: [PATCH 0/5] x86/dumpstack: Cleanups and user opcode bytes Code: section Message-ID: <20180220192956.si2a6m3ckskexvte@treble> References: <20180219202826.19797-1-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 20 Feb 2018 19:29:57 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Tue, 20 Feb 2018 19:29:57 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 20, 2018 at 07:14:00PM +0000, Andy Lutomirski wrote: > On Mon, Feb 19, 2018 at 8:28 PM, Borislav Petkov wrote: > > From: Borislav Petkov > > > > Hi, > > > > so I've been thinking about doing this for a while now: be able to dump > > the opcode bytes around the user rIP just like we do for kernel faults. > > > > Why? > > > > See patch 5's commit message. That's why I've marked it RFC. > > > > The rest is cleanups: we're copying the opcodes byte-by-byte and that's > > just wasteful. > > Maybe this series already has this side-effect, but I'd really love to > see oopses show the code bytes for each kernel entry, not just the > innermode one. We already dump full regs including RIP -- adding > Code: should be easy and would be very helpful. Just to clarify, I think you want to show the Code: around regs->ip every time we show the registers? -- Josh