[PATCH 1/4] ftrace/x86: Make sure to modify 5-bite instructions

2016-06-27 Thread Petr Mladek
The commit 8329e818f14926a604 ("ftrace/x86: Set ftrace_stub to weak to prevent gcc from using short jumps to it") fixed a situation where we replaced 2-byte with 5-byte jump instruction. The original problem crashed the kernel with # cd /sys/kernel/trace # echo function_graph >

[PATCH 1/4] ftrace/x86: Make sure to modify 5-bite instructions

2016-06-27 Thread Petr Mladek
The commit 8329e818f14926a604 ("ftrace/x86: Set ftrace_stub to weak to prevent gcc from using short jumps to it") fixed a situation where we replaced 2-byte with 5-byte jump instruction. The original problem crashed the kernel with # cd /sys/kernel/trace # echo function_graph >