Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp34165yba; Wed, 3 Apr 2019 04:02:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxDQhTIpW5AhUtypCpeWi9llU7mAscbcWAnS6kM5eie5vChfv4t5PGHp+S1CQtiIwu9pmT X-Received: by 2002:a17:902:7441:: with SMTP id e1mr42219530plt.13.1554289322524; Wed, 03 Apr 2019 04:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554289322; cv=none; d=google.com; s=arc-20160816; b=wDIakW80oXrckbXL1v7U0WGz3dk/RcfR6tTsq9BkpQIyKJwkzaOkSQzOuXOX41XqJD U5jw1wIs6rauHqNoqlDvmz7tm3CnHrDnUdnNXpEA33K8Vh8ZfCOt2q/4rIH0jBUl2snz z0CiWIgh1c1i7V2egEHPNNvL91yJSo0rYtpm96yfeje+ezODOLRJU3bC9swcBNwiOqQT dqkP6Q4FZl9KFBJ63E1zMaEBHO2xF97rsErPKaz4JEUQnu37REZ7bbtHgsQy7XJR+EM0 sshxzBu91LhUuvzuRnAWoDTuXpkmQgHGzpUDP98Bkgqu8jiYdeWCpV0Yk64eMvpnzGd4 3EDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ficrFrPB4WF/e1Pm8c916nTcKnFqhDuMk6sW1mrSerU=; b=NuqbNaYOuYcVDA+MG5v8pmSmvwTKcoi1yBZdWn71KHvK1lcPq6FmBqZH/QkMadApou rmp+cF2pJ7+ddiNQ+wOCk6sDfY7rZ4ZHKBY7eNpNvG5HLn2zl6J1IXICPRgK0PuFx+fo kbvTimXm8X7t3IpxsHWvJXh5c+A1JPAYoNIxN9n64VhQmL1jfhYYGvKtMTuizjXz6gIv tGmyx6lS5zi6aVH7RinjogoZ2rNsX/QxTephu2BnOvjKi2J8qYcNorlTpWQJbXbQtZ4U 4J3My2Cfc7WyxYPGTqTVqB4WoM5VG4nzR8FcRy8LTwughj6gRyb5MU0MGiTReE5d40oL RcCQ== 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 n9si13590869pfi.193.2019.04.03.04.01.46; Wed, 03 Apr 2019 04:02:02 -0700 (PDT) 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 S1726864AbfDCLA5 (ORCPT + 99 others); Wed, 3 Apr 2019 07:00:57 -0400 Received: from foss.arm.com ([217.140.101.70]:37916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbfDCLA4 (ORCPT ); Wed, 3 Apr 2019 07:00:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2055780D; Wed, 3 Apr 2019 04:00:56 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 76EA73F59C; Wed, 3 Apr 2019 04:00:54 -0700 (PDT) Date: Wed, 3 Apr 2019 12:00:51 +0100 From: Catalin Marinas To: Pavel Machek Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, James Morse , "Rafael J. Wysocki" , Will Deacon , Sasha Levin Subject: Re: [PATCH 4.4 078/131] PM / Hibernate: Call flush_icache_range() on pages restored in-place Message-ID: <20190403110051.GB34351@arrakis.emea.arm.com> References: <20190401170051.645954551@linuxfoundation.org> <20190401170058.681712612@linuxfoundation.org> <20190401203918.GA26671@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190401203918.GA26671@amd> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 01, 2019 at 10:39:18PM +0200, Pavel Machek wrote: > On Mon 2019-04-01 19:02:28, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > [ Upstream commit f6cf0545ec697ddc278b7457b7d0c0d86a2ea88e ] > > > > Some architectures require code written to memory as if it were data to be > > 'cleaned' from any data caches before the processor can fetch them as new > > instructions. > > > > During resume from hibernate, the snapshot code copies some pages directly, > > meaning these architectures do not get a chance to perform their cache > > maintenance. Modify the read and decompress code to call > > flush_icache_range() on all pages that are restored, so that the restored > > in-place pages are guaranteed to be executable on these architectures. > > > > Signed-off-by: James Morse > > Acked-by: Pavel Machek > > Acked-by: Rafael J. Wysocki > > Acked-by: Catalin Marinas > > [will: make clean_pages_on_* static and remove initialisers] > > Signed-off-by: Will Deacon > > Signed-off-by: Sasha Levin > > I don't think this is suitable for stable. > > Catalin: Are there platforms that a) need this and b) support > hibernation in 4.4.X? Good point. This commit was required for the arm64 hibernate support that went in the 4.7 kernel. Greg, why was this patch selected for stable? It's harmless anyway. Thanks. -- Catalin