Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753464AbbGTTY7 (ORCPT ); Mon, 20 Jul 2015 15:24:59 -0400 Received: from smtp2.it.da.ut.ee ([193.40.5.67]:57832 "EHLO smtp2.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752511AbbGTTY6 (ORCPT ); Mon, 20 Jul 2015 15:24:58 -0400 Date: Mon, 20 Jul 2015 22:28:56 +0300 (EEST) From: Meelis Roos To: Helge Deller cc: Christophe JAILLET , jejb@parisc-linux.org, mpatocka@redhat.com, kirill.shutemov@linux.intel.com, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, John David Anglin Subject: Re: [PATCH] parisc: mm: Fix a memory leak related to pmd not attached to the pgd In-Reply-To: <55A408F5.601@gmx.de> Message-ID: References: <1436779963-4286-1-git-send-email-christophe.jaillet@wanadoo.fr> <55A408F5.601@gmx.de> User-Agent: Alpine 2.11 (LRH 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1048 Lines: 26 > Hi Christophe, > > On 13.07.2015 11:32, Christophe JAILLET wrote: > > Commit 0e0da48dee8d ("parisc: mm: don't count preallocated pmds") > > introduced a memory leak. > > > > After this commit, the 'return' statement in pmd_free is executed in all > > cases. Even for pmd that are not attached to the pgd. > > So 'free_pages' can never be called anymore, leading to a memory leak. > > That's really great!!! Thanks for spotting this! > > I assume this fixes the leak which killed our debian buildds with OOM > after an uptime of 1-4 days and which only happened since kernel 4.0. > Meelis Roos reported the issue already in this thread: > http://marc.info/?l=linux-parisc&m=142999113232154&w=2 Yes, the patch that is merged in 4.2-rc3 fixed my RP3410 with 1G RAM. -- Meelis Roos (mroos@linux.ee) -- 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/