From: akpm@osdl.org Date: Sun, 1 May 2005 15:58:35 +0000 (-0700) Subject: [PATCH] generic_file_buffered_write fixes X-Git-Tag: v2.6.12-rc4~136^2~185 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f021e9210185b46e41ec3a0e78ec1621e168eacb;p=pandora-kernel.git [PATCH] generic_file_buffered_write fixes Anton Altaparmakov points out: - It calls fault_in_pages_readable() which is completely bogus if @nr_segs > 1. It needs to be replaced by a to be written "fault_in_pages_readable_iovec()". - It increments @buf even in the iovec case thus @buf can point to random memory really quickly (in the iovec case) and then it calls fault_in_pages_readable() on this random memory. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed