diff options
author | Sasha Levin <sasha.levin@oracle.com> | 2013-11-19 17:33:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-08 07:29:16 -0800 |
commit | f50db974cb75e31d98b176c3c9ea92e57aa97a1b (patch) | |
tree | f981c68850a5389e4c8f735a4111e1e1f675c496 /net/lapb/lapb_timer.c | |
parent | 603f89ac73b7f286d3fdbc26db0ada25b06bd333 (diff) |
aio: prevent double free in ioctx_alloc
commit d558023207e008a4476a3b7bb8706b2a2bf5d84f upstream.
ioctx_alloc() calls aio_setup_ring() to allocate a ring. If aio_setup_ring()
fails to do so it would call aio_free_ring() before returning, but
ioctx_alloc() would call aio_free_ring() again causing a double free of
the ring.
This is easily reproducible from userspace.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions