From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: dm-integrity: don't store cipher request on the stack (was: [QUESTION] hash import and request initialization) Date: Wed, 10 Jan 2018 10:13:53 -0500 Message-ID: <20180110151353.GA23626@redhat.com> References: <20171226030751.GA11758@gondor.apana.org.au> <20171226104010.GA28275@gondor.apana.org.au> <20171227033500.GA32764@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Herbert Xu , Gilad Ben-Yossef , dm-devel@redhat.com, Linux Crypto Mailing List To: Mikulas Patocka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:42640 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964976AbeAJPOJ (ORCPT ); Wed, 10 Jan 2018 10:14:09 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Wed, Jan 10 2018 at 9:32am -0500, Mikulas Patocka wrote: > > > On Wed, 27 Dec 2017, Herbert Xu wrote: > > > On Tue, Dec 26, 2017 at 02:21:53PM +0200, Gilad Ben-Yossef wrote: > > > > > > See how SKCIPHER_REQUEST_ON_STACK is being used with an asymmetric skcipher > > > in drivers/md/dm-integrity.c > > > > That's just broken. SKCIPHER_REQUEST_ON_STACK is only meant for > > sync algorithms and this code needs to be changed to either do the > > proper request allocation or switch over to allocating sync > > algorithms. > > > > Cheers, > > Hi > > Here I send a patch that moves those allocations to the heap. Thanks, I'll review and hope to stage for 4.16 today. Mike