summaryrefslogtreecommitdiff
path: root/include/memory
diff options
context:
space:
mode:
authorMostafa Saleh <smostafa@google.com>2026-01-09 20:18:02 +0300
committerJoerg Roedel <joerg.roedel@amd.com>2026-01-10 12:52:25 +0300
commit466ae6978a5b8c6022bd4537fbfd00e94bb07219 (patch)
treea8335e79c310c76ac06d78390e3f3e2d4ed60e3a /include/memory
parentf5b16b802174fe2b67e2b6a27fa793b749981816 (diff)
downloadlinux-466ae6978a5b8c6022bd4537fbfd00e94bb07219.tar.xz
iommu: Add page_ext for IOMMU_DEBUG_PAGEALLOC
Add a new config IOMMU_DEBUG_PAGEALLOC, which registers new data to page_ext. This config will be used by the IOMMU API to track pages mapped in the IOMMU to catch drivers trying to free kernel memory that they still map in their domains, causing all types of memory corruption. This behaviour is disabled by default and can be enabled using kernel cmdline iommu.debug_pagealloc. Acked-by: David Hildenbrand (Red Hat) <david@kernel.org> Reviewed-by: Pranjal Shrivastava <praan@google.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Mostafa Saleh <smostafa@google.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/memory')
0 files changed, 0 insertions, 0 deletions