Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140387 - TrueCrypt does not work with 2.6.18-rc1, fix included
Summary: TrueCrypt does not work with 2.6.18-rc1, fix included
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL: http://www.truecrypt.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-14 10:14 UTC by Fredrik Smedberg
Modified: 2006-07-15 00:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Smedberg 2006-07-14 10:14:12 UTC
TrueCrypt 4.2a do not support the 2.6.18-rc1 and possible newer versions of the Linux kernel. The problem exists because the kernel developers has changed "drivers/md/dm.h" in the Linux source code.

They have changed DMERR. In older kernels DMERR looked like this:

#define DMERR(f, x...) printk(KERN_ERR DM_NAME ": " f "\n" , ## x)

but has now been changed to:

#define DMERR(f, arg...) printk(KERN_ERR DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg)

What needs to be done in the TrueCrypt source to make it work with 2.6.18 is to simply add:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
#define DM_MSG_PREFIX "truecrypt"
#endif

to the top of "Linux/Kernel/Dm-target.c" in the TrueCrypt source code.

DM_MSG_PREFIX is used to tell from where the DMERR occured. In this case: truecrypt

I've made a patch for TrueCrypt 4.2a, it's available here:
http://jdz.cute.se/patches/truecrypt-4.2a_kernel-2.6.18-rc1_fix.patch
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-07-15 00:19:31 UTC
added patch to TrueCrypt 4.2a thanks for the patch.