From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758331AbcH3Lpd (ORCPT ); Tue, 30 Aug 2016 07:45:33 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:44396 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756753AbcH3Lpc (ORCPT ); Tue, 30 Aug 2016 07:45:32 -0400 From: "Rafael J. Wysocki" To: Borislav Petkov Cc: Pavel Machek , Chen Yu , linux-pm@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Lee@nazgul.tnic, Chun-Yi Subject: Re: [PATCH][v8] PM / hibernate: Verify the consistent of e820 memory map by md5 value Date: Tue, 30 Aug 2016 13:51:19 +0200 Message-ID: <4046257.PxhXCrvGHl@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.8.0-rc2+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160829134123.GA28806@nazgul.tnic> References: <1472402140-959-1-git-send-email-yu.c.chen@intel.com> <20160829071500.GA3859@amd> <20160829134123.GA28806@nazgul.tnic> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, August 29, 2016 03:41:23 PM Borislav Petkov wrote: > On Mon, Aug 29, 2016 at 09:15:00AM +0200, Pavel Machek wrote: > > Sounds about as easy as hot unplugging arbitrary memory address. IOW > > "not easy". > > Regardless, forcibly panicking the system more is still the wrong > approach IMO. Agreed. > Instead, I'd try to issue a big fat warning that BIOS corrupts E820 and > that the user should disable hibernation on that box and never ever > enable it again. > > After that, the kernel should *disable* hibernation for the current boot > so any further hibernation runs don't even happen. Maybe even taint > itself. Yes, taint the kernel when e820 mismatch is detected. It may be a good idea to start an emergency shutdown in that case too, but after getting to a point when it actually has a chance to work. Thanks, Rafael