Bug 140354 - /boot/config-2.6.9-1.667smp is missing CONFIG_4KSTACKS
Summary: /boot/config-2.6.9-1.667smp is missing CONFIG_4KSTACKS
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-22 16:03 UTC by Timur Tabi
Modified: 2015-01-04 22:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-11-22 19:53:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Timur Tabi 2004-11-22 16:03:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2)
Gecko/20040803

Description of problem:
Correct me if I'm wrong, but the file /boot/config-2.6.9-1.667smp is
supposed to be the kernel configuration file (.config) that was used
to compile vmlinuz-2.6.9-1.667smp, which is the standard SMP Fedora
Core 3 kernel.

If that assumption is correct, then there's a bug in that file.  The
version magic for that kernel is "2.6.9-1.667smp SMP 686 REGPARM
4KSTACKS gcc-3.4".  However, if I build a module using
/boot/config-2.6.9-1.667smp as my .config file, the module's version
magic is set to "2.6.9 SMP 686 REGPARM gcc-3.4".  This is because
there is no entry for CONFIG_4KSTACKS in config-2.6.9-1.667smp, and so
during the kernel source configuration, that value gets set to "no". 
The resulting modules are compiled with 8K stacks.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. cd /usr/src/linux-2.6.9/
2. make mrproper
3. cp /boot/config-2.6.9-1.667smp .config
4. make menuconfig (and then exit and save)
5. make prepare

The kernel source tree is now configured

6. compile an external module using /usr/src/linux-2.6.9/ as the
kernel tree.
7. Try to insmod the module.
    

Actual Results:  An error message like this is displayed:

Nov 18 18:28:35 sqa-07 kernel: ccil: version magic '2.6.9 SMP 686
REGPARM gcc-3.4' should be '2.6.9-1.667smp SMP 686 REGPARM 4KSTACKS
gcc-3.4'

Expected Results:  The module should have loaded without any
complaints about the version magic.

Additional info:

Comment 1 Dave Jones 2004-11-22 19:53:08 UTC
the config option is not present in the fedora kernel.


Comment 2 Timur Tabi 2004-11-22 20:04:51 UTC
Then how come the kernel version magic has "4KSTACKS" in it?  Look at
the error message that insmod displayed: should be '2.6.9-1.667smp SMP
686 REGPARM 4KSTACKS gcc-3.4'

Comment 3 Timur Tabi 2004-11-23 00:04:36 UTC
Please ignore my previous comment.  /usr/src/linux-2.6.9/ should just
not be used for compiling external modules, so any results from using
it are meaningless.


Note You need to log in before you can comment on or make changes to this bug.