[pkg-cryptsetup-devel] Bug#1032734: OOM when unlocking encrypted root in initramfs

Jérôme Charaoui jerome at riseup.net
Sat Mar 11 13:26:27 GMT 2023


Package: cryptsetup
Version: 2:2.6.1-1
Severity: critical

Dear maintainer,

Today I upgraded a small KVM machine with a LUKS2 encrypted root and 
1GiB of RAM to bookworm, and was very surprised to be confronted with an 
OOM immediately upon entering my LUKS password in the initramfs prompt:

     Loading Linux 6.1.0-5-amd64 ...
     Loading initial ramdisk ...
     Please unlock disk vda5_crypt:
     [    7.982435] Out of memory: Killed process 243 (cryptsetup) 
total-vm:799000kB, anon-rss:678296kB, file-rss:6440kB, shmem-rss:0kB, 
UID:0 pgtables:1384kB oom_score_adj:0
     Killed
     cryptsetup: ERROR: vda5_crypt: cryptsetup failed, bad password or 
options?

This machine was booting just fine before upgrading, under bullseye.

The problem appears to be perhaps related to #924560, but in this 
instance, the issue causing an unbootable system post-upgrade.


Thanks,

-- Jérôme



More information about the pkg-cryptsetup-devel mailing list