[pkg-cryptsetup-devel] Bug#676159: cryptsetup checks LUKS offset incorrectly with detached header

Milan Broz mbroz at redhat.com
Tue Jun 5 07:01:58 UTC 2012


On 06/05/2012 08:28 AM, Alex Roper wrote:
> When operating with a detached header,
> setup.c:crypt_check_data_device_size checks to make sure the detached
> header is at least as large as the offset specified in the header. This
> is fine for a regular header, but this causes a detached header to fail
> unless the header file appears to be at least as large as the offset.
> 
> When --header is used, the check should consider the size of the backing
> device, not the LUKS header device.

Can you report it upstream please? http://code.google.com/p/cryptsetup/issues/list
(With some reproducer please. You need space for keyslots on LUKS header device,
not on data backing device, so I still do not see what problem exactly you see here,
header file must have a least space for header + all kesylots.)

Milan





More information about the pkg-cryptsetup-devel mailing list