Skip to content
Commit dead537d authored by Eric Paris's avatar Eric Paris
Browse files

inotify: fix locking around inotify watching in the idr



The are races around the idr storage of inotify watches.  It's possible
that a watch could be found from sys_inotify_rm_watch() in the idr, but it
could be removed from the idr before that code does it's removal.  Move the
locking and the refcnt'ing so that these have to happen atomically.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent cf437426
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment