Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343767 - sys-kernel/hardened-sources-2.6.35-r5 modprobing ath9k or atl1c causes kernel panic and segfaults
Summary: sys-kernel/hardened-sources-2.6.35-r5 modprobing ath9k or atl1c causes kernel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-01 22:03 UTC by Daniel Kuehn (RETIRED)
Modified: 2010-11-03 11:58 UTC (History)
2 users (show)

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


Attachments
Backtrace of hanging modprobe (modprobe.btfull,1.18 KB, text/plain)
2010-11-01 22:05 UTC, Daniel Kuehn (RETIRED)
Details
strace of segfaulting modprobe (modprobe.strace,16.92 KB, text/plain)
2010-11-01 22:05 UTC, Daniel Kuehn (RETIRED)
Details
dmesg part that shows the kernel panic when modprobe segfaults (modprobe.dmesg,3.93 KB, text/plain)
2010-11-01 22:06 UTC, Daniel Kuehn (RETIRED)
Details
emerge --info (emerge.info,12.43 KB, text/plain)
2010-11-03 11:58 UTC, Daniel Kuehn (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kuehn (RETIRED) gentoo-dev 2010-11-01 22:03:21 UTC
When trying to modprobe ath9k or modprobe atl1c when running the .35-r5 kernel it causes an kernel panic (see the attached dmesg log) and modprobe segfaults.
Trying to do anything after that kernel panic causes it to wait indefinatly and it never returns.

Reproducible: Always

Steps to Reproduce:
1.Run an 2.6.35-r5 kernel
2.modprobe ath9k or modprobe atl1c
3.

Actual Results:  
Kernel panic and modprobe segfaults which causes any activity after the kernel panic to hang indefinetly

Expected Results:  
modprobing should succeed and load my wlan or lan module successfully

This was run from an freshly booted system, no commands prior had been issued except the users .bashrc and modprobe -r nouveau (which succeeded)
Comment 1 Daniel Kuehn (RETIRED) gentoo-dev 2010-11-01 22:05:07 UTC
Created attachment 252833 [details]
Backtrace of hanging modprobe
Comment 2 Daniel Kuehn (RETIRED) gentoo-dev 2010-11-01 22:05:33 UTC
Created attachment 252835 [details]
strace of segfaulting modprobe
Comment 3 Daniel Kuehn (RETIRED) gentoo-dev 2010-11-01 22:06:06 UTC
Created attachment 252837 [details]
dmesg part that shows the kernel panic when modprobe segfaults
Comment 4 Daniel Kuehn (RETIRED) gentoo-dev 2010-11-02 22:56:53 UTC
I tried hardened-sources-2.6.35-r6 that was pushed out today and that resolved the issue, same config.
I still have the ability to reproduce the error if needed with an kallsyms enabled .35-r5a
Comment 5 PaX Team 2010-11-03 10:26:29 UTC
what was the fix?
Comment 6 Anthony Basile gentoo-dev 2010-11-03 11:44:23 UTC
(In reply to comment #5)
> what was the fix?
> 

I never was able to reproduce this but let me clarify what grsec patches hardened-sources-2.6.35-r5 and -r6 are based on:

-r5 -> grsecurity-2.2.0-2.6.35.7-201010232009
-r6 -> grsecurity-2.2.0-2.6.35.8-201010311944

The reporter also never gave and emerge --info, so I can't say if its x86 or amd64.  Anyhow, if he says he can't reproduce it, I'm assuming its fixed.

I'm closing this one for now.  Reopen if needed.
Comment 7 Daniel Kuehn (RETIRED) gentoo-dev 2010-11-03 11:58:11 UTC
Created attachment 253025 [details]
emerge --info

Added just for reference, running 2.6.35-r6 hardened sources