]> git.baikalelectronics.ru Git - kernel.git/commit
s390/vtime: fix inline assembly clobber list
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 2 Feb 2021 15:45:37 +0000 (16:45 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 9 Feb 2021 14:57:05 +0000 (15:57 +0100)
commitd7b5867b9f57822e41cf0cebc45a2fafe44f4efb
tree1b9f005d34b86e12bc9e50d79b2e848e659e5332
parent8d2d3787f64a75c66034e0ebf526c50187b8b688
s390/vtime: fix inline assembly clobber list

The stck/stckf instruction used within the inline assembly within
do_account_vtime() changes the condition code. This is not reflected
with the clobber list, and therefore might result in incorrect code
generation.

It seems unlikely that the compiler could generate incorrect code
considering the surrounding C code, but it must still be fixed.

Cc: <stable@vger.kernel.org>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/vtime.c