diff options
| author | 2009-08-24 16:03:35 -0400 | |
|---|---|---|
| committer | 2009-08-27 08:02:04 -0400 | |
| commit | dead537dd8a1c9495322c1d6f7c780697f474af0 (patch) | |
| tree | 5263cf56e792cfc5ddf37748d2868fce9866af68 /fs/proc/array.c | |
| parent | inotify: do not BUG on idr entries at inotify destruction (diff) | |
| download | linux-dev-dead537dd8a1c9495322c1d6f7c780697f474af0.tar.xz linux-dev-dead537dd8a1c9495322c1d6f7c780697f474af0.zip | |
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: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
