[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120310021316.GA22880@kvack.org>
Date: Fri, 9 Mar 2012 21:13:16 -0500
From: Benjamin LaHaise <bcrl@...ck.org>
To: Al Viro <viro@...IV.linux.org.uk>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] aio: fix the "too late munmap()" race
On Thu, Mar 08, 2012 at 05:51:19PM +0000, Al Viro wrote:
> Since actual freeing of these suckers is RCU-delayed, we don't need to
> bump ioctx refcount when request goes into list for async removal.
> All we need is rcu_read_lock held just over the ->ctx_lock-protected
> area in aio_fput_routine().
>
> Cc: stable@...r.kernel.org
> Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
Signed-off-by: Benjamin LaHaise <bcrl@...ck.org>
Looks good. As with the previous patch, I instrumented and tested the code
to trigger fput_work() with no issues encountered.
-ben
--
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