Re: [PATCH] MIPS: ftrace: fix init functions tracing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 23 May 2017 12:56:43 +0200
Marcin Nowakowski <marcin.nowakowski@xxxxxxxxxx> wrote:

> Since introduction of tracing for init functions the in_kernel_space()
> check is no longer correct, as it ignores the init sections. As a
> result, when probes are inserted (and disabled) in the init functions,
> a branch instruction is inserted instead of a nop, which is likely to
> result in random crashes during boot.
> 
> Remove the MIPS-specific in_kernel_space() method and replace it with
> a generic core_kernel_text() that also checks for init sections during
> system boot stage.
> 
> Fixes: 42c269c88dc1 ("ftrace: Allow for function tracing to record
> init functions on boot up") Signed-off-by: Marcin Nowakowski
> <marcin.nowakowski@xxxxxxxxxx> ---
>  arch/mips/kernel/ftrace.c | 24 +++++-------------------
>  1 file changed, 5 insertions(+), 19 deletions(-)
> 
>

Thanks for doing this.

-- Steve




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux