Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp181832yba; Wed, 3 Apr 2019 06:53:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzN1CqyGcX8TghJ8SguZaJ5gXq7QdwCmPAezFfeiHBy2lxUnFFtkGrLchDKJj8es0K45t5s X-Received: by 2002:a63:115c:: with SMTP id 28mr46422697pgr.270.1554299606946; Wed, 03 Apr 2019 06:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554299606; cv=none; d=google.com; s=arc-20160816; b=KbianUOEiy9JMkEoO5e8a0G+whVwa5gGeJ+MbFgfwJiYc3V3o8bak0kNunqsIvV/yP By5LTY5shW9n4ZAQOtALeFY35uLzz8lgyygZxPX0o4RWWkO5KtjDPDrzKT9Vvk8JHXzy umN6yD0Nto3e6TmYuNqWWeAEfNWUBCrDVVUIy7NE+V+re/pGWUfYRX1BdMWTBKPR8COY 0zqKJGvInQSuUPwTluYO7lzS1HKp+z6n9I2eVUp9iTFszMkz4AuTQnOBGEWMH2C1HM0R NUBK3nTsXnXZA5qzpQd3RrQXH0KwR6eI0tQWqTmAI1NvI+y9kd+07sTrYG7m3Kmfb5ej 3bow== 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:dkim-signature; bh=TxjPMIvzBHP0HBBlT17OAHozWEHQz9FiBqTd7wqZ32I=; b=zlZfVcObUmfWpPIWjvFXQn/mpfWBUHchsASDE2YCpJurwT0PS/SkVADDhSblOmMDdY ET8pHgylOWZEc4eQ5nU0fQZOZ5uskM70nRFGnaP+18eHNXYm7sRRLQTL1b05+oZFxiZh YQq6QqrKeZQix1jcXAtNhJ0iZiZZa+Fuo7zOg107BrmRKN58U+JQtsZqcNqSrWRQLlFj hBtS7JmEhD19WjsdSuZzKU47X2GD6baq2T4Z23mKw2zgPEQrhkVjfsmhchBBcHsPT1Xe TdzziCnC+Q9ctPaVuahTUZl2Fr5NHYnfzd5emi4fo8krXge3kCDrfG4e+aoQvveZgqaI gbyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sfx4Sv9E; 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 y1si13742840pgf.32.2019.04.03.06.53.11; Wed, 03 Apr 2019 06:53:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=sfx4Sv9E; 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 S1726574AbfDCNv7 (ORCPT + 99 others); Wed, 3 Apr 2019 09:51:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:54352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfDCNv7 (ORCPT ); Wed, 3 Apr 2019 09:51:59 -0400 Received: from localhost (217-101-180-136.cable.dynamic.v4.ziggo.nl [217.101.180.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1499420700; Wed, 3 Apr 2019 13:51:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554299518; bh=1ZRresJgJEzsVEBoj/S/AYbwc7Vmx6/76WgBUf4AB1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sfx4Sv9E5vvjif3hht4ndpY+8ZyJWD8jXnep/tLrC21vq4L+tBGozQIBKsIanuWcU FMLN2foPwzFszoFqUcpa8ZCIQXlUvJcwmgtDq8CQwt5zi7K40Cx3aJ/hokx+bVG1/v nlOozo9HDnMP9+C8ZJX3umNkXc9ZXYtbb66198P0= Date: Wed, 3 Apr 2019 15:40:08 +0200 From: Greg Kroah-Hartman To: Catalin Marinas Cc: Pavel Machek , 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: <20190403134008.GA6963@kroah.com> References: <20190401170051.645954551@linuxfoundation.org> <20190401170058.681712612@linuxfoundation.org> <20190401203918.GA26671@amd> <20190403110051.GB34351@arrakis.emea.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190403110051.GB34351@arrakis.emea.arm.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 03, 2019 at 12:00:51PM +0100, Catalin Marinas wrote: > 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. It came in through Sasha's "magic patch selection AI" tools :) If it's harmless, might as well leave it in now, and not revert it. thanks, greg k-h