Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 93022
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: The Gentoo Linux Hardened Team <hardened@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bertrand CHERRIER <chr@linux-nc.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
makefile.patch makefile.patch patch Robert Paskowitz (RETIRED) 2005-05-17 21:13 0000 393 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 93022 depends on: Show dependency tree
Bug 93022 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-17 20:39 0000
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.

------- Comment #1 From Robert Paskowitz (RETIRED) 2005-05-17 21:08:29 0000 -------
Confirmed.

None of the stuff in grsecurity/ is getting compiled. Looking into it a bit.

------- Comment #2 From Robert Paskowitz (RETIRED) 2005-05-17 21:13:01 0000 -------
Created an attachment (id=59174) [details]
makefile.patch

Patch to the top-level Makefile. Fixes compile issues.

------- Comment #3 From Bertrand CHERRIER 2005-05-17 22:02:54 0000 -------
It's working like it should be thank you very much for your prompt answer !

Kernel: arch/x86_64/boot/bzImage is ready


------- Comment #4 From BigBug 2005-05-18 00:20:56 0000 -------
Bug confirmed, patch work

------- Comment #5 From BigBug 2005-05-18 00:23:12 0000 -------
Actually in original grsec patch - same makefile modification is done

------- Comment #6 From John Mylchreest (RETIRED) 2005-05-18 02:06:03 0000 -------
fixed in the tree under -r13.
My apologies - managed to mangle the makefile when editing the grsec patchset.

------- Comment #7 From David Danier 2005-05-18 03:23:58 0000 -------
*** Bug 93045 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug