Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp845458imd; Fri, 26 Oct 2018 19:21:12 -0700 (PDT) X-Google-Smtp-Source: AJdET5cFUZIOvOx2K6v6skrlacCKS7BoSVIgrFKnIxZwGn0hqFxqxP2v04HwkutJ0P4gVbP+SA6v X-Received: by 2002:a62:30c7:: with SMTP id w190-v6mr6075789pfw.188.1540606872847; Fri, 26 Oct 2018 19:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540606872; cv=none; d=google.com; s=arc-20160816; b=IfUlxt3o+KE614ukYc+3dM4lbWLuvDfHnvEbIRDQYrbM8wMvj3jHY9vWNDISseITBK RyRX05Rxjc4/v5wAorxQsIFmICPa9u7U8IDNOKKc9xMASVpeulp5ipORx0oCqohghbql ZZfjK720XaSxFLE/qItfbXG7mCBg80pNH/dxP+eVhgsunvB6y4DM+xGijCN58xqTDh3F 0/8M/4Oo2+nTERoVRHnEHn8sEYPCEvT2ujrs4XMhCjbtAsgw1uh2k7nOVIA9TjpSsr13 sz4umuqWqNNABEWT+iiZLfoxXcq8MU9kRUJ+UUclCos/ggA7/ybllLWcUTO0CyUcxQNz fLAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2x6+oSQew90YejwJ2LwH3wjYqJSBKHevBaQwWHMjF3Q=; b=oS5FpjXRpKXPseq2URFSnV2Wduc5F2Q3/cEaN4e83bQuYAP5ovuN2FPSNxUAKI/kpi aR0jER2TRx3k+m97o/LkHvEZ2UFJ71SLgskQ+/zmED9IKqVJrnZRDRjvJAFj51l4YwhV G0orYAhBYU085OyjmnoaE/AS+UVbfXISAXmPGPs2J3yf+wd5ugqW1SSFgbOfYSAGE3bk YHWhu0sBwHnK9wzZLxsw7YILxtNqMiQgVIkkuUW4bzwIk2I4vDDc+2NvNIsalVcEpc1E nzjr4lLeG1HC0bSabzNHDWvBhd3VShScTmh+tyAsOrea9Sq/YevHaPbm8GLGc3Gma8ry FZxw== 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 70-v6si13854916plc.301.2018.10.26.19.20.41; Fri, 26 Oct 2018 19:21:12 -0700 (PDT) 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 S1726985AbeJ0K7b (ORCPT + 99 others); Sat, 27 Oct 2018 06:59:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52440 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbeJ0K7b (ORCPT ); Sat, 27 Oct 2018 06:59:31 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6E52C308424E; Sat, 27 Oct 2018 02:20:09 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-142.pek2.redhat.com [10.72.12.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F103519753; Sat, 27 Oct 2018 02:19:57 +0000 (UTC) Subject: Re: [PATCH] kdump, vmcoreinfo: Export sme_me_mask value to vmcoreinfo To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, bhe@redhat.com, dyoung@redhat.com References: <20181026093630.8520-1-lijiang@redhat.com> <053CC83A-9A95-4C12-9627-AABD1427DA9C@alien8.de> <1263471c-a27d-a698-15f0-b5947f13ea93@redhat.com> <20181026163554.GA26331@nazgul.tnic> From: lijiang Message-ID: Date: Sat, 27 Oct 2018 10:19:52 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181026163554.GA26331@nazgul.tnic> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Sat, 27 Oct 2018 02:20:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2018年10月27日 00:35, Borislav Petkov 写道: > On Fri, Oct 26, 2018 at 08:32:11PM +0800, lijiang wrote: >> If SME is enabled in the first kernel, the crash kernel's page table(pgd/pud/pmd/pte) >> contains the memory encryption mask, so i have to remove the sme mask to obtain the >> true physical address when dump vmcore. > > Sorry, I have no clue what makedumpfile does exactly so you'd have to > be more detailed (or wait until I look at it :)). Which kernel accesses > which kernel's pagetable? > > /me goes and looks at the makedumpfile's manpage... > So sorry that i should provide more detail about this. Thanks a lot for spending time reading the manpage. > Ok, it uses vmcoreinfo to exclude pages which would mean, it accesses > the first kernel's pagetable and traverses it. > > Am I close? > Yes, your explanation is perfect. Thanks. Lianbo