]> git.baikalelectronics.ru Git - kernel.git/commit
x86/uaccess: Improve __try_cmpxchg64_user_asm() for x86_32
authorUros Bizjak <ubizjak@gmail.com>
Tue, 28 Jun 2022 16:16:12 +0000 (18:16 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 15 Aug 2022 17:18:12 +0000 (19:18 +0200)
commitd4509a25c2d4b2cd3e55b25e0acfab56ab9f6d35
tree5e1e91f790fcf678c1d33d7b89575d29b7d0456e
parentd3221f65553de30e8a0e13f25168e4713231f3e7
x86/uaccess: Improve __try_cmpxchg64_user_asm() for x86_32

Improve __try_cmpxcgh64_user_asm() for !CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT
by relaxing the output register constraint from "c" to "q" constraint,
which allows the compiler to choose between %ecx or %ebx register.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220628161612.7993-1-ubizjak@gmail.com
arch/x86/include/asm/uaccess.h