Public bug reported:
Using Ubuntu 22.04 LTS, and tested with both kernels linux-
image-6.5.0-21-generic and gcp. Tested on VM's with 1G of RAM to make
running out of swap easier. This behaviour does not happen on the 5.x
kernel that I tested on the same VM.
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=aes-cbc-essiv:sha256,size=256' >> /etc/crypttab
cryptdisks_start cryptswap.0
swapon /dev/mapper/cryptswap.0
A workaround was found, by creating a unencrypted swap file on an
encrypted filesystem, which does not hang.
** Affects: linux-signed-hwe-6.5 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-hwe-6.5 in Ubuntu.
https://bugs.launchpad.net/bugs/2055813
Title:
System hangs with encrypted swap on kernel 6.5.0
Status in linux-signed-hwe-6.5 package in Ubuntu:
New
Bug description:
Using Ubuntu 22.04 LTS, and tested with both kernels linux-
image-6.5.0-21-generic and gcp. Tested on VM's with 1G of RAM to make
running out of swap easier. This behaviour does not happen on the 5.x
kernel that I tested on the same VM.
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=aes-cbc-essiv:sha256,size=256' >> /etc/crypttab
cryptdisks_start cryptswap.0
swapon /dev/mapper/cryptswap.0
A workaround was found, by creating a unencrypted swap file on an
encrypted filesystem, which does not hang.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe-6.5/+bug/2055813/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp