Re: [RESEND][PATCH] Cleanup of rw_copy_check_uvector andcompat_rw_copy_check_uvector

From: Oleg Nesterov
Date: Thu Apr 12 2012 - 17:54:48 EST


On 04/11, Christopher Yeoh wrote:
>
> Resending this patch which I first sent a couple of months ago and
> didn't notice it didn't go in at the time.
>
> This is the cleanup of rw_copy_check_uvector and
> compat_rw_copy_check_uvector after changes made to support CMA in an
> earlier patch. Rather than having an additional check_access parameter
> to these functions, the first paramater type is overloaded to allow the
> caller to specify CHECK_IOVEC_ONLY which means check that the contents
> of the iovec are valid, but do not check the memory that they point to.
> This is used by process_vm_readv/writev where we need to validate that a
> iovec passed to the syscall is valid but do not want to check the
> memory that it points to at this point because it refers to an address
> space in another process.

Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--
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/