We want to patch the original call site, which memory-wise is unrelated to the struct alt_instr * that we start from.
No functional change intended. Signed-off-by: Jan Beulich <[email protected]> --- a/xen/arch/arm/alternative.c +++ b/xen/arch/arm/alternative.c @@ -134,7 +134,7 @@ static int __apply_alternatives(const st BUG_ON(alt->repl_len != alt->orig_len); origptr = ALT_ORIG_PTR(alt); - updptr = (void *)origptr + update_offset; + updptr = (void *)(long)origptr + update_offset; nr_inst = alt->orig_len / ARCH_PATCH_INSN_SIZE;
