severiy 404344 normal
retitle 404344 Need script to invalidate suspended image during normal boot-up
thanks

On Sat, 23 Dec 2006 20:23:23 +0100
Zoran Dzelajlija <[EMAIL PROTECTED]> wrote:

> Package: uswsusp
> Version: 0.3~cvs20060928-6
> Severity: critical
> Justification: causes serious data loss
> 
> Hi, uswsusp just tried to resume a previous session even though
> the system was booted and filesystems remounted in the meantime..
> 
> 
> After that, approximate steps to reproduce:
> 
>  - boot Debian's 2.6.18-3-686
>  - s2disk
>  - power up the machine
>  - boot up a custom 2.6.17.11 kernel (possibly any other kernel with
>    no support for uswsusp) ... ext3 journals get replayed, filesystems
>    mounted rw, the system goes up normally like after a power loss

You shouldn't do this. Never boot a different kernel then the one you
suspended with. Unless you know what you're doing of course, in which
case you would have invalidated the image yourself.
Maybe we need bigger warnings about that.

>  - reboot
>  - boot 2.6.18-3-686 again
>    ... the suspended image is detected and uswsusp tries to resume.
> 
> At this point I frantically pushed the power button and didn't wait for
> possible checks done after image is loaded.
 
> If there are any checks on eg. last mount times and mount counts of
> filesystems that were in use, that are done _after_ the image is
> loaded, the bug can be downgraded.  If there are not, there should be.
> ;-)  

This is pretty hard to do, without all sorts of assumptions.

> As it is now, I think this subsystem is not robust enough to be
> included in etch.

I don't agree with you here. This scenario is not likely (impossible)
to occur if you just install uswsusp and the debian kernels.
FWIW, this problem is shared between all three suspend implementations, 
also the (non-uswsusp) in kernel one.

I do agree it would be nice to have a script in the boot-up sequence that
would invalidate a suspended image. The hibernate package has a script
that does just that. Maybe I should copy it to here to,

grts Tim

Attachment: signature.asc
Description: PGP signature

Reply via email to