Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2645575pxb; Mon, 18 Apr 2022 05:28:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzjF6ivyK220KBkh7RrW8FU5E8juEl8OGxcGFdoF4AlpXS/pPBGHLmoWuYpd19BhXUVEup X-Received: by 2002:aa7:c4c9:0:b0:41d:7967:62e8 with SMTP id p9-20020aa7c4c9000000b0041d796762e8mr11814903edr.34.1650284930535; Mon, 18 Apr 2022 05:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650284930; cv=none; d=google.com; s=arc-20160816; b=BvapSY9OBQP2PRFkCI+UxB8iixotgUWbF3GR8HL+zTLmIr08z07Xdf6Gco28Z+8qGG YwGDkphdLwGKuykNbriMwWVNyfuiKE5Flrl3v90qdxWvE4NSd3pJSNYmJXVA4yHGFDEW EClUMYLudgbc1lgnGgzaI+/WvnMTFfvns7nHF4b9D0ihA8tZFtrkLrf1urQFzRPnU9HR r6k+B+aaU/vKno2EnynTglYlh5rYnMMAeXE4ALGLjkIPgaec6JrfIuj1M/zo0EI3+v11 7xvLySo5DCqhPlg9X7WOO7854hRSXULa2r3aDp5pYtpBJbQJtEcIJU2rrsjiT4Me4cVF opZg== 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=js3VMr6f+ww/wTyt0zXjSjPTLatJCvLXjxHWV+1RMnE=; b=ymPbUrAqdrR7qDcmuc2pJW5qBAfoKD9ZpAm83uidOJRgldwSd3wcvGyOBBvT6NeZIW YOQoXW0Js5m/DqQRZKrdztzPrd2uOyg+qfJ+14p8NkjIOBL5ZQ1M0dOMpetshCVCJVHN BZOuJD9wlPGjbnah1AlNT4yV4Mz2KkrdIvwDTzZTHNDGwAmXXbbI7gasjndZMS+CdZHe eyblPh95Bqe9ugCmlwlJWZCNzSKkuwFDzn8yeqDkURPmL4hbao4gzqTURRgkvw2Dh+pu QDF4mdhAqhc0H5XPX+iO+JEok1oNQZySjHZeK+vK3AXndjxrpt2Vr8wa0qB9/IZPnfNt yj7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LMQj6u90; 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 ca23-20020aa7cd77000000b0041d7943941asi6011164edb.238.2022.04.18.05.28.27; Mon, 18 Apr 2022 05:28:50 -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=LMQj6u90; 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 S235668AbiDRBnZ (ORCPT + 99 others); Sun, 17 Apr 2022 21:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235676AbiDRBnX (ORCPT ); Sun, 17 Apr 2022 21:43:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 092D01836E for ; Sun, 17 Apr 2022 18:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650246045; 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=js3VMr6f+ww/wTyt0zXjSjPTLatJCvLXjxHWV+1RMnE=; b=LMQj6u90tbOSTew9KqJ4UpcRVqu03gYsIr2RSvxP5/gOKtItNEXdvGmeQBgJu2VQyVht2j SO57+4qQCcSonzPnylZZHaF8XLnDLX+ycZboilyEWm+l8RHU2fg/R6Xs0x9J0X7xWENSoY uLw1g3dpNsz4cL5kgH85p366h8DfOgo= 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-498-Bzp9SVxpPSClpvqTJHACFA-1; Sun, 17 Apr 2022 21:40:42 -0400 X-MC-Unique: Bzp9SVxpPSClpvqTJHACFA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8115D833961; Mon, 18 Apr 2022 01:40:41 +0000 (UTC) Received: from localhost (ovpn-12-21.pek2.redhat.com [10.72.12.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB4944047296; Mon, 18 Apr 2022 01:40:40 +0000 (UTC) Date: Mon, 18 Apr 2022 09:40:36 +0800 From: Baoquan He To: Coiby Xu Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Michal Suchanek , Dave Young , Will Deacon , "Eric W . Biederman" , Mimi Zohar , Chun-Yi Lee , stable@kernel.org, open list Subject: Re: [PATCH v6 1/4] kexec: clean up arch_kexec_kernel_verify_sig Message-ID: References: <20220414014344.228523-1-coxu@redhat.com> <20220414014344.228523-2-coxu@redhat.com> <20220415093735.74eusyuuboa32aqs@Rk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220415093735.74eusyuuboa32aqs@Rk> X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,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 04/15/22 at 05:37pm, Coiby Xu wrote: > On Thu, Apr 14, 2022 at 11:44:25AM +0800, Baoquan He wrote: > > On 04/14/22 at 09:43am, Coiby Xu wrote: > > > Currently there is no arch-specific implementation of > > > arch_kexec_kernel_verify_sig. Even if we want to add an implementation > > > for an architecture in the future, we can simply use "(struct > > > kexec_file_ops*)->verify_sig". So clean it up. > > > > > > Suggested-by: Eric W. Biederman > > > Cc: stable@kernel.org > > > > It should be not worth noticing stable kernel that a clean up patch need > > be back ported. > > Thanks for the suggestion! For the 2nd and 3rd patch, I'll add prerequisite > info, > > Cc: stable@kernel.org # 34d5960af253: kexec: clean up arch_kexec_kernel_verify_sig > > and > > Cc: stable@kernel.org # 34d5960af253: kexec: clean up arch_kexec_kernel_verify_sig > Cc: stable@kernel.org # 83b7bb2d49ae: kexec, KEYS: make the code in bzImage64_verify_sig generic > > respectively. That sounds good, thx.