Revision ac34ebb3a67e699edcb5ac72f19d31679369dfaa authored by Christopher Yeoh on 31 May 2012, 23:26:42 UTC, committed by Linus Torvalds on 01 June 2012, 00:49:32 UTC
A 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. Signed-off-by: Chris Yeoh <yeohc@au1.ibm.com> Reviewed-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ee62c6b
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 6 bytes |
3CCFEM556.cis.ihex | -rw-r--r-- | 469 bytes |
3CXEM556.cis.ihex | -rw-r--r-- | 463 bytes |
COMpad2.cis.ihex | -rw-r--r-- | 363 bytes |
COMpad4.cis.ihex | -rw-r--r-- | 276 bytes |
DP83903.cis.ihex | -rw-r--r-- | 499 bytes |
LA-PCM.cis.ihex | -rw-r--r-- | 758 bytes |
MT5634ZLX.cis.ihex | -rw-r--r-- | 363 bytes |
NE2K.cis.ihex | -rw-r--r-- | 233 bytes |
PCMLM28.cis.ihex | -rw-r--r-- | 662 bytes |
PE-200.cis.ihex | -rw-r--r-- | 255 bytes |
PE520.cis.ihex | -rw-r--r-- | 266 bytes |
RS-COM-2P.cis.ihex | -rw-r--r-- | 307 bytes |
SW_555_SER.cis.ihex | -rw-r--r-- | 412 bytes |
SW_7xx_SER.cis.ihex | -rw-r--r-- | 460 bytes |
SW_8xx_SER.cis.ihex | -rw-r--r-- | 444 bytes |
tamarack.cis.ihex | -rw-r--r-- | 311 bytes |
Computing file changes ...