Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 119992

Summary: kernel 2.6.15-gentoo-r1 swap bug
Product: Gentoo Linux Reporter: Michele Schiavo <micheleschi>
Component: [OLD] Core systemAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED UPSTREAM    
Severity: critical CC: kisszabo, krosswindz, narusegawa
Priority: High    
Version: 2005.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: .config

Description Michele Schiavo 2006-01-22 16:28:04 UTC
Bad page state at free_hot_cold_page (in process 'X', page ffff81000295b258)
flags:0x4000000000000414 mapping:0000000000000000 mapcount:0 count:0
Backtrace:

Call Trace:<ffffffff801562ca>{bad_page+113} <ffffffff801569bd>{free_hot_cold_page+102}
       <ffffffff80156a90>{__pagevec_free+39} <ffffffff8015c091>{release_pages+338}
       <ffffffff80168d1a>{free_pages_and_swap_cache+112} <ffffffff80164503>{unmap_region+278}
       <ffffffff8016481f>{do_munmap+516} <ffffffff80165001>{sys_munmap+62}
       <ffffffff8010d84e>{system_call+126}
Trying to fix it up, but a reboot is needed
[fglrx] free  PCIe = 54804480
[fglrx] max   PCIe = 54804480
[fglrx] free  LFB = 116322304
[fglrx] max   LFB = 116322304
[fglrx] free  Inv = 134217728
[fglrx] max   Inv = 134217728
[fglrx] total Inv = 134217728
[fglrx] total TIM = 0
[fglrx] total FB  = 0
[fglrx] total PCIe = 16384
----------- [cut here ] --------- [please bite here ] ---------
Kernel BUG at mm/swap.c:215
invalid operand: 0000 [1] SMP
CPU 0
Modules linked in: fglrx vmnet vmmon zd1211
Pid: 13960, comm: xscreensaver-gl Tainted: P    B 2.6.15-gentoo-r1 #2
RIP: 0010:[<ffffffff8015bf85>] <ffffffff8015bf85>{release_pages+70}
RSP: 0018:ffff81003c37bdc8  EFLAGS: 00010256
RAX: 0000000000000000 RBX: ffff81000295b258 RCX: ffff81007dc98280
RDX: ffff81000295b258 RSI: 0000000000000010 RDI: ffff810002c0f298
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff810001d2c978
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000010
R13: ffff810002c0f298 R14: 0000000000000060 R15: ffff810002c0f298
FS:  0000000000000000(0000) GS:ffffffff805d2800(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00002aaaab3e5ce0 CR3: 0000000000101000 CR4: 00000000000006e0
Process xscreensaver-gl (pid: 13960, threadinfo ffff81003c37a000, task ffff81007242e140)
Stack: 0000000000000000 0000000000000000 ffff810001e8d3b0 0000000000000286
       0000000000000286 ffffffff8015f621 00007fffff86d000 0000000000000000
       00007fffff86d000 0000000000000000
Call Trace:<ffffffff8015f621>{free_pgd_range+668} <ffffffff80168d1a>{free_pages_and_swap_cache+112}
       <ffffffff80165482>{exit_mmap+185} <ffffffff8012ff4d>{mmput+35}
       <ffffffff801346ac>{do_exit+540} <ffffffff8024121a>{__up_write+20}
       <ffffffff80135123>{sys_exit_group+0} <ffffffff8010d84e>{system_call+126}


Code: 0f 0b 68 0f a2 42 80 c2 d7 00 f0 83 43 08 ff 0f 98 c0 84 c0
RIP <ffffffff8015bf85>{release_pages+70} RSP <ffff81003c37bdc8>
 <1>Fixing recursive fault but reboot is needed!
gnome-vfs-daemo[13937]: segfault at 0000000000000000 rip 00002aaaace41f82 rsp 00007fffffa53348 error 4





/dev/sda4                              none                    swap            sw,loop=/dev/loop1,encryption=AES128    0 0
Comment 1 Michele Schiavo 2006-01-22 16:29:45 UTC
Also without swap enable
----------- [cut here ] --------- [please bite here ] ---------
Kernel BUG at mm/swap.c:215
invalid operand: 0000 [1] SMP
CPU 0
Modules linked in: fglrx vmnet vmmon
Pid: 13961, comm: xscreensaver-gl Tainted: P    B 2.6.15-gentoo-r1 #2
RIP: 0010:[<ffffffff8015bf85>] <ffffffff8015bf85>{release_pages+70}
RSP: 0018:ffff8100782b7dc8  EFLAGS: 00010256
RAX: 0000000000000000 RBX: ffff8100028f8420 RCX: ffff81007f5db840
RDX: ffff8100028f8420 RSI: 0000000000000010 RDI: ffff810003a1b298
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff810002b0a698
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000010
R13: ffff810003a1b298 R14: 0000000000000061 R15: ffff810003a1b298
FS:  0000000000000000(0000) GS:ffffffff805d2800(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00002aaaab3e5ce0 CR3: 0000000000101000 CR4: 00000000000006e0
Process xscreensaver-gl (pid: 13961, threadinfo ffff8100782b6000, task ffff8100a13e97b0)
Stack: 0000000000000000 0000000000000000 ffff810002b2d970 0000000000000286
       0000000000000286 ffffffff8015f621 00007ffffff9c000 0000000000000000
       00007ffffff9c000 0000000000000000
Call Trace:<ffffffff8015f621>{free_pgd_range+668} <ffffffff80168d1a>{free_pages_and_swap_cache+112}
       <ffffffff80165482>{exit_mmap+185} <ffffffff8012ff4d>{mmput+35}
       <ffffffff801346ac>{do_exit+540} <ffffffff8024121a>{__up_write+20}
       <ffffffff80135123>{sys_exit_group+0} <ffffffff8010d84e>{system_call+126}


Code: 0f 0b 68 0f a2 42 80 c2 d7 00 f0 83 43 08 ff 0f 98 c0 84 c0
RIP <ffffffff8015bf85>{release_pages+70} RSP <ffff8100782b7dc8>
 <1>Fixing recursive fault but reboot is needed!


 free
             total       used       free     shared    buffers     cached
Mem:       3090476     800944    2289532          0      70800     364808
-/+ buffers/cache:     365336    2725140
Swap:            0          0          0
Comment 2 Michele Schiavo 2006-01-22 16:30:51 UTC
Created attachment 77869 [details]
.config
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-23 02:54:52 UTC
*** Bug 120032 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-01-23 09:21:46 UTC
Is this reproducible without the closed source fglrx driver loaded?
Comment 5 Krisztian Kis-Szabo 2006-01-23 12:08:38 UTC
X server works fine with the generic radeon driver.
Comment 6 Michele Schiavo 2006-01-23 12:13:50 UTC
I try to load fglrx module by hand doing modprobe.
No bug appears.

start xdm manual /etc/init.d/xdm start
No bug appears.

Log-in and bug it's here
[fglrx] Maximum main memory to use for locked dma buffers: 2872 MBytes.
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[fglrx] module loaded - fglrx 8.18.8 [Oct 25 2005] on minor 0
Bad page state at free_hot_cold_page (in process 'X', page ffff81000393c5b0)
flags:0x4000000000000414 mapping:0000000000000000 mapcount:0 count:0
Backtrace:

Call Trace:<ffffffff801562ca>{bad_page+113} <ffffffff801569bd>{free_hot_cold_page+102}
       <ffffffff80156a90>{__pagevec_free+39} <ffffffff8015c091>{release_pages+338}
       <ffffffff80168d1a>{free_pages_and_swap_cache+112} <ffffffff80164503>{unmap_region+278}
       <ffffffff8016481f>{do_munmap+516} <ffffffff80165001>{sys_munmap+62}
       <ffffffff8010d84e>{system_call+126}
Trying to fix it up, but a reboot is needed
[fglrx] free  PCIe = 51118080
[fglrx] max   PCIe = 51118080
[fglrx] free  LFB = 116322304
[fglrx] max   LFB = 116322304
[fglrx] free  Inv = 134217728
[fglrx] max   Inv = 134217728
[fglrx] total Inv = 134217728
[fglrx] total TIM = 0
[fglrx] total FB  = 0
[fglrx] total PCIe = 16384
----------- [cut here ] --------- [please bite here ] ---------
Kernel BUG at mm/swap.c:215
invalid operand: 0000 [1] SMP
CPU 0
Modules linked in: fglrx vmnet vmmon dm_crypt
Pid: 14869, comm: xscreensaver-gl Tainted: P    B 2.6.15-gentoo-r1 #2
RIP: 0010:[<ffffffff8015bf85>] <ffffffff8015bf85>{release_pages+70}
RSP: 0018:ffff81009286bdc8  EFLAGS: 00010256
RAX: 0000000000000000 RBX: ffff81000393c5b0 RCX: ffff8100be4b0200
RDX: ffff81000393c5b0 RSI: 0000000000000010 RDI: ffff810003a1b298
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff81000300df48
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000010
R13: ffff810003a1b298 R14: 0000000000000060 R15: ffff810003a1b298
FS:  0000000000000000(0000) GS:ffffffff805d2800(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00002aaaab3e5ce0 CR3: 0000000000101000 CR4: 00000000000006e0
Process xscreensaver-gl (pid: 14869, threadinfo ffff81009286a000, task ffff810092869670)
Stack: 0000000000000000 0000000000000000 ffff810002ff03f0 0000000000000286
       0000000000000286 ffffffff8015f621 00007fffffff1000 0000000000000000
       00007fffffff1000 0000000000000000
Call Trace:<ffffffff8015f621>{free_pgd_range+668} <ffffffff80168d1a>{free_pages_and_swap_cache+112}
       <ffffffff80165482>{exit_mmap+185} <ffffffff8012ff4d>{mmput+35}
       <ffffffff801346ac>{do_exit+540} <ffffffff8024121a>{__up_write+20}
       <ffffffff80135123>{sys_exit_group+0} <ffffffff8010d84e>{system_call+126}


Code: 0f 0b 68 0f a2 42 80 c2 d7 00 f0 83 43 08 ff 0f 98 c0 84 c0
RIP <ffffffff8015bf85>{release_pages+70} RSP <ffff81009286bdc8>
 <1>Fixing recursive fault but reboot is needed!
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2006-01-25 06:19:30 UTC
*** Bug 120198 has been marked as a duplicate of this bug. ***
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-01-25 06:19:55 UTC
Seems to be an ati-drivers bug.
Comment 9 Anton Bolshakov 2006-01-26 17:47:46 UTC
This bug looks the same with
http://bugs.gentoo.org/show_bug.cgi?id=118391
where there is a patch for ati-driver.
Can somebody try it?
Comment 10 Bharath Ramesh 2006-01-27 00:00:48 UTC
I tried the patch out on ati-drivers-8.14.13-r3 and the kernel doesnt lock up anymore but I still get the following error in dmesg which is absent if I use 2.6.14 kernels. The error is:

allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.
Comment 11 Krisztian Kis-Szabo 2006-01-27 04:38:57 UTC
You need to add to the kernel commandline: vmalloc=<size> . For myself I use vmaloc=256m.
Comment 12 Michele Schiavo 2006-03-26 12:58:17 UTC
2.6.15-gentoo-r1 out of portage
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-04-29 15:09:31 UTC
*** Bug 131724 has been marked as a duplicate of this bug. ***