From: Tadeusz Struk Subject: Re: [crypto / sparc64] cryptomgr_test OOPS Date: Thu, 5 May 2016 08:00:19 -0700 Message-ID: References: <20160503.123301.298039059390449291.davem@davemloft.net> <20160504040731.GA25758@gondor.apana.org.au> <20160505084249.GA4971@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Herbert Xu , David Miller , linux-crypto@vger.kernel.org, sparclinux@vger.kernel.org, Nicolai Stange To: Anatoly Pugachev Return-path: Received: from mga04.intel.com ([192.55.52.120]:31414 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756507AbcEEPBK (ORCPT ); Thu, 5 May 2016 11:01:10 -0400 In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On 05/05/2016 02:40 AM, Anatoly Pugachev wrote: > sure, based on your cryptodev git, just tried 4.3 (6a13feb , good) > kernel in attempt to find (bisect) when RSA code break, already tested > 4.5 (44d1b6d , bad) , 4.4 (afd2ff9 , bad). > Going to try your patch soon (when I'm back home). > So far 4.3 passes RSA stage without OOPS, but for other reason does > not boot to login prompt. Boot log exempt (4.3), this is with > CONFIG_CRYPTO_RSA=y : Anatoly, could you also give this a try please: Thanks diff --git a/crypto/testmgr.c b/crypto/testmgr.c index b86883a..770970ff 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -1805,8 +1805,8 @@ static int do_test_rsa(struct crypto_akcipher *tfm, goto free_req; sg_init_table(src_tab, 2); - sg_set_buf(&src_tab[0], vecs->m, 8); - sg_set_buf(&src_tab[1], vecs->m + 8, vecs->m_size - 8); + sg_set_buf(&src_tab[0], vecs->m, 4); + sg_set_buf(&src_tab[1], vecs->m + 4, vecs->m_size - 4); sg_init_one(&dst, outbuf_enc, out_len_max); akcipher_request_set_crypt(req, src_tab, &dst, vecs->m_size, out_len_max); -- TS