Received: by 10.223.185.116 with SMTP id b49csp995226wrg; Tue, 20 Feb 2018 11:15:49 -0800 (PST) X-Google-Smtp-Source: AH8x226AOqVwcs+2QwqBm+AnBwRHl9CFpjxpN2vfjmtXli+nxs4ncBY1MnU+Z5K0BdIlqm0NEWon X-Received: by 10.167.128.194 with SMTP id a2mr655103pfn.186.1519154149038; Tue, 20 Feb 2018 11:15:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519154149; cv=none; d=google.com; s=arc-20160816; b=IBa8dLyWBocPVcFV3g2FqH3vrBtk25WnRnGOLv0IgZo311P+JNgx8MI0mtN+oFQx4z C02K/7KKu6fBjskatX/Dq/JSeV6mO8UbAPRqL4lWJDRL5XWtT2FzWXIrQkMb/S7/Yvpz b1XdJRvCF86oJTUWbg4mVLdCtIDZfFYN1Ve0pra5+n5FScgbmzHmjiYqsItoyo2qTeVP KszMlyvw5UvI6uBkk42hc2rJkm+8o/TVv6LBAUSdTUSl9wgQ+37lFtlIKWkDs7suGMl/ X2V8yK+CVbiYsuvbe+Rfmho7Ts1GwUMsmFpTTURyjDBgU8bnjTqUvfPdQeeSQP5GD0NB Efmw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=q9h+5YT5OhxxgNUdVF6/dzKsoB2VrGEhVKz7k3c08HU=; b=OCyCIyIIctIaUxzCiiKf57Dj/T+vBF0sx8Kf4XuMgzf1/VQqTnT2MRMECD3OsC40gu O0XUkxkm2+0qCBLlXcH0ffiswTO1Gjr7lgbJJXf4eHm1KzBkbcj69aJNfniz4fMxde4i ecicf2Y9PlRorEfIrDb17C2TM+7Pnq74TyGfpDKBtFRTLorgF24pnDz6S7fHoK1v6LIj yHTBr5xmMbBu0f32QBteAdKgWXbXNZ6Rk0YcBKRVL7D0IQr0/5AkjmBj4SEEAtixWyQd 5KDAaRODzTng+AH66PFlmkyrX03oI5EyZF0nYS3pQ7py/IEbdVDziEDYHbN27mreLFiv FgAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=hxfXLXCK; 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 g13-v6si3241plo.243.2018.02.20.11.15.33; Tue, 20 Feb 2018 11:15:49 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=hxfXLXCK; 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 S1752109AbeBTTOX (ORCPT + 99 others); Tue, 20 Feb 2018 14:14:23 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:38580 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018AbeBTTOV (ORCPT ); Tue, 20 Feb 2018 14:14:21 -0500 Received: by mail-io0-f193.google.com with SMTP id g21so5798159ioj.5 for ; Tue, 20 Feb 2018 11:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q9h+5YT5OhxxgNUdVF6/dzKsoB2VrGEhVKz7k3c08HU=; b=hxfXLXCKEvdGovsuZRMVeFe2SVOXkuemDurTrZ+1+gmgiC1YsNNkfBXy3SB5cuWq25 TNH/VwoSgVEOqDtgEnWZCmN3OLW/T89hlyMmFb9TceEwVlmK4drQESQo8U8HoCZPR3vq BcnPsNlULL2WIIB8ot9Fjd35TcOge8dPpdIVex5mTYLcvBTAZ9JbWEZzWlA0CexscPzq G5PwaDYV7w4pAhLSwDpTOVI18bCT1bvMKdXPL70fQvHkTxamX3AooD3Osmvi3ZoLGb25 twKqWKn8KvaqrcU+d8pmyUgSgD9eh6+sQd2dlNZu+ufvEXT2QRboen0XktYUGXkiox+M 0cHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q9h+5YT5OhxxgNUdVF6/dzKsoB2VrGEhVKz7k3c08HU=; b=K1KAwvnKwL3m84WAj5z9ApcImbITMlwnJ9InuriFYl1CfAok99esilh2XvNfXsTria aM7L0SIWqtwUhOIP4C/aKkQErXZstonKVvgTJTP3wGctbYovx5meTRgf5PBqcleZlB7N Rts+XNClcVYcsWQwaYcpQdiLqRSRST1HlfrvAEHSYcUMLvIO4A9KSiI+Df1KitjRmNJh JYn8uR2EoyKHTCNxHioIcUY203yiE2lfc/gyNY0hiQF6Wc2dN4CmAnZLWPVYz8pEfpxN 5aYxKZ7I5uW7oKxwSraIzdobdjIUxo6iq+0Hpo/gCgK/9hOCZmKUG/JEmH6iaoKfa5Lr o3Pg== X-Gm-Message-State: APf1xPDwAVDrZWTyuyVq8R7ktpCSclniRhRccTif0hCzqtP7gV0vYo+s jb5DtSFdC+V3orwaQMkZ11kQbOrc1q+y3hcxOlLrfqd/ X-Received: by 10.107.88.10 with SMTP id m10mr875347iob.144.1519154060778; Tue, 20 Feb 2018 11:14:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.137.101 with HTTP; Tue, 20 Feb 2018 11:14:00 -0800 (PST) In-Reply-To: <20180219202826.19797-1-bp@alien8.de> References: <20180219202826.19797-1-bp@alien8.de> From: Andy Lutomirski Date: Tue, 20 Feb 2018 19:14:00 +0000 Message-ID: Subject: Re: [PATCH 0/5] x86/dumpstack: Cleanups and user opcode bytes Code: section To: Borislav Petkov Cc: X86 ML , Peter Zijlstra , Josh Poimboeuf , LKML 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 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.