ACK: [SRU][B/aws, F/aws, G/aws][PATCH 0/1] xen-netfront: prevent potential error on hibernate

Stefan Bader stefan.bader at canonical.com
Mon Dec 7 09:57:07 UTC 2020


On 04.12.20 17:12, Andrea Righi wrote:
> BugLink: https://bugs.launchpad.net/bugs/1906850
> 
> [Impact]
> 
> On hibernation xen-netfront is setting the device state on the xenbus to
> "Closing" and then it's waiting for the backend state to acknowledge
> that state (with a timeout). However, if the device is already in the
> state "Closed" this opteration will always hit the timeout, preventing
> the system to hibernate correctly.
> 
> [Test case]
> 
> It is a quite rare condition that can be reproduced hibernating/resuming
> a Xen instance multiple times. When the problem happens we should see in
> the log a Xen error message like the following:
> 
>   Freezing timed out; the device may become inconsistent state
> 
> [Fix]
> 
> If the device is already in the state "Closed", simply tear it down
> without notifying the Xen backend.
> 
> [Regression potential]
> 
> The fix would just prevent aborting hibernation if the netfront device
> is already in a "Closed" state. The resume callback is forcing the
> device into the "Initializing" state anyway, basically forcing a reset
> of the device, so nothing else in the state machine can be potentially
> broken.
> 
> 
Acked-by: Stefan Bader <stefan.bader at canonical.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20201207/fd1c5e62/attachment.sig>


More information about the kernel-team mailing list