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-- | 25 bytes |
Kconfig | -rw-r--r-- | 2.8 KB |
Makefile | -rw-r--r-- | 2.1 KB |
audit.c | -rw-r--r-- | 12.0 KB |
common.c | -rw-r--r-- | 75.1 KB |
common.h | -rw-r--r-- | 40.1 KB |
condition.c | -rw-r--r-- | 26.8 KB |
domain.c | -rw-r--r-- | 24.7 KB |
environ.c | -rw-r--r-- | 3.0 KB |
file.c | -rw-r--r-- | 28.9 KB |
gc.c | -rw-r--r-- | 16.7 KB |
group.c | -rw-r--r-- | 5.6 KB |
load_policy.c | -rw-r--r-- | 2.6 KB |
memory.c | -rw-r--r-- | 5.4 KB |
mount.c | -rw-r--r-- | 6.6 KB |
network.c | -rw-r--r-- | 21.3 KB |
realpath.c | -rw-r--r-- | 7.8 KB |
securityfs_if.c | -rw-r--r-- | 7.5 KB |
tomoyo.c | -rw-r--r-- | 14.6 KB |
util.c | -rw-r--r-- | 27.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...