AMD/IOMMU: Fix crash in 'V' debugkey
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 13 Nov 2019 13:19:36 +0000 (13:19 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 13 Nov 2019 14:32:44 +0000 (14:32 +0000)
commit85e1424de2dda289a4ee92e6b4f5328dd10e75ae
treeb977268e2c0f2974ca54d3f629cbab06c1ce8670
parentc67c43ce4a63e7ea314525ba178ce7ab955c9292
AMD/IOMMU: Fix crash in 'V' debugkey

c/s bb038f31168 "AMD/IOMMU: replace INTREMAP_ENTRIES" introduces a call to
intremap_table_entries() in dump_intremap_table() before tbl.ptr is checked
for NULL.

intremap_table_entries() internally uses virt_to_page() which falls over

  ASSERT(va >= XEN_VIRT_START);

in __virt_to_page().

Reported-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/drivers/passthrough/amd/iommu_intr.c