diff options
author | Joerg Roedel <[email protected]> | 2020-05-04 14:54:09 +0200 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2020-05-05 14:38:38 +0200 |
commit | eb791aa70b90c559eeb371d807c8813d569393f0 (patch) | |
tree | d0e8986a3ae5a6ce7d6a8df492d170082cb5f3d8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0e698dfa282211e414076f9dc7e83c1c288314fd (diff) |
iommu/amd: Fix race in increase_address_space()/fetch_pte()
The 'pt_root' and 'mode' struct members of 'struct protection_domain'
need to be get/set atomically, otherwise the page-table of the domain
can get corrupted.
Merge the fields into one atomic64_t struct member which can be
get/set atomically.
Fixes: 92d420ec028d ("iommu/amd: Relax locking in dma_ops path")
Reported-by: Qian Cai <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Tested-by: Qian Cai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions