]> err.no Git - linux-2.6/commit
[PATCH] do_swap_page() can map random data if swap read fails
authorKirill Korotaev <dev@sw.ru>
Tue, 17 May 2005 04:53:50 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:20 +0000 (07:59 -0700)
commitb81074800b98ac50b64d4c8d34e8abf0fda5e3d1
tree01b5114255fcf1ea8ea15fabe08cc9782131e684
parentc64610ba585fabb36be78782868277f3d9741a2e
[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 <dev@sw.ru>
Signed-Off-By: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c