[RFC PATCH] kernel/kallsyms.c: only show legal kernel symbol
Rusty Russell
rusty at rustcorp.com.au
Sun Oct 27 23:14:30 EDT 2013
Ming Lei <tom.leiming at gmail.com> writes:
> On Fri, Oct 25, 2013 at 7:58 PM, Rusty Russell <rusty at rustcorp.com.au> wrote:
>>>
>>> Basically these symbols are only used to generate code, and in
>>> kernel mode, CPU won't run into the corresponding addresses
>>> because the generate code is copied to other address during booting,
>>> so I understand they won't appear in backtraces.
>>
>> An oops occurs when something went *wrong*. We look up all kinds of
>> stuff. Are you so sure that *none* of the callers will ever see these
>> strange symbols and produce a confusing result?
>
> Suppose that might happen, kernel should be smart enough to know
> that the address is not inside kernel address space and won't produce
> confusing result, right?
I don't know... It would be your job, as the person making the change,
to find all the users of kallsyms and prove that.
This is why it is easier not to include incorrect values in the kernel's
kallsyms in the first place.
Hope that helps,
Rusty.
More information about the linux-arm-kernel
mailing list