From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by kanga.kvack.org (Postfix) with ESMTP id 2DFA06B0005 for ; Wed, 24 Feb 2016 13:49:07 -0500 (EST) Received: by mail-io0-f177.google.com with SMTP id l127so58198753iof.3 for ; Wed, 24 Feb 2016 10:49:07 -0800 (PST) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com. [2607:f8b0:4001:c06::233]) by mx.google.com with ESMTPS id k77si5305701iod.183.2016.02.24.10.49.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2016 10:49:06 -0800 (PST) Received: by mail-io0-x233.google.com with SMTP id l127so58198157iof.3 for ; Wed, 24 Feb 2016 10:49:06 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1456329483-4220-1-git-send-email-kirill.shutemov@linux.intel.com> References: <1456329483-4220-1-git-send-email-kirill.shutemov@linux.intel.com> Date: Wed, 24 Feb 2016 10:49:06 -0800 Message-ID: Subject: Re: [PATCH] thp: call pmdp_invalidate() with correct virtual address From: Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: Andrew Morton , Gerald Schaefer , Christian Borntraeger , Will Deacon , Martin Schwidefsky , Andrea Arcangeli , linux-s390 , linux-mm , Linux Kernel Mailing List On Wed, Feb 24, 2016 at 7:58 AM, 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'. Thanks, I applied this directly rather than wait for this to go through Andrew (which would have been "proper channels"). This issue has been worrying me for a while now and was my main core worry for 4.5. Good to have it resolved, and thanks to everybody who tested and got involved. Linus -- 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