Messages in this thread | | | Date | Thu, 12 Apr 2012 23:54:10 +0200 | From | Oleg Nesterov <> | Subject | Re: [RESEND][PATCH] Cleanup of rw_copy_check_uvector and compat_rw_copy_check_uvector |
| |
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@redhat.com>
| |