diff options
| author | Lu Baolu <baolu.lu@linux.intel.com> | 2026-09-28 11:27:16 +0800 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-09-28 10:17:41 +0200 |
| commit | 53e15f28829ff304f94883e8f3f1f5074aa2a0a2 (patch) | |
| tree | 11b50f52e1c45e1e449094f10da3cebc3ca0b246 /scripts/basic/split-include.c | |
| parent | ddea230c9fc28d1f2090ceeab3d66ce2bea658e9 (diff) | |
| download | linux-53e15f28829ff304f94883e8f3f1f5074aa2a0a2.tar.gz linux-53e15f28829ff304f94883e8f3f1f5074aa2a0a2.zip | |
iommu/vt-d: Do not ignore context table copy failures
copy_translation_tables() currently logs copy_context_table() failures
but still returns success, so partial copy failures are silently ignored.
That means Intel IOMMU may run with only part of the old tables copied.
Then some old domain IDs may not be reserved, and later may be reused by
new domains. With stale hardware cache entries still around, this can
cause bad DMA translations, DMA faults, or domain aliasing.
Fix by aborting on the first context-table copy failure, freeing temporary
context-table pages, and returning an error so caller falls back to a
clean root table path.
Fixes: f93b4ac5929a ("iommu/vt-d: Use ida to manage domain id")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
