Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp899749ybl; Wed, 29 Jan 2020 11:36:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzrsySMHE1CdIAbs/4bi1m1IHYCPv6pIMqpzU9QBlzq2iViVyddU1tg43Y/9Tt19LIclhk+ X-Received: by 2002:aca:be56:: with SMTP id o83mr381489oif.25.1580326589481; Wed, 29 Jan 2020 11:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580326589; cv=none; d=google.com; s=arc-20160816; b=E40v39eQwBJvrgcyLE7GrosT1zfwaAxecOfMhN9FW5U7RmT30Rar8NnOT/JnNTg6WW RhUWE123+2vQXVLgGGvvnCarOUo2nRXgxrnQxnGUkgRCJhBXIvEgWuwt8bVtfd9saata M82LCNqt6QWJR0W1i5YNKVLO1HmEK/LY9SNEC3GWMmOfpHBEyHWvqiSvg21qUN1+5DUi cNpcwrP80CKLAFS8ZGZpbMn0maeFl98WdDvGWhnDEsY829K88ZPl+mtJty7YJ9v5g8+4 QlTgWJDcuQ7tEFMYbNRW0gWg8EJn8rTISbMoyT+Kt2fVtNifwLUdVHC378z51TOhzTGx IFIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Dou/fbuzKGR7jcBj/3ZEbLPg5ko9v9+/o69GRY+vmSg=; b=l9Ncw+s22l7fupQLls7QDTPbxAon2V+5uLqHgb3d1b88EaPEz4+rir/Zh3h4cJJO+q rdQfZuojMQUj590p8zem6efl/X9neckIfvlxb4miODrWVzjMbM70rotp0HVvG6erLPiQ zagpXBoFuV+P6cXij5+h524QaR9oGwCFC64sJEGQrZK4e0CpudTiaSYRp3dqf466TaOv gd31hY4DMl8XBUyr35KaDWCd/pJxqSbTHfPGkkK4r8ts17tE15GaMVnDAkG1wL6PMLcw phldAJ48K0UufMX1M9uUZez5PbAzSjwCEJMou6Izgkn4Q20KNA7VQtXj7hHehBPywU69 xRLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BjrjbIA0; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f60si1557442otf.119.2020.01.29.11.36.17; Wed, 29 Jan 2020 11:36:29 -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=@redhat.com header.s=mimecast20190719 header.b=BjrjbIA0; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727316AbgA2SA0 (ORCPT + 99 others); Wed, 29 Jan 2020 13:00:26 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:46168 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726171AbgA2SAZ (ORCPT ); Wed, 29 Jan 2020 13:00:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580320824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Dou/fbuzKGR7jcBj/3ZEbLPg5ko9v9+/o69GRY+vmSg=; b=BjrjbIA05jeGWHDfS6PIb2W0vQHBWVhPfFIhTJkyaWrfw6q8zAxJK+VAmMtIzPq16rv7KP Fa03JdwZtlOJ7X4RMyEctxtaruQOZmRydbNZWTgUanu3xlg6xuS8qmb220D21FP3U582CL R8mN9swVZEkrFDVy4bsJiQL2A+1LRCE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-4-fHfgGT1jN0y6NT5KeM91QA-1; Wed, 29 Jan 2020 13:00:18 -0500 X-MC-Unique: fHfgGT1jN0y6NT5KeM91QA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9719D477; Wed, 29 Jan 2020 18:00:16 +0000 (UTC) Received: from treble (ovpn-120-83.rdu2.redhat.com [10.10.120.83]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CBB195DA7B; Wed, 29 Jan 2020 18:00:14 +0000 (UTC) Date: Wed, 29 Jan 2020 12:00:12 -0600 From: Josh Poimboeuf To: Borislav Petkov Cc: Linus Torvalds , "Luck, Tony" , Ingo Molnar , Linux Kernel Mailing List , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Andrew Morton Subject: Re: [GIT PULL] x86/asm changes for v5.6 Message-ID: <20200129180012.jmncqyb7x77gkzwq@treble> References: <20200128165906.GA67781@gmail.com> <3908561D78D1C84285E8C5FCA982C28F7F5517F9@ORSMSX114.amr.corp.intel.com> <20200128223110.GB6787@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200128223110.GB6787@zn.tnic> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 28, 2020 at 11:31:10PM +0100, Borislav Petkov wrote: > On Tue, Jan 28, 2020 at 01:04:19PM -0800, Linus Torvalds wrote: > > On Tue, Jan 28, 2020 at 12:41 PM Luck, Tony wrote: > > > > > > Is there still some easy way to get gdb to disassemble from /dev/kmem > > > to see what we ended up with after all the patching? > > > > Hmm. No, I think it's all gone. > > > > It _used_ to be easy to just do "objdump --disassemble /proc/kcore" as > > root, but I think we've broken that long ago. > > Either booting with "debug-alternative" on baremetal or starting a guest > and stopping it with gdb and examining the patched memory is what I've > been using to hack on the alternatives in past years. Guest won't help > you a whole lot with FSRM but you could "force it", for example. FWIW, I can still do 'objdump -d' and gdb on /proc/kcore just fine (though you have to give gdb addresses because no symbols). -- Josh