]> bbs.cooldavid.org Git - net-next-2.6.git/commit
use use SEEK_MAX to validate user lseek arguments
authorChris Snook <csnook@redhat.com>
Tue, 8 May 2007 07:24:15 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:14:59 +0000 (11:14 -0700)
commit1ae7075bcd805c3aa5e8f53effc63a4562d6110e
tree76ce9da136deee264b1642169522981b5175af82
parent7b8e89249ba54fb6e12358bbed7e3070fa1d1e6a
use use SEEK_MAX to validate user lseek arguments

Add SEEK_MAX and use it to validate lseek arguments from userspace.

Signed-off-by: Chris Snook <csnook@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/read_write.c
include/linux/fs.h