diff options
author | 2008-02-10 16:47:57 +0200 | |
---|---|---|
committer | 2008-02-10 10:27:21 -0800 | |
commit | 712a30e63c8066ed84385b12edbfb804f49cbc44 (patch) | |
tree | 0562431cf00ccb740547b13a41d79f6319254ca0 /include/asm-sparc64 | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (diff) | |
download | linux-712a30e63c8066ed84385b12edbfb804f49cbc44.tar.gz linux-712a30e63c8066ed84385b12edbfb804f49cbc44.tar.bz2 linux-712a30e63c8066ed84385b12edbfb804f49cbc44.zip |
splice: fix user pointer access in get_iovec_page_array()
Commit 8811930dc74a503415b35c4a79d14fb0b408a361 ("splice: missing user
pointer access verification") added the proper access_ok() calls to
copy_from_user_mmap_sem() which ensures we can copy the struct iovecs
from userspace to the kernel.
But we also must check whether we can access the actual memory region
pointed to by the struct iovec to fix the access checks properly.
Signed-off-by: Bastian Blank <waldi@debian.org>
Acked-by: Oliver Pinter <oliver.pntr@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-sparc64')
0 files changed, 0 insertions, 0 deletions