io_uring: fix recvmsg memory leak with buffer selection
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Jul 2020 19:20:45 +0000 (22:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2020 07:34:05 +0000 (09:34 +0200)
commit9aa8b4c9c91ba9b25c743f7b369cd478d79a82db
treecf5b1c35a35a89b2332bd12d290d5ba9af728f05
parentbc574a45659711f3e59cc1f8fee1afbf4ccb6f36
io_uring: fix recvmsg memory leak with buffer selection

commit 681fda8d27a66f7e65ff7f2d200d7635e64a8d05 upstream.

io_recvmsg() doesn't free memory allocated for struct io_buffer. This can
causes a leak when used with automatic buffer selection.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c