public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Inotify cleanup and idr race
@ 2009-08-24 17:37 Eric Paris
  2009-08-24 17:38 ` [PATCH 1/3] inotify: seperate new watch creation updating existing watches Eric Paris
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Eric Paris @ 2009-08-24 17:37 UTC (permalink / raw)
  To: linux-kernel, linux-fs-devel
  Cc: zdenek.kabelac, torvalds, christoph.thielecke, akpm, viro,
	grant.wilson, mikko.cal

The following series cleans up the code around the addition of new watches and
the modification of old watches, thus making it easier to verify they are
correct.  It should make machines less likely to panic if an object is found
in the inotify idr which should have been removed (it's a memory leak, not an
unrecoverable situation) and it should fix a race in idr removal which could
leak to a use after free situation.

If anyone is able to reproduce inotify or fsnotify problems with -rc7 + these
3 patches please please let me know!


---

Eric Paris (3):
      inotify: fix locking around inotify watching in the idr
      inotify: do not BUG on idr entries at inotify destruction
      inotify: seperate new watch creation updating existing watches


 fs/notify/inotify/inotify_fsnotify.c |   10 ++
 fs/notify/inotify/inotify_user.c     |  217 ++++++++++++++++++++++------------
 2 files changed, 151 insertions(+), 76 deletions(-)

-- 

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-08-25 17:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-24 17:37 [PATCH 0/3] Inotify cleanup and idr race Eric Paris
2009-08-24 17:38 ` [PATCH 1/3] inotify: seperate new watch creation updating existing watches Eric Paris
2009-08-24 17:38 ` [PATCH 2/3] inotify: do not BUG on idr entries at inotify destruction Eric Paris
2009-08-24 18:34   ` Frans Pop
2009-08-24 19:09     ` Eric Paris
2009-08-24 19:23       ` Linus Torvalds
2009-08-24 19:32         ` Eric Paris
2009-08-24 20:36         ` Eric Paris
2009-08-25 11:42           ` Mikko C.
2009-08-25 14:18             ` Eric Paris
2009-08-25 16:43             ` Linus Torvalds
2009-08-25 17:17               ` Mikko C.
2009-08-24 17:38 ` [PATCH 3/3] inotify: fix locking around inotify watching in the idr Eric Paris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox