Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753221AbcCBC7d (ORCPT ); Tue, 1 Mar 2016 21:59:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57594 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752148AbcCBC7c (ORCPT ); Tue, 1 Mar 2016 21:59:32 -0500 Date: Wed, 2 Mar 2016 11:03:20 +0800 From: Minfei Huang To: Andrew Morton Cc: Minfei Huang , ebiederm@xmission.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 1/2] kexec: Make a pair of map/unmap reserved pages in error path Message-ID: <20160302030320.GB20240@dhcp-128-25.nay.redhat.com> References: <1456819349-8650-1-git-send-email-mnfhuang@gmail.com> <1456819349-8650-2-git-send-email-mnfhuang@gmail.com> <20160301135658.341928989a18949d97998abd@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160301135658.341928989a18949d97998abd@linux-foundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 952 Lines: 27 On 03/01/16 at 01:56pm, Andrew Morton wrote: > On Tue, 1 Mar 2016 16:02:28 +0800 Minfei Huang wrote: > > > For some arch, kexec shall map the reserved pages, then use them, when > > we try to start the kdump service. > > Which architectures are these, by the way? Hi. This patch only affects s390. The others doesn't implement the interface of crash_unmap_reserved_pages and crash_map_reserved_pages. > > > kexec may return directly, without unmaping the reserved pages, if it > > fails during starting service. To fix it, we make a pair of map/unmap > > reserved pages both in generic path and error path. > > I'm having trouble understanding the urgency of this patch. Do you > think it is needed in 4.5? -stable? If so, why? IMHO, it is fine in next release as it isn't a urgent patch. Kernel can work well without any risk, although the reseverd pages are not unmaped before returning in error path. Thanks Minfei