The patch titled Subject: kernel/kallsyms.c: fix %pB when there's no symbol at the address has been added to the -mm tree. Its filename is printk-fix-%pb-when-theres-no-symbol-at-the-address.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/printk-fix-%pb-when-theres-no-symbol-at-the-address.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/printk-fix-%pb-when-theres-no-symbol-at-the-address.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Namhyung Kim <namhyung@xxxxxxxxxx> Subject: kernel/kallsyms.c: fix %pB when there's no symbol at the address __sprint_symbol() should restore original address when kallsyms_lookup() failed to find a symbol. It's reported when dumpstack shows an address in a dynamically allocated trampoline for ftrace. [ 1314.612287] [<ffffffff81700312>] dump_stack+0x45/0x56 [ 1314.612290] [<ffffffff8125f5b0>] ? meminfo_proc_open+0x30/0x30 [ 1314.612293] [<ffffffffa080a494>] kpatch_ftrace_handler+0x14/0xf0 [kpatch] [ 1314.612306] [<ffffffffa00160c4>] 0xffffffffa00160c3 You can see a difference in the hex address - c4 and c3. Fix it. Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx> Reported-by: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx> Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/kallsyms.c~printk-fix-%pb-when-theres-no-symbol-at-the-address kernel/kallsyms.c --- a/kernel/kallsyms.c~printk-fix-%pb-when-theres-no-symbol-at-the-address +++ a/kernel/kallsyms.c @@ -364,7 +364,7 @@ static int __sprint_symbol(char *buffer, address += symbol_offset; name = kallsyms_lookup(address, &size, &offset, &modname, buffer); if (!name) - return sprintf(buffer, "0x%lx", address); + return sprintf(buffer, "0x%lx", address - symbol_offset); if (name != buffer) strcpy(buffer, name); _ Patches currently in -mm which might be from namhyung@xxxxxxxxxx are printk-fix-%pb-when-theres-no-symbol-at-the-address.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html