LD .tmp_vmlinux1 mm/built-in.o: In function `alloc_large_system_hash': (.init.text+0x4b42): undefined reference to `__ashlti3' lib/lib.a(decompress_unlzma.o): In function `unlzma': decompress_unlzma.c:(.init.text+0x9c2): undefined reference to `__ashlti3' make: *** [.tmp_vmlinux1] Error 1 .config attached. Reproducible: Always Portage 2.2.0_alpha100 (hardened/linux/ia64/server, gcc-4.5.3, glibc-2.13-r4, 2.6.32-hardened-r92 ia64) ================================================================= System uname: Linux-2.6.32-hardened-r92-ia64-31-with-gentoo-2.0.3 Timestamp of tree: Sat, 07 Apr 2012 13:15:01 +0000 app-shells/bash: 4.2_p20 dev-lang/python: 2.7.2-r3, 3.2.2-r1 dev-util/cmake: 2.8.6-r4 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo local sunrise Installed sets: ACCEPT_KEYWORDS="ia64" ACCEPT_LICENSE="* -@EULA" CBUILD="ia64-unknown-linux-gnu" CFLAGS="-pipe -mtune=mckinley -O2" CHOST="ia64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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" CXXFLAGS="-pipe -mtune=mckinley -O2" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--usepkg --buildpkg --binpkg-respect-use --with-bdeps y --keep-going" FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu" MAKEOPTS="-j3" PKGDIR="/var/cache/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS=" --delete-excluded --include='/sci-libs/' --include='/sci-libs/gsl/' --exclude='/sci-libs/*/' --include='/x11-libs/' --include='/x11-misc/' --include='/x11-proto/' --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 --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/cache/portage/gentoo" PORTDIR_OVERLAY="/var/cache/portage/local /var/cache/portage/overlays/sunrise" [...] Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Created attachment 308147 [details] hardened-sources-2.6.32-r98.config
@blueness, feel free to add ia64@ by yourself if is needed
You should unset the SIZE_OVERFLOW config option. It is not yet supported on ia64.
(In reply to comment #3) > You should unset the SIZE_OVERFLOW config option. It is not yet supported on > ia64. If that's the case then we sould patch the Kconfig to reflect that. BTW, is this a known vanilla kernel issue? If you get me references I'll push a patch upstream.
> If that's the case then we sould patch the Kconfig to reflect that. BTW, is > this a known vanilla kernel issue? If you get me references I'll push a > patch upstream. This is the size_overflow_plugin's config option from PaX and the arch dependency will be fixed in the next version.
(In reply to comment #5) > > If that's the case then we sould patch the Kconfig to reflect that. BTW, is > > this a known vanilla kernel issue? If you get me references I'll push a > > patch upstream. > > This is the size_overflow_plugin's config option from PaX and the arch > dependency will be fixed in the next version. Ah thanks.
(In reply to comment #5) > > If that's the case then we sould patch the Kconfig to reflect that. BTW, is > > this a known vanilla kernel issue? If you get me references I'll push a > > patch upstream. > > This is the size_overflow_plugin's config option from PaX and the arch > dependency will be fixed in the next version. I am at linux-2.6.32-hardened-r100 now and still PAX_SIZE_OVERFLOW has no depends line in security/Kconfig: config PAX_SIZE_OVERFLOW bool "Prevent various integer overflows in function size parameters"
(In reply to comment #7) > I am at linux-2.6.32-hardened-r100 now and still PAX_SIZE_OVERFLOW has no > depends line in security/Kconfig: > config PAX_SIZE_OVERFLOW > bool "Prevent various integer overflows in function size parameters" it's already fixed in PaX and grsec as well, you'll have to wait until gentoo updates to the latest versions.
(In reply to comment #8) > it's already fixed in PaX and grsec as well, you'll have to wait until > gentoo updates to the latest versions. eh, crap, i forgot to backport it to the .32 series, fixing it right now, sorry about it!
(In reply to comment #9) > (In reply to comment #8) > > it's already fixed in PaX and grsec as well, you'll have to wait until > > gentoo updates to the latest versions. > > eh, crap, i forgot to backport it to the .32 series, fixing it right now, > sorry about it!
(in r102)