From patchwork Wed Feb 8 20:37:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mirzamohammadi X-Patchwork-Id: 5146 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3677116wrn; Wed, 8 Feb 2023 12:43:58 -0800 (PST) X-Google-Smtp-Source: AK7set+/N9u1Lxr5Cy4TqcDfHr4hnxT8hck36IpODl4mJjW8p4IT9ixWoj6OUrhdv7bBXZNRCwGz X-Received: by 2002:a17:90a:f684:b0:231:1701:4ba7 with SMTP id cl4-20020a17090af68400b0023117014ba7mr2701995pjb.2.1675889038126; Wed, 08 Feb 2023 12:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675889038; cv=none; d=google.com; s=arc-20160816; b=pWgm03FWrH/n70mMnhvgy4QCxTo+3Zpnd/FetpUUj3SZat6O+eH1NCYia7CksKFJzw YPfeeHxLUt70i+fVvYY4Fcbqc77IBg4JW+KgbiCoZamH/dFDYECpDhsTj59pSyvN+fCA VBYZGNT9JWUJNaKIuj9nS1WSWjOWN3K/ILKgD3Han0Bupt4gqnTfoSq+LAu1s6vUArn3 apN+dEkXxkAVZtar9paMiVcDAs2D6MKguvvKxTzqtbECCDGJjM2p/X+t1+LoAaysQegR xwIpu3F2wGV4cE6d1iGc/OW+pJKoFkf6vNquX/DVK4DV6swojAe/Go6K+z8hwWmgqVYW Acbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Fz+FHQCR/AArZdbtbzr9TdzXWdNsm9OWfRrg70mi0Uo=; b=joHaqecibyIruYhEN61UChNTMq8A/OhHKQqIpOrd1yl48Wx8/ToBtj0QxbrlLgnuyk rMCNI/HVSBPXWjnPfxETqA+339VYSISHBVsVI7/lZofxbXYytW+tRyjALdh3JAJvAyIo ftv2He6+17UUmWPrJl2D+zQaTq1PwAFlmRoNaFHvMWpsQONIB8/de94cpvlHuGc1s2mH oTH7uIpiO1VU46Fve6sBkc6oyQGUWfs18ZV8gtTtXqDetg+t/OgzPLkHwoMU8oTAWGZb nNgS2e7qxDKqCXXDLEbPNtOsG4hvS4LDz0cM8j7ajW7eVFso+1OxJ1tQ1yor93RlkD/o 4jMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=m1+iCQHf; 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=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m1-20020a638c01000000b004774a024588si18000029pgd.719.2023.02.08.12.43.43; Wed, 08 Feb 2023 12:43:58 -0800 (PST) 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=@oracle.com header.s=corp-2022-7-12 header.b=m1+iCQHf; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232103AbjBHUii (ORCPT + 99 others); Wed, 8 Feb 2023 15:38:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232094AbjBHUih (ORCPT ); Wed, 8 Feb 2023 15:38:37 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71911976F; Wed, 8 Feb 2023 12:38:33 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 318KYLT4020473; Wed, 8 Feb 2023 20:37:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2022-7-12; bh=Fz+FHQCR/AArZdbtbzr9TdzXWdNsm9OWfRrg70mi0Uo=; b=m1+iCQHfRRTwbCngCib9juE6Unaq7ct9qJV0mIx7xca+mFuk69CzCkbwXLyf7fpUJtNK 2PNOC9ljai7nBiksO2QxuOyGebkAZ3gvsSlvUBxW34FwvJdv0+9BGmoY65HvJ86jMtpY 2ReuJNNFvSdNZusOdioX4Bs+xnVhS9LSLD7dkHBfkjtrA04OZUbtuNxSMdRsBlSbWZ2f w5sPQIVDOI8/81WWX9JFXwSmo+sBKCkNeoo8OK6dyTRODBv+Z8NL6ox76ZMoqDWHFfs3 bsnZV/e11T85cSSTtNKWN+MQCAt6hW4ee3SYD7CzNO9gakcf4EWDshcTV5XL9hU9iK7s Mw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3nhe53h8s9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 08 Feb 2023 20:37:44 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 318JbTxZ028341; Wed, 8 Feb 2023 20:37:43 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3nhdte9d1a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 08 Feb 2023 20:37:43 +0000 Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 318Kbhrc001108; Wed, 8 Feb 2023 20:37:43 GMT Received: from ca-dev112.us.oracle.com (ca-dev112.us.oracle.com [10.129.136.47]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3nhdte9d05-1; Wed, 08 Feb 2023 20:37:42 +0000 From: Saeed Mirzamohammadi To: stable@vger.kernel.org Cc: saeed.mirzamohammadi@oracle.com, Herbert Xu , "David S. Miller" , Maxime Coquelin , Alexandre Torgue , Eric Biggers , linux-crypto@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH stable 0/1] crypto: testmgr - don't generate WARN for missing modules Date: Wed, 8 Feb 2023 12:37:10 -0800 Message-Id: <20230208203711.951845-1-saeed.mirzamohammadi@oracle.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-08_09,2023-02-08_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302080175 X-Proofpoint-ORIG-GUID: Fun6MAX0JSxeNnCiIJ9yVVG4PKAyW1kZ X-Proofpoint-GUID: Fun6MAX0JSxeNnCiIJ9yVVG4PKAyW1kZ X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757297024124954250?= X-GMAIL-MSGID: =?utf-8?q?1757297024124954250?= I'm backporting the following stable patch to v5.11+ branches. Commit Data: commit-id : a76bd86a85cac9feddc66d38019f943d054f0218 subject : crypto: testmgr - don't generate WARN for missing modules author : elliott@hpe.com author date : 2022-08-13 23:14:43 committer : herbert@gondor.apana.org.au committer date : 2022-08-19 10:39:39 We observed the same WARN issue when loading the tcrypt module in a v5.15 kernel: [ 84.577572] modprobe tcrypt [ 84.920899] alg: skcipher: failed to allocate transform for ecb(cast5): -2 [ 84.923050] ------------[ cut here ]------------ [ 84.924541] alg: self-tests for ecb(cast5) (ecb(cast5)) failed (rc=-2) [ 84.924557] WARNING: CPU: 0 PID: 3910 at crypto/testmgr.c:5681 alg_test+0x344/0x5d8 This patch fixes this issue. Robert Elliott (1): crypto: testmgr - don't generate WARN for missing modules crypto/testmgr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)