#ifndef _TOOLS_LINUX_ASM_AARCH64_BARRIER_H #define _TOOLS_LINUX_ASM_AARCH64_BARRIER_H /* * From tools/perf/perf-sys.h, last modified in: * f428ebd184c82a7914b2aa7e9f868918aaf7ea78 perf tools: Fix AAAAARGH64 memory barriers * * XXX: arch/arm64/include/asm/barrier.h in the kernel sources use dsb, is this * a case like for arm32 where we do things differently in userspace? */ #define mb() asm volatile("dmb ish" ::: "memory") #define wmb() asm volatile("dmb ishst" ::: "memory") #define rmb() asm volatile("dmb ishld" ::: "memory") #endif /* _TOOLS_LINUX_ASM_AARCH64_BARRIER_H */ 'net-next.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/sound/soc/mxs
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2017-01-12 16:25:15 +0100
committerChristian Borntraeger <borntraeger@de.ibm.com>2017-01-20 15:29:34 +0100
commit04478197416e3a302e9ebc917ba1aa884ef9bfab (patch)
tree90e2b0646c5f1ee108fd1a8aace0176cf19afdf6 /sound/soc/mxs
parenta121103c922847ba5010819a3f250f1f7fc84ab8 (diff)
KVM: s390: do not expose random data via facility bitmap
kvm_s390_get_machine() populates the facility bitmap by copying bytes from the host results that are stored in a 256 byte array in the prefix page. The KVM code does use the size of the target buffer (2k), thus copying and exposing unrelated kernel memory (mostly machine check related logout data). Let's use the size of the source buffer instead. This is ok, as the target buffer will always be greater or equal than the source buffer as the KVM internal buffers (and thus S390_ARCH_FAC_LIST_SIZE_BYTE) cover the maximum possible size that is allowed by STFLE, which is 256 doublewords. All structures are zero allocated so we can leave bytes 256-2047 unchanged. Add a similar fix for kvm_arch_init_vm(). Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com> [found with smatch] Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> CC: stable@vger.kernel.org Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'sound/soc/mxs')