From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758324AbZBYOyq (ORCPT ); Wed, 25 Feb 2009 09:54:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754385AbZBYOyf (ORCPT ); Wed, 25 Feb 2009 09:54:35 -0500 Received: from cantor2.suse.de ([195.135.220.15]:35651 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442AbZBYOyf (ORCPT ); Wed, 25 Feb 2009 09:54:35 -0500 Message-ID: <49A55BA8.2060205@suse.de> Date: Wed, 25 Feb 2009 15:54:32 +0100 From: Frank Seidel User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Geert Uytterhoeven Cc: Frank Seidel , Herbert Xu , linux kernel , linux-crypto@vger.kernel.org, akpm@linux-foundation.org, "David S. Miller" , nhorman@tuxdriver.com, lho@amcc.com, kaber@trash.net, darrenrjenkins@gmail.com, Greg KH , Frank Seidel Subject: Re: [PATCH][trivial] crypto: tcrypt - reduce stack size References: <49A54C23.8090209@suse.de> <20090225142000.GA4136@gondor.apana.org.au> <49A55499.6090700@suse.de> <20090225142744.GA4331@gondor.apana.org.au> <49A55771.1050408@suse.de> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Geert Uytterhoeven wrote: > On Wed, 25 Feb 2009, Frank Seidel wrote: > Wel... > > Using kmalloc() increases code size, makes the code more complex, and increases > the risk of introducing a memory leak now or later. Ok, admitted. >> I just stumbled over tcrypt on the make checkstack output and as also >> the kerneljanitors todo advises to reduce this footprint where possible >> i just wanted to help out here. > > Reducing stack usage is fine. However, for a loadable test module without > concurrency issues it's far easier to do that by just making the data static. Is PATCHv3 then ok for you? Thanks, Frank