The servers used are Opterons, AMD64 and Pentium4 all are using 3ware 8006 controlers. Latest Hardened Kernel fails to build at init/built-in.o with loads of undefined reference to 'gr_everything'. It did the same on a SeLinux enabled server (AMD64), on a simple hardened (non-pax non selinux non gr_sec) server (Bi-Opterons), and on a gr_sec enabled x86 (P4). Reproducible: Always Steps to Reproduce: 1.make menuconfig (and setup the kernel) 2.make Actual Results: [...] LD .tmp_vmlinux1 init/built-in.o(.text+0x171): In function `init': : undefined reference to `grsecurity_init' arch/x86_64/kernel/built-in.o(.text+0x4c52): In function `sys_ptrace': : undefined reference to `gr_handle_ptrace' arch/x86_64/ia32/built-in.o(.text+0x98ab): In function `elf_core_dump': : undefined reference to `gr_learn_resource' [...] : undefined reference to `gr_handle_create' make: *** [.tmp_vmlinux1] Error 1 Expected Results: told me the build was finished and my kernel was in arch :) Portage 2.0.51.19 (hardened/amd64, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-hardened-r1 x86_64) ================================================================= System uname: 2.6.11-hardened-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 12 2005, 14:53:21)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -pipe -fPIC -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -pipe -fPIC -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://gentoo.mls.nc/portage" USE="amd64 apache2 berkdb crypt curl exiscan-acl gd hardened hardenedphp imap innodb jpeg justify libwww multilib mysql ncurses nls pam perl pic png python readline ssl tcpd userlocales vhosts xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY I'm filling severity major, as this kernel is correcting a flaw.
Confirmed. None of the stuff in grsecurity/ is getting compiled. Looking into it a bit.
Created attachment 59174 [details, diff] makefile.patch Patch to the top-level Makefile. Fixes compile issues.
It's working like it should be thank you very much for your prompt answer ! Kernel: arch/x86_64/boot/bzImage is ready
Bug confirmed, patch work
Actually in original grsec patch - same makefile modification is done
fixed in the tree under -r13. My apologies - managed to mangle the makefile when editing the grsec patchset.
*** Bug 93045 has been marked as a duplicate of this bug. ***