lib-iov_iter-fix-import_iovec_ubuf-iovec-management.patch removed from -mm tree
The quilt patch titled
Subject: lib/iov_iter: fix import_iovec_ubuf iovec management
has been removed from the -mm tree. Its filename was
lib-iov_iter-fix-import_iovec_ubuf-iovec-management.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Pavel Begunkov <[email protected]>
Subject: lib/iov_iter: fix import_iovec_ubuf iovec management
Date: Fri, 31 Jan 2025 14:13:15 +0000
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.
---
lib/iov_iter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/iov_iter.c renamed from lib/iov_iter.c~lib-iov_iter-fix-import_iovec_ubuf-iovec-management +2 -1
@@ -1428,6 +1428,8 @@ static ssize_t __import_iovec_ubuf(int tstruct iovec *iov = *iovp;ssize_t ret; + *iovp =NULL ; +if (compat) ret =copy_compat_iovec_from_user (iov, uvec,1 );else
@@ -1438,7 +1440,6 @@ static ssize_t __import_iovec_ubuf(int t ret =import_ubuf (type, iov->iov_base, iov->iov_len, i);if (unlikely (ret))return ret; - *iovp =NULL ;return i->count; }
_
Patches currently in -mm which might be from [email protected] are