From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan =?ISO-8859-1?Q?M=FCller?= Subject: Re: [PATCH v2 04/11] crypto: move drbg to generic async completion Date: Mon, 29 May 2017 11:04:01 +0200 Message-ID: <1638335.mkZCLTBCSi@tauon.chronox.de> References: <1496046180-21962-1-git-send-email-gilad@benyossef.com> <1496046180-21962-5-git-send-email-gilad@benyossef.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1496046180-21962-5-git-send-email-gilad@benyossef.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Gilad Ben-Yossef Cc: linux-security-module@l.org, Mike Snitzer , linux-doc@vger.kernel.org, David Howells , dm-devel@redhat.com, keyrings@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, Pavel Shilovsky , Alasdair Kergon , linux-cifs@vger.kernel.org, Herbert Xu , Jonathan Corbet , Mimi Zohar , "Serge E. Hallyn" , linux-ima-user@lists.sourceforge.net, Eric Biggers , linux-raid@vger.kernel.org, linux-fscrypt@vger.kernel.org, James Morris , Jaegeuk Kim , Ofir Drang , "Theodore Y. Ts'o" , Dmitry Kasatkin , samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, Steve French List-Id: linux-raid.ids Am Montag, 29. Mai 2017, 10:22:51 CEST schrieb Gilad Ben-Yossef: Hi Gilad, > DRBG is starting an async. crypto op and waiting for it complete. > Move it over to generic code doing the same. > = > The code now also passes CRYPTO_TFM_REQ_MAY_SLEEP flag indicating > crypto request memory allocation may use GFP_KERNEL which should > be perfectly fine as the code is obviously sleeping for the > completion of the request any way. > = > Signed-off-by: Gilad Ben-Yossef Acked-by: Stephan M=FCller However, please note that there is a patch "crypto:drbg- Fixes panic in = wait_for_completion call." which adds another init_completion. I guess that = needs conversion to crypto_init_wait as well, once this patch set is accept= ed. Ciao Stephan