]> git.baikalelectronics.ru Git - kernel.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)
commita603f91ec479bb76615975941204a26ce96e274e
tree76ce9da136deee264b1642169522981b5175af82
parent8aac1a83b0658b12a4c2329f8f36f10ba459514f
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