[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070421123956.f74575d0.akpm@linux-foundation.org>
Date: Sat, 21 Apr 2007 12:39:56 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Jeff Mahoney <jeffm@...e.com>
Cc: a.righi@...eca.it, "Vladimir V. Saveliev" <vs@...esys.com>,
linux-kernel@...r.kernel.org, reiserfs-dev@...esys.com,
Edward Shishkin <edward@...esys.com>, zam@...sterfs.com,
ak@...e.de
Subject: Re: [PATCH] reiserfs: fix xattr root locking/refcount bug
On Sat, 21 Apr 2007 11:26:31 -0400 Jeff Mahoney <jeffm@...e.com> wrote:
> The listxattr() and getxattr() operations are only protected by a read
> lock. As a result, if either of these operations run in parallel, a race
> condition exists where the xattr_root will end up being cached twice,
> which results in the leaking of a reference and a BUG() on umount.
>
> This patch refactors get_xa_root(), __get_xa_root(), and
> create_xa_root(), into one get_xa_root() function that takes
> the appropriate locking around the entire critical section.
Great, thanks.
Now we need to work out the timing. Our options are to shove
it into 2.6.21 immediately, or to give it a run in 2.6.22-rc1 then
backport into 2.6.21.x.
What is everyone's confidence level?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists