Re: dm bug: hibernate to swap located on dm-integrity doesn't work (how to get data redundancy for swap?)
Askar Safin <[email protected]> Fri, 24 Oct 2025 19:31:42 +0300
| Newsgroups | gmane.linux.lvm.devel,gmane.linux.block,gmane.comp.file-systems.btrfs,gmane.linux.kernel.cryptoapi,gmane.linux.kernel.mm,gmane.linux.power-management.general,gmane.linux.raid |
|---|---|
| Message-ID | <[email protected]> |
Milan Broz <[email protected]>: > Hi, I just wrote script for reproduction of this bug in Qemu: https://zerobin.net/?4e742925aedbecc6#BX3Tulvp7E3gKhopFKrx/2ZdOelMyYk1qOyitcOr1h8= Just run it, and you will reproduce this bug, too. Also, I just reproduced it on current master (43e9ad0c55a3). Here is output of this script on master: https://zerobin.net/?68ef6601ab203a11#7zBZ44AaVKmvRq161MJaOXIXY/5Hiv+hRUxWoqyZ7uE= As you can see, hibernate succeeds, but resume fails so: + blkid --match-tag TYPE --output value /dev/mapper/early-swap + TYPE=swap + echo 'Type: swap' Type: swap + echo /dev/mapper/early-swap [ 0.446545] PM: Image not found (code -22) Also, I just noticed that the bug sometimes reproduces, and sometimes not. Still it reproduces more than 50% of time. Also, you will find backtrace in logs above. Disregard it. I think this is just some master bug, which is unrelated to our dm-integrity bug. I will answer to rest of your letter later. Also, I saw patch, I will test it later. -- Askar Safin