Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 296852

Summary: [hardened-dev] sys-kernel/hardened-2.6.32 fails to compile CUSE
Product: Gentoo Linux Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: HardenedAssignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE) <hardened-kernel+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: pageexec
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dennis Schridde 2009-12-14 09:31:21 UTC
ERROR: "fuse_dev_fasync" [fs/fuse/cuse.ko] undefined!
ERROR: "fuse_dev_poll" [fs/fuse/cuse.ko] undefined!
ERROR: "fuse_dev_write" [fs/fuse/cuse.ko] undefined!
ERROR: "fuse_dev_read" [fs/fuse/cuse.ko] undefined!

CONFIG_FUSE_FS=m
CONFIG_CUSE=m

Reproducible: Always




Portage 2.2_rc59 (hardened/linux/ia64/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r5, 2.6.31-hardened-r6 ia64)
=================================================================                                             
System uname: Linux-2.6.31-hardened-r6-ia64-31-with-gentoo-2.0.1                                              
Timestamp of tree: Mon, 14 Dec 2009 08:45:02 +0000                                                            
app-shells/bash:     4.0_p28                                                                                  
dev-lang/python:     2.6.4, 3.1.1-r1                                                                          
dev-python/pycrypto: 2.0.1-r8                                                                                 
dev-util/cmake:      2.6.4-r3                                                                                 
sys-apps/baselayout: 2.0.1                                                                                    
sys-apps/openrc:     0.5.3                                                                                    
sys-apps/sandbox:    2.2                                                                                      
sys-devel/autoconf:  2.63-r1                                                                                  
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2                                                               
sys-devel/binutils:  2.20                                                                                     
sys-devel/gcc-config: 1.4.1                                                                                   
sys-devel/libtool:   2.2.6b                                                                                   
virtual/os-headers:  2.6.27-r2                                                                                
ACCEPT_KEYWORDS="ia64"                                                                                        
ACCEPT_LICENSE="* -@EULA"                                                                                     
CBUILD="ia64-unknown-linux-gnu"                                                                               
CFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="      --include='/sci-libs/' --include='/sci-libs/gsl/' --exclude='/sci-libs/*/'      --include='/x11-libs/'          --include='/x11-libs/qt*/'              --include='/x11-libs/cairo/' --include='/x11-libs/pango/' --include='/x11-libs/pixman/' --exclude='/x11-libs/*/'    --include='/x11-misc/' --include='/x11-misc/util-macros/' --exclude='/x11-misc/*/'      --exclude='/games*/' --exclude='/gnome*/' --exclude='/gnustep*/' --exclude='/gpe*/' --exclude='/kde*/' --exclude='/lxde*/' --exclude='/rox*/' --exclude='/sci*/' --exclude='/x11*/' --exclude='/xfce*/'"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/hardened-development /var/cache/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
[..]
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS_FLAGS
Comment 1 Jory A. Pratt gentoo-dev 2009-12-14 14:25:42 UTC
Have you tested a vanilla-2.6.32? This is gonna be more a kernel specific issue on ia64 and not hardened.
Comment 2 Dennis Schridde 2009-12-14 16:08:48 UTC
No, I have not tested that.
Comment 3 PaX Team 2009-12-31 15:13:04 UTC
this will be fixed in the next PaX patch, for now you'll have to compile in fuse/cuse or add the following lines to the end of fs/fuse/dev.c:

EXPORT_SYMBOL_GPL(fuse_dev_read);
EXPORT_SYMBOL_GPL(fuse_dev_write);
EXPORT_SYMBOL_GPL(fuse_dev_poll);
EXPORT_SYMBOL_GPL(fuse_dev_fasync);
Comment 4 Anthony Basile gentoo-dev 2010-06-03 00:48:26 UTC
I just tested this on the latest ebuild in the tree: hardened-source-2.6.32-r8 and it appears to be fixed on x86 and amd64.  The export symbol lines are in fs/fuse/dev.c and the FUSE and CUSE modules compile correctly.

The bug was hit on ia64 but was probably cross arch.  If the reporter wants to test it on his hardware and report back, we can close this bug as resolved fixed.

Comment 5 Anthony Basile gentoo-dev 2010-07-07 19:23:16 UTC
One month and no answer from the reporter.  If there are no further issues, I'll close the bug as fixed in a day or so.
Comment 6 Dennis Schridde 2010-07-07 20:35:11 UTC
Seems to compile fine in -r10.