Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp415945lqz; Sat, 30 Mar 2024 02:12:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU51D7zrlKxtSWMKhxYwFn3bnbf9e2bGiJSCxT1Y/o11k69z53jevHqxPrLHPdo+y8/5Rt+otmvoZj2KaEOSK2QjsGGAntlCGtPKH8GiA== X-Google-Smtp-Source: AGHT+IGATNdQJvQzIZmAL73oTWyq4RCaVBl7okD59Wf764BnQg1I5uebHoRooUDEuuInRSdXu44e X-Received: by 2002:a17:907:1c90:b0:a4e:2220:f748 with SMTP id nb16-20020a1709071c9000b00a4e2220f748mr3317163ejc.40.1711789963198; Sat, 30 Mar 2024 02:12:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711789963; cv=pass; d=google.com; s=arc-20160816; b=AwBOStLbz+xOybEqHBqFXUcI6X1bXH828Pjn0vEg4SYBfTJ1UOlxeLIdbZSGD/Ryu4 fxwBOQK//fYody5Z9+UwKgSr4GAAapfM1qDcjvp+Hqj45IPcVC/Vnr0Nm7t20Nxq5CV0 r90LOPEsmMAMOTNDQOkvVrxOOfjvBaS0eHpY9w9RfrnRt8Ln4ZS9/BjCh1evwwHu0U58 O1/NiCd0c7lLs648af4TIjmP/uErs69Y3hqyz/iWE3+0Ou5DJF1sKIgRBZgTln4/GxyP TkswAw3sRqN6Mwaj21E0yyKiBEzovW/un8WHueBvDWUTPrjRS8kYqVnJ3et3c1dE/WpD 6AXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iYex0pOiYy+WjATI+qkGCtrB8PeiJwe0PvQDd+QkJVs=; fh=iXc6zmzi32rzkQ/FCJhvJJt9KKAdWHSGZjbLKhND0Rs=; b=y33Vjz1aNZfec/NUbJdnvZcjzqkebrjz4u64VmYWs41GuSNyAfc5NFa/UndwpiVAx2 1+NItELiD9fOI0KwpKwewYmeCEiaNusnFVnHMDephhUvQrx4W/sjGVSBTe6QT0HuOLXQ De9rifseZeB44W66GGsTNvMOTy4zE1DeX5TzLzdwYubhMiuML4kCwo4tPpHBivD1CBPx eLfB90kmNNls9KCm9hHtpRTbQ9FVnmXunAm/kojsMfC6u1pLQBJgLSqWkXTEWejNHSSn ZKTXkE0NjytyflhE6JqrTAMiwVv/j9GqH8lgLfammuWyoMIwn0/ywyB8dpv68jffnXbH SOuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Jc93oTzQ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-125637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x40-20020a50baab000000b0056c59c13488si1975695ede.598.2024.03.30.02.12.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 02:12:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Jc93oTzQ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-125637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125637-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E95F61F21C57 for ; Sat, 30 Mar 2024 09:12:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80DC5BE6B; Sat, 30 Mar 2024 09:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jc93oTzQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D718BE4A; Sat, 30 Mar 2024 09:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711789955; cv=none; b=FRiMn/ar1OErN/TwHlrM3T5RgZUpCHmoC4o3wppsC4byr9zfTQgJc9ARIvUD4cXa5t6OxczCI7dcD4XEFkQHRsaJTfoqfhojLLo7y3SpoIQdFJ9k//3UX1iYdnP7l7L8mP+e7Yzg+iJTo8N9a7G44YL94tROIHW26Vwn/mXs/Qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711789955; c=relaxed/simple; bh=jzqu+nCzBGkiGSJEi1GM4Qmn/uIbNiavD6zRP6mXd0s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U/epib2+C8mHKK8ot3mlRNkPdpBZKyoZxKb1KdT10xY6etu/3Yvtd785ztb1owJHeD+MkUyKzoMBHpcjuu+/2BW1HcC1jM43ekUNzYQ05OsSRJSR2JnnxrU4ZXlkFVq31JuUY0kn+repTUfyn4Eb7XKrmF55dP+I3ImTdtcKzww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jc93oTzQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48152C433F1; Sat, 30 Mar 2024 09:12:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711789955; bh=jzqu+nCzBGkiGSJEi1GM4Qmn/uIbNiavD6zRP6mXd0s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jc93oTzQHnf/tqm8pAbU1d2/OQCtTzW4NWl1J7Oic+lZpNUfbKPSU9GgH560Q82Ec 7pZxeySC88QxynAxXjqdbbaH7iYjLncIuMgWKOoy/NlTeDhiZXX72B6/EuBDJ/n5mB hA2kyNsZ5wjA7ZdDWPe6Mcu69GxoX0YfmKZwtAmg= Date: Sat, 30 Mar 2024 10:12:31 +0100 From: Greg Kroah-Hartman To: Matthew Wilcox Cc: Liu Shixin , stable@vger.kernel.org, Andrew Morton , Sasha Levin , Dan Williams , Naoya Horiguchi , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH stable-5.10] mm/memory-failure: fix an incorrect use of tail pages Message-ID: <2024033024-unusable-secret-6872@gregkh> References: <20240307124841.2838010-1-liushixin2@huawei.com> <026db58d-feea-8191-616a-3e6dca592786@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 25, 2024 at 03:57:06AM +0000, Matthew Wilcox wrote: > On Mon, Mar 25, 2024 at 11:36:49AM +0800, Liu Shixin wrote: > > Hi, > > > > After backport commit c79c5a0a00a9 ("mm/memory-failure: check the mapcount of the precise page"), > > > > I got an error message as written on the patch. The problem can be fixed by the patch or just revert. > > > > Now I prefer to revert because I think it is related to folio and no impact in stable, or maybe I'm wrong. > > I checked out what is going wrong here, and Liu Shixin is correct. > > Commit c79c5a0a00a9 was incorrectly backported to v5.10 and > commit 70168fdc743b changees the page passed to try_to_unmap(). > It now passes the tail page, and should always have passed hpage. > Please apply the patch below to v5.10 (and any other trees that > c79c5a0a00a9 got backported to). All now queued up,t hanks. greg k-h