]> xenbits.xensource.com Git - xen.git/commit
x86emul: also clip repetition count for STOS
authorJan Beulich <jbeulich@suse.com>
Tue, 22 Apr 2025 09:24:20 +0000 (11:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Apr 2025 09:24:20 +0000 (11:24 +0200)
commit8c5636b6c87777e6c2e4ffae28bffe1cfc189bfd
treeab1296236ef105aacea4ba1709506b6bfda2403e
parent8d31a735bc4d65db2d267aa48e5bb62b7bd4739b
x86emul: also clip repetition count for STOS

Like MOVS, INS, and OUTS, STOS also has a special purpose hook, where
the hook function may legitimately have the same expectation as to the
request not straddling address space start/end.

Fixes: 5dfe4aa4eeb6 ("x86_emulate: Do not request emulation of REP instructions beyond the")
Reported-by: Fabian Specht <f.specht@tum.de>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c