Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1471510 > unrolled thread

Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

Started byAndreas Mohr <andi@lisas.de>
First post2016-08-29 03:40 +0200
Last post2016-08-29 03:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when  resuming with inconsistent e820 map Andreas Mohr <andi@lisas.de> - 2016-08-29 03:40 +0200

#1471510 — Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

FromAndreas Mohr <andi@lisas.de>
Date2016-08-29 03:40 +0200
SubjectRe: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map
Message-ID<sbjIl-Pk-9@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web