From: Kirill Korotaev Date: Tue, 17 May 2005 04:53:50 +0000 (-0700) Subject: [PATCH] do_swap_page() can map random data if swap read fails X-Git-Tag: v2.6.12-rc5~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b81074800b98ac50b64d4c8d34e8abf0fda5e3d1;p=pandora-kernel.git [PATCH] do_swap_page() can map random data if swap read fails There is a bug in do_swap_page(): when swap page happens to be unreadable, page filled with random data is mapped into user address space. The fix is to check for PageUptodate and send SIGBUS in case of error. Signed-Off-By: Kirill Korotaev Signed-Off-By: Alexey Kuznetsov Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed