Re: [PATCH] crypto: serpent: improve __serpent_setkey with UBSAN

2017-08-09 Thread Herbert Xu
On Mon, Jul 31, 2017 at 10:43:55PM +0200, Arnd Bergmann wrote: > When UBSAN is enabled, we get a very large stack frame for > __serpent_setkey, when the register allocator ends up using more registers > than it has, and has to spill temporary values to the stack. The code > was originally optimized

[PATCH] crypto: serpent: improve __serpent_setkey with UBSAN

2017-07-31 Thread Arnd Bergmann
When UBSAN is enabled, we get a very large stack frame for __serpent_setkey, when the register allocator ends up using more registers than it has, and has to spill temporary values to the stack. The code was originally optimized for in-order x86-32 CPU implementations using older compilers, but it