LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-24-2009, 08:31 AM   #1
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
Slackware64-current: Creation of LUKS encrypted partition segfaults


Hi,

has anyone successfully created a LUKS partition with cryptsetup on Slackware64-current?

Doing this when booting from the CD*, I just get a segfault. Before that, cryptsetup asks the same questions as usual, asks for uppercase YES to confirm the creation, but then stops. Opening an existing LUKS encrypted partitions works though.


* I created a miniiso disc with Eric's script from the Slackware64-current tree. I don't know if this can be the source for my cryptsetup problem.
 
Old 05-25-2009, 05:52 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,294

Rep: Reputation: Disabled
THis is a confirmed bug. It only happens with the cryptsetup's static binary (which is in the installer) and running it on x86_64 and trying to apply the luksFormat command.
Other distros suffered from the same, and all seem to have reverted to using the dynamic version of cryptsetup.
While that runs the risk of killing cryptsetup when we upgrade something like gpg libraries, the current situation sucks more because you can not create a LUKS volume in the slackware64 installer.

I guess we'll swap the static binary with the dynamically linked equivalent soon.

Eric
 
Old 05-25-2009, 06:00 PM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Original Poster
Rep: Reputation: 94
Thanks Eric for confirming this. I already wondered if I had created one more PEBCAC problem. Nice to hear it wasn't so
 
Old 06-03-2009, 01:12 AM   #4
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
Just wanted to add, that it occurs not only in the installer, but also when I try to crypt a USB device from a running slackware64-current system.

gargamel
 
Old 06-03-2009, 04:12 AM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 3,425

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
Any idea where the underlying problem is? Is it cryptsetup itself, one of the libraries it's linked against or a compiler/linker bug? It just seems a little strange that the bug is specific to the staticly compiled version.
 
Old 06-05-2009, 01:20 PM   #6
arny
Bluewhite64
 
Registered: Jun 2006
Location: Baia Mare, Maramures, Romania
Distribution: Bluewhite
Posts: 87

Rep: Reputation: 17
Quote:
Originally Posted by Alien Bob View Post
THis is a confirmed bug. It only happens with the cryptsetup's static binary (which is in the installer) and running it on x86_64 and trying to apply the luksFormat command.
Eric
Are you sure about this Eric?

http://arny.ro/stuff/cryptsetup/

LE: That is a BW64-current with the latest updates (Mon Jun 1 17:46:46 EEST 2009)

Last edited by arny; 06-05-2009 at 01:35 PM.
 
Old 06-05-2009, 01:40 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,294

Rep: Reputation: Disabled
Don't be stupid.
This is a topic about what happens in slackware64-current as opposed to slackware-current.
If you have something constructive to say about the slackware64 issue, fine, go ahead. Otherwise, your comments are irrelevant to this discussion.

Eric
 
Old 06-05-2009, 01:52 PM   #8
kenjiro
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Distribution: Slackware Linux
Posts: 16

Rep: Reputation: 1
Quote:
Other distros suffered from the same, and all seem to have reverted to using the dynamic version of cryptsetup.
Very polite, Eric.

I believe arny was trying to tell that not all distros using static cryptsetup suffered from that bug. I used your howto (Luks+LVM) on a BW64-12.2 box and had no problems (fresh new install)

But then, I take the opportunity to ask this: So slackware64-current has more differences from slackware-current than just the x86_64 architecture? I admit my ignorance here, because I thought slack64-current was slack-current, just recompiled to 64bits.

By the way, perhaps instead of calling people stupid, you guys could ask those who have things working about how they fixed the problems. Perhaps it could save time and sweat

Kenjiro
 
Old 06-05-2009, 02:00 PM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,294

Rep: Reputation: Disabled
Another post irrelevant to this topic. You should open a new thread if you want to have a discussion about slackware64 and the underlying philosophy for developing it the way it is now.

Eric
 
Old 07-25-2009, 06:37 AM   #10
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
With the latest updates this seems not yet to be fixed. After creating a Linux partition on my external USB hard disk I do:

Code:
# cryptsetup -s 256 -y luksFormat /dev/sdd1

WARNING!
========
This will overwrite data on /dev/sdd1 irrevocably.

Are you sure? (Type uppercase yes): YES
Segmentation fault
I just post this, because this functionality is very important for me, and I hope it's not dropped as a feature for Slackware64 13.0. I do not mean to urge anyone, just want to express that I hope it's gonna be working sooner or later.

gargamel
 
Old 07-25-2009, 02:07 PM   #11
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Quote:
Originally Posted by gargamel View Post
I just post this, because this functionality is very important for me, and I hope it's not dropped as a feature for Slackware64 13.0. I do not mean to urge anyone, just want to express that I hope it's gonna be working sooner or later.
Couldn't agree more.
 
Old 07-25-2009, 03:31 PM   #12
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 926

Rep: Reputation: 96
Hmm I did my slackware64-current installation based on a June 23rd snapshot and I created a LUKS partition without any problems. This is on an AMD Mobile Sempron 3500+ processor btw.

Edit: I used the twofish encryption algorithm. Maybe the segfault happens with the default aes encryption only.

Last edited by Ilgar; 07-25-2009 at 03:33 PM.
 
Old 07-25-2009, 04:25 PM   #13
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
Hmm, I tried it several hours ago with all the latest patches applied on an external USB hard disk, and it failed. On Slackware 12.2 (32-bit) it worked just fine, as usual.

gargamel
 
Old 07-25-2009, 08:49 PM   #14
chuckie
LQ Newbie
 
Registered: Jul 2009
Location: Blm. IL. USA
Distribution: slackware
Posts: 13

Rep: Reputation: 0
this worked for me

cryptsetup.dynamic -s 256 -y luksFormat /dev/sd_ _
 
Old 07-26-2009, 03:01 AM   #15
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 926

Rep: Reputation: 96
Quote:
Originally Posted by gargamel View Post
Hmm, I tried it several hours ago with all the latest patches applied on an external USB hard disk, and it failed. On Slackware 12.2 (32-bit) it worked just fine, as usual.

gargamel
Did you try twofish, or was it aes?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypted root with LUKS on LVM and RAID-1: How? gargamel Suse/Novell 5 03-20-2010 04:30 PM
Slackware 12.2 + RAID-1 + LVM + LUKS encrypted root gargamel Slackware 35 12-17-2009 11:25 AM
Slackware64-Current / slackpkg slackass Slackware 31 06-06-2009 10:51 PM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 02:20 AM
mount luks encrypted partition with kdm mattydee Slackware 2 01-28-2008 12:32 AM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration