Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp846781iog; Thu, 30 Jun 2022 11:14:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sLf4kNNdma2N1vDwzVWNuG04pNopdyVRj6btTzFdMnYUkWoeOW0eaKO003JyLoKdviXIfd X-Received: by 2002:a17:906:f51:b0:6fe:cf1c:cdbf with SMTP id h17-20020a1709060f5100b006fecf1ccdbfmr9706454ejj.695.1656612881831; Thu, 30 Jun 2022 11:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656612881; cv=none; d=google.com; s=arc-20160816; b=sP5N8NVe6u3ow4Vs08iTqyGouNfbONQjzR/QHHC6PS1nde+Rhsrk7OOnnTDa0B/vdG V5axuwujikpRZsICABgHESCVz0KCMiv5ovHeM1bKJpdwlrjfBSobBNaTm2zJW2aJw7tn KITvlp2AyJp/6CmkI03mPPYu6a3g1ez9FMcF+wzeIxnejzfpVcKmyGERFZ1BP+GQmWf4 4Q07c5dvShRYJ0jabwABddVSfSle6GYIffH+skHMCXjR4RiiuGt8+hMKHD/i77R6zU/A 6Kn0oGzPkoHXhtUccQvlAhQJ3BsO4IxkmVHEAf2deFXnn0h9Kk/91uXrk9qa6zM0+bwX 9BbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=88WZx86HudOPmlmqtdxMaUGdFLqWwn/ZdU9TIZdzHfw=; b=mt8plW/0k24UGLI4KYcHpMD/5LOVBvaXbp6dLiiJTuwgXZz3m3NuxO0agIQrrEOBRm EBUMb+i8haabvj1jDUZAeEc5Zn6znLZNZOdqQK2Q+bm8QusE4NCNNtzuH8XTFlL3UU6B zzpEEAA+c1Z8S2JbUFtvxf7D6Zg2t76+VrF6gu4wfGFBOcoti95RdfU8GOkzBIYCYxrx cJSN8l6FdnA9rNk8fibjw8MhrBxnWCqOIiR01/smhbAjny5PDCb7b+MYO8qC45icBoI4 BfMz3/ebNAmyx9CDcy62GEYnmSvC7cURBTdkX947uwGPN6jP1XcQX4auG1pXPVnr6xpT vKAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ee74leaS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga34-20020a1709070c2200b00726bdd2e93csi8926689ejc.350.2022.06.30.11.14.05; Thu, 30 Jun 2022 11:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@ibm.com header.s=pp1 header.b=ee74leaS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235944AbiF3SLL (ORCPT + 99 others); Thu, 30 Jun 2022 14:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbiF3SLJ (ORCPT ); Thu, 30 Jun 2022 14:11:09 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D28338DB3; Thu, 30 Jun 2022 11:11:08 -0700 (PDT) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25UHhnid032979; Thu, 30 Jun 2022 18:11:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : content-type : content-transfer-encoding : mime-version : subject : message-id : date : cc : to; s=pp1; bh=88WZx86HudOPmlmqtdxMaUGdFLqWwn/ZdU9TIZdzHfw=; b=ee74leaSvYnIQz2UIsvogJTQw92ctL4gKmh/u/mRG149J6OgFi9XvzefSgZhALk3IBJX HaG72UGW2mG5hNjVX9fqdOo8BWr2IvfEOGQunihEHWsqFPDnEqmqf14juvfnspNBkGEj ErY7pT4eWuS5WHD//KCCLJGBoP2yDaCNmtK0yKzRoMnaKkR9lCgaNxp9/zvQTwCrHn+l wohnNWMTOJtIpEiytBwEacUtWJH+3nq2prXLOn/6sNuqdF8JhLvGlQKxkAxbKxhmy1tY U1JJPE9DHz1YrgVHGw4pEn26AA+CIUzwQpEqMvMY0m23FCKbi668+fUIwI3eewx7lRf4 xg== Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h1gg10qyn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Jun 2022 18:11:02 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 25UI5BSm018370; Thu, 30 Jun 2022 18:11:00 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma03ams.nl.ibm.com with ESMTP id 3gwt090h8c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Jun 2022 18:11:00 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 25UIAvNK22675890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Jun 2022 18:10:57 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BA008AE055; Thu, 30 Jun 2022 18:10:57 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B8056AE051; Thu, 30 Jun 2022 18:10:56 +0000 (GMT) Received: from smtpclient.apple (unknown [9.43.9.111]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 30 Jun 2022 18:10:56 +0000 (GMT) From: Sachin Sant Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: WARN at crypto/testmgr.c:5774 (next) Message-Id: <74179C93-0D19-4A8A-81EB-07BD836A3BD3@linux.ibm.com> Date: Thu, 30 Jun 2022 23:40:55 +0530 Cc: linuxppc-dev@lists.ozlabs.org, linux-next@vger.kernel.org To: linux-crypto@vger.kernel.org, ignat@cloudflare.com X-Mailer: Apple Mail (2.3696.100.31) X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: dH9DkQw1GlHuk-TbHhjTCU6LWfgClaTS X-Proofpoint-GUID: dH9DkQw1GlHuk-TbHhjTCU6LWfgClaTS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-30_12,2022-06-28_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 bulkscore=0 spamscore=0 mlxlogscore=634 adultscore=0 phishscore=0 clxscore=1011 suspectscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206300070 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEXHASH_WORD,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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-crypto@vger.kernel.org Following warning is seen while booting recent -next kernel on IBM Power = server. [ 1.544420] ------------[ cut here ]------------ [ 1.544422] alg: self-tests for rsa-generic (rsa) failed (rc=3D-22) [ 1.544429] WARNING: CPU: 18 PID: 512 at crypto/testmgr.c:5774 = alg_test+0x42c/0x850 [ 1.544437] Modules linked in: [ 1.544441] CPU: 18 PID: 512 Comm: cryptomgr_test Not tainted = 5.19.0-rc4-next-20220627 #2 [ 1.544446] NIP: c0000000006fa76c LR: c0000000006fa768 CTR: = c0000000008552e0 [ 1.544448] REGS: c000000008a27980 TRAP: 0700 Not tainted = (5.19.0-rc4-next-20220627) [ 1.544451] MSR: 8000000000029033 CR: = 28008822 XER: 20040005 [ 1.544458] CFAR: c000000000154114 IRQMASK: 0=20 [ 1.544458] GPR00: c0000000006fa768 c000000008a27c20 c000000002a8ff00 = 0000000000000035=20 [ 1.544458] GPR04: 00000000ffff7fff c000000008a279e0 c000000008a279d8 = 0000000000000000=20 [ 1.544458] GPR08: 00000000ffff7fff 0000000000000000 c0000000025c6ff8 = c000000002947160=20 [ 1.544458] GPR12: 0000000000008000 c0000009afff3f00 c00000000018c6f8 = c0000000070c5180=20 [ 1.544458] GPR16: 0000000000000000 0000000000000000 0000000000000000 = 0000000000000000=20 [ 1.544458] GPR20: 0000000000000000 0000000000000000 0000000000000000 = c000000000f1c230=20 [ 1.544458] GPR24: 0000000000000000 c00000000e679080 0000000000000400 = ffffffffffffffff=20 [ 1.544458] GPR28: c00000000e679000 000000000000000d c000000002d814a8 = ffffffffffffffea=20 [ 1.544491] NIP [c0000000006fa76c] alg_test+0x42c/0x850 [ 1.544495] LR [c0000000006fa768] alg_test+0x428/0x850 [ 1.544499] Call Trace: [ 1.544500] [c000000008a27c20] [c0000000006fa768] = alg_test+0x428/0x850 (unreliable) [ 1.544505] [c000000008a27d90] [c0000000006f8df0] = cryptomgr_test+0x40/0x70 [ 1.544510] [c000000008a27dc0] [c00000000018c814] kthread+0x124/0x130 [ 1.544514] [c000000008a27e10] [c00000000000cdf4] = ret_from_kernel_thread+0x5c/0x64 [ 1.544518] Instruction dump: [ 1.544520] 409e02e0 3d22002f 892915d1 2f890000 409e02d0 3c62fe77 = 7f25cb78 7f84e378=20 [ 1.544526] 7fe6fb78 3863ac78 4ba59949 60000000 <0fe00000> fa2100f8 = fa410100 fa610108=20 [ 1.544532] ---[ end trace 0000000000000000 ]=E2=80=94 Git bisect points to the following patch. # git bisect bad f145d411a67efacc0731fc3f9c7b2d89fb62523a is the first bad commit commit f145d411a67efacc0731fc3f9c7b2d89fb62523a crypto: rsa - implement Chinese Remainder Theorem for faster private = key operations Reverting the patch helps avoid this boot time warning. - Sachin=