From: Andy Lutomirski Subject: Re: Doing crypto in small stack buffers (bluetooth vs vmalloc-stack crash, etc) Date: Thu, 23 Jun 2016 15:11:00 -0700 Message-ID: References: <20160622004214.GA27134@gondor.apana.org.au> <20160623034825.GB7819@gondor.apana.org.au> <20160623064137.GA8958@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Andy Lutomirski , linux-bluetooth@vger.kernel.org, Johan Hedberg , Gustavo Padovan , Marcel Holtmann , linux-crypto@vger.kernel.org, "David S. Miller" , "linux-kernel@vger.kernel.org" , Linus Torvalds , Network Development To: Herbert Xu Return-path: Received: from mail-vk0-f48.google.com ([209.85.213.48]:33137 "EHLO mail-vk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130AbcFWWLV (ORCPT ); Thu, 23 Jun 2016 18:11:21 -0400 Received: by mail-vk0-f48.google.com with SMTP id d185so126615086vkg.0 for ; Thu, 23 Jun 2016 15:11:20 -0700 (PDT) In-Reply-To: <20160623064137.GA8958@gondor.apana.org.au> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Wed, Jun 22, 2016 at 11:41 PM, Herbert Xu wrote: > On Thu, Jun 23, 2016 at 11:48:25AM +0800, Herbert Xu wrote: >> >> No we never had such an API in the kernel. However, I see that >> rxkad does some pretty silly things and we should be able to avoid >> using the stack in pretty much all cases. Let me try to come up with >> something. > > Here it is: > > ---8<--- > Subject: rxrpc: Avoid using stack memory in SG lists in rxkad Looks reasonable to me. Unless anyone tells me otherwise, my plan is to queue it in my virtually-mapped stack series and to ask Ingo to apply it via -tip. If it went in via the networking tree, that would work as well, but it would introduce a bisectability problem. Thanks! --Andy