diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2023-11-30 20:56:01 +0300 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2023-12-11 16:33:05 +0300 |
commit | 3b2e00f167f493ca1de7451310f1ce56f0b27fcb (patch) | |
tree | 4510723a2e6571fb70e00903c6f5e929782ad1a5 /scripts/gdb/linux/utils.py | |
parent | b988b1bb0053c0dcd26187d29ef07566a565cf55 (diff) | |
download | linux-3b2e00f167f493ca1de7451310f1ce56f0b27fcb.tar.xz |
KVM: s390: use READ_ONCE() to read fpc register value
Use READ_ONCE() to read a vcpu's floating point register value from
the memory mapped area. This avoids that, depending on code
generation, a different value is tested for validity than the one that
is used, since user space can modify the area concurrently and the
compiler is free to generate code that reads the value multiple times.
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions