Re: [PATCH] aio: fix the "too late munmap()" race

From: Benjamin LaHaise
Date: Fri Mar 09 2012 - 21:13:51 EST


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@xxxxxxxxxxxxxxx
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

Signed-off-by: Benjamin LaHaise <bcrl@xxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/