mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
x86: wrong register was used in align macro
New ALIGN_DESTINATION macro has sad typo: r8d register was used instead of ecx in fixup section. This can be considered as a regression. Register ecx was also wrongly loaded with value in r8d in copy_user_nocache routine. Signed-off-by: Vitaly Mayatskikh <v.mayatskih@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
bd3e64c175
commit
afd962a9e8
@ -52,7 +52,7 @@
|
|||||||
jnz 100b
|
jnz 100b
|
||||||
102:
|
102:
|
||||||
.section .fixup,"ax"
|
.section .fixup,"ax"
|
||||||
103: addl %r8d,%edx /* ecx is zerorest also */
|
103: addl %ecx,%edx /* ecx is zerorest also */
|
||||||
jmp copy_user_handle_tail
|
jmp copy_user_handle_tail
|
||||||
.previous
|
.previous
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
jnz 100b
|
jnz 100b
|
||||||
102:
|
102:
|
||||||
.section .fixup,"ax"
|
.section .fixup,"ax"
|
||||||
103: addl %r8d,%edx /* ecx is zerorest also */
|
103: addl %ecx,%edx /* ecx is zerorest also */
|
||||||
jmp copy_user_handle_tail
|
jmp copy_user_handle_tail
|
||||||
.previous
|
.previous
|
||||||
|
|
||||||
@ -108,7 +108,6 @@ ENTRY(__copy_user_nocache)
|
|||||||
jmp 60f
|
jmp 60f
|
||||||
50: movl %ecx,%edx
|
50: movl %ecx,%edx
|
||||||
60: sfence
|
60: sfence
|
||||||
movl %r8d,%ecx
|
|
||||||
jmp copy_user_handle_tail
|
jmp copy_user_handle_tail
|
||||||
.previous
|
.previous
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user