[PATCH 1/2] ftrace: fix the race between ftrace and insmod

2015-12-24 Thread Qiu, PeiyangX
From: Qiu Peiyang We hit ftrace_bug report when booting Android on a 64bit ATOM SOC chip. Basically, there is a race between insmod and ftrace_run_update_code. After load_module=>ftrace_module_init, another thread jumps in to call ftrace_run_update_code=>ftrace_arch_code_modify_prepare

[PATCH 1/2] ftrace: fix the race between ftrace and insmod

2015-12-24 Thread Qiu, PeiyangX
From: Qiu Peiyang We hit ftrace_bug report when booting Android on a 64bit ATOM SOC chip. Basically, there is a race between insmod and ftrace_run_update_code. After load_module=>ftrace_module_init, another thread jumps in to call ftrace_run_update_code=>ftrace_arch_code_modify_prepare

[PATCH 1/2] ftrace: fix the race between ftrace and insmod

2015-12-24 Thread Qiu, PeiyangX
From: Qiu Peiyang We hit ftrace_bug report when booting Android on a 64bit ATOM SOC chip. Basically, there is a race between insmod and ftrace_run_update_code. After load_module=>ftrace_module_init, another thread jumps in to call

[PATCH 1/2] ftrace: fix the race between ftrace and insmod

2015-12-24 Thread Qiu, PeiyangX
From: Qiu Peiyang We hit ftrace_bug report when booting Android on a 64bit ATOM SOC chip. Basically, there is a race between insmod and ftrace_run_update_code. After load_module=>ftrace_module_init, another thread jumps in to call