x86/HVM: fail virt-to-linear conversion for insn fetches from non-code segments
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Jan 2022 13:12:26 +0000 (14:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Jan 2022 13:12:26 +0000 (14:12 +0100)
commit7bbeff438dfa61e532116d9fbd65bffb896857c5
treeb22300f3a6354d41f0843c751be9833ba4dadf78
parent481b8bb3311d3a962c795127b7d968d743466654
x86/HVM: fail virt-to-linear conversion for insn fetches from non-code segments

Just like (in protected mode) reads may not go to exec-only segments and
writes may not go to non-writable ones, insn fetches may not access data
segments.

Fixes: 623e83716791 ("hvm: Support hardware task switching")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 311297f4216a4387bdae6df6cfbb1f5edb06618a
master date: 2021-12-06 14:15:05 +0100
xen/arch/x86/hvm/hvm.c