insmod commands:
insmod: can't insert 'tunnel4.ko': invalid module format
insmod: can't insert 'tunnel6.ko': invalid module format
insmod: can't insert 'zlib_deflate.ko': invalid module format
insmod: can't insert 'zlib_inflate.ko': invalid module format
insmod: can't insert 'xfrm6_tunnel.ko': invalid module format
errors in dmesg:
tunnel4: exports duplicate symbol xfrm4_tunnel_deregister (owned by kernel)
tunnel6: exports duplicate symbol xfrm6_tunnel_deregister (owned by kernel)
zlib_deflate: exports duplicate symbol zlib_deflateReset (owned by kernel)
zlib_inflate: exports duplicate symbol zlib_inflateIncomp (owned by kernel)
xfrm6_tunnel: exports duplicate symbol xfrm6_tunnel_free_spi (owned by kernel)
If a kernel module is using a duplicate symbol owned by the kernel, then that kernel module can never be loaded. I wonder if this is the problem?
The bottom line is if we can get the following kernel modules to load, then we are golden. But this remains the proverbial brick wall. These 5 kernel modules are the only ones we need for IPsec. They are: ah4.ko, esp4.ko, ipcomp.ko, xfrm4_tunnel.ko, and xfrm_user.ko. Nothing else really matters.
insmod: can't insert 'tunnel4.ko': invalid module format
insmod: can't insert 'tunnel6.ko': invalid module format
insmod: can't insert 'zlib_deflate.ko': invalid module format
insmod: can't insert 'zlib_inflate.ko': invalid module format
insmod: can't insert 'xfrm6_tunnel.ko': invalid module format
errors in dmesg:
tunnel4: exports duplicate symbol xfrm4_tunnel_deregister (owned by kernel)
tunnel6: exports duplicate symbol xfrm6_tunnel_deregister (owned by kernel)
zlib_deflate: exports duplicate symbol zlib_deflateReset (owned by kernel)
zlib_inflate: exports duplicate symbol zlib_inflateIncomp (owned by kernel)
xfrm6_tunnel: exports duplicate symbol xfrm6_tunnel_free_spi (owned by kernel)
If a kernel module is using a duplicate symbol owned by the kernel, then that kernel module can never be loaded. I wonder if this is the problem?
The bottom line is if we can get the following kernel modules to load, then we are golden. But this remains the proverbial brick wall. These 5 kernel modules are the only ones we need for IPsec. They are: ah4.ko, esp4.ko, ipcomp.ko, xfrm4_tunnel.ko, and xfrm_user.ko. Nothing else really matters.
Code:
insmod: can't insert 'ah4.ko': Resource temporarily unavailable
ip ah init: can't add xfrm type
insmod: can't insert 'esp4.ko': Resource temporarily unavailable
ip esp init: can't add xfrm type
insmod: can't insert 'ipcomp.ko': Resource temporarily unavailable
ipcomp init: can't add xfrm type
insmod: can't insert 'xfrm4_tunnel.ko': Resource temporarily unavailable
ipip init: can't add xfrm type
insmod: can't insert 'xfrm_user.ko': Cannot allocate memory
Initializing XFRM netlink socket
Last edited: