diff options
| author | Amy Griffis <[email protected]> | 2006-05-20 15:00:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-05-21 12:59:18 -0700 |
| commit | 66055a4e7334b05354c835123ff621c5f700e56a (patch) | |
| tree | de9d4b432e48d4c919b70a627d9ba0b50e840de0 /scripts/patch-kernel | |
| parent | 12783b002db1f02c29353c8f698a85514420b9f4 (diff) | |
[PATCH] fix race in inotify_release
While doing some inotify stress testing, I hit the following race. In
inotify_release(), it's possible for a watch to be removed from the lists
in between dropping dev->mutex and taking inode->inotify_mutex. The
reference we hold prevents the watch from being freed, but not from being
removed.
Checking the dev's idr mapping will prevent a double list_del of the
same watch.
Signed-off-by: Amy Griffis <[email protected]>
Acked-by: John McCutchan <[email protected]>
Cc: Robert Love <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions