Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38208 - gentoo-sources-2.4.22-r5: Unable to handle kernel NULL pointer dereference (breaks ps)
Summary: gentoo-sources-2.4.22-r5: Unable to handle kernel NULL pointer dereference (b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Brian Jackson (RETIRED)
URL:
Whiteboard:
Keywords:
: 38986 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-14 13:16 UTC by Stefan Tittel
Modified: 2004-01-21 22:36 UTC (History)
9 users (show)

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


Attachments
The .config used. (config,24.63 KB, text/plain)
2004-01-14 13:18 UTC, Stefan Tittel
Details
One of the oops messages. (oops.txt,786 bytes, text/plain)
2004-01-14 13:19 UTC, Stefan Tittel
Details
The output of ksymoops for oops.txt. (ksymoops.txt,1.90 KB, text/plain)
2004-01-14 13:20 UTC, Stefan Tittel
Details
kernel was compiled with this config (it works for -r4 and earlier) (gentoo-sources-2.4.22-r5.config,26.80 KB, text/plain)
2004-01-14 14:56 UTC, Piotr Piasny
Details
config for a pentium III that is having the errors (peacecow-config,19.72 KB, text/plain)
2004-01-14 21:07 UTC, Owen Gunden
Details
config for an athlon that is having the errors (works with r4) (spig-config,22.87 KB, text/plain)
2004-01-14 21:07 UTC, Owen Gunden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Tittel 2004-01-14 13:16:07 UTC
Here's what I did and what happened:

1) cd /usr/src/gentoo-sources-2.4.22-r5
2) make mrproper
3) cp ../gentoo-sources-2.4.22-r3/.config .
4) make oldconfig
5) make menuconfig (set platform from Athlon to Athlon XP)
6) make dep && clean bzImage modules modules_install
7) I installed the kernel

On reboot I got a lot of kernel oops' complaining about being "Unable to handle kernel NULL pointer dereference at virtual address 00000108". As I figured out, this happens each time one of the init script tries to do something with PIDs and when I execute 'ps' from the console, I get the same kernel oops' as on boot (after that ps segfaults).

I have attached one of the plain oops messages (all the others complain about the same virtual address as well) as "oops.txt", the result of "ksymoops < oops.txt > ksmoops.txt" as ksmoops.txt and the .config used to compile the kernel. If I've missed something, I'm sorry, but I'm quite unfamiliar with kernel debugging. Please let me know if you need anything more/other.

All gentoo-sources prior 2.4.22-r4 worked fine on my system with basically the same .config, so I guess the bug is not limited to my system and will affect a lot of other users as well. Therefor I set the Severity to critical, please adjust if I'm wrong.
Comment 1 Stefan Tittel 2004-01-14 13:18:37 UTC
Created attachment 23811 [details]
The .config used.
Comment 2 Stefan Tittel 2004-01-14 13:19:27 UTC
Created attachment 23813 [details]
One of the oops messages.
Comment 3 Stefan Tittel 2004-01-14 13:20:43 UTC
Created attachment 23814 [details]
The output of ksymoops for oops.txt.
Comment 4 Piotr Piasny 2004-01-14 14:53:32 UTC
bug confirmed. the same effects for me.
Comment 5 Piotr Piasny 2004-01-14 14:56:00 UTC
Created attachment 23825 [details]
kernel was compiled with this config (it works for -r4 and earlier)
Comment 6 Owen Gunden 2004-01-14 21:04:56 UTC
Double-confirmed.  I've reproduced the error on two different x86 machines.
Comment 7 Owen Gunden 2004-01-14 21:07:06 UTC
Created attachment 23842 [details]
config for a pentium III that is having the errors
Comment 8 Owen Gunden 2004-01-14 21:07:40 UTC
Created attachment 23843 [details]
config for an athlon that is having the errors (works with r4)
Comment 9 Brian Jackson (RETIRED) gentoo-dev 2004-01-14 21:36:33 UTC
You guys don't have to keep confirming and attaching configs. I know what the problem is, and I'm working on a fix
Comment 10 Brian Jackson (RETIRED) gentoo-dev 2004-01-15 00:01:30 UTC
Okay, can someone rm the patch from their distfiles dir, and remerge. Make
sure it pulls the new patch from dev.gentoo.org. It should have an md5sum of
7f4a97d9c29f7dfc959a7a7efb077e29
This should fix the oopsing. I'm waiting to get confirmation that it is fixed before I bump it.
Comment 11 Andreas Waschbuesch 2004-01-15 00:59:45 UTC
The new patch set works well. No more kOOOps and ps functional again.
Comment 12 Alex Buell 2004-01-15 01:05:41 UTC
How do I manage to get the patch from dev.gentoo.org? It just won't work: 

rm /usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2 
bash-2.05b# emerge -u --deep world
Calculating world dependencies ...done!
>>> emerge (1 of 1) sys-kernel/gentoo-sources-2.4.22-r5 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
--09:04:31--  http://gentoo.oregonstate.edu/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:04:31 ERROR 404: Not Found.

>>> Downloading http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
--09:04:31--  http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving distro.ibiblio.org... 152.2.210.109
Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:04:35 ERROR 404: Not Found.

>>> Downloading http://dev.gentoo.org/~iggy/gentoo-sources-2.4.22-r5.patch.bz2
--09:04:35--  http://dev.gentoo.org/%7Eiggy/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving dev.gentoo.org... 128.193.0.39
Connecting to dev.gentoo.org[128.193.0.39]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,766,950 [text/plain]

100%[========================================================================================>] 3,766,950    119.76K/s    ETA 00:00

09:05:07 (114.99 KB/s) - `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2' saved [3766950/3766950]

!!! Couldn't download gentoo-sources-2.4.22-r5.patch.bz2. Aborting.
Comment 13 Gary Pampara 2004-01-15 01:06:50 UTC
Can confirm patch works.

Thanks
Comment 14 Andreas Waschbuesch 2004-01-15 01:07:05 UTC
Take a look at the ebuild, get the download address and wget "manually". ;)
Comment 15 Gary Pampara 2004-01-15 01:10:40 UTC
Edit the needed digest file in /usr/portage/sys-kernel/gentoo-sources/files/digest-gentoo-sources-2.4.22-r5

Change to:
MD5 75dc85149b06ac9432106b8941eb9f7b linux-2.4.22.tar.bz2 29528612
MD5 7f4a97d9c29f7dfc959a7a7efb077e29 gentoo-sources-2.4.22-r5.patch.bz2 3766950
Comment 16 Alex Buell 2004-01-15 01:33:43 UTC
Confirmed, new patch set solves the problem for me. Thank you. 
Comment 17 Rene Androsch 2004-01-16 14:03:31 UTC
DO we have to do this manually, or will there be a -r6 in the next days?
Comment 18 Brian Jackson (RETIRED) gentoo-dev 2004-01-16 14:16:11 UTC
Just remerge gentoo-sources manually. I don't know when -r6 will be out.
Comment 19 Eric Paynter 2004-01-16 17:13:55 UTC
Does this mean the fix is in the r5 sources now?
Comment 20 Brian Jackson (RETIRED) gentoo-dev 2004-01-16 17:18:10 UTC
yes it is
Comment 21 Stefan Tittel 2004-01-16 22:21:19 UTC
Everything's working fine here now, too, thanks Brian. Since everybody seems to be pleased with the patch, I'm changing the bug status to fixed.
Comment 22 Julien Allanos (RETIRED) gentoo-dev 2004-01-19 03:41:32 UTC
the new patch worked for me too, except for lm-sensors-2.7.0: sensors-detect still segfaults, and no sensor is detected by gkrellm2 when i load the usual modules. do you think it has something to do with this -r5 patch, or should i open a new bug?
Comment 23 Stefan Tittel 2004-01-19 03:59:59 UTC
If I remember correctely, there already has been an issue with 2.7.x lm-sensors and the new i2c modules, which has been fixed in 2.8.x. So try to upgrade to the current lm-sensors stable (2.8.1) and use the i2c modules from the kernel sources (and not from the i2c ebuild). 

gentoo-sources-2.4.22-r5 and lm-sensors 2.8.1 are running fine on several machines over here, so I guess you should also be fine then!
Comment 24 Julien Allanos (RETIRED) gentoo-dev 2004-01-19 04:43:20 UTC
i'm afraid i can't use lm-sensors > 2.7.0 because i'm using bttv too.
Comment 25 Brian Jackson (RETIRED) gentoo-dev 2004-01-21 22:26:10 UTC
*** Bug 38986 has been marked as a duplicate of this bug. ***
Comment 26 Bryan Whitehead 2004-01-21 22:36:58 UTC
Can the owner/admin update the Summary so it hits more searches... (I searched for "gentoo-sources oops" and didn't get anything that was 2.4.22 and opened a new bug)