Skip to content

Commit

Permalink
[PARISC] fix null ptr deref in unwind.c
Browse files Browse the repository at this point in the history
commit ffb4512 removed one too many args.
kallsyms_lookup is not safe to call with a NULL *modname. Paper bag over the
problem for the time being.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed May 30, 2007
1 parent 516a949 commit cb95779
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/parisc/kernel/unwind.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ static void unwind_frame_regs(struct unwind_frame_info *info)
/* Handle some frequent special cases.... */
{
char symname[KSYM_NAME_LEN+1];
char *modname;

kallsyms_lookup(info->ip, NULL, NULL, NULL, symname);
kallsyms_lookup(info->ip, NULL, NULL, &modname,
symname);

dbg("info->ip = 0x%lx, name = %s\n", info->ip, symname);

Expand Down

0 comments on commit cb95779

Please sign in to comment.