From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 24 Feb 2016 16:17:12 +0000 From: Will Deacon Subject: Re: [PATCH] thp: call pmdp_invalidate() with correct virtual address Message-ID: <20160224161711.GA12471@arm.com> References: <1456329483-4220-1-git-send-email-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1456329483-4220-1-git-send-email-kirill.shutemov@linux.intel.com> Sender: owner-linux-mm@kvack.org List-Archive: List-Post: To: "Kirill A. Shutemov" Cc: Andrew Morton , Linus Torvalds , Gerald Schaefer , Christian Borntraeger , Martin Schwidefsky , Andrea Arcangeli , linux-s390@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Wed, Feb 24, 2016 at 06:58:03PM +0300, Kirill A. Shutemov wrote: > Sebastian Ott and Gerald Schaefer reported random crashes on s390. > It was bisected to my THP refcounting patchset. > > The problem is that pmdp_invalidated() called with wrong virtual > address. It got offset up by HPAGE_PMD_SIZE by loop over ptes. > > The solution is to introduce new variable to be used in loop and don't > touch 'haddr'. > > Signed-off-by: Kirill A. Shutemov > Reported-by: Gerald Schaefer > Reported-by Sebastian Ott > --- > mm/huge_memory.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) Looks good to me: Reviewed-by: Will Deacon Thanks, Will -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org