Re: sha-512...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Feb 2012 15:01:28 +1100

> On Tue, Feb 14, 2012 at 10:58:33PM -0500, David Miller wrote:
>> 
>> FYI, I just started seeing this on sparc32 after all those
>> sha512 "optimizations":
>> 
>> crypto/sha512_generic.c: In function 'sha512_transform':
>> crypto/sha512_generic.c:135:1: warning: the frame size of 1136 bytes is larger than 1024 bytes [-Wframe-larger-than=]
> 
> Is that with the latest patch applied?
> 
> 	crypto: sha512 - Avoid stack bloat on i386
> 
> If so then this is not good.

Yes.  And, of course, with that commit reverted it's even worse.
Reverting it makes the stack frame twice as large.

> What was the original stack usage, i.e., if you revert to the
> original percpu code?

If I revert:

commit 3a92d687c8015860a19213e3c102cad6b722f83c
commit 58d7d18b5268febb8b1391c6dffc8e2aaa751fcd
commit 51fc6dc8f948047364f7d42a4ed89b416c6cc0a3
commit 84e31fdb7c797a7303e0cc295cb9bc8b73fb872d

the stackframe goes down to 888 bytes.

More detailed, the progression is:

master						1136
revert 3a92d687c8015860a19213e3c102cad6b722f83c	2408
revert 58d7d18b5268febb8b1391c6dffc8e2aaa751fcd	2408
revert 51fc6dc8f948047364f7d42a4ed89b416c6cc0a3	1520
revert 84e31fdb7c797a7303e0cc295cb9bc8b73fb872d	888
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux