From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] mm: Fix the TLB range flushed when __tlb_remove_page() runs out of slots Date: Mon, 29 Jul 2013 16:46:58 -0700 Message-ID: <20130729164658.0dfa1ff602bc131fe2ec0b1b@linux-foundation.org> References: <1369832173-15088-1-git-send-email-vgupta@synopsys.com> <20130729.164106.943996066712571180.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130729.164106.943996066712571180.davem@davemloft.net> Sender: stable-owner@vger.kernel.org To: David Miller Cc: Vineet.Gupta1@synopsys.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mgorman@suse.de, hughd@google.com, riel@redhat.com, rientjes@google.com, peterz@infradead.org, linux-arch@vger.kernel.org, catalin.marinas@arm.com, jcmvbkbc@gmail.com, Greg KH , stable@vger.kernel.org List-Id: linux-arch.vger.kernel.org On Mon, 29 Jul 2013 16:41:06 -0700 (PDT) David Miller wrote: > From: Vineet Gupta > Date: Wed, 29 May 2013 18:26:13 +0530 > > > zap_pte_range loops from @addr to @end. In the middle, if it runs out of > > batching slots, TLB entries needs to be flushed for @start to @interim, > > NOT @interim to @end. > > > > Since ARC port doesn't use page free batching I can't test it myself but > > this seems like the right thing to do. > > Observed this when working on a fix for the issue at thread: > > http://www.spinics.net/lists/linux-arch/msg21736.html > > > > Signed-off-by: Vineet Gupta > > As this bug can cause pretty serious memory corruption, I'd like to > see this submitted to -stable. Greg, e6c495a96ce02574e765d5140039a64c8d4e8c9e from mainline, please. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:32808 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153Ab3G2XrA (ORCPT ); Mon, 29 Jul 2013 19:47:00 -0400 Date: Mon, 29 Jul 2013 16:46:58 -0700 From: Andrew Morton Subject: Re: [PATCH] mm: Fix the TLB range flushed when __tlb_remove_page() runs out of slots Message-ID: <20130729164658.0dfa1ff602bc131fe2ec0b1b@linux-foundation.org> In-Reply-To: <20130729.164106.943996066712571180.davem@davemloft.net> References: <1369832173-15088-1-git-send-email-vgupta@synopsys.com> <20130729.164106.943996066712571180.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: David Miller Cc: Vineet.Gupta1@synopsys.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mgorman@suse.de, hughd@google.com, riel@redhat.com, rientjes@google.com, peterz@infradead.org, linux-arch@vger.kernel.org, catalin.marinas@arm.com, jcmvbkbc@gmail.com, Greg KH , stable@vger.kernel.org Message-ID: <20130729234658.j-MrjLSJ20_46d87pBDiEgevX7Ll_cCae7TRg6VkVa0@z> On Mon, 29 Jul 2013 16:41:06 -0700 (PDT) David Miller wrote: > From: Vineet Gupta > Date: Wed, 29 May 2013 18:26:13 +0530 > > > zap_pte_range loops from @addr to @end. In the middle, if it runs out of > > batching slots, TLB entries needs to be flushed for @start to @interim, > > NOT @interim to @end. > > > > Since ARC port doesn't use page free batching I can't test it myself but > > this seems like the right thing to do. > > Observed this when working on a fix for the issue at thread: > > http://www.spinics.net/lists/linux-arch/msg21736.html > > > > Signed-off-by: Vineet Gupta > > As this bug can cause pretty serious memory corruption, I'd like to > see this submitted to -stable. Greg, e6c495a96ce02574e765d5140039a64c8d4e8c9e from mainline, please.