]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
x86: constrain sub-page access length in mmio_ro_emulated_write()
authorJan Beulich <jbeulich@suse.com>
Mon, 28 Apr 2025 07:48:14 +0000 (09:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 Apr 2025 07:48:14 +0000 (09:48 +0200)
commit8dbd9966f82f95b017f06e9397fc78064b688d61
treee697c9417a6f4671bc222fa9506ec214dedb758d
parent4ad0f0d417b2e62e1edc47a823da5e3a1bee041d
x86: constrain sub-page access length in mmio_ro_emulated_write()

Without doing so we could trigger the ASSERT_UNREACHABLE() in
subpage_mmio_write_emulate(). A comment there actually says this
validation would already have been done ...

Fixes: 8847d6e23f97 ("x86/mm: add API for marking only part of a MMIO page read only")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
xen/arch/x86/mm.c