Re: [PATCH] vfs: fix vmplice_to_user()

From: Al Viro
Date: Tue May 27 2014 - 13:52:06 EST


On Tue, May 27, 2014 at 04:41:16PM +0200, Miklos Szeredi wrote:
> From: Miklos Szeredi <mszeredi@xxxxxxx>
>
> Commit 6130f5315ee8 "switch vmsplice_to_user() to copy_page_to_iter()" in
> v3.15-rc1 broke vmsplice(2).
>
> This patch fixes two bugs:
>
> - count is not initialized to a proper value, which resulted in no data
> being copied
>
> - if rw_copy_check_uvector() returns negative then the iov might be leaked.
>
> Tested OK.

Applied, will push tonight.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/