All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [BUGFIX][PATCH v2 0/2] configfs: Fix cleanup after mkdir() failure
@ 2008-07-04 14:56 ` Louis Rilling
  0 siblings, 0 replies; 29+ messages in thread
From: Louis Rilling @ 2008-07-04 14:56 UTC (permalink / raw)
  To: joel.becker; +Cc: linux-kernel, ocfs2-devel, Louis Rilling

 [ applies on top of http://lkml.org/lkml/2008/6/23/145 aka symlink() fixes ]

Hi,

This patchset fixes two kinds of bugs happening when
configfs_attach_group()/configfs_attach_item() fail and userspace races with
mkdir() or symlink().

Please read the first patch header for a detailed scenario explaining the bugs.

Louis

Changelog:
  - Few code reworks as requested by Joel (details in patch headers)

Summary (2):
  configfs: Prevent userspace from creating new entries under attaching
    directories
  configfs: Lock new directory inodes before removing on cleanup after
    failure

 fs/configfs/configfs_internal.h |    2 +
 fs/configfs/dir.c               |  141 ++++++++++++++++++++++++++++++++-------
 fs/configfs/symlink.c           |   15 ++++
 3 files changed, 133 insertions(+), 25 deletions(-)

-- 
Dr Louis Rilling			Kerlabs
Skype: louis.rilling			Batiment Germanium
Phone: (+33|0) 6 80 89 08 23		80 avenue des Buttes de Coesmes
http://www.kerlabs.com/			35700 Rennes

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

end of thread, other threads:[~2008-07-16 20:49 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04 14:56 [Ocfs2-devel] [BUGFIX][PATCH v2 0/2] configfs: Fix cleanup after mkdir() failure Louis Rilling
2008-07-04 14:56 ` Louis Rilling
2008-07-04 14:56 ` [Ocfs2-devel] [BUGFIX][PATCH v2 1/2] configfs: Prevent userspace from creating new entries under attaching directories Louis Rilling
2008-07-04 14:56   ` Louis Rilling
2008-07-11 20:02   ` [Ocfs2-devel] " Joel Becker
2008-07-11 20:02     ` Joel Becker
2008-07-04 14:56 ` [Ocfs2-devel] [BUGFIX][PATCH v2 2/2] configfs: Lock new directory inodes before removing on cleanup after failure Louis Rilling
2008-07-04 14:56   ` Louis Rilling
2008-07-11 20:05   ` [Ocfs2-devel] " Joel Becker
2008-07-11 20:05     ` Joel Becker
2008-07-04 16:32 ` [Ocfs2-devel] [BUGFIX][PATCH v2 0/2] configfs: Fix cleanup after mkdir() failure Louis Rilling
2008-07-04 16:32   ` Louis Rilling
2008-07-06  1:03   ` [Ocfs2-devel] " Joel Becker
2008-07-06  1:03     ` Joel Becker
2008-07-11 22:07 ` [Ocfs2-devel] " Joel Becker
2008-07-11 22:07   ` Joel Becker
2008-07-11 22:52   ` Andrew Morton
2008-07-11 22:52     ` [Ocfs2-devel] " Andrew Morton
2008-07-11 23:37     ` Joel Becker
2008-07-11 23:37       ` Joel Becker
2008-07-11 23:37       ` [Ocfs2-devel] " Joel Becker
2008-07-16 13:08   ` Louis Rilling
2008-07-16 13:08     ` Louis Rilling
2008-07-16 17:27     ` [Ocfs2-devel] " Joel Becker
2008-07-16 17:27       ` Joel Becker
2008-07-16 17:56       ` [Ocfs2-devel] " Louis Rilling
2008-07-16 17:56         ` Louis Rilling
2008-07-16 20:43         ` [Ocfs2-devel] " Joel Becker
2008-07-16 20:43           ` Joel Becker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.