Re: [PATCH] do_swap_page() can map random data if swap read fails

From: Hugh Dickins
Date: Wed May 11 2005 - 11:19:29 EST


On Wed, 11 May 2005, Kirill Korotaev wrote:

> against 2.6.12-rc4
>
> 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@xxxxx>
> Signed-Off-By: Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>

Ah, yes, that surprised me years ago, but I forgot all about it.

Acked-by: Hugh Dickins <hugh@xxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/