]> git.baikalelectronics.ru Git - kernel.git/commit
x86: drop bogus "cc" clobber from __try_cmpxchg_user_asm()
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 15:00:53 +0000 (17:00 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jun 2022 15:28:49 +0000 (11:28 -0400)
commit0ba8808c8605def41503f34c4ba014371430fd66
tree7c2da2799c4931cc8217195caa243302ba3df604
parentdc4349dda332e1ea2beda0d5a0cab308c18c2b1e
x86: drop bogus "cc" clobber from __try_cmpxchg_user_asm()

As noted (and fixed) a couple of times in the past, "=@cc<cond>" outputs
and clobbering of "cc" don't work well together. The compiler appears to
mean to reject such, but doesn't - in its upstream form - quite manage
to yet for "cc". Furthermore two similar macros don't clobber "cc", and
clobbering "cc" is pointless in asm()-s for x86 anyway - the compiler
always assumes status flags to be clobbered there.

Fixes: f6d21aee53fe ("x86/uaccess: Implement macros for CMPXCHG on user addresses")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Message-Id: <485c0c0b-a3a7-0b7c-5264-7d00c01de032@suse.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/uaccess.h