aboutsummaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2009-05-15 20:45:59 +0200
committerIngo Molnar <[email protected]>2009-05-17 07:52:24 +0200
commit856d56b9e5de650a64a6c41c17aaed702b55d578 (patch)
treeaf2fcfe19f0ab27fa220216285e4703ecc7887e1 /include/linux/stackprotector.h
parent8bc2095951517e2c74b8aeeca4685ddd6b16ed4b (diff)
perf_counter: Fix counter inheritance
Srivatsa Vaddagiri reported that a Java workload triggers this warning in kernel/exit.c: WARN_ON_ONCE(!list_empty(&tsk->perf_counter_ctx.counter_list)); Add the inherited counter propagation on self-detach, this could cause counter leaks and incomplete stats in threaded code like the below: #include <pthread.h> #include <unistd.h> void *thread(void *arg) { sleep(5); return NULL; } void main(void) { pthread_t thr; pthread_create(&thr, NULL, thread, NULL); } Reported-by: Srivatsa Vaddagiri <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Corey Ashford <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Marcelo Tosatti <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions