diff options
| author | Joerg Roedel <[email protected]> | 2020-05-04 12:54:09 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2020-05-05 12:38:38 +0000 |
| commit | eb791aa70b90c559eeb371d807c8813d569393f0 (patch) | |
| tree | d0e8986a3ae5a6ce7d6a8df492d170082cb5f3d8 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | Linux 5.7-rc4 (diff) | |
| download | kernel-eb791aa70b90c559eeb371d807c8813d569393f0.tar.gz kernel-eb791aa70b90c559eeb371d807c8813d569393f0.zip | |
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/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
