Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239215 - sys-kernel/hardened-sources-2.6.25-r7: cpqphp driver causes kernel panic or module segfaults when added.
Summary: sys-kernel/hardened-sources-2.6.25-r7: cpqphp driver causes kernel panic or m...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-01 03:52 UTC by andrew.hampe
Modified: 2009-03-01 03:31 UTC (History)
0 users

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


Attachments
The console output from the machine when booted with the driver compiled in. (server_kernel_log,11.32 KB, text/plain)
2008-10-01 03:54 UTC, andrew.hampe
Details
Snippet from console output when booting system with driver compiled as module (extra junk text is apparently due to the system not likeing that the console is set to the serial port) (kernel_module_error,2.71 KB, text/plain)
2008-10-01 04:06 UTC, andrew.hampe
Details
Kernel config with module compiled built-in (config-2.6.25-hardened-r7~hampe-server,44.25 KB, text/plain)
2008-10-03 03:12 UTC, andrew.hampe
Details
Console output form the machine when booted with driver compiled built-in (server_kernel.2.log,10.75 KB, text/plain)
2008-10-03 03:14 UTC, andrew.hampe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrew.hampe 2008-10-01 03:52:54 UTC
Enabling the cpqphp driver (Compaq Hot Plug PCI Controller Driver) compiled into the kernel and then booting the kernel on a COMPAQ ProLiant ML370 G2 Server causes a fault ending in a kernel panic. When compiled as a module, the driver will segfault when added (but does not result in a kernel panic).

Reproducible: Always

Steps to Reproduce:
1. Get your hands on a COMPAQ ProLiant ML370 G2
2. Compile the kernel with the cpqphp driver (Compaq Hot Plug PCI Controller Driver)
3. Boot the kernel

Actual Results:  
At boot with it compiled into the kernel, the kernel will hit an error initialization it and cause a kernel panic. With it compiled as a module, the system will boot, then during the boot the module will be attempted to be added into the kernel, and it will segfault, and the trace gets printed to the console, but the system continues booting.

Expected Results:  
At boot with it compiled into the kernel, the system should have booted without incident. The same goes for when the module gets added to the kernel.

Portage 2.1.4.4 (hardened/linux/x86/2008.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-hardened-r7~hampe-server i686)
=================================================================
System uname: 2.6.25-hardened-r7~hampe-server i686 Intel(R) Pentium(R) III CPU family 1133MHz
Timestamp of tree: Wed, 01 Oct 2008 01:45:04 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS=" -j3"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl apache2 bash-completion berkdb branding bzip2 cli cracklib crypt cups dedicated dri fastcgi ftp gdbm gpm hardened iconv imagemagick ipv6 isdnlog mailwrapper midi mudflap mysql ncurses nptl nptlonly openmp pam pcre perl php pic postgres pppd python readline reflection session snmp spl ssl symlink sysfs tcpd truetype unicode urandom vhosts vim-syntax x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



The motherboard does have hot-plug PCI slots, two PCI 64-bit slots, one with the Smart Array 5i RAID PCI card installed, the second slot blank. I believe that this driver is meant or at least should support the slots/motherboard.
Comment 1 andrew.hampe 2008-10-01 03:54:56 UTC
Created attachment 166884 [details]
The console output from the machine when booted with the driver compiled in.
Comment 2 andrew.hampe 2008-10-01 04:06:17 UTC
Created attachment 166885 [details]
Snippet from console output when booting system with driver compiled as module (extra junk text is apparently due to the system not likeing that the console is set to the serial port)
Comment 3 Gordon Malm (RETIRED) gentoo-dev 2008-10-01 14:44:33 UTC
Please also post your kernel config, thanks.
Comment 4 andrew.hampe 2008-10-03 03:04:45 UTC
(In reply to comment #3)
> Please also post your kernel config, thanks.
> 

I have since changed my config no to include the driver to let it boot. I've reconfiugred the kernel again with the driver and I'm going to upload the new logs and config as soon as I get them.
Comment 5 andrew.hampe 2008-10-03 03:12:57 UTC
Created attachment 167049 [details]
Kernel config with module compiled built-in
Comment 6 andrew.hampe 2008-10-03 03:14:38 UTC
Created attachment 167050 [details]
Console output form the machine when booted with driver compiled built-in
Comment 7 Gordon Malm (RETIRED) gentoo-dev 2008-10-07 23:23:09 UTC
What was the last kernel that worked (if any)?  Would it be possible for you to try with gentoo-sources-2.6.25-r9?  Could you also try hardened-sources-2.6.25-r7 again, but with all Grsec/PaX options disabled?

There have been issues in the past with PaX and some Compaq RAID controllers, but I believe those were cleared up.  Would like to narrow this down a bit though before getting upstream involved.
Comment 8 Gordon Malm (RETIRED) gentoo-dev 2009-03-01 03:31:58 UTC
Re-open when willing to post requested information.