aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2023-11-30 18:56:01 +0100
committerAlexander Gordeev <[email protected]>2023-12-11 14:33:05 +0100
commit3b2e00f167f493ca1de7451310f1ce56f0b27fcb (patch)
tree4510723a2e6571fb70e00903c6f5e929782ad1a5 /scripts/gdb/linux/utils.py
parentb988b1bb0053c0dcd26187d29ef07566a565cf55 (diff)
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 <[email protected]> Reviewed-by: Claudio Imbrenda <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions