projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d247852
)
timer debug: Hide kernel addresses via %pK in /proc/timer_list
author
Kees Cook
<kees.cook@canonical.com>
Sat, 12 Feb 2011 03:21:25 +0000
(19:21 -0800)
committer
Ingo Molnar
<mingo@elte.hu>
Sat, 12 Feb 2011 13:11:56 +0000
(14:11 +0100)
In the continuing effort to avoid kernel addresses leaking to
unprivileged users, this patch switches to %pK for
/proc/timer_list reporting.
Signed-off-by: Kees Cook <kees.cook@canonical.com>
Cc: John Stultz <johnstul@us.ibm.com>
Cc: Dan Rosenberg <drosenberg@vsecurity.com>
Cc: Eugene Teo <eugeneteo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <
20110212032125
.GA23571@outflux.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/time/timer_list.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/time/timer_list.c
b/kernel/time/timer_list.c
index 32a19f9397fc347c3144a01e142308c026f49c70..3258455549f421d3b65e0d085929541f672b29b0 100644
(file)
--- a/
kernel/time/timer_list.c
+++ b/
kernel/time/timer_list.c
@@
-41,7
+41,7
@@
static void print_name_offset(struct seq_file *m, void *sym)
char symname[KSYM_NAME_LEN];
if (lookup_symbol_name((unsigned long)sym, symname) < 0)
- SEQ_printf(m, "<%p>", sym);
+ SEQ_printf(m, "<%p
K
>", sym);
else
SEQ_printf(m, "%s", symname);
}
@@
-112,7
+112,7
@@
next_one:
static void
print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now)
{
- SEQ_printf(m, " .base: %p\n", base);
+ SEQ_printf(m, " .base: %p
K
\n", base);
SEQ_printf(m, " .index: %d\n",
base->index);
SEQ_printf(m, " .resolution: %Lu nsecs\n",