Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1873323pxb; Thu, 4 Nov 2021 09:55:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhGG/STg8f6+TEzKdnWEWUOPpsXaUbMaVtrxJH7L9U5LjpVsgcyGtWDWLRO4X65MH00ulK X-Received: by 2002:a92:cb01:: with SMTP id s1mr34617811ilo.41.1636044926585; Thu, 04 Nov 2021 09:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636044926; cv=none; d=google.com; s=arc-20160816; b=E7HIS9aQ7c4fB8d8tN1Oxf6IBK29pdFyJz20oCvtDS77/vPrnmyLye9MscF7jh0U+/ eromwSjbb9Pi56zuu2vFvOmAMw4r42NHtPq01/ssevVMQQ6VTlf9g6Qz6dnjS/po8j+u zCib/e43LO+d1QWDuntzbhvgNBHobv6vHcuQRN2QSEnNbaep7Ji5QzOZtWk3g0H22W2Z rVwvnV2vAPxO2Vld/B1XO24TUndOYMyA1sFW3RD0gugQl6mXPXFd82cC+3OjCoyNLB/c 6DZ4m2SFid08t/56cSthdO6adaw9zGSBrywe8FvkpRDGE9sM8fjh4pe45v1fAjULPfT6 ZfIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DP8l4XYoVLhIW+Mqhpe77dHwnyWnPmkzZlE+fXY4N/A=; b=G7YVT149S1ZmFb+aKOJKw4UgDudF+57aIqrrrfdGvt2vY0jjkjgtayLWKRRdHeSASu eMFnkoc1lraeBnR52f1xRR5VUGTKErAwrfdiVucf3V+awls4Aad0VAoARNlLtOXdtUoN JpX8fRjq5Z1Kl8/xfnr+Eiiv4QkxitCACOcbXWa11wrZXxPj+/5e6m2deXw45Cw2bU9H Ra9rXRVer8NRaCKxOsYWEN7+XTmFyMFh6WuRZfpPDw/gJTyVNVRiyyU2xegVzEIEL3eF MNE2ev2LH1wDa3Ol6ghhxKrYyhehjcOgjNqQUUZOGjnS/oqq9XWglwIl3XRRoPg3FpFc Va5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bD635h5t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si10813203ila.52.2021.11.04.09.55.13; Thu, 04 Nov 2021 09:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bD635h5t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbhKDQ4g (ORCPT + 99 others); Thu, 4 Nov 2021 12:56:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:58738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231543AbhKDQ4f (ORCPT ); Thu, 4 Nov 2021 12:56:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C7FD2611EE; Thu, 4 Nov 2021 16:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1636044837; bh=Dhz9FmjLT35R+67iV11heDU4QCFq3O0PsHTKRHXxvYI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bD635h5tby1U32S9rZycwUOGE2sFSOJdE30TJHVecwR3f0K/iqHJvG0Z1DHn2WPCR d1MSR9HdZgfMpS0Tib7e++/wJr+G4UqWrc52qUd3PsRyCDOuNssC81vMFoSxxWZI/v hfh/Jny08QeDasR0aeGoeUCuF2Ol0mTzeI2eRPF8= Date: Thu, 4 Nov 2021 17:53:54 +0100 From: Greg KH To: Yang Shi Cc: naoya.horiguchi@nec.com, hughd@google.com, kirill.shutemov@linux.intel.com, willy@infradead.org, osalvador@suse.de, peterx@redhat.com, akpm@linux-foundation.org, stable@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [stable 5.10 PATCH] mm: hwpoison: remove the unnecessary THP check Message-ID: References: <20211101194856.305642-1-shy828301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 03, 2021 at 10:46:24AM +0100, Greg KH wrote: > On Mon, Nov 01, 2021 at 12:48:56PM -0700, Yang Shi wrote: > > commit c7cb42e94473aafe553c0f2a3d8ca904599399ed upstream. > > > > When handling THP hwpoison checked if the THP is in allocation or free > > stage since hwpoison may mistreat it as hugetlb page. After commit > > 415c64c1453a ("mm/memory-failure: split thp earlier in memory error > > handling") the problem has been fixed, so this check is no longer > > needed. Remove it. The side effect of the removal is hwpoison may > > report unsplit THP instead of unknown error for shmem THP. It seems not > > like a big deal. > > > > The following patch "mm: filemap: check if THP has hwpoisoned subpage > > for PMD page fault" depends on this, which fixes shmem THP with > > hwpoisoned subpage(s) are mapped PMD wrongly. So this patch needs to be > > backported to -stable as well. > > > > Link: https://lkml.kernel.org/r/20211020210755.23964-2-shy828301@gmail.com > > Signed-off-by: Yang Shi > > Suggested-by: Naoya Horiguchi > > Acked-by: Naoya Horiguchi > > Cc: Hugh Dickins > > Cc: Kirill A. Shutemov > > Cc: Matthew Wilcox > > Cc: Oscar Salvador > > Cc: Peter Xu > > Cc: > > Signed-off-by: Andrew Morton > > Signed-off-by: Linus Torvalds > > --- > > mm-filemap-check-if-thp-has-hwpoisoned-subpage-for-pmd-page-fault.patch > > depends on this one. > > Both now queued up, thanks. This breaks the build, see: https://lore.kernel.org/r/acabc414-164b-cd65-6a1a-cf912d8621d7@roeck-us.net so I'm going to drop both of these now. Please fix this up and resend a tested series. thanks, greg k-h