From: Andreas Mohr <andi@lisas.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: Chen Yu <yu.c.chen@intel.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map
Date: Mon, 29 Aug 2016 03:37:41 +0200 [thread overview]
Message-ID: <20160829013741.GA9271@rhlx01.hs-esslingen.de> (raw)
Hi,
[no properly binding reference via In-Reply-To: available thus manually re-creating, sorry]
> > So we can print warning in hibernation_die_notifier without
> > introducing a global variable?
> >
>
> Actually, I'd kill the machine right away.
>
> if (memcmp(result, buf, MD5_DIGEST_SIZE)) {
> pr_err("PM: e820 map conflict detected!\n");
> panic("BIOS is playing funny tricks with us.\n");
> }
> Best regards,
> Pavel
+1.
I would tend to think that
it's rather preferable to
kill an affected environment scope
(in this case: whole system), hard
(except for perhaps some emergency epilogue state saving),
in case of its state having become
suspicious/unpredictable/dangerous,
rather than having things carry on in a merry-go-round manner and thus
making improper state progress
which translates into
*continued activity* of *corrupting things*
(possibly even leading to *persistent* i.e. storage-recorded corruption!)
willy-nilly.
Plus, killing a machine hard in such a questionable case
would increase our influx of valuable reports
due to users being
hard-pressed to report this rather than
silently ignoring / not even knowing this issue
(in those cases where we already know that
no further development fixes will be determinable,
carrying on with a dire warning probably still is preferable to
making the machine completely unusable, eternally,
though).
Thus, think robustness.
Andreas Mohr
next reply other threads:[~2016-08-29 1:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 1:37 Andreas Mohr [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-10-21 5:21 Chen Yu
2016-08-23 9:45 ` joeyli
2016-08-23 10:01 ` Chen Yu
2016-08-24 1:36 ` joeyli
2016-08-25 11:07 ` Chen Yu
2016-08-26 19:56 ` Pavel Machek
2016-08-28 2:07 ` Chen Yu
2016-08-28 12:47 ` Pavel Machek
2016-08-28 13:08 ` Chen, Yu C
2016-08-28 13:15 ` Pavel Machek
2016-08-28 13:34 ` Chen, Yu C
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160829013741.GA9271@rhlx01.hs-esslingen.de \
--to=andi@lisas.de \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=yu.c.chen@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®