Skip to content

Commit

Permalink
fix possible null ptr deref in kallsyms_lookup
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Kyle McMartin authored and Linus Torvalds committed May 30, 2007
1 parent b927b3e commit 7a74fc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ const char *kallsyms_lookup(unsigned long addr,
pos = get_symbol_pos(addr, symbolsize, offset);
/* Grab name */
kallsyms_expand_symbol(get_symbol_offset(pos), namebuf);
*modname = NULL;
if (modname)
*modname = NULL;
return namebuf;
}

Expand Down

0 comments on commit 7a74fc4

Please sign in to comment.