WSL2-Linux-Kernel/arch/s390/lib
Heiko Carstens 7a71fd1c59 s390/lib: add missing memory barriers to string inline assemblies
We have a couple of inline assemblies like memchr() and strlen() that
read from memory, but tell the compiler only they need the addresses
of the strings they access.
This allows the compiler to omit the initialization of such strings
and therefore generate broken code. Add the missing memory barrier to
all string related inline assemblies to fix this potential issue. It
looks like the compiler currently does not generate broken code due to
these bugs.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-12-14 16:33:41 +01:00
..
Makefile s390/xor: optimized xor routing using the XC instruction 2016-02-23 08:56:17 +01:00
delay.c s390/udelay: make udelay have busy loop semantics 2015-10-14 14:32:13 +02:00
find.c s390/bitops: remove 31 bit related comments 2015-10-14 14:32:15 +02:00
mem.S s390: provide memmove implementation 2016-12-12 12:11:32 +01:00
probes.c s390/uprobes: fix kprobes dependency 2014-10-17 14:45:51 +02:00
spinlock.c locking/spinlocks, s390: Implement vcpu_is_preempted(cpu) 2016-11-22 12:48:06 +01:00
string.c s390/lib: add missing memory barriers to string inline assemblies 2016-12-14 16:33:41 +01:00
uaccess.c Implements HARDENED_USERCOPY verification of copy_to_user/copy_from_user 2016-08-08 14:48:14 -07:00
xor.c s390/xor: optimized xor routing using the XC instruction 2016-02-23 08:56:17 +01:00