aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorNicholas Piggin <[email protected]>2018-05-30 20:31:22 +1000
committerMichael Ellerman <[email protected]>2018-06-03 20:40:37 +1000
commit926bc2f100c24d4842b3064b5af44ae964c1d81c (patch)
tree9b674eb4430661a7065ce3866651d6cfae69f1c4 /tools/perf/scripts/python/bin/stackcollapse-record
parent0cef77c7798a7832769fbd25a4d0b0b3361cc6f0 (diff)
powerpc/64s: Fix compiler store ordering to SLB shadow area
The stores to update the SLB shadow area must be made as they appear in the C code, so that the hypervisor does not see an entry with mismatched vsid and esid. Use WRITE_ONCE for this. GCC has been observed to elide the first store to esid in the update, which means that if the hypervisor interrupts the guest after storing to vsid, it could see an entry with old esid and new vsid, which may possibly result in memory corruption. Signed-off-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions