On 02.10.2024 17:27, Andrew Cooper wrote:
> Right now, relocation of displacements is restricted to finding 0xe8/e9 as the
> first byte of the replacement, but this is overly restrictive.
> 
> Use x86_decode_lite() to find and adjust all insn-relative fields.
> 
> As with disp8's not leaving the replacemnet block, some disp32's don't either.
> e.g. the RSB stuffing loop.  These stay unmodified.
> 
> For now, leave the altcall devirtualisation alone.  These require more care to
> transform into the new scheme.
> 
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Reviewed-by: Jan Beulich <jbeul...@suse.com>



Reply via email to