[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120126023502.GA10696@gondor.apana.org.au>
Date: Thu, 26 Jan 2012 13:35:02 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: David Laight <David.Laight@...lab.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-crypto@...r.kernel.org, netdev@...r.kernel.org,
ken@...elabs.ch, Steffen Klassert <steffen.klassert@...unet.com>,
security@...nel.org, Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH 4/3] sha512: reduce stack usage even on i386
On Wed, Jan 18, 2012 at 09:02:10PM +0300, Alexey Dobriyan wrote:
> Fix still excessive stack usage on i386.
>
> There is too much loop unrolling going on, despite W[16] being used,
> gcc screws up this for some reason. So, don't be smart, use simple code
> from SHA-512 definition, this keeps code size _and_ stack usage back
> under control even on i386:
>
> -14b: 81 ec 9c 03 00 00 sub $0x39c,%esp
> +149: 81 ec 64 01 00 00 sub $0x164,%esp
>
> $ size ../sha512_generic-i386-00*
> text data bss dec hex filename
> 15521 712 0 16233 3f69 ../sha512_generic-i386-000.o
> 4225 712 0 4937 1349 ../sha512_generic-i386-001.o
>
> Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
> Cc: stable@...r.kernel.org
Hmm, your patch doesn't apply against my crypto tree. Please
regenerate.
Thanks,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists