Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261180AbVEKQSb (ORCPT ); Wed, 11 May 2005 12:18:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261212AbVEKQSb (ORCPT ); Wed, 11 May 2005 12:18:31 -0400 Received: from bay-bridge.veritas.com ([143.127.3.10]:17848 "EHLO MTVMIME03.enterprise.veritas.com") by vger.kernel.org with ESMTP id S261180AbVEKQS2 (ORCPT ); Wed, 11 May 2005 12:18:28 -0400 Date: Wed, 11 May 2005 17:19:03 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@goblin.wat.veritas.com To: Kirill Korotaev cc: Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [PATCH] do_swap_page() can map random data if swap read fails In-Reply-To: <4282248F.3070206@sw.ru> Message-ID: References: <4282248F.3070206@sw.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 11 May 2005 16:18:25.0035 (UTC) FILETIME=[0EC375B0:01C55645] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 20 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 > Signed-Off-By: Alexey Kuznetsov Ah, yes, that surprised me years ago, but I forgot all about it. Acked-by: Hugh Dickins - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/