aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2014-08-06 16:03:28 -0700
committerLinus Torvalds <[email protected]>2014-08-06 18:01:12 -0700
commit5838d4442bd5971687b72221736222637e03140d (patch)
treee639967a7baf1b1c6a0d1b5e0babc8083c7faad4 /tools/perf/scripts/python
parent8ba8fa917093510cdcb4ec8ff8b9603e1b525658 (diff)
fanotify: fix double free of pending permission events
Commit 85816794240b ("fanotify: Fix use after free for permission events") introduced a double free issue for permission events which are pending in group's notification queue while group is being destroyed. These events are freed from fanotify_handle_event() but they are not removed from groups notification queue and thus they get freed again from fsnotify_flush_notify(). Fix the problem by removing permission events from notification queue before freeing them if we skip processing access response. Also expand comments in fanotify_release() to explain group shutdown in detail. Fixes: 85816794240b9659e66e4d9b0df7c6e814e5f603 Signed-off-by: Jan Kara <[email protected]> Reported-by: Douglas Leeder <[email protected]> Tested-by: Douglas Leeder <[email protected]> Reported-by: Heinrich Schuchard <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions