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)
commit4630535c64725bcd722eb59fb8d92be8db943d3d
tree5e1e91f790fcf678c1d33d7b89575d29b7d0456e
parent3163600cab67ffd276a3bb97891404c59c8595a4
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