iommu/amd: Fix race in increase_address_space()
After the conversion to lock-less dma-api call the increase_address_space() function can be called without any locking. Multiple CPUs could potentially race for increasing the address space, leading to invalid domain->mode settings and invalid page-tables. This has been happening in the wild under high IO load and memory pressure. Fix the race by locking this operation. The function is called infrequently so that this does not introduce a performance regression in the dma-api path again. Reported-by: Qian Cai <cai@lca.pw> Fixes: 256e4621 ('iommu/amd: Make use of the generic IOVA allocator') Signed-off-by: Joerg Roedel <jroedel@suse.de>
parent
36b7200f
-
mentioned in commit b15bf744
-
mentioned in commit 0d50f7b1
-
mentioned in commit 6fb92f18
-
mentioned in commit 785ca708
-
mentioned in commit 8db59cb6
-
mentioned in commit 4ed2042c
-
mentioned in commit 1d648460
-
mentioned in commit 93d20ce4
-
mentioned in commit 1172c400
-
mentioned in commit c699a89d
Please register or sign in to comment