Skip to content
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

systemd-cryptenroll --recovery-key "buffer overflow" #19375

Closed
ghost opened this issue Apr 20, 2021 · 4 comments
Closed

systemd-cryptenroll --recovery-key "buffer overflow" #19375

ghost opened this issue Apr 20, 2021 · 4 comments
Labels
cryptsetup duplicate needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer

Comments

@ghost
Copy link

ghost commented Apr 20, 2021

systemd version the issue has been seen with

248

Used distribution

Arch

Linux kernel version used (uname -a)

5.11.14-arch1-1

systemd-cryptenroll fails with "buffer overflow" :

# systemd-cryptenroll --recovery-key /dev/nvme0n1p2 
🔐 Please enter current passphrase for disk /dev/nvme0n1p2: ************************Failed to adjust kernel keyring key timeout: Permission non accordée
Added key to kernel keyring as 644929053.

Keyslot 0 priority 1 != 2 (required), skipped.
Keyslot 1 priority 1 != 2 (required), skipped.
Trying to open LUKS2 keyslot 0.
Reading keyslot area [0x8000].
Acquiring read lock for device /dev/nvme0n1p2.
Opening lock resource file /run/cryptsetup/L_259:2
Verifying lock handle for /dev/nvme0n1p2.
Device /dev/nvme0n1p2 READ lock taken.
Reusing open ro fd on device /dev/nvme0n1p2
Device /dev/nvme0n1p2 READ lock released.
Verifying key from keyslot 0, digest 0.
*** buffer overflow detected ***: terminated
Abandon (core dumped)
@poettering
Copy link
Member

buffer overflow? where? the output you dumped doesn't show anything like that?

@ghost
Copy link
Author

ghost commented Apr 21, 2021

Hi,

sorry, got mixed up when replacing the original message with the DEBUG option !

$ sudo systemd-cryptenroll --recovery-key /dev/nvme0n1p2
Mot de passe de  : 
🔐 Please enter current passphrase for disk /dev/nvme0n1p2: (press TAB for no ec************************
*** buffer overflow detected ***: terminated
Abandon

@poettering
Copy link
Member

any chance you can install debug symbols and run this in valgrind?

@poettering poettering added cryptsetup needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer labels Apr 22, 2021
@poettering
Copy link
Member

I am pretty sure this is just a duplicate of #19203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cryptsetup duplicate needs-reporter-feedback ❓ There's an unanswered question, the reporter needs to answer
Development

No branches or pull requests

1 participant