iommu/ipmmu-vmsa: Flush P[UM]D entry before freeing the child page table
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 24 Jul 2014 13:34:54 +0000 (15:34 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 16 Jan 2015 16:03:04 +0000 (18:03 +0200)
commit22463cab3f96baf6b568200a35c7648438eea7ff
treedffa7b4a250428c3964aa1f4fd9d2b4227e52aac
parentb8f80bffd51f4ef029051d6898d9c2e3e5637dc3
iommu/ipmmu-vmsa: Flush P[UM]D entry before freeing the child page table

When clearing PUD or PMD entries the child page table (if any) is freed
and the PUD or PMD entry is then cleared. This result in a small race
condition window during which a free page table could be accessed by the
IPMMU.

Fix it by clearing and flushing the PUD or PMD entry before freeing the
child page table.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/iommu/ipmmu-vmsa.c