]> err.no Git - linux-2.6/commit
fdpic: check that the size returned by kernel_read() is what we asked for
authorDavid Howells <dhowells@redhat.com>
Tue, 29 Apr 2008 07:59:34 +0000 (00:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:05 +0000 (08:06 -0700)
commite1d2c8b69ad81ea103b1e87809eba51931e16874
treebfd78fc4729f5a9911b8e1ca145ad34a17fc3e3b
parent76308da18910e556747f6d100147f42ccc78662c
fdpic: check that the size returned by kernel_read() is what we asked for

Check that the size of the read returned by kernel_read() is what we asked
for.  If it isn't, then reject the binary as being a badly formatted.

Signed-off-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/binfmt_elf_fdpic.c