[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <94e650e0-fad7-4929-877a-560700cd12ce@gmail.com>
Date: Fri, 31 Jan 2025 16:06:55 +0000
From: Pavel Begunkov <asml.silence@...il.com>
To: Alexander Viro <viro@...iv.linux.org.uk>, linux-kernel@...r.kernel.org
Cc: Christian Brauner <brauner@...nel.org>, Jens Axboe <axboe@...nel.dk>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH 1/1] lib/iov_iter: fix import_iovec_ubuf iovec management
On 1/31/25 14:13, Pavel Begunkov wrote:
> import_iovec() says that it should always be fine to kfree the iovec
> returned in @iovp regardless of the error code. __import_iovec_ubuf()
> never reallocates it and thus should clear the pointer even in cases
> when copy_iovec_*() fail.
To be fair, all callers I checked don't look at the returned iovec
if import_iovec*() fails, but I didn't track down all of them.
--
Pavel Begunkov
Powered by blists - more mailing lists