Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78330 - (kernel) fsync_dev_lockfs is missing with 2.4.28-hardened-sources
Summary: (kernel) fsync_dev_lockfs is missing with 2.4.28-hardened-sources
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 02:32 UTC by Walter Brunner
Modified: 2005-01-18 05:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Brunner 2005-01-17 02:32:41 UTC
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.
Comment 1 Adam Mondl (RETIRED) gentoo-dev 2005-01-17 16:40:08 UTC
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?
Comment 2 Walter Brunner 2005-01-18 03:47:25 UTC
Compiling hardened-sources-2.4.28-r3 was OK, but I had to disable decnet-Support (Network), which is not important for me.
Comment 3 Adam Mondl (RETIRED) gentoo-dev 2005-01-18 05:43:06 UTC
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.