Re: [PATCH] powerpc: optprobes: fix TOC handling in optprobes trampoline

2017-02-22 Thread Naveen N. Rao
On 2017/02/21 08:30PM, Naveen N Rao wrote: > Optprobes on powerpc is limited to kernel text area. We decided to also > optimize kretprobe_trampoline since that is also in kernel text area. > However,we failed to take into consideration the fact that the same > trampoline is also used to catch funct

[PATCH] powerpc: optprobes: fix TOC handling in optprobes trampoline

2017-02-21 Thread Naveen N. Rao
Optprobes on powerpc is limited to kernel text area. We decided to also optimize kretprobe_trampoline since that is also in kernel text area. However,we failed to take into consideration the fact that the same trampoline is also used to catch function returns from kernel modules. As an example: