Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755371Ab0L3VZ1 (ORCPT ); Thu, 30 Dec 2010 16:25:27 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:50233 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131Ab0L3VZ0 convert rfc822-to-8bit (ORCPT ); Thu, 30 Dec 2010 16:25:26 -0500 MIME-Version: 1.0 In-Reply-To: References: <20101122154754.e022d935.akpm@linux-foundation.org> <20101129152500.000c380b.akpm@linux-foundation.org> Date: Thu, 30 Dec 2010 22:25:25 +0100 Message-ID: Subject: Re: kernel BUG at /build/buildd/linux-2.6.35/mm/filemap.c:128! From: =?UTF-8?B?Um9iZXJ0IMWad2nEmWNraQ==?= To: Hugh Dickins Cc: Miklos Szeredi , Andrew Morton , Nick Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1336 Lines: 28 >> I guess the latter is the more likely: maybe the truncate_count/restart >> logic isn't working properly.  I'll try to check over that again later - >> but will be happy if someone else beats me to it. > > I have since found an omission in the restart_addr logic: looking back > at the October 2004 history of vm_truncate_count, I see that originally > I designed it to work one way, but hurriedly added a 7/6 redesign when > vma splitting turned out to leave an ambiguity.  I should have updated > the protection in mremap move at that time, but missed it. > > Robert, please try out the patch below (should apply fine to 2.6.35): In the beginning of Jan (3-4) at earliest I'm afraid, i.e. when I manage to get to my console-over-rs232 setup. > I'm hoping this will fix what the fuzzer found, but it's still quite > possible that it found something else wrong that I've not yet noticed. > The patch could probably be cleverer (if we exported the notion of > restart_addr out of mm/memory.c), but I'm more in the mood for being > safe than clever at the moment. -- Robert Święcki -- 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/