Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 26 Apr 2001 16:44:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 26 Apr 2001 16:44:37 -0400 Received: from chaos.analogic.com ([204.178.40.224]:62336 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id ; Thu, 26 Apr 2001 16:44:23 -0400 Date: Thu, 26 Apr 2001 16:42:43 -0400 (EDT) From: "Richard B. Johnson" Reply-To: root@chaos.analogic.com To: Alexander Viro cc: Andrea Arcangeli , Linus Torvalds , Alan Cox , linux-kernel@vger.kernel.org Subject: Re: [PATCH] SMP race in ext2 - metadata corruption. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Apr 2001, Alexander Viro wrote: > > > On Thu, 26 Apr 2001, Andrea Arcangeli wrote: > > > > the wait-on-buffer is not strictly necessary: it's probably there to make > > > > maybe not but I need to check some more bit to be sure. > > Same scenario, but with read-in-progress started before we do getblk(). BTW, > old writeback is harmless - we will overwrite anyway. And _that_ can happen > without direct access to device - truncate() doesn't terminate writeout of > the indirect blocks it frees (IMO it should, but that's another story). > This seems to be the problem reported about a year ago, but never fixed. It exists, even in early kernels. mke2fs /dev/fd0 mount /dev/fd0 /mnt cp stuff /mnt lilo -C - <