LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-24-2004, 03:12 PM   #1
Slacker0815
Member
 
Registered: Jan 2004
Location: Germany
Distribution: Slack, Slack, Slack
Posts: 45

Rep: Reputation: 15
Crypto problem: LOOP_SET_STATUS: Invalid argument


Hi,

I now literally read every single thread about crypto api in all Linux/Slackware forums I know, but still, IT DOESN'T WORK

When I try to create an encrypted partition I get this error after entering a password:

ioctl: LOOP_SET_STATUS: Invalid argument

I'm using Kernel 2.4.22 and want to encrypt partitions. From what I've read, 2.4.22 has built-in crypto api support, but lacks cryptoloop. Ok, following this Thread (linuxquestions.org/questions/showthread.php?s=&threadid=113905), I downloaded and applied this patch: kernel.org/pub/linux/kernel/people/hvr/testing/patch-cryptoloop-jari-2.4.22.0

After doing that I compiled a new kernel, but that was hopeless as I realized 30 minutes later. When going through the "make menuconfig" options, there is no new option for cryptoloop, but I guess there should be one. These are my options in .config:

#
# Cryptographic options
#
CONFIG_CRYPTO=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_NULL=m
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=m
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_SHA512=y
CONFIG_CRYPTO_DES=m
CONFIG_CRYPTO_BLOWFISH=m
CONFIG_CRYPTO_TWOFISH=y
CONFIG_CRYPTO_SERPENT=m
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_DEFLATE=m
CONFIG_CRYPTO_TEST=m

There SHOULD also be these options, but they aren't there:

CONFIG_CRYPTO=y
CONFIG_CRYPTODEV=y
CONFIG_CRYPTOLOOP=y
CONFIG_CRYPTOLOOP_ATOMIC=y

WTF?! I mean, what the hell am I doing wrong?!?

The patch's purpose is to add cryptoloop, so why's it not there? I applied the patch like that:
cat patch-cryptoloop-jari-2.4.22.0 | patch -p1

I'm really stuck, ANY help is greatly appreciated
 
Old 01-26-2004, 11:04 PM   #2
lucho
LQ Newbie
 
Registered: Nov 2003
Distribution: Slackware 10.2
Posts: 22

Rep: Reputation: 15
Can't you upgrade to 2.6? It's already built in it. I remember that was a real pain to have the cryptoloop working under 2.4, and I already forgot how to do it, sorry.
 
Old 01-27-2004, 09:30 AM   #3
Slacker0815
Member
 
Registered: Jan 2004
Location: Germany
Distribution: Slack, Slack, Slack
Posts: 45

Original Poster
Rep: Reputation: 15
Hi,

actually I wanted to build a running 2.4.22 system, not because I need 2.4.22 or something, just because it's the standard slack 9.1 kernel. But you're right, getting cryptoloop working is really a pain, so I already thought about upgrading to 2.6.

But can I just compile a 2.6 Kernel on a fresh Slackware 9.1 2.4.22 install? Or are there other things I need to change/upgrade in order to get a 2.6 system? (libraries,... whatever). Don't want to change my "cryptoloop"-problem for a "upgrading to 2.6"-problem. I mean, that's not a 2.4.22 to 2.4.23 update, it's 2.4.x to 2.6.x, so I thought there would be some problems.

If it's easy as just compiling the new kernel and all is ok, I'll upgrade. I'm trying to get cryptoloop working for more than a week now and still the same error "ioctl: LOOP_SET_STATUS: Invalid argument".

MfG, Slacker0815

Last edited by Slacker0815; 01-27-2004 at 09:32 AM.
 
Old 01-27-2004, 01:39 PM   #4
XStorm
Member
 
Registered: Nov 2003
Distribution: Slack 10.0 / 2.6.8.1
Posts: 63

Rep: Reputation: 15
Upgrading to 2.6.x is imho easier than compiling the old 2.4.22.
You just need to recreate the symlink /usr/src/linux to point to linux-2.6.x, do a
make mrproper
make menuconfig or xconfig or oldconfig
make
make modules_install
make install - provided you edited lilo.conf and added a new entry that points to vmlinuz.old.

There's a whole thread on this subject in this forum, enough info to get you going. Don't forget to build in reiserFS in the new kernel, it's disabled by default.
 
Old 01-27-2004, 02:49 PM   #5
Slacker0815
Member
 
Registered: Jan 2004
Location: Germany
Distribution: Slack, Slack, Slack
Posts: 45

Original Poster
Rep: Reputation: 15
Compiling 2.4.22 would not be the problem, did that several times and it worked. I just thought that upgrading to 2.6 would be more work than just compiling the 2.6 kernel, but if it's not, great.

Just one question: Why's compiling done different than with 2.4? No make dep and make bzImage anymore?
 
Old 01-29-2004, 03:41 AM   #6
XStorm
Member
 
Registered: Nov 2003
Distribution: Slack 10.0 / 2.6.8.1
Posts: 63

Rep: Reputation: 15
Because now when you do "make" or "make all" it also builds all the modules, vmlinuz (the kernel),
and bzImage (the compressed kernel image).
Don't know where are the dependencies made tho...
 
Old 07-21-2005, 10:43 AM   #7
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
I have the same problem...

ioctl: LOOP_SET_STATUS: Invalid argument

on slackware 10.1... I've also already tried to upgrade to 2.6 kernel and it all went well except that unfortunately this kernel had many other glitches (mounting a usb key worked nomore etc. etc) so I think that if slack comes with the default 2.4 kernel there's a reason.

And by the way.. I had the same " ioctl: LOOP_SET_STATUS: Invalid argument " error also on 2.6!!!!
 
Old 07-21-2005, 05:13 PM   #8
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
I've tried all the steps again with a new 2.6 kernel and this time I don't get the ioctl error... instead

root@luwrr:/home/pkkle# losetup -e blowfish /dev/loop0 crypt.iso
/dev/loop0: No such device or address

root@hkh,k:/home/bkkk# losetup -e blowfish /dev/loop1 crypt.iso
/dev/loop1: No such file or directory

Note the different error message between dev/loop0 and /dev/loop1
It looks so damn difficult to set it up
 
  


Reply



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
Iptables, invalid argument, problem with modprobe ivanatora Linux - Software 1 05-11-2005 05:55 AM
tc qdisc Invalid argument problem 4mix Linux - Networking 1 09-09-2004 04:26 PM
Problem assigning class D IPADDR because of SIOCIFADDR: Invalid argument clu Slackware 3 02-01-2004 07:06 AM
Dante sockd problem - Invalid argument (errno = 22) Sammy2ooo Linux - Networking 1 11-19-2003 07:22 AM
[ Invalid Argument on 'iptables' ] benleung Linux - Security 1 09-23-2003 12:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration