Herbert Xu a écrit :
Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:
crypto: padlock-sha - Fix stack alignment
The PadLock hardware requires the output buffer for SHA to be
128-bit aligned. We currentply place the buffer on the stack,
and ask gcc to align it to 128 bits. That doesn't work on i386
because the kernel stack is only aligned to 32 bits. This patch
changes the code to align the buffer by hand so that the hardware
doesn't fault on unaligned buffers.
Reported-by: Séguier Régis <rguier@xxxxxxxxxxxxxx>
Tested-by: Séguier Régis <rguier@xxxxxxxxxxxxxx>
Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
For the record I modified the patch slightly to ensure that
we get the minimum alignment from gcc
Ok, tested, good for me.
Just, not important, my mail is not rguier@xxxxxxxxxxxxxx but
rseguier@xxxxxxxxxxxxxx for the changelog.
--
Régis Séguier
--
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