If I compile my kernel with Multi-device support, RAID, linear,0,1,4/5,Mutlipath-IO,Device-mapper (LVM2) built into the kernel, (CONFIG_MD=y,CONFIG_BLK_DEV_MD=y,CONFIG_MD_LINEAR=y,CONFIG_MD_RAID0=y,CONFIG_MD_RAID1=y,CONFIG_MD_RAID5=y,CONFIG_MD_MULTIPATH=yCONFIG_BLK_DEV_DM=y) I get this error: /usr/src/linux-2.4.28-hardened/arch/i386/lib/lib.a /usr/src/linux-2.4.28-hardened/lib/lib.a /usr/src/linux-2.4.28-hardened/arch/i386/lib/lib.a \ --end-group \ -o vmlinux drivers/md/mddev.o(.text+0x1102f): In function `dm_suspend': : undefined reference to `fsync_dev_lockfs' drivers/md/mddev.o(.text+0x11116): In function `dm_suspend': : undefined reference to `unlockfs' drivers/md/mddev.o(.text+0x11144): In function `dm_suspend': : undefined reference to `unlockfs' drivers/md/mddev.o(.text+0x111c7): In function `dm_resume': : undefined reference to `unlockfs' Reproducible: Always Steps to Reproduce: Hints for the solution: If I compare the patch-sets of hardened-2.4.27-r1 and hardened-2.4.28 (files hardened-patches-2.4-27.1.tar.bz2 and hardened-patches-2.4-28.1.tar.bz2) there is the problem in the file 1001_device-mapper.patch of 2.4.28, because the definition of fsync_dev_lockfs and unlockfs is missing. But these 2 functions are used with the 1002_evms.patch. My solution would be not to use the 1002_evms.patch, but I am not sure about the consequences.
I have updated Device Mapper to 1.00.21 and EVMS to 2.5.0 in hardened-sources-2.4.28-r3 along with some vuln patches. This fixes your compile problem. Can you please upgrade and confirm?
Compiling hardened-sources-2.4.28-r3 was OK, but I had to disable decnet-Support (Network), which is not important for me.
Decnet-support is also broken in vanilla 2.4.28 so hopefully it should be fixed by the 2.4.29 release which will be soon.