]> git.baikalelectronics.ru Git - kernel.git/commit
Relax the rw_verify_area() error checking.
authorLinus Torvalds <torvalds@g5.osdl.org>
Thu, 5 Jan 2006 00:20:40 +0000 (16:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 5 Jan 2006 00:20:40 +0000 (16:20 -0800)
commit1f36dc4d2d8b3979437907d7b32cb0cdeb51707e
treebea9af22a98ea2988a38f5e9fc2467ccbbf3ae70
parent083eb4f6ea3f49c3448039eeb772a4d22612dcad
Relax the rw_verify_area() error checking.

In particular, allow over-large read- or write-requests to be downgraded
to a more reasonable range, rather than considering them outright errors.

We want to protect lower layers from (the sadly all too common) overflow
conditions, but prefer to do so by chopping the requests up, rather than
just refusing them outright.

Cc: Peter Anvin <hpa@zytor.com>
Cc: Ulrich Drepper <drepper@redhat.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Al Viro <viro@ftp.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/mips/kernel/linux32.c
fs/compat.c
fs/read_write.c