diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-09-21 23:21:53 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-09-21 23:21:53 -0700 |
commit | 4c6ab3ee4cdb86cbd4e9400dd22fad7701cbe795 (patch) | |
tree | b610dde153d80babcb01d84fec35134d0c08f34d /usr/gen_init_cpio.c | |
parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) | |
download | kernel_samsung_smdk4412-4c6ab3ee4cdb86cbd4e9400dd22fad7701cbe795.zip kernel_samsung_smdk4412-4c6ab3ee4cdb86cbd4e9400dd22fad7701cbe795.tar.gz kernel_samsung_smdk4412-4c6ab3ee4cdb86cbd4e9400dd22fad7701cbe795.tar.bz2 |
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@e-teleport.net>
Tested-by: Séguier Régis <rguier@e-teleport.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'usr/gen_init_cpio.c')
0 files changed, 0 insertions, 0 deletions