diff options
author | Andy Lutomirski <luto@amacapital.net> | 2014-07-25 19:30:27 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-07-25 19:34:15 -0400 |
commit | 53b884ac3745353de220d92ef792515c3ae692f0 (patch) | |
tree | 8c00dae80304be9111214b40c9ef5f417b371ebc | |
parent | ac379835e820de27429b5c4eadf4c1b40320cff4 (diff) |
x86_64/vsyscall: Fix warn_bad_vsyscall log output
This commit in Linux 3.6:
commit c767a54ba0657e52e6edaa97cbe0b0a8bf1c1655
Author: Joe Perches <joe@perches.com>
Date: Mon May 21 19:50:07 2012 -0700
x86/debug: Add KERN_<LEVEL> to bare printks, convert printks to pr_<level>
caused warn_bad_vsyscall to output garbage in the middle of the
line. Revert the bad part of it.
The printk in question isn't actually bare; the level is "%s".
The bug this fixes is purely cosmetic; backports are optional.
Cc: <stable@vger.kernel.org> # v3.6+
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/03eac1f24110bbe496ecc12a4df467e0d88466d4.1406330947.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/kernel/vsyscall_64.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index ea5b5709aa76..e1e1e80fc6a6 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c | |||
@@ -81,10 +81,10 @@ static void warn_bad_vsyscall(const char *level, struct pt_regs *regs, | |||
81 | if (!show_unhandled_signals) | 81 | if (!show_unhandled_signals) |
82 | return; | 82 | return; |
83 | 83 | ||
84 | pr_notice_ratelimited("%s%s[%d] %s ip:%lx cs:%lx sp:%lx ax:%lx si:%lx di:%lx\n", | 84 | printk_ratelimited("%s%s[%d] %s ip:%lx cs:%lx sp:%lx ax:%lx si:%lx di:%lx\n", |
85 | level, current->comm, task_pid_nr(current), | 85 | level, current->comm, task_pid_nr(current), |
86 | message, regs->ip, regs->cs, | 86 | message, regs->ip, regs->cs, |
87 | regs->sp, regs->ax, regs->si, regs->di); | 87 | regs->sp, regs->ax, regs->si, regs->di); |
88 | } | 88 | } |
89 | 89 | ||
90 | static int addr_to_vsyscall_nr(unsigned long addr) | 90 | static int addr_to_vsyscall_nr(unsigned long addr) |