[dm-devel] dm-integrity: don't store cipher request on the stack (was: [QUESTION] hash import and request initialization)
Mike Snitzer
snitzer at redhat.com
Wed Jan 10 15:13:53 UTC 2018
On Wed, Jan 10 2018 at 9:32am -0500,
Mikulas Patocka <mpatocka at redhat.com> 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
More information about the dm-devel
mailing list