]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/lib,uaccess: fix copy_in_user_mvcos() inline asm clobber list
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 28 Jun 2021 21:55:53 +0000 (23:55 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 5 Jul 2021 10:44:23 +0000 (12:44 +0200)
General register 0 is clobbered within the inline assembly and
therefore must be listed in the clobber list.

Fixes: 158b2e54adb1 ("s390/lib,uaccess: get rid of register asm")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/lib/uaccess.c

index 67606d932825be059ed7be1028aa9e0786891c31..7ec8b1fa0f089156ff62b2c2e1a02f0a6de110e9 100644 (file)
@@ -224,7 +224,7 @@ static inline unsigned long copy_in_user_mvcos(void __user *to, const void __use
                EX_TABLE(0b,3b)
                : "+a" (size), "+a" (to), "+a" (from), "+a" (tmp1), "=a" (tmp2)
                : [spec] "d" (0x810081UL)
-               : "cc", "memory");
+               : "cc", "memory", "0");
        return size;
 }