My embedded distro uses a 2.4.20 kernel with grsecurity patch. The kernel is compressed with UPX.
http://upx.sf.net
http://leaf.sf.net/devel/jnilo
The 2.4.20 kernel + 1.9.9e grsecurity patch compress OK
but
The 2.4.20 kernel + 1.9.9g grsecurity patch does not want to be compressed. I get:
debian:/tmp/upx-1.90-linux# ./upx --best -o linux.upx /usr/src/linux/arch/i386/boot/bzImage
Ultimate Packer for eXecutables
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
UPX 1.90 Markus F.X.J. Oberhumer & Laszlo Molnar Nov 11th 2002
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: /usr/src/linux/arch/i386/boot/bzImage: CantPackException: unrecognized kernel architecture; use option `-f' to force packing
Packed 1 file: 0 ok, 1 error.
If I force the compression, The linux kernel seems to start decompression OK but I get a reboot at the end of the initrd loading process.
Since I cannot find the 1.9.9f patch anymore I do not know when the problem started
Any idea of what is happening ?
Jacques