-
-
Notifications
You must be signed in to change notification settings - Fork 265
Artix Linux: LUKS2 hash is not correctly recognized when the cryptdevice contains a key-slot with pbkdf2 #3361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@castilma
message on your terminal? As far as I see in its comments the current code in
which does not mean that the current code Perhaps in current code
LogPrint should be at least LogPrintError or even Error |
Yes, I got some of these |
Uh oh!
There was an error while loading. Please reload this page.
ReaR version ("/usr/sbin/rear -V"):
Relax-and-Recover 2.7 / Git
OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"):
Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR):
PC
System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device):
x86_64
Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot):
UEFI, GRUB
Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe):
SSD
Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,LABEL,SIZE,MOUNTPOINT"):
If a key-slot uses the key derivation function
pbkdf2
, luksDump outputs aHash:
line for that entry. Thisbreaks the 'hash' checking code in
260_crypt_layout.sh
, because multipleHash:
lines exist and the test argument is not quoted:rear/usr/share/rear/layout/save/GNU/Linux/260_crypt_layout.sh
Line 118 in 40cbaaf
Like in line 87, the extraction should probably just choose one line, but not always the first one! Right now it accepts all lines:
rear/usr/share/rear/layout/save/GNU/Linux/260_crypt_layout.sh
Line 88 in 40cbaaf
Reproduce like this:
Note the new 'Hash:' line in the first key slot. I believe rear is interested in the second one under
Digests:
.Background: I upgraded my LUKS1 device to LUKS2 (after reading this PSA), but did not follow the last step to update the pbkdf to argon, which I is the default for luks2 devices. So I ended up having a keyslot with the 'pbkdf2', which should be pretty rare with luks2.
Update the keyslot by running
$ cryptsetup luksConvertKey <DEVICE> --pbkdf argon2id
with the corresponding password.The text was updated successfully, but these errors were encountered: