projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ee7014
)
crypto: chacha20-ssse3 - Align stack pointer to 64 bytes
author
Eli Cooper
<
[email protected]
>
Thu, 21 Jan 2016 16:24:08 +0000
(
00:24
+0800)
committer
Herbert Xu
<
[email protected]
>
Mon, 25 Jan 2016 13:47:45 +0000
(21:47 +0800)
This aligns the stack pointer in chacha20_4block_xor_ssse3 to 64 bytes.
Fixes general protection faults and potential kernel panics.
Cc:
[email protected]
Signed-off-by: Eli Cooper <
[email protected]
>
Acked-by: Martin Willi <
[email protected]
>
Signed-off-by: Herbert Xu <
[email protected]
>
arch/x86/crypto/chacha20-ssse3-x86_64.S
patch
|
blob
|
history
diff --git
a/arch/x86/crypto/chacha20-ssse3-x86_64.S
b/arch/x86/crypto/chacha20-ssse3-x86_64.S
index 712b13047b41e9cdf7116048d0ffce510d3aa283..3a33124e91129e85c3f34fc6dc85ca43c8e35cff 100644
(file)
--- a/
arch/x86/crypto/chacha20-ssse3-x86_64.S
+++ b/
arch/x86/crypto/chacha20-ssse3-x86_64.S
@@
-157,7
+157,9
@@
ENTRY(chacha20_4block_xor_ssse3)
# done with the slightly better performing SSSE3 byte shuffling,
# 7/12-bit word rotation uses traditional shift+OR.
- sub $0x40,%rsp
+ mov %rsp,%r11
+ sub $0x80,%rsp
+ and $~63,%rsp
# x0..15[0-3] = s0..3[0..3]
movq 0x00(%rdi),%xmm1
@@
-620,6
+622,6
@@
ENTRY(chacha20_4block_xor_ssse3)
pxor %xmm1,%xmm15
movdqu %xmm15,0xf0(%rsi)
-
add $0x40
,%rsp
+
mov %r11
,%rsp
ret
ENDPROC(chacha20_4block_xor_ssse3)