System hangs with encrypted swap on kernel 6.5.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-signed-hwe-6.5 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Using Ubuntu 22.04 LTS, and tested with both kernels linux-image-
If you create encrypted swap using the following steps, and then use lots of memory to trigger swap activity, it will eventually hang the entire system.
dd if=/dev/zero of=/swap.0 bs=1M count=1024
echo 'cryptswap.0 /swap.0 /dev/urandom swap,cipher=
cryptdisks_start cryptswap.0
swapon /dev/mapper/
A workaround was found, by creating a unencrypted swap file on an encrypted filesystem, which does not hang.