johndoe31415 / luksipc

Official master repository of the LUKS in-place-conversion utility (luksipc)
GNU General Public License v3.0
91 stars 12 forks source link

kernel panic during plain to LUKS conversion #7

Closed ahxxm closed 8 years ago

ahxxm commented 8 years ago

An archlinux on dell xps 15 9550, with NVMe ssd, system boot with bootctl: 3 partition, /boot, /swap and /.

Steps:

Then SquashfsErrors message appears and everything stopped..

ahxxm commented 8 years ago

I append acpi=off to usb disk boot option and it's converting happily now.

johndoe31415 commented 8 years ago

Hello and thanks for reporting this issue.

Unfortunately, from your description I believe that luksipc is innocent of and I think this is an issue that cannot be fixed within luksipc, but lies within the kernel. My reasoning is the following: No (regular) userspace application should ever be able to create a kernel panic. Exception here is of course if the user-space administrative user uses their capabilities to insert code via modules into the kern. luksipc does nothing of that sort, however. The only thing it ever does is open block devices, create device mapper mapping and read and write back and forth between them.

I'll therefore close this issue here (since you seem to have found a viable workaoround by disabling ACPI, that's even better). However, I would encourage you to report that bug to your distribution, including the exact version of the kernel you used and the steps to reproduce it. If you have the time, it would also be interesting to use a recent vanilla kernel and see if the issue happens with that. If so, the correct addressee for the bug would be directly LKML, the Linux Kernel Mailing List.

Hope everything works as expected and thank you for taking the time to try out luksipc. Have a nice day, Joe

ahxxm commented 8 years ago

not everything, I tried resize back right after encrypt and encountered another kernel panic(even with acpi=off), however a reboot solves this... Now my partition is fully encrypted, thank you!