> On Nov 29, 2018, at 9:21 AM, Steven Rostedt <rost...@goodmis.org> wrote:
> 
> On Thu, 29 Nov 2018 12:20:00 -0500
> Steven Rostedt <rost...@goodmis.org> wrote:
> 
> 
>> r8 = return address
>> r9 = function to call
>> 
> 
> Bad example, r8 and r9 are args, but r10 and r11 are available.
> 
> -- Steve
> 
>>    push r8
>>    jmp *r9
>> 
>> Then have the regs->ip point to that trampoline.

Cute. That’ll need ORC annotations and some kind of retpoline to replace the 
indirect jump, though.

>> 
>> -- Steve
> 

Reply via email to