Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3229206yba; Mon, 22 Apr 2019 23:22:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXUv3vPaL7PjJQNeB6fmUqB/65WlTchXJn99GiSS/jIuPmdDVK/A9fordCFDtg97wTkO1M X-Received: by 2002:a17:902:7241:: with SMTP id c1mr3518118pll.326.1556000541917; Mon, 22 Apr 2019 23:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556000541; cv=none; d=google.com; s=arc-20160816; b=axYZPdeGmk3dN0rmD3V/RVhFXscAinktL+qXwFzIyYf6nveOfeDQMZ807HTwtygneL f7tpWHkkORHHutZ1odu2LHCVE172fosjDtIV2dZ3F812u/LBw1msgwJZgGp2yj/0090F fU26Cz8QU1vhV3pmhA2UuUWc+1vjLQCjnkj0SzSOtOZb/XexWfr4PE2n/TlEv58KrJIa 2ARETCbUhFroq2xGJxzjdmdzTqM6eH0UTJG+WIKs46KG8LMfS5pXi9L3ZK7yu4+wfywN pp9KO+Vo1LMPTqYDMYDQ7SVAtGMjOqMY4lVfZGXdXzVfQmdOIh+1Vov8VzSzxPiRNrRe 1TMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=zj5cPaTCOWFrBn6wZ/69pRD8tK5Y+hkLuXjS+y5yWaU=; b=yCRlWW22ueiOUihftz3VTgiWmXct0QLNhplSTOHtl5IL1XOslimI/ElE7VvhQmQqY6 MUWnES7LKOM8JTr6GBFlcFEi2xg+vkxOJAt63Pxy6TKe3GVgcNC3t0B63tRBoGPs+3mo U4b6svDHtmJeIsKQonigu7B69kp0w+Q2jz61fS0u7Suk062+VnJIiW6WGI7coC05xLkA LRbew1TSPeBYQJmMT4jOXOQHubJrXHihdHK6ene+lRvuWsXakPTyALt7bwbVAAZAHzU2 8rYI2G6dWeZdBf9EUxDuhIfXTYtPTK6gUVXCJpZjEJm2RPKwqY0vW478fu0WQZ6rIcaA Vb/g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si15741491pfj.200.2019.04.22.23.22.06; Mon, 22 Apr 2019 23:22:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726045AbfDWGVP convert rfc822-to-8bit (ORCPT + 99 others); Tue, 23 Apr 2019 02:21:15 -0400 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:41186 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbfDWGVP (ORCPT ); Tue, 23 Apr 2019 02:21:15 -0400 Received: from mailgate02.nec.co.jp ([114.179.233.122]) by tyo162.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id x3N6KdCK014629 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 23 Apr 2019 15:20:39 +0900 Received: from mailsv01.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate02.nec.co.jp (8.15.1/8.15.1) with ESMTP id x3N6KdqH016893; Tue, 23 Apr 2019 15:20:39 +0900 Received: from mail01b.kamome.nec.co.jp (mail01b.kamome.nec.co.jp [10.25.43.2]) by mailsv01.nec.co.jp (8.15.1/8.15.1) with ESMTP id x3N6ESia028768; Tue, 23 Apr 2019 15:20:39 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.139] [10.38.151.139]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-4548273; Tue, 23 Apr 2019 15:20:10 +0900 Received: from BPXM12GP.gisp.nec.co.jp ([10.38.151.204]) by BPXC11GP.gisp.nec.co.jp ([10.38.151.139]) with mapi id 14.03.0319.002; Tue, 23 Apr 2019 15:20:10 +0900 From: Junichi Nomura To: Kairui Song , "linux-kernel@vger.kernel.org" CC: Borislav Petkov , Thomas Gleixner , "Chao Fan" , Baoquan He , Dave Young , "x86@kernel.org" , "kexec@lists.infradead.org" Subject: Re: [PATCH] x86/kexec: always ensure EFI systab region is mapped Thread-Topic: [PATCH] x86/kexec: always ensure EFI systab region is mapped Thread-Index: AQHU+O3agAmzlxHZg0mE9lemKT/NC6ZIsHeA Date: Tue, 23 Apr 2019 06:20:09 +0000 Message-ID: <965f770a-b103-72fb-eaef-cb337ebe8290@ce.jp.nec.com> References: <20190422092804.15534-1-kasong@redhat.com> In-Reply-To: <20190422092804.15534-1-kasong@redhat.com> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.125.85] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <92F1F186A0F7274C960CCFCB661342A2@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/19 6:28 PM, Kairui Song wrote: > The reason is the systab region is not mapped by the identity mapping > provided by kexec. Currently kexec only create identity mapping for > mem regions, wihch won't cover the systab. So second kernel will be > accessing a not mapped memory region and cause fault. > But as kexec tend to pad the map region up to PUD size, the > systab could be included in the map by accident, so it worked on > some machines, but that will be broken easily and unstable. Is the mapping of ACPI tables just by luck, too? -- Jun'ichi Nomura, NEC Corporation / NEC Solution Innovators, Ltd.