mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
If LUKS1 payload offset (data offset) is not aligned to 4KiB we create unaligned keyslots area in LUKS2 metadata during upconversion. Unaligned keyslots area is not valid from LUKS2 perspective. Fix it by properly aligning future keyslots area and also check if LUKS1 keyslots area fit in the new one. Fixes: #534.