diff options
| author | Ben Hutchings <[email protected]> | 2015-07-26 23:31:08 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-08-12 09:37:21 +0000 |
| commit | ee9397a6fb9bc4e52677f5e33eed4abee0f515e6 (patch) | |
| tree | e651e0dadf1362f500177552d6e99707ff441959 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | perf: Fix fasync handling on inherited events (diff) | |
| download | kernel-ee9397a6fb9bc4e52677f5e33eed4abee0f515e6.tar.gz kernel-ee9397a6fb9bc4e52677f5e33eed4abee0f515e6.zip | |
perf: Fix double-free of the AUX buffer
If rb->aux_refcount is decremented to zero before rb->refcount,
__rb_free_aux() may be called twice resulting in a double free of
rb->aux_pages. Fix this by adding a check to __rb_free_aux().
Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Fixes: 57ffc5ca679f ("perf: Fix AUX buffer refcounting")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
