diff options
author | Badari Pulavarty <pbadari@us.ibm.com> | 2005-06-26 01:55:42 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-26 03:24:39 +0400 |
commit | b0cfbd995d091b10841eeb948976f5d1fbf13cdd (patch) | |
tree | a693416656084c99581c8ef6d2ca830b0cfe13a9 /mm/pdflush.c | |
parent | 8ae0b77811d97552b3b3c745e97de18849583bf7 (diff) | |
download | linux-b0cfbd995d091b10841eeb948976f5d1fbf13cdd.tar.xz |
[PATCH] fix for generic_file_write iov problem
Here is the fix for the problem described in
http://bugzilla.kernel.org/show_bug.cgi?id=4721
Basically, problem is generic_file_buffered_write() is accessing beyond end
of the iov[] vector after handling the last vector. If we happen to cross
page boundary, we get a fault.
I think this simple patch is good enough. If we really don't want to
depend on the "count", then we need pass nr_segs to
filemap_set_next_iovec() and decrement it and check it.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/pdflush.c')
0 files changed, 0 insertions, 0 deletions