Project

General

Profile

Actions

Bug #3311

open

TrueCrypt support may cause kernel crash

Added by arcade@b1t.name 4 months ago. Updated 29 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Crypto
Target version:
Start date:
01/30/2022
Due date:
% Done:

10%

Estimated time:

Description

When working on tcplay:hammer2 device kernel can crash. Screenshots attached...


Files

IMG_20220129_093359.jpg (3.19 MB) IMG_20220129_093359.jpg arcade@b1t.name, 01/30/2022 02:33 AM
IMG_20220129_093321.jpg (3.67 MB) IMG_20220129_093321.jpg arcade@b1t.name, 01/30/2022 02:33 AM
IMG_20220130_111602.jpg (3.4 MB) IMG_20220130_111602.jpg arcade@b1t.name, 01/30/2022 02:33 AM
IMG_20220429_152146.jpg (2.49 MB) IMG_20220429_152146.jpg kernel crash arcade@b1t.name, 04/29/2022 05:55 AM
Actions #1

Updated by tante.anna 3 months ago

  • Priority changed from Normal to Low
  • % Done changed from 0 to 10

What happens if you don't use tcplay, but re-use/-initialize the same disk/slice with cryptsetup with default settings, and then fill up the new FS?

I seem to have a similar crash issue, both when using tcplay and cryptsetup. Due to a "fatal user access from kernel" issue with dm_crypt module. Which is maybe caused by something other than a software bug on my server.. [am testing scenarios at the moment]

Actions #2

Updated by arcade@b1t.name about 1 month ago

Well, after some updates tried testing again by encrypting swap on my drive (different drive). cryptsetup - stable, tcplay - dies quite fast even if swap is unused.

Actions #3

Updated by liweitianux 30 days ago

wrote in #note-2:

Well, after some updates tried testing again by encrypting swap on my drive (different drive). cryptsetup - stable, tcplay - dies quite fast even if swap is unused.

Hello, could you please describe the steps to reproduce this panic, e.g., tcplay to encrypt the swap.

Thanks.

Actions #4

Updated by arcade@b1t.name 29 days ago

arcade@probe2\/home/arcade# swapoff /dev/da2s2
swapoff: removing /dev/da2s2 as swap device
---
arcade@probe2\/home/arcade# tcplay -c -d /dev/da2s2 -z -b SERPENT-256-XTS -x RIPEMD160-VC
Passphrase:
Repeat passphrase:
Summary of actions:
 - Create volume on /dev/da2s2

 Are you sure you want to proceed? (y/n) y
Creating volume headers...
Depending on your system, this process may take a few minutes as it uses true random data which might take a while to refill
Writing volume headers to disk...
All done!
---
arcade@probe2\/home/arcade# tcplay -m swap0 -d /dev/da2s2
Passphrase:
All ok!
---
arcade@probe2\/home/arcade# swapon /dev/mapper/swap0
swapon: adding /dev/mapper/swap0 as swap device

Sits idle when nothing happens, but if I startup browser, mail client, etc - quickly crashes with <attached image>.

Again, LUKS works pretty fine, plain cryptsetup also works, but binary can crash:

works: cryptsetup -c aes-xts-plain -s 256 -h ripemd160 -y create rootd /dev/da0s3
dumps core: cryptsetup -c aes-xts-plain -s 512 -h ripemd160 -y create rootd /dev/da0s3

Actions

Also available in: Atom PDF