diff options
author | Andrei Dulea <adulea@amazon.de> | 2019-09-13 16:42:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-11 18:36:41 +0200 |
commit | eca33e99c3ad2e6d7bddb60f3d7a4acc8741d103 (patch) | |
tree | 838f82d906e884567ca07e2beb7cda87554bca90 /net/lapb/lapb_timer.c | |
parent | 4baa940f148bbeca90fb41bad58d3d6a6665f316 (diff) |
iommu/amd: Fix downgrading default page-sizes in alloc_pte()
[ Upstream commit 6ccb72f8374e17d60b58a7bfd5570496332c54e2 ]
Downgrading an existing large mapping to a mapping using smaller
page-sizes works only for the mappings created with page-mode 7 (i.e.
non-default page size).
Treat large mappings created with page-mode 0 (i.e. default page size)
like a non-present mapping and allow to overwrite it in alloc_pte().
While around, make sure that we flush the TLB only if we change an
existing mapping, otherwise we might end up acting on garbage PTEs.
Fixes: 6d568ef9a622 ("iommu/amd: Allow downgrading page-sizes in alloc_pte()")
Signed-off-by: Andrei Dulea <adulea@amazon.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions