mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
fix possible null ptr deref in kallsyms_lookup
ugh, this function gets called by our unwinder. recursive backtrace for the win... bisection to find this one was "fun." Signed-off-by: Kyle McMartin <kyle@parisc-linux.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b927b3e2c9
commit
7a74fc4925
1 changed files with 2 additions and 1 deletions
|
@ -257,7 +257,8 @@ const char *kallsyms_lookup(unsigned long addr,
|
||||||
pos = get_symbol_pos(addr, symbolsize, offset);
|
pos = get_symbol_pos(addr, symbolsize, offset);
|
||||||
/* Grab name */
|
/* Grab name */
|
||||||
kallsyms_expand_symbol(get_symbol_offset(pos), namebuf);
|
kallsyms_expand_symbol(get_symbol_offset(pos), namebuf);
|
||||||
*modname = NULL;
|
if (modname)
|
||||||
|
*modname = NULL;
|
||||||
return namebuf;
|
return namebuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue