aboutsummaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2009-02-24 17:22:59 +0000
committerGreg Kroah-Hartman <[email protected]>2009-03-24 16:38:25 -0700
commit6da2d377bba06c29d0bc41c8dee014164dec82a7 (patch)
tree46bdf19836227b27c4548431ec7cea5eeb2a8a08 /kernel/sysctl_binary.c
parent1bafeb378e915f39b1bf44ee0871823d6f402ea5 (diff)
UIO: Take offset into account when determining number of pages that can be mapped
If a UIO memory region does not start on a page boundary but straddles one, the number of actual pages that overlap the memory region may be calculated incorrectly because the offset isn't taken into account. If userspace sets the mmap length to offset+size, it may fail with -EINVAL if UIO thinks it's trying to allocate too many pages. Signed-off-by: Ian Abbott <[email protected]> Cc: Hans J. Koch <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions