From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264424AbUENCUc (ORCPT ); Thu, 13 May 2004 22:20:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264512AbUENCUb (ORCPT ); Thu, 13 May 2004 22:20:31 -0400 Received: from smtp015.mail.yahoo.com ([216.136.173.59]:27007 "HELO smtp015.mail.yahoo.com") by vger.kernel.org with SMTP id S264424AbUENCUb (ORCPT ); Thu, 13 May 2004 22:20:31 -0400 Message-ID: <40A42CEB.2000007@yahoo.com.au> Date: Fri, 14 May 2004 12:20:27 +1000 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040401 Debian/1.6-4 X-Accept-Language: en MIME-Version: 1.0 To: Hugh Dickins CC: Andrew Morton , "viro@parcelfarce.linux.theplanet.co.uk" , Linus Torvalds , linux-kernel Subject: Re: [PATCH][RFC] truncate vs add_to_page_cache race References: <40A42892.5040802@yahoo.com.au> In-Reply-To: <40A42892.5040802@yahoo.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Nick Piggin wrote: > Hi, > I think there is a race between truncate and do_generic_mapping_read. > Comments? Too ugly? Have I've missed something? Hmm, no I think the right timing can still cause readpage to see the shortened i_size and fill the page with zeros.