Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4508340imu; Tue, 8 Jan 2019 01:13:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN5JvscFiZ80YvK5HOXVQiVifeYxx1b29InLtDZdBF24uN9bfmrymfKA0w7zPqoS4u/Qmu+I X-Received: by 2002:a62:b80a:: with SMTP id p10mr954811pfe.32.1546938817509; Tue, 08 Jan 2019 01:13:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546938817; cv=none; d=google.com; s=arc-20160816; b=tgQdd9uRCpxNt1c4VxLrrvFxBb9ss7K3UhQDmFzU4B8U/tgChN6c+BheV56rC7eFJL kkPxUW0CAlmRWfkQqNNvqPW/n7SN2ZwwLHvHUwHdqlrQXDELoCbpSGzZo+pgS8gc7qpE LVTNNTuI02dVzcbFg48LSMveoZGBOjFfv2Edim9goXSgUPNYy8F802YesE3Q3byK5ris 72LJsCFI3hcZu4Qyv9o1rrv9zLsecEaDcLm7/4wdu7QZQdBpQynyubQHo0o7xOFpwbPF 3a4qPsC528beMmjhlRxvSmj7Vyv+FeSOlUldL6Dvz/Cpu/3k1EgVwCK14M0nmwR+PSfp lOWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kP1Ad8lSl+QgUrD5+Tav95EbV4oDvO3s1Toagf0XWdQ=; b=SqiNW4e5+wq2W37aXnPl3P9yUT4QH4FwMNcO6KYrC2XUTjoCNnW3k7j1jCK55LbkS5 VPyTT5wBOrlkS3ILsNgpu4yyZrR2AlkyU+xFTIE1KVLyAPfGk2vn096MHoGQCHYYPrB7 PQFZYT9I+9IPj7gOgV79R50MSVYl1VsCTo2ET2eMwnbmdZVLfP8J5niPA4DhfPcDdUhU eK37DSR7n6In9WepWwXwY0+3B2NttPuYIwSpQzbAYWBYh7vDaz9GTQNRnq1M44b/8/TR RgxB+Y0tyEwZV40VEfrO6M99EEcsumpTA0Dwo8OBFmbpi4xoh1crRaVMQmBAhOfUj+QR K90A== 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 f4si15492125pgg.492.2019.01.08.01.13.21; Tue, 08 Jan 2019 01:13:37 -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; 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 S1727925AbfAHJMB (ORCPT + 99 others); Tue, 8 Jan 2019 04:12:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727295AbfAHJMA (ORCPT ); Tue, 8 Jan 2019 04:12:00 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D65C89AE6; Tue, 8 Jan 2019 09:12:00 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-56.pek2.redhat.com [10.72.12.56]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 15B095C21E; Tue, 8 Jan 2019 09:11:55 +0000 (UTC) Date: Tue, 8 Jan 2019 17:11:52 +0800 From: Dave Young To: Baoquan He Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, AKASHI Takahiro , Andrew Morton , "Eric W. Biederman" , x86@kernel.org, Ingo Molnar , Borislav Petkov , Thomas Gleixner , Vivek Goyal Subject: Re: [PATCH V2] x86/kexec: fix a kexec_file_load failure Message-ID: <20190108091152.GA715@dhcp-128-65.nay.redhat.com> References: <20181228011247.GA9999@dhcp-128-65.nay.redhat.com> <20190108052440.GA17983@MiWiFi-R3L-srv> <20190108084657.GA32321@dhcp-128-65.nay.redhat.com> <20190108085157.GB17983@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190108085157.GB17983@MiWiFi-R3L-srv> User-Agent: Mutt/1.9.5 (2018-04-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 08 Jan 2019 09:12:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/08/19 at 04:51pm, Baoquan He wrote: > On 01/08/19 at 04:46pm, Dave Young wrote: > > > Wondering why this place doesn't need the initialization assignment. > > > Isn't it to assign in all places before kexec_add_buffer() calling? > > > > C designated initializers will make sure to initialize it as zero. > > We set KEXEC_BUF_MEM_UNKNOWN as 0 so it just works. > > Got it, it works, thanks. People may need check code to find out > KEXEC_BUF_MEM_UNKNOWN is 0, then realize this fact. Agreed, it is not very clear now. It's better to improve it with some explict initial value since we have the macro. But since this is a regression I suggest to fix the bug first, I can send a patch later for the improvement. Thanks! > > Other than this, it looks good to me, ack it. > > Acked-by: Baoquan He > > Thanks > Baoquan