xen/arm: Pair call to set_fixmap with call to clear_fixmap in copy_from_paddr
authorJulien Grall <julien.grall@arm.com>
Sun, 2 Dec 2018 19:12:54 +0000 (19:12 +0000)
committerJulien Grall <julien.grall@arm.com>
Thu, 6 Jun 2019 17:44:33 +0000 (18:44 +0100)
commitb4d96a13d07679ddeb30309e926a769c7279bdfe
treedb7e8a8f6cbcc5eb98e7d288d3fb2c77aceac19b
parent7e80a539e2805cb63c432caf7d0acafdfa1802d5
xen/arm: Pair call to set_fixmap with call to clear_fixmap in copy_from_paddr

At the moment, set_fixmap may replace a valid entry without following
the break-before-make sequence. This may result to TLB conflict abort.

Rather than dealing with Break-Before-Make in set_fixmap, each call to
set_fixmap in copy_from_paddr is paired with a call to clear_fixmap.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/kernel.c