loop-AES problems with RedHat 7.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I try to build loop-AES-v1.4f (latest) on a RedHat 7.2 Linux i686.
Unfortunately the "make tests" failes:

# make tests
dd if=/dev/zero of=test-file1 bs=1024 count=10
10+0 records in
10+0 records out
cp test-file1 test-file3
echo 12345678901234567890 | losetup -p 0 -e AES128 /dev/loop7 test-file1
ioctl: LOOP_SET_STATUS: Invalid argument
make: *** [tests] Error 1

:-(

This is my steps to get to this point:

Installed the kernel-source rpms for 2.4.9-13 (latest).
Got the RedHat 7.2 .config:

# cp -a /usr/src/linux-2.4.9-13/configs/kernel-2.4.9-i686.config \
  /usr/src/linux-2.4.9-13/.config

# cd /usr/src/linux-2.4.9-13
# make xconfig

[Changed CONFIG_BLK_DEV_LOOP=n (by mouseclicking :)]
[Save and exit]

Checked that I did the right thing:
# grep CONFIG_BLK_DEV_LOOP /usr/src/linux-2.4.9-13/.config
# CONFIG_BLK_DEV_LOOP is not set

# make dep
# make bzImage
# make modules

The last two steps may not have been needed but I did it just to be sure.

# cd /tmp
# tar xjf /tmp/loop-AES-v1.4f.tar.bz2
# cd loop-AES-v1.4f
# make clean
rm -f *.o *.orig *.rej patched-loop.[ch] test-file[1234]

Now time for building:

# make
cd /lib/modules/2.4.9-13/build && make SUBDIRS=/tmp/loop-AES-v1.4f modules
make[1]: Entering directory `/usr/src/linux-2.4.9-13'
make -C  /tmp/loop-AES-v1.4f CFLAGS="-D__KERNEL__ 
-I/usr/src/linux-2.4.9-13/include -Wall -Wstrict-prototypes -Wno-trigraphs 
-O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe 
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.9-13/include/linux/modversions.h" MAKING_MODULES=1 
modules
make[2]: Entering directory `/tmp/loop-AES-v1.4f'
rm -f *.o *.orig *.rej patched-loop.[ch] test-file[1234]
rm -f patched-loop.[ch]
cp /usr/src/linux-2.4.9-13/drivers/block/loop.c patched-loop.c
*** BEGINNING OF SECTION TO IGNORE PATCH ERRORS ***
patch -p0 -l -f --dry-run < loop.c-2.4.diff || cp loop.c-2.4.original 
patched-loop.c
patching file patched-loop.c
Hunk #1 succeeded at 53 (offset 4 lines).
Hunk #2 succeeded at 87 with fuzz 1 (offset 2 lines).
Hunk #3 FAILED at 130.
Hunk #4 succeeded at 157 with fuzz 1 (offset 1 line).
Hunk #5 succeeded at 413 (offset 2 lines).
Hunk #6 FAILED at 431.
Hunk #7 succeeded at 461 (offset 3 lines).
Hunk #8 succeeded at 479 (offset 2 lines).
Hunk #9 succeeded at 488 (offset 3 lines).
Hunk #10 succeeded at 516 with fuzz 2 (offset 12 lines).
Hunk #11 succeeded at 516 (offset 4 lines).
Hunk #12 succeeded at 538 (offset 11 lines).
Hunk #13 FAILED at 546.
Hunk #14 succeeded at 548 (offset -5 lines).
Hunk #15 FAILED at 573.
Hunk #16 FAILED at 605.
Hunk #17 succeeded at 662 (offset 11 lines).
Hunk #18 succeeded at 780 (offset 1 line).
Hunk #19 FAILED at 838.
Hunk #20 succeeded at 956 (offset 54 lines).
Hunk #21 succeeded at 1017 (offset 1 line).
Hunk #22 succeeded at 1113 (offset 50 lines).
Hunk #23 succeeded at 1076 (offset 1 line).
Hunk #24 succeeded at 1136 (offset 50 lines).
Hunk #25 succeeded at 1100 (offset 1 line).
Hunk #26 succeeded at 1181 (offset 48 lines).
Hunk #27 succeeded at 1176 (offset 1 line).
Hunk #28 succeeded at 1238 (offset 48 lines).
Hunk #29 succeeded at 1207 (offset 1 line).
6 out of 29 hunks FAILED -- saving rejects to file patched-loop.c.rej
*** END OF SECTION TO IGNORE PATCH ERRORS ***
patch -p0 -l -f < loop.c-2.4.diff
patching file patched-loop.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.9-13/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common 
-Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.4.9-13/include/linux/modversions.h  
-DDO_GENERIC_FILE_READ_5_PARAMS -DEXPORT_SYMTAB -c patched-loop.c
-o patched-loop.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.9-13/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common 
-Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.4.9-13/include/linux/modversions.h  
-DDO_GENERIC_FILE_READ_5_PARAMS -c aes-glue.c -o aes-glue.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.9-13/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common 
-Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.4.9-13/include/linux/modversions.h  
-DDO_GENERIC_FILE_READ_5_PARAMS -c aes.c -o aes.o
ld -m elf_i386 -r patched-loop.o aes-glue.o aes.o -o loop.o
mkdir -p /lib/modules/2.4.9-13custom/block
cp -p loop.o /lib/modules/2.4.9-13custom/block
sync
make[2]: Leaving directory `/tmp/loop-AES-v1.4f'
make[1]: Leaving directory `/usr/src/linux-2.4.9-13'

Hmm... 6 out of 29 patchhunks failed... maybe not that good :-(

Time for building new mount, umount and losetup:

# tar xjf /tmp/util-linux-2.11l.tar.bz2
# cd util-linux-2.11l
# patch -p1 <../util-linux-2.11l.diff
patching file mount/Makefile
patching file mount/lomount.c
patching file mount/losetup.8
patching file mount/mount.8
patching file mount/mount.c
patching file mount/sha512.c
patching file mount/sha512.h
# make
[...] Seemed to be ok.
# cd mount
# install -m 4755 -o root mount umount /bin
# install -m 755 losetup /sbin
# rm -f /usr/share/man/man8/{mount,umount,losetup}.8.gz
# install -m 644 mount.8 umount.8 losetup.8 /usr/share/man/man8
# cd ../..

Now for the failing test:

# make tests
dd if=/dev/zero of=test-file1 bs=1024 count=10
10+0 records in
10+0 records out
cp test-file1 test-file3
echo 12345678901234567890 | losetup -p 0 -e AES128 /dev/loop7 test-file1
ioctl: LOOP_SET_STATUS: Invalid argument
make: *** [tests] Error 1

Any ideas?


Best regards,

    Jonas

_________________________________________________________________
Hämta MSN Explorer kostnadsfritt på http://explorer.msn.se

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/



[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux