Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp501436img; Tue, 26 Feb 2019 03:58:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IYRVH6oOyjLO2f60LmenrHLkXgK9AgRHb20Ql5PRB7AqYwzgjR9Xs94brgo8J0fGC7CX0p4 X-Received: by 2002:a17:902:6508:: with SMTP id b8mr26257287plk.17.1551182304192; Tue, 26 Feb 2019 03:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551182304; cv=none; d=google.com; s=arc-20160816; b=rmzu98F5M364pMfAAdnXbRvRn1KMFtFcIyy8kkK1xhiUQ5Z+Jdp71tqxfMn63kTuTS 8JuUPU95+zXRFLkMwiza4LEXvSSC/tTNQ04/eu7PUoDDFiwDlS1MYNJ/y2cOkGw+6jJa sBRTMS2838vwxUybgqOsQw67/MQIMOxTXoEiyfaZJHqWqG5E9mX1H2G/NrcPY4TpRg5I n3fdrkZORFuYLIm2NiFcYFIjSTskZg9GB0YduEEJNlsXvBQGx0PxaZP2NL8qZTEQ/XRf YMb/ytdPktrAbX7I8T73i/8WbCGDgWF0701iRGUdPdExHohV87yREp0CEmmcRywEyvwT /7Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DzA8XlhpCqjkpGRFyb9davwCKEonlhrFSYuD0gjjfiE=; b=mESWdG9sb6H4UOkVhcdz/P9ptUYMia5sCEtRLCBwNq/1L57NC9qDkKGLbKOr3pQzo0 t8s5vp2JxKmRA5LjPGrmXW+P21enpUQSqhs0Hb0VEnAxA/1gkOlutoqCmONFQmvRZeSf kyFmrbrpuBPU7k6wBnC27DJxz5PftBAJ7i3YNsRHxAEfibsV+qNVisNV1d6OvTnf/jaA zsa+GVN2AvRrQ4SKrmozLuSiTjQdh3cOOnYnGYadtTfqiY1UO9j6fnAJOwnjZCWfDdUv D2BcjIf6eeYTPGvAIOk2x0HjmUd5s1jttxjcTuXbHaRLDMAV12kSbS7jN9ryL479JlGH mP4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59si12167849pla.240.2019.02.26.03.58.08; Tue, 26 Feb 2019 03:58:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbfBZL5p (ORCPT + 99 others); Tue, 26 Feb 2019 06:57:45 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:34640 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbfBZL5o (ORCPT ); Tue, 26 Feb 2019 06:57:44 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 423691846D; Tue, 26 Feb 2019 12:57:42 +0100 (CET) X-Axis-User: NO X-Axis-NonUser: YES X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id U9yypqn2ZoG4; Tue, 26 Feb 2019 12:57:41 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id B3628180B3; Tue, 26 Feb 2019 12:57:41 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 85E5D1E07B; Tue, 26 Feb 2019 12:57:41 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 79B971E079; Tue, 26 Feb 2019 12:57:41 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Tue, 26 Feb 2019 12:57:41 +0100 (CET) Received: from XBOX04.axis.com (xbox04.axis.com [10.0.5.18]) by thoth.se.axis.com (Postfix) with ESMTP id 6D96076A; Tue, 26 Feb 2019 12:57:41 +0100 (CET) Received: from [10.88.41.2] (10.0.5.60) by XBOX04.axis.com (10.0.5.18) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Tue, 26 Feb 2019 12:57:41 +0100 Subject: Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate To: Vlastimil Babka , Lars Persson , , CC: References: <20190219123212.29838-1-larper@axis.com> <65ed6463-b61f-81ff-4fcc-27f4071a28da@suse.cz> <2de280a9-e82a-876c-e13b-a2e48d89700a@suse.cz> From: Lars Persson Message-ID: <24af691e-03ab-d79a-ddbd-7057dcf46826@axis.com> Date: Tue, 26 Feb 2019 12:57:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <2de280a9-e82a-876c-e13b-a2e48d89700a@suse.cz> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: XBOX04.axis.com (10.0.5.18) To XBOX04.axis.com (10.0.5.18) X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/26/19 11:07 AM, Vlastimil Babka wrote: > On 2/26/19 9:40 AM, Lars Persson wrote: >>> What about CC stable and a Fixes tag, would it be applicable here? >>> >> >> Yes this is candidate for stable so let's add: >> Cc: >> >> I do not find a good candidate for a Fixes tag. > > How bout a version range where the bug needs to be fixed then? > The distinction between mapped and non-mapped old page was introduced in 2ebba6b7e1d9 ("mm: unmapped page migration avoid unmap+remap overhead") so at least it applies to stable 4.4+. Before that patch there was always a call to remove_migration_ptes() but I cannot conclude if those earlier versions actually will reach the flush_dcache_page call if the old page was unmapped.