summaryrefslogtreecommitdiff
path: root/drivers/tee
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-05-04 15:54:09 +0300
committerJoerg Roedel <jroedel@suse.de>2020-05-05 15:38:38 +0300
commiteb791aa70b90c559eeb371d807c8813d569393f0 (patch)
treed0e8986a3ae5a6ce7d6a8df492d170082cb5f3d8 /drivers/tee
parent0e698dfa282211e414076f9dc7e83c1c288314fd (diff)
downloadlinux-eb791aa70b90c559eeb371d807c8813d569393f0.tar.xz
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 <cai@lca.pw> Signed-off-by: Joerg Roedel <jroedel@suse.de> Tested-by: Qian Cai <cai@lca.pw> Link: https://lore.kernel.org/r/20200504125413.16798-2-joro@8bytes.org Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/tee')
0 files changed, 0 insertions, 0 deletions