aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAmy Griffis <[email protected]>2006-05-20 15:00:06 -0700
committerLinus Torvalds <[email protected]>2006-05-21 12:59:18 -0700
commit66055a4e7334b05354c835123ff621c5f700e56a (patch)
treede9d4b432e48d4c919b70a627d9ba0b50e840de0 /scripts/patch-kernel
parent12783b002db1f02c29353c8f698a85514420b9f4 (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