projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2504ea5
)
tracepoints: fix disable
author
Mathieu Desnoyers
<mathieu.desnoyers@polymtl.ca>
Fri, 14 Nov 2008 22:47:42 +0000
(17:47 -0500)
committer
Ingo Molnar
<mingo@elte.hu>
Sun, 16 Nov 2008 08:01:31 +0000
(09:01 +0100)
Impact: fix race
Set the probe array pointer to NULL when the tracepoint is disabled.
The probe array point not being NULL could generate a race condition
where the reader would dereference a freed pointer.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/tracepoint.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/tracepoint.c
b/kernel/tracepoint.c
index e96590f17de16903115c0a21e17a585d9cb72bda..47a7303d6cd9813ab583ebc79a05d09d47f536d0 100644
(file)
--- a/
kernel/tracepoint.c
+++ b/
kernel/tracepoint.c
@@
-262,6
+262,7
@@
static void set_tracepoint(struct tracepoint_entry **entry,
static void disable_tracepoint(struct tracepoint *elem)
{
elem->state = 0;
+ rcu_assign_pointer(elem->funcs, NULL);
}
/**