From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752151AbbFJXhu (ORCPT ); Wed, 10 Jun 2015 19:37:50 -0400 Received: from mail-pd0-f193.google.com ([209.85.192.193]:33895 "EHLO mail-pd0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751556AbbFJXhk (ORCPT ); Wed, 10 Jun 2015 19:37:40 -0400 Date: Thu, 11 Jun 2015 08:38:06 +0900 From: Sergey Senozhatsky To: Stephan Mueller Cc: Sergey Senozhatsky , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, sergey.senozhatsky.work@gmail.com Subject: Re: [PATCH] crypto/drbg: report backend_cra_name when allocation fails Message-ID: <20150610233806.GA499@swordfish> References: <1433942868-16447-1-git-send-email-sergey.senozhatsky@gmail.com> <1433942868-16447-2-git-send-email-sergey.senozhatsky@gmail.com> <4705999.2gbf3TdHYZ@tauon.atsec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4705999.2gbf3TdHYZ@tauon.atsec.com> User-Agent: Mutt/1.5.23+89 (0255b37be491) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (06/10/15 17:09), Stephan Mueller wrote: > Hi Sergey, > > >Be more verbose and also report ->backend_cra_name when > >crypto_alloc_shash() or crypto_alloc_cipher() fail in > >drbg_init_hash_kernel() or drbg_init_sym_kernel() > >correspondingly. > > > >Example > > DRBG: could not allocate digest TFM handle: hmac(sha256) > > > >Signed-off-by: Sergey Senozhatsky > > Headscratch -- the Kconfig should have HMAC selected for compilation. When > HMAC is available (regardless whether it is a module or not), it is pulled in > by the kernel crypto API. Thus, there should not have been the error that HMAC > is missing. > > Can you send your .config file, please? > Hi Stephan, sure, will post it later (as soon as I get back to my laptop). -ss