Re: [PATCH] iov_iter: fix the uaccess area in copy_compat_iovec_from_user

From: Al Viro
Date: Mon Jan 11 2021 - 12:51:15 EST


On Mon, Jan 11, 2021 at 06:19:26PM +0100, Christoph Hellwig wrote:
> sizeof needs to be called on the compat pointer, not the native one.
>
> Fixes: 89cd35c58bc2 ("iov_iter: transparently handle compat iovecs in import_iovec")
> Reported-by: David Laight <David.Laight@xxxxxxxxxx>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Applied.