projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
395b97a
)
tracing: Fix double free when function profile init failed
author
Namhyung Kim
<
[email protected]
>
Mon, 1 Apr 2013 12:46:23 +0000
(21:46 +0900)
committer
Steven Rostedt
<
[email protected]
>
Tue, 9 Apr 2013 22:54:04 +0000
(18:54 -0400)
On the failure path, stat->start and stat->pages will refer same page.
So it'll attempt to free the same page again and get kernel panic.
Link:
http://lkml.kernel.org/r/
[email protected]
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Namhyung Kim <
[email protected]
>
Signed-off-by: Steven Rostedt <
[email protected]
>
kernel/trace/ftrace.c
patch
|
blob
|
history
diff --git
a/kernel/trace/ftrace.c
b/kernel/trace/ftrace.c
index 7e897106b7e0f30ae5ff9b5609ba35a97b4e4957..926ebfb7493638a15f6b3797a78e8818f94bf808 100644
(file)
--- a/
kernel/trace/ftrace.c
+++ b/
kernel/trace/ftrace.c
@@
-694,7
+694,6
@@
int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
free_page(tmp);
}
- free_page((unsigned long)stat->pages);
stat->pages = NULL;
stat->start = NULL;