ioctl: LOOP_SET_STATUS: Invalid argument, requested cipher or key length (256 bits) not supported by kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loop-aes-utils (Ubuntu) |
Invalid
|
Undecided
|
LimCore |
Bug Description
ioctl: LOOP_SET_STATUS: Invalid argument, requested cipher or key length (256 bits) not supported by kernel
when setting up losetup -e aes-256 (or aes-128)
Ubuntu 7.10 on amd64 with 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64 GNU/Linux
---------
REPRODUCE ERROR
root@rafal-
10+0 records in
10+0 records out
10240 bytes (10 kB) copied, 0.00378175 seconds, 2.7 MB/s
Password:
ioctl: LOOP_SET_STATUS: Invalid argument, requested cipher or key length (256 bits) not supported by kernel
---------
ii loop-aes-utils 2.12r-16
root@rafal-
ii linux-generic 2.6.22.14.21 Complete Generic Linux kernel
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-image-
ii linux-image-generic 2.6.22.14.21 Generic Linux kernel image
ii linux-libc-dev 2.6.22-14.46 Linux Kernel Headers for development
ii linux-restricte
ii linux-restricte
ii linux-restricte
ii linux-sound-base 1.0.14-1ubuntu2 base package for ALSA and OSS sound systems
ii linux-ubuntu-
root@rafal-
Linux rafal-desktop 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64 GNU/Linux
root@rafal-
root@rafal-
name : aes
driver : aes-generic
module : aes
priority : 100
refcnt : 1
type : cipher
blocksize : 16
min keysize : 16
max keysize : 32
name : blowfish
[...]
name : md5
[...]
Strace shows:
fstat(3, {st_mode=
mmap(NULL, 254020, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b1d8fe65000
close(3) = 0
open("./doc.img", O_RDWR) = 3
open("/dev/loop2", O_RDWR) = 4
mlockall(
open("/dev/tty", O_RDWR|
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(5, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost -isig icanon -echo ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig icanon -echo ...}) = 0
fstat(5, {st_mode=
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig icanon -echo ...}) = 0
mmap(NULL, 4096, PROT_READ|
write(5, "Password: ", 10Password: ) = 10
read(5, "asdfasdfasdfas
write(5, "\n", 1
) = 1
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost -isig icanon -echo ...}) = 0
ioctl(5, SNDCTL_TMR_CONTINUE or TCSETSF, {B38400 opost isig icanon echo ...}) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
close(5) = 0
munmap(
ioctl(4, 0x4c00, 0x3) = 0
ioctl(4, 0x4c05, 0x7fff1ad51400) = 0
ioctl(4, 0x4c04, 0x7fff1ad53050) = -1 EINVAL (Invalid argument)
ioctl(4, 0x4c02, 0x7fff1ad514f0) = -1 EINVAL (Invalid argument)
ioctl(4, 0x4c05, 0x7fff1ad51400) = 0
ioctl(4, 0x4c04, 0x7fff1ad53050) = -1 EINVAL (Invalid argument)
ioctl(4, 0x4c02, 0x7fff1ad514f0) = -1 EINVAL (Invalid argument)
open("/
[...]
open("/
write(2, "ioctl: LOOP_SET_STATUS: Invalid "..., 108ioctl: LOOP_SET_STATUS: Invalid argument, requested cipher or key length (256 bits) not supported by kernel
) = 108
ioctl(4, 0x4c01, 0) = 0
close(4) = 0
close(3) = 0
exit_group(1) = ?
Process 21304 detached
The test is done after modprobing for aes.
I am not sure, perhaps the bug should be for the kernel?
Or am I doing something wrong, but the way above worked always (tested on other distro)