Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2075956pxp; Fri, 18 Mar 2022 02:38:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRR8c/oHhGpQyc931eGpxrStWxV3JG3MjGMcu2YoRlBkkTlaEwmfjr7whvYMJoD52jgj4b X-Received: by 2002:a62:7c03:0:b0:4f7:6a0:6835 with SMTP id x3-20020a627c03000000b004f706a06835mr9111662pfc.72.1647596305443; Fri, 18 Mar 2022 02:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647596305; cv=none; d=google.com; s=arc-20160816; b=Yuqi9+RrmA3LmEosw/BnNlbwWWjhi3EoV4F5q+G713RH9YTBzweVMmD8PIaiN+6OTt s0FTSy4SJN3NCOsdE8nHU2JQTbFupOBYiHw7tKKdQkdq4sDMDFPt0R6TVpP0sDN3bZBZ /xyV5HFHBvCBVF8WxG8WY2ZTsMNaWsrc6n+eV/fU60iClB2MadV/qhcEObZ/JITLp1KD FBuiBR9RaxgRV4UcHWW4zyrezBxlcMsGrwKNaBh4aQvS7yf/tccMlYE1j3bdeUfY3Ulz 7V5wgOeAXgAl8T6Q34ZoYGmMeZzzv9BpAdZ6W+0TG27peUCXtQveRqT/yfeTbgrofppA g8Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HmvQLm+Be/rIvjje/jXJTnXxzbeQvzrK0wyifBBzLlg=; b=AvVQ+pgD9KnNJlhWoY1dFNvwcMwh+oGI9z04ULjVWwnvZrk9s1bb4ouBXblaPd1ZNR uWzxv6fbWrYBC5bpiCL7ssV23ZQHvaAvJ8yUZ7NAHTzqNx6rOESYbbFo/Kz+WuoPCU5N s34sIwddsfoEF7H/e+s5D1BGti9JbvW5ueSTw63EN1UvB4Xb1VcYN9fLg+9gTShS14sf zAmgt6C6+P9Ieht32fLNX/H4hLC1Z0zz1hJsvnwyeC7+sAmHPXM+0x3xgoJOGRIpE3NX tQr3bE7jMc5mLC93YWG06ouLDqzfm8F+itYFp+tgtkn4+pZW+mhFQTwB6ZSmye+BIxt+ xOtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YsWN6C40; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a1709029b9500b00153b2d16554si1548755plp.348.2022.03.18.02.38.13; Fri, 18 Mar 2022 02:38:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YsWN6C40; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232166AbiCRD2j (ORCPT + 99 others); Thu, 17 Mar 2022 23:28:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232106AbiCRD2f (ORCPT ); Thu, 17 Mar 2022 23:28:35 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E5951AF511 for ; Thu, 17 Mar 2022 20:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647574035; 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=HmvQLm+Be/rIvjje/jXJTnXxzbeQvzrK0wyifBBzLlg=; b=YsWN6C40a1Ch/Is3hNQb+5ecC/2lAD0otnwA7J8MUlykq707D/SLTvIfrBzH3YZHepdiNZ ookZhJ6NPJEZ63eZgxQJYQsdGh33XDmq4WzNltZFYgajwNZXd0IaFL1uvU3Sqd9xbjxfX3 dlWdn3/O+aAOc81mUKiWo+WdpIYd/tQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-381-0ETb-ET9Mz61aZfT6VgBvg-1; Thu, 17 Mar 2022 23:27:14 -0400 X-MC-Unique: 0ETb-ET9Mz61aZfT6VgBvg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C95D6811E76; Fri, 18 Mar 2022 03:27:13 +0000 (UTC) Received: from localhost (ovpn-13-174.pek2.redhat.com [10.72.13.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F1672565DA2; Fri, 18 Mar 2022 03:27:12 +0000 (UTC) Date: Fri, 18 Mar 2022 11:27:09 +0800 From: Baoquan He To: Coiby Xu Cc: Coiby Xu , kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Dave Young , Will Deacon , "Eric W . Biederman" , open list Subject: Re: [RESEND PATCH v3 1/3] kexec: clean up arch_kexec_kernel_verify_sig Message-ID: References: <20220304020341.85583-1-coiby.xu@gmail.com> <20220304020341.85583-2-coiby.xu@gmail.com> <20220318024803.pkkwgknwur2y75mt@Rk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220318024803.pkkwgknwur2y75mt@Rk> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/18/22 at 10:48am, Coiby Xu wrote: > On Thu, Mar 17, 2022 at 08:45:35PM +0800, Baoquan He wrote: > > On 03/04/22 at 10:03am, Coiby Xu wrote: > > > From: Coiby Xu > > > > > > commit 9ec4ecef0af7790551109283ca039a7c52de343c ("kexec_file,x86, > > > powerpc: factor out kexec_file_ops functions" allows implementing > > > the arch-specific implementation of kernel image verification > > > in kexec_file_ops->verify_sig. Currently, there is no arch-specific > > > implementation of arch_kexec_kernel_verify_sig. So clean it up. > > > > This is a nice cleanup, while the log may need to be improved. You > > should run ./scripts/checkpatch.pl on your patch before sending out. > > When we refer to a commit in log, please refer to > > Documentation/process/submitting-patches.rst. > > Thanks for the reminder! I've used git pre-commit hook to run > scripts/checkpatch.pl automatically but obviously this hook doesn't > apply to "git rebase --continue" and currently this no git hook that > for this situation. I'll use the following trick [1] to avoid this > mistake in the future, > $ git rebase -i HEAD~3 --reschedule-failed-exec --exec "git show | perl ./scripts/checkpatch.pl" Sorry, Coiby. It could be late yesterday so I was dizzy when writing down the comment, I didn't make my concern clear. What I meant is the referenced commit in log should be taken in a standard format. Abstracted one paragraph of Documentation/process/submitting-patches.rst here. We usually take the first 12 characters of the commit SHA-1 ID in log, but not the whole of them. ===== If you want to refer to a specific commit, don't just refer to the SHA-1 ID of the commit. Please also include the oneline summary of the commit, to make it easier for reviewers to know what it is about. Example:: Commit e21d2170f36602ae2708 ("video: remove unnecessary platform_set_drvdata()") removed the unnecessary platform_set_drvdata(), but left the variable "dev" unused, delete it. ===== And the right parenthesis enclousing the commit subject is missing. > > [1] https://stackoverflow.com/a/70568833/1203522 > > > -- > Best regards, > Coiby >