From patchwork Wed May 4 04:34:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tadeusz Struk X-Patchwork-Id: 9009561 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4F08FBF440 for ; Wed, 4 May 2016 04:34:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F59020381 for ; Wed, 4 May 2016 04:34:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77AE320377 for ; Wed, 4 May 2016 04:34:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750776AbcEDEef (ORCPT ); Wed, 4 May 2016 00:34:35 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33634 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750708AbcEDEee (ORCPT ); Wed, 4 May 2016 00:34:34 -0400 Received: by mail-pa0-f66.google.com with SMTP id gh9so3877176pac.0; Tue, 03 May 2016 21:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=N/t1nZV+ZdUgLJXrE9qGMOMkVDLJz739ibIbabxJvsc=; b=GAbRqgXBPh/JP0O2UZpYUR7HDodNWcwNaeM48SJ32LDqfW3XF6OcuiK9hw8N1ffTge QS/WJ45JFBsir+0uivl+P5hwB7WinfpvJQO2/5xUF8WwEbK4ZIBhe9vaHXDBkvXWsAyY hdVMn5XMV1hXJfS//XExTGfIsXrMznuYvIXLMsCoPvC+h53Gm4KG2lgB7wrARVa4Xn2w Y69z12Dh9r7p4XOtnfZoC8spJ0vUFJoAwj85P9Slotey0TzFGhHGU18F32cifsQq1sre 6ux5HG/qw88Us+Bgw/nZ+kEBn0PFBSVEuxQHCU+bLypvPQE5hI3jLPdtm9WYhiqAFhI2 IFQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=N/t1nZV+ZdUgLJXrE9qGMOMkVDLJz739ibIbabxJvsc=; b=V/VSu4rha2mqW26D2BNyF1lbZIb07SeltzZECLe4D05JpEUfEfaxsnAV8wp+sfgBc0 qUouOoy4Ly3qRaBYT4mJ+wCqiXAPAuVJouVkjKDaTcrdkl0w1ODG14ARya73FbijX1By usyV4tsX4gR1dgR0+oXrndfH1wA/9Fxik+D8N5dx9uP2MTzUCXL4xZM23Cjt48x0s7SZ Q+GSUrndXaYgeKnp1XZn2ChUKwM/h1ty8i4m7FV2e7DQ44U1P7lil0ZiqjHhSZtwtBI0 aL+DASEBY6l0LqiUI/HT5QP9+ZpPZ3yV11XLL9SbT4Oz6mSRCnP5ZJWKDsL9bjB4JkbN P/+Q== X-Gm-Message-State: AOPr4FXsvd3J/dI7T3ALsZWfavtAzoqAnSf9eKrWRV9/So+/rqSJnQSpp5G+4YFfYnI9CQ== X-Received: by 10.66.182.161 with SMTP id ef1mr9008065pac.40.1462336473700; Tue, 03 May 2016 21:34:33 -0700 (PDT) Received: from desktop.home (c-73-240-235-156.hsd1.or.comcast.net. [73.240.235.156]) by smtp.googlemail.com with ESMTPSA id b140sm1943141pfb.19.2016.05.03.21.34.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2016 21:34:33 -0700 (PDT) Subject: Re: v4.6-rc1 regression bisected, Problem loading in-kernel X.509 certificate (-2) To: Jamie Heilman References: <20160503172536.GC20775@cucamonga.audible.transient.net> <20160430083248.GA20775@cucamonga.audible.transient.net> <26795.1462266613@warthog.procyon.org.uk> <11323.1462307740@warthog.procyon.org.uk> <20160504022608.GF20775@cucamonga.audible.transient.net> Cc: David Howells , Herbert Xu , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, tadeusz.struk@intel.com From: Tadeusz Struk Message-ID: <45d1a06b-4ec4-17f5-2888-3068558da0bb@gmail.com> Date: Tue, 3 May 2016 21:34:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20160504022608.GF20775@cucamonga.audible.transient.net> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 05/03/2016 07:26 PM, Jamie Heilman wrote: >>> Alrighty, presumably relevant bits: >>> > > >>> > > X.509: Cert Issuer: Build time autogenerated kernel key >>> > > X.509: Cert Subject: Build time autogenerated kernel key >>> > > X.509: Cert Key Algo: rsa >>> > > X.509: Cert Valid period: 1461826791-4615426791 >>> > > X.509: Cert Signature: rsa + sha512 >>> > > X.509: ==>x509_check_signature() >>> > > X.509: ==>x509_get_sig_params() >>> > > X.509: <==x509_get_sig_params() = 0 >>> > > PKEY: ==>public_key_verify_signature() >>> > > X.509: Cert Verification: -2 >> > >> > Hmmm... Okay, the only ways out of public_key_verify_signature() without >> > printing a leaving message are for snprintf() to overrun (which would return >> > error -22) or for crypto_alloc_akcipher() to have failed; everything else must >> > go through the kleave() at the pr_devel() at the bottom of the function. >> > >> > Can you stick: >> > >> > pr_devel("ALGO: %s\n", alg_name); >> > >> > immediately before this line: >> > >> > tfm = crypto_alloc_akcipher(alg_name, 0, 0); >> > >> > and try it again? > PKEY: ALGO: pkcs1pad(rsa,sha512) I think the problem is that pkcs1pad template needs CRYPTO_MANAGER, but your configuration doesn't enable CRYPTO_MANAGER. Could you try this please: --- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/crypto/Kconfig b/crypto/Kconfig index 93a1fdc..1d33beb 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -96,6 +96,7 @@ config CRYPTO_AKCIPHER config CRYPTO_RSA tristate "RSA algorithm" select CRYPTO_AKCIPHER + select CRYPTO_MANAGER select MPILIB select ASN1 help