Linux Power Management development
 help / color / mirror / Atom feed
From: Patrick Boake <patrick@boake.ca>
To: linux-pm@vger.kernel.org
Cc: Rafael J. Wysocki <rafael@kernel.org>
Subject: PM: hibernate freeze/image-creation stage has no watchdog-equivalent protection (real 6h12m stall)
Date: Wed, 11 Nov 2026 11:25:04 -0500	[thread overview]
Message-ID: <E1xRB8C-000cy5-2N@Tobo> (raw)

Hi,

Real-world report, not a patch -- happy to help test if useful, but wanted
to raise this while it's fresh and while the related watchdog work is
active.

System: Debian 12.15, kernel 6.1.0-54-amd64 (Debian's packaged LTS --
predates the DPM watchdog extension below, noted explicitly so I'm not
overclaiming what I actually reproduced).

On 2026-11-10, an automated maintenance script called `systemctl
hibernate` after a normal, successful run. Kernel log:

  Nov 10 03:40:23 kernel: PM: hibernation: hibernation entry
  <complete silence for 6h12m -- no kernel messages of any kind, confirmed
   via journalctl -k across that whole span>
  Nov 11 09:52:27 kernel: PM: hibernation: Marking nosave pages: ...
  Nov 11 09:52:28 kernel: PM: hibernation: Creating image:
  Nov 11 09:52:28 kernel: PM: hibernation: Need to copy 1573875 pages
  Nov 11 09:52:28 kernel: PM: hibernation: Basic memory bitmaps freed
  Nov 11 09:52:28 kernel: PM: hibernation: hibernation exit

No second "hibernation entry" -- this is one continuous call that took
6h12m to get from entry to its own snapshot-prep steps, then aborted
without ever writing an image or powering off. Userspace was frozen for
the entire span (a 5-minute heartbeat process went completely silent for
the same window), so whatever it was stuck on, it wasn't something a
userspace watchdog could have caught -- the watchdog would freeze too.

Two things point at where the kernel's own protection stops:

1. Task-freezing has a real, enforced 20s timeout -- a failure there logs
   "Freezing of tasks failed after 20.0x seconds". That message never
   appears, which rules out that specific stage.

2. Device suspend/resume has the DPM watchdog. I checked its current
   scope directly against commit 3339234 ("PM: sleep: Add DPM watchdog to
   prepare/late/early/noirq/complete phases", landed 2026-09-25) -- it
   wraps device_prepare, device_suspend_late, device_suspend_noirq,
   device_resume_noirq, device_resume_early, device_complete. That's the
   suspend/resume path. It doesn't appear to touch the hibernate-specific
   freeze/image-creation callback path (the stage our real stall actually
   hung in, based on where the log picks back up).

So: a real stall landed in exactly the stage that (as far as I can tell
from the commit itself) still has no watchdog-equivalent coverage, even
after the recent extension. I don't have a fix to offer -- this isn't a
patch submission -- but given 3339234 is recent and the scope question is
fresh, wanted to flag the gap with real evidence rather than file it as
a cold, unsubstantiated report.

Happy to provide more logs, test a patch, or file this properly via
bugzilla.kernel.org instead if that's the better venue for something at
this stage (report vs. patch) -- let me know which you'd prefer.

Thanks,
Patrick Boake
patrick@boake.ca

                 reply	other threads:[~2026-11-11 16:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=E1xRB8C-000cy5-2N@Tobo \
    --to=patrick@boake.ca \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    /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