From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161538AbcHENkS (ORCPT ); Fri, 5 Aug 2016 09:40:18 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48093 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161522AbcHENkP (ORCPT ); Fri, 5 Aug 2016 09:40:15 -0400 Date: Fri, 5 Aug 2016 15:40:10 +0200 From: Pavel Machek To: "Rafael J. Wysocki" Cc: Linux PM list , Linux Kernel Mailing List Subject: Re: [PATCH] PM / hibernate: Image data protection during restoration Message-ID: <20160805134010.GC26852@amd> References: <2964021.nluHKyP5cW@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2964021.nluHKyP5cW@vostro.rjw.lan> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2016-07-05 14:34:38, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make it possible to protect all pages holding image data during > hibernate image restoration by marking them read-only (so as to > catch attempts to write to those pages after image data have been > stored in them). > > This adds overhead to image restoration code (it may cause large > page mappings to be split as a result of page flags changes) and > the errors it protects against should never happen in theory, so > the feature is only active after passing hibernate=protect_image > to the command line of the restore kernel. > > Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html