Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FA29C636CC for ; Thu, 16 Feb 2023 06:58:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbjBPG6t (ORCPT ); Thu, 16 Feb 2023 01:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229782AbjBPG6m (ORCPT ); Thu, 16 Feb 2023 01:58:42 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4342911165; Wed, 15 Feb 2023 22:58:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D390DB825BC; Thu, 16 Feb 2023 06:58:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E06AC433D2; Thu, 16 Feb 2023 06:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1676530718; bh=2FqkwkZjiBPavFp1l2RKoVJVfxS4Y70fRW3GIwt8mFQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N+7mz4VFp532ugW2m0Vzn0nQcLmlcW8gUWBN/P9xeIvLzkoI+ysmtlfu7GlKRYwFb tNCJzL28MOHGAkSaQULBmpxdq9uizMkZsM6u797NC4DQt8kKwD/XlWL6B+J/WdTNVf cubS79kYC5swxO7uZ2YihEDpvHi7XydZZOP4+Y1U= Date: Thu, 16 Feb 2023 07:58:35 +0100 From: Greg KH To: Saeed Mirzamohammadi Cc: "# v4 . 16+" , Xiu Jianfeng , Herbert Xu , Dan Williams , "David S. Miller" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH stable v5.15.y 1/1] crypto: add __init/__exit annotations to init/exit funcs Message-ID: References: <20230214195300.2432989-1-saeed.mirzamohammadi@oracle.com> <20230214195300.2432989-2-saeed.mirzamohammadi@oracle.com> <281CF1A3-C16D-4598-B741-B1128DA97B5B@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <281CF1A3-C16D-4598-B741-B1128DA97B5B@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 15, 2023 at 11:10:14PM +0000, Saeed Mirzamohammadi wrote: > Hi, > > > On Feb 14, 2023, at 10:55 PM, Greg KH wrote: > > > > On Tue, Feb 14, 2023 at 11:53:00AM -0800, Saeed Mirzamohammadi wrote: > >> From: Xiu Jianfeng > >> > >> Add missing __init/__exit annotations to init/exit funcs. > >> > >> Signed-off-by: Xiu Jianfeng > >> Signed-off-by: Herbert Xu > >> (cherry picked from commit 33837be33367172d66d1f2bd6964cc41448e6e7c) > >> Cc: stable@vger.kernel.org # 5.15+ > >> Signed-off-by: Saeed Mirzamohammadi > >> --- > >> crypto/async_tx/raid6test.c | 4 ++-- > >> crypto/curve25519-generic.c | 4 ++-- > >> crypto/dh.c | 4 ++-- > >> crypto/ecdh.c | 4 ++-- > >> crypto/ecdsa.c | 4 ++-- > >> crypto/rsa.c | 4 ++-- > >> crypto/sm2.c | 4 ++-- > >> 7 files changed, 14 insertions(+), 14 deletions(-) > > > > What bug/problem does this resolve? Why is this needed in stable > > kernels? > > I don’t have any specific bug to discuss for this fix. It would help freeing up some memory after initialization for these crypto modules since the init function is only called once but not addressing any major issue. Feel free to disregard if this is trivial for stable. Exactly how much memory is actually freed here and why is that required for a stable kernel? Please read the kernel documentation for what is considered a valid stable kernel change: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html thanks, greg k-h