2.6.22-rc2 panics on x86-64 with slub
It's an AM2 5600 chip on AMD 690G chipset on Asus M2A-VM board.
With CONFIG_SLUB it panics. With CONFIG_SLAB all is well. (Same behaviour on 2.6.22-rc1 also)
Unfortunately, it panics so early, it doesn't make it to serial console. So here's what I have written down (sorry if I missed some important info; I hope it gives a clue or two):
Process swapper (...)
...
Call Trace:
kernel_init+0x16c/0x2e1
trace_hardirqs_on_thunk+0x35/0x37
trace_hardirqs_on+0x116/0x13a
child_rip+0xa/ox12
restore_args+0x0/0x30
kernel_init+0x0/0x2e1
child_rip+0x0/0x12
Code: 0f ob eb fe 48 8b 1b 48 8b 0x 0f 18 08 48 81 fb 60 cb 51 80
RIP [...] slab_sysfs_init+0x49/0x98RSP [...]
kernel panic - not syncing: Attempted to kill init!
The .config is attached (with the CONFIG_SLUB).
(It's vanilla 2.6.22-rc2 plus a patch, which is submitted to libata maintainer already, from Tejun Heo for SB600 AHCI to work on a system with >4GB.)
Any patches welcome.
Thanks
___________________________________________________________________________________
How would you spend $50,000 to create a more sustainable environment in Australia? Go to Yahoo!7 Answers and share your idea.
http://advision.webevents.yahoo.com/aunz/lifestyle/answers/y7ans-babp_reg.html
Quoted 4 lines · Srihari Vijayaraghavan
Code: 0f ob eb fe 48 8b 1b 48 8b 0x 0f 18 08 48 81 fb 60 cb 51 80 RIP [...] slab_sysfs_init+0x49/0x98RSP [...]
kernel panic - not syncing: Attempted to kill init!
sysfs? If you build without CONFIG_SLUB_DEBUG then SLUB will not use sysfs. You can switch that off in the embedded section.
Quoted 9 lines · --- Christoph Lameter
Quoted 4 lines · Srihari Vijayaraghavan
Code: 0f ob eb fe 48 8b 1b 48 8b 0x 0f 18 08 48 81 fb 60 cb 51 80 RIP [...] slab_sysfs_init+0x49/0x98RSP [...]
kernel panic - not syncing: Attempted to kill init!sysfs? If you build without
CONFIG_SLUB_DEBUGthen SLUB will not use sysfs. You can switch that off in the embedded section.
Fair enough. Would you the section name it appears in 'menuconfig'?
I looked under 'Kernel hacking' section (where the slab debugging appears if slab is turned on as 'Debug slab memory allocation') & in the 'General setup' section also. I unable to figure out how to disable slub debugging :-(.
Pls give me a pointer to it.
Thanks
(Won't it be right to disable it by default when a user selects slub such that a user needs to manually turn on the slub debugging in menuconfig?)
___________________________________________________________________________________
How would you spend $50,000 to create a more sustainable environment in Australia? Go to Yahoo!7 Answers and share your idea.
http://advision.webevents.yahoo.com/aunz/lifestyle/answers/y7ans-babp_reg.html
Quoted 8 lines · Srihari Vijayaraghavan
Quoted 7 lines · --- Christoph Lameter
Quoted 4 lines · Srihari Vijayaraghavan
Code: 0f ob eb fe 48 8b 1b 48 8b 0x 0f 18 08 48 81 fb 60 cb 51 80 RIP [...] slab_sysfs_init+0x49/0x98RSP [...]
kernel panic - not syncing: Attempted to kill init!
Quoted 8 lines
Quoted 2 lines
sysfs? If you build without
CONFIG_SLUB_DEBUGthen SLUB will not use sysfs. You can switch that off in the embedded section.Fair enough. Would you the section name it appears in 'menuconfig'?
I looked under 'Kernel hacking' section (where the slab debugging appears if slab is turned on as 'Debug slab memory allocation') & in the 'General setup' section also. I unable to figure out how to disable slub debugging :-(.
SLUB_DEBUG is both "bool if EMBEDDED" and "depends on SLUB", which means just getting it to be visible in "menuconfig" is quite a challenge :-)
You first need to go into the choice where you pick the allocators ("Choose allocator --->" which is the last option in General Setup), and then pick SLUB as your allocator.
Then, from the General Setup again, turn on the "Configure standard kernel features (for small systems) --->" just above the previous option and then go into that menu. Now the option to disable SLUB_DEBUG (which is y by default) becomes visible, so just deselect it to disable it.
Quoted 24 lines · --- Satyam Sharma
Quoted 8 lines · Srihari Vijayaraghavan
Quoted 7 lines · --- Christoph Lameter
Quoted 4 lines · Srihari Vijayaraghavan
Code: 0f ob eb fe 48 8b 1b 48 8b 0x 0f 18 08 48 81 fb 60 cb 51 80 RIP [...] slab_sysfs_init+0x49/0x98RSP [...]
kernel panic - not syncing: Attempted to kill init!Quoted 6 lines
Quoted 2 lines
sysfs? If you build without
CONFIG_SLUB_DEBUGthen SLUB will not use sysfs. You can switch that off in the embedded section.Fair enough. Would you the section name it appears in 'menuconfig'?
I looked under 'Kernel hacking' section (where the slab debugging appears
if
Quoted 1 line
slab is turned on as 'Debug slab memory allocation') & in the 'General
setup'
Quoted 1 line
section also. I unable to figure out how to disable slub debugging :-(.
SLUB_DEBUGis both "bool if EMBEDDED" and "depends on SLUB", which means just getting it to be visible in "menuconfig" is quite a challenge :-)
Quoted 8 lines
You first need to go into the choice where you pick the allocators ("Choose allocator --->" which is the last option in General Setup), and then pick SLUB as your allocator.
Then, from the General Setup again, turn on the "Configure standard kernel features (for small systems) --->" just above the previous option and then go into that menu. Now the option to disable
SLUB_DEBUG(which is y by default) becomes visible, so just deselect it to disable it.
Thanks for that. I've just figured that out a few minutes ago :-). Was a tricky one indeed. Then I captured and posted the current kernel bug report while having slub just then.
Thanks
___________________________________________________________________________________
How would you spend $50,000 to create a more sustainable environment in Australia? Go to Yahoo!7 Answers and share your idea.
http://advision.webevents.yahoo.com/aunz/lifestyle/answers/y7ans-babp_reg.html