Re: loop-AES: struct module not found - kernel tainted

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

 



"Thomas Müller" wrote:
> Jari Ruusu wrote:
> > 3) Send your full compressed kernel config to me
> > privately.
> > 4) Try appending USE_KBUILD=y to make command line
> > that you used to build
> >    loop module and try again.
> 
> I skipped the third step and directly tried the fourth
> one and the message disappeared. However, I do not
> really understand why. This option does not seem to be
> in the README. I also noticed that the module was not
> automatically intalled as usual, but stayed in the tmp
> directory that the make process created.

This problem is caused by CONFIG_MODVERSIONS=y in your kernel config. ~ The

USE_KBUILD=y make command line parameter partially works around this problem
and patch below also changes Makefile to partially work around this problem.

Best fix is to disable CONFIG_MODVERSIONS in kernel config. This is because
currently on 2.6 kernels module symbol versions only work for symbols that
are present in the main kernel source tree. When externally compiled loop
module exports symbols to other externally compiled loop cipher modules,
those exported symbols don't have proper versions and modprobe program from
module-init-tools package is not happy with that kind of symbols. This is
small regression in module-init-tools vs. modutils that were used on 2.4 and
older kernels.

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD


--- ../loop-AES-v2.2d/Makefile	Tue Sep 28 18:56:11 2004
+++ ./Makefile	Mon Nov  1 18:36:25 2004
@@ -101,6 +101,7 @@
 	CP1:=cd $(OD1) &&
 	PP1:=$(TD)/
 	MP1:=$(shell if test -e $(OD1)/scripts/mod/modpost; then echo "./scripts/mod/modpost"; else echo "./scripts/modpost"; fi)
+	MP1 += $(shell if grep -q -s "define CONFIG_MODVERSIONS 1" $(OD1)/include/linux/autoconf.h; then if grep -q -s "if .*CONFIG_MODVERSIONS.*-m" $(LS)/scripts/Makefile.modpost; then echo -e "\055m"; fi; fi)
 	VM1:=k
 endif
 	# Use optimized assembler implementation if target is x86 processor

-
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